Fix to: Phone not booting... (after non-stock rom install / switching to stock based rom.)
Zip Method Currently Discontinued. Learn how to fast boot a kernel below.
Scenario: (ADB Sideload Install) If you install a kernel, lets say it was CyanogenMod 10's kernel, then you do not wipe the boot.img, but then you flash a "stock-rom" based rom, Your phone will not boot, this is because the kernel is not compatible. Your screen will turn gray and hold... To fix this download your roms kernel (I scripted and put in an individual, CLOCKWORKMOD-ONLY flashable zip.) Or you can put your device into AP Fastboot mode and type the command "Fastboot Flash Boot C:/Location-of-boot.img" Boot image can be found bellow as an alternative.
Kernel RepositoryFlash-able zip form...- CyanogenMod 10.0 (Eprinter) - Corresponding Thread - status: (in repo)
- CyanogenMod 10.1 (Eprinter) - Corresponding Thread - status: (in repo)
- CyanogenMod 10.0 (Hashcode) - Corresponding Thread - status: (in repo)
- CyanogenMod 10.1 (Hashcode) - Corresponding Thread - status: (in repo)
- Stock 4.1.1/4.1.2 (Motorola) - Manufacture & Developer Website - status: (uploading)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Credit...
Kernel Credit: Hashcode; Eprinter; Motorola; Google; CyanogenMod Team.
Scripted Zip Credit: Me (Codex01).
META-INF Script: Me (Codex01).
Enjoy.
codex01 said:
fix to: Phone not booting... (after non-stock rom install / switching to stock based rom.)
diy: Download "blankboot.zip" (in attachments section) ; place your roms boot.img in the root of the zip.
scenario: (adb sideload install) if you install a kernel, lets say it was cyanogenmod 10's kernel, then you do not wipe the boot.img, but then you flash a "stock-rom" based rom, your phone will not boot, this is because the kernel is not compatible. Your screen will turn gray and hold... To fix this download your roms kernel (i scripted and put in an individual, clockworkmod-only flashable zip.) or you can put your device into ap fastboot mode and type the command "fastboot flash boot c:/location-of-boot.img" boot image can be found bellow as an alternative.
kernel repositoryflash-able zip form...- cyanogenmod 10.0 (eprinter) - corresponding thread - status: (uploading)
- cyanogenmod 10.1 (eprinter) - corresponding thread - status: (uploading)
- cyanogenmod 10.0 (hashcode) - corresponding thread - status: (uploading)
- cyanogenmod 10.1 (hashcode) - corresponding thread - status: (uploading)
- stock 4.1.1/4.1.2 (motorola) - manufacture & developer website - status: (uploading)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
credit...
kernel credit: Hashcode; eprinter; motorola; google; cyanogenmod team.
Scripted zip credit: Me (codex01).
Meta-inf script: Me (codex01).
Enjoy.
Click to expand...
Click to collapse
i looked at your updater script. Are you sure its correct? It has references to "omap" and this is quallcom chipset. Im just curious, not saying its wrong.
mikeyinid said:
i looked at your updater script. Are you sure its correct? It has references to "omap" and this is quallcom chipset. Im just curious, not saying its wrong.
Click to expand...
Click to collapse
I didn't get to test it, because this was the issue with my phone. I posted this at work and didn't bring my razr hd, I brought my iphone instead because this happened to me and just started it. I dev for many phones so I researched how to do it so I could get it done before I got home. (I tried to make it universal.). I guess I uploaded the wrong one. My bad. It will be fixed. I'm gonna test it out now.
codex01 said:
i didn't get to test it, because this was the issue with my phone. I posted this at work and didn't bring my razr hd, i brought my iphone instead because this happened to me and just started it. I dev for many phones so i researched how to do it so i could get it done before i got home. (i tried to make it universal.). I guess i uploaded the wrong one. My bad. It will be fixed. I'm gonna test it out now.
Click to expand...
Click to collapse
no worries. Im not really sure why i even looked.
I think your updater script should look like this, and you *might* not even have to mount system:
Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.100000, 0);
unmount("/system");
not work
I know... It says discontinued.The zip method doesn't work you have to put your phone in fast boot and write fastboot flash boot C:/direcory-to-boot.IMG as it is clearly stated, above. Read everything next time.
Sent from my MB886 using xda app-developers app
Codex01 said:
I know... It says discontinued.The zip method doesn't work you have to put your phone in fast boot and write fastboot flash boot C:/direcory-to-boot.IMG as it is clearly stated, above. Read everything next time.
Sent from my MB886 using xda app-developers app
Click to expand...
Click to collapse
Whoa. What's with the attitude? Are you talking to me? I was just trying to help. And what I posted will work.
Sent from my Galaxy Nexus using xda premium
Lol. No the other guy.
Sent from my MB886 using xda app-developers app
Related
This thread is reserved for nightly builds of CyanogenMod Rom for Samsung Captivate.
All Samsung Roms run on top of BML/RFS, CyanogenMod 7 does NOT.
It runs on MTD/yaffs2 (like Nexus One) which means you'll not able to flash just any kernel or run just any other filesystem you want. Use it as it is if possible, otherwise confirm with the kernel developer that you are trying to install whether it would work with CM. We do not support other kernels and know nothing about their capabilities or compatibility. Only the data partition, which is on movinand, is ext4 like on speedmod or voodoo ("lagfix"). No "lagfix" is necessary because this does not use any Samsung proprietary file systems.
CyanogenMod is a free, community built distribution of Android 2.3 (Gingerbread) which greatly extends the capabilities of your phone.
Code:
** These CyanogenMod builds are highly experimental and unsupported.
**
** Please refrain from submitting bug reports for any issues
** you may encounter while running one of these builds.
**
** Submitting bug reports on nightly builds is the leading
** cause of male impotence.
What are Nightly builds? Auto compiled build of the latest CyanogenMod source from github. This version changes each night and aren't officially supported.
If you find bugs/issues you can/must discuss here (do not submit nightlies bugs on CyanogenMod issue tracker).
Warning : Not for new users, flash this build only if you know what you are doing !!! Make SURE you can get into Download mode using only buttons (no other method, Download mode from just buttons is essential).
INSTRUCTIONS:
Latest version: http://download.cyanogenmod.com/?device=captivatemtd
Check the md5sum if you want to be sure that the download worked (different OSes have different programs that do md5, on ubuntu it is md5sum that you run against the zip you download and compare to the md5sum number shown on the download website). ROMManager does this automatically for ROMs you download via ROMManager.
- First time flashing CM 7 to your Captivate (or coming from another ROM)?
Easy way:
Start with a rooted Eclair/Froyo running Eclair/Froyo Bootloaders (do not ask us how to do this).
Install ROMManager Premium.
Flash ClockworkMod Recovery. Pick Captivate (MTD) (ignore the warning about not having an official, pick ClockworkMod 2.x).
Make sure you can reboot into ClockworkMod recovery from ROMManager. Reboot and get back into ROMManager Premium.
Choose download ROMs.
Pick the CyanogenMod Nightlies.
Check the Google Apps addon.
Check Backup current ROM!
Check wipe data, cache, dalvik cache.
Let ROMManager finish the installation.
Harder way:
Make sure you're running a Eclair/Froyo Firmware (2.1 or 2.2) and Eclair/Froyo Bootloaders!
Root your device and install ClockworkMod Recovery.
Do a Nandroid backup!
WIPE (wipe data/factory reset + wipe cache partition)
Install the ROM from internal sdcard using ClockworkMod Recovery
Optionally install the Google Addon (through ROMManager is easiest)
- Upgrading from earlier CM7?
ROM Manager method:
Install ROMManager Premium.
Flash ClockworkMod Recovery. Pick Captivate (MTD) (ignore the warning about not having an official, pick ClockworkMod 3.x).
Choose Download ROMs.
Pick the CyanogenMod Nightlies.
Check the Google Apps addon.
Check Backup current ROM!
Check wipe cache, dalvik cache.
Let ROMManager finish the installation.
Clockwork Mod method:
Download and push the ROM zip file to the sdcard.
Reboot into recovery.
Do a Nandroid Backup!
Install the ROM zip from sdcard (your Google apps will be backed up automatically)
There are no Google Apps bundled with CM ROMs, because Google asked Cyanogen to remove copyrighted apps. After flashing the rom, don't forget to flash Google Addon package if you want it. ROM Manager will allow you to flash it if you just go into it and after flashing the ClockworkMod recovery for MTD devices, choose Download ROMs, and pick Google Apps.
Additional Information:
Maintainers:
atin - http://twitter.com/atinm
codeworkx - http://twitter.com/codeworkx
coolya - http://twitter.com/dumdidum
guiperpt - http://twitter.com/guiperpt
unhelpful - http://twitter.com/unhelpfulone
Irc:
Host: irc.freenode.net:6667
Channels: #cyanogenmod, #cyanogenmod-dev, #cmsgs
Changelog:
Generic Changelog CMSRC Twitter
Device specific Changelog by igor.tonky
Please visit the CyanogenMod Wiki for step-by-step installation walkthroughs and tons of other useful information.
Thank you to EVERYONE involved in helping with testing, coding, debugging and documenting! Enjoy![/QUOTE]
SWEET thanks! Gonna try this out and test it.
Sent from my GT-I9000 using XDA App
Oh snap!
di11i 6.0 w/ Suckerpunch #53
Underclocked to 600mhz
Undervolted to -100mV
Very nice! definitely going to flash it
Is camera working fine now?
Wow
Wow you mean I can actually use Gingerbread on my cappy. I was getting bored of playing with ginger on my HTC dream which is slowwwwer then slow.
Thanks to every dev working on this.
atinm said:
your kitties, doggies and maybe even goldfish are no longer safe.
Click to expand...
Click to collapse
hahaha!
That is the funneyest thing i have herd.
Just want to make sure my understanding is correct
- Don't use "reboot recovery" command or other shiny things to do this!
Flash cm7-captivate-initial-kernel.tar as pda using odin without auto-reboot
So after flash of efs pull battery, get to dl mode, flash initial kernel with auto reboot off. Pull bay after flash go back to recovery?
Do a wipe
Factory restore in clockwork?
Install the Nexus S USB-Drivers from SDK-Manager if you're using windows.
Are these drivers needed to use odin our just files transfers
To revert to a samsung rom, simply use odin with repartition option enabled.
Does odin one click qualify here or use full version?
Just making sure I understand instructions fully, thanks
thx for your hard work man
DAGr8 said:
thx for your hard work man
Click to expand...
Click to collapse
Can't wait to see what you do with this.
Thank you very much but because this is a test release, I will keep my eye very close to see how everyone else does on this ROM. Actually, I'm scared to flash this until it's stable enough for a daily driver .
Can I reserve a post this late? Lol
Sent from my Captivate using XDA App
CM7 getting awfully close!
mcord11758 said:
So after flash of efs pull battery, get to dl mode, flash initial kernel with auto reboot off. Pull bay after flash go back to recovery?
Click to expand...
Click to collapse
No, please read the instructions fifty-thousand times before you do anything. It clearly says to use the three button combo to reboot, directly underneath that. If you do a battery pull while in Download mode, you risk destroying your phone.
mcord11758 said:
Factory restore in clockwork?
Click to expand...
Click to collapse
Yes.
mcord11758 said:
Are these drivers needed to use odin our just files transfers
Click to expand...
Click to collapse
These are drivers to use your phone (incorrect, but avoiding the question). Just install the drivers, because the instructions say so. If you don't, you can't plug your phone into your computer.
mcord11758 said:
Does odin one click qualify here or use full version?
Click to expand...
Click to collapse
Odin One Click. Or Odin3. It doesn't matter. Just reboot into Download mode using the button combo and use Odin.
I must be dumb but, There is no efs-backup for initial kernel to even download, Or I'm unable to find it. On that page, all I see is Initial package, update, and google-addon. No kernel, no efs package.
EDIT: k. I just fail. It was inside the initial package. .-.
Thank you for the response. The initial kernel to be flashed via odin is the z image inside the initial package?
This is why I love Android and XDA! Sweet! Even before Samsung releases it to the I9000 (granted it's still under development).
Are the modem links dead for anyone else?
Yeah I have no idea where the "initial kernel" is. It's not ANYWHERE on the site, nor in the initial package.
Konner920 said:
Yeah I have no idea where the "initial kernel" is. It's not ANYWHERE on the site, nor in the initial package.
Click to expand...
Click to collapse
Yeah, couldn't find that either.
Great job guys. I want to try this as I will flash almost anything once. I will give it some thought. I feel I am one step above noob. Any noobs out there might want to wait some more. Then again if you are a flasher...
Awesome work/progress.
Edit: I made the plunge. Worth every minute.
Hi guys, i just want to learn something here that i dont quite understund
A) We normally for all roms intall D2Bootsrapper, then boot reboot into recovery
Once in we flash bootmenuv2.zip
and then we start flashing custom roms...
Whats the difference in D2bootstrapper and bootmenuv2? is there a newever version of this files?
B) Some roms used to recomend applying a sbf fix, a small sbf, is that still needed?
cuz i never applied it... lol
C) What kind of boot hackery are we currently using? 2ndinit 2ndboot?
Thanks!
A)
D2Bootstrapper is a hack originally created for DroidX/Droid2. It mimics the /system/bin/logwrapper binary that is normally executed by android initialization scripts on the early stages of system boot. More info here:
http://www.koushikdutta.com/2010/08/droid-x-recovery.html
Bootmenu is hack developed for Defy based on the same concepts of Droid2bootstrapper (actually it hijacks the same binary) but also included the features of 2nd-init which were ported by me from Milestone1 to Milestone2. Details here:
Bootmenu - http://forum.xda-developers.com/showthread.php?t=1026853
2nd-init - http://forum.xda-developers.com/showthread.php?t=998425
B)
You will need to flash SBF if:
- The ROM you're trying to flash requires kernel and devtree from other version than the one currently on your phone; and
- The update.zip doesn't include the images and commands to flash new kernel and devtree (my MIUI ROM includes everything, thats why I call it all-in-one).
C)
2nd-init.
r2beta0 said:
A)
D2Bootstrapper is a hack originally created for DroidX/Droid2. It mimics the /system/bin/logwrapper binary that is normally executed by android initialization scripts on the early stages of system boot. More info here:
http://www.koushikdutta.com/2010/08/droid-x-recovery.html
Bootmenu is hack developed for Defy based on the same concepts of Droid2bootstrapper (actually it hijacks the same binary) but also included the features of 2nd-init which were ported by me from Milestone1 to Milestone2. Details here:
Bootmenu - http://forum.xda-developers.com/showthread.php?t=1026853
2nd-init - http://forum.xda-developers.com/showthread.php?t=998425
B)
You will need to flash SBF if:
- The ROM you're trying to flash requires kernel and devtree from other version than the one currently on your phone; and
- The update.zip doesn't include the images and commands to flash new kernel and devtree (my MIUI ROM includes everything, thats why I call it all-in-one).
C)
2nd-init.
Click to expand...
Click to collapse
Thanks man!
that's very helpful, thanks!
Sent from my ME722 using XDA App
thanks it helped a lot!
[GUIDE] [SOLVED] HOW TO FLASH CM11 ON BRAVO (Previously "Cm11 Issue, Status 0 Error")
So, I tried to flash CM11 for the MB520 Bravo, found in this post:
http://forum.xda-developers.com/showthread.php?t=2515036
So I copy the ROM .zip to the SD card in my Bravo, and I reboot into CWM Recovery version 5.0.3.9, with the name "CyanogenDefy Recovery v5.0.3.9-jordan" on the top of the screen. This version of recovery came from josuearisty's one click tool for rooting and putting a recovery on the MB520 Bravo, which can be found here:
http://forum.xda-developers.com/showthread.php?t=1559109
I factory reset/clear cache like I know I am supposed to when flashing a custom ROM, but when I select the "Install zip from sd card" option and select the CM11 MB520 Nightly to flash, it gives me this:
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/cm-11-20140407-NIGHTLY-mb520.zip
(Status 0)
Installation aborted.
So then as I read on further in the CM11 install page, it says this: "For CM10,10.1,10.2 < 07.11.13 users: To install KitKat, need update recovery. Do not forget reboot, after install recovery. http://defy.bytekiste.de/cm11-nightl...e-recovery.zip". The thread is for the DEFY+ according to the title, but since I see there's also a Bravo download link, I assume that this means that I should install this updated recovery as well, since I am running the stock rooted 2.2.1, which is in fact "less than" 10.x or 4.x. I select the same "Install zip from sd card" option, and the same Status 0 is presented to me.
Then I go and try putting on CM10.x first, because then according to the thread's instructions I won't have to install this updated recovery if I am running that currently. I find a link for CM10.2 for the Bravo here:
http://forum.xda-developers.com/showthread.php?t=1779324
I download it, do the same install method, and I STILL GET A STATUS 0 saying it is unable to flash the zip!
Now I've done some research, and I THINK the status 0 means the zip is not compatible with my phone. I could see that with the updated-recovery.zip, but I don't see why that is showing up for the ROM's themselves because they are in fact made for the mb520.
Can someone please tell me what I am doing wrong, and if possible post a set of step-by-step instructions as to how I can go installing CM11 on my MB520 Bravo? Thanks.
*BUMP*
UPDATE: I seemed to get around the Status 0 issue in CM10.2 so far. First, I went from 2.2.1 to CM9 4.0.4. Then, I went from CM9 to CM10.1 in quarx2k's "archive" folder on his website. This updated my recovery to TWRP 2.6.0.0. From this new TWRP, I was able to flash the latest 10.2 nightly CM rom. I will keep this posted on how things go, in case anyone out there is actually following this
*BUMP AGAIN, PROBLEM SOLVED*
I got CM11 finally running on the Bravo. Here's the steps I took to get it on there. Some of these steps may be unnecessary, but I'm just going to list EXACTLY what I did in case all of these steps really are necessary:
1) I started out with stock 2.2.1. I rooted it, and used josuearisty's tool for one click root and recovery just to put recovery on it.
2) I flashed a build of CM9 from quarx2k's website. Here is a direct link to download it. Flashing this ROM also updated my cwm recovery. HOWEVER, this new version of recovery had scrolling issues with the volume rocker, so I just rebooted and pressed the vol. down button at the blue flashing LED light to boot into the boot menu. From there, I select to go to recovery, but instead of selecting "Custom Recovery" I select "Stable Recovery". This takes me back to the older recovery I got with the one click tool.
3) I flashed one of quarx2k's builds of CM10.1, which you can get for yourself here. Doing this updated my recovery again. It went from CWM 5 to TWRP 2 (I believe it was 2.6.0.0).
4) I flashed a CM10.2 build for the bravo from quarx2k, which I got from here. This updated my recovery YET AGAIN, to TWRP 2.6.3.0.
5) From here, I was able to flash the update-recvery.zip that is mentioned in the CM11 topic. I don't think this was necessary, because when I then booted into recovery again after flashing the update-recovery.zip, the version number for TWRP still read 2.6.3.0, the exact same as last time. But I just did it anyway to be safe. Here is a direct download link to the update-recovery ZIP mentioned on quarx's CM11 thread.
6) FINALLY, I flash the CM11 nightly zip from quarx2k's website. I get an error, but this time it's not a status 0 error, this tells me that the ZIP is not compatible with my device.
7) I give myself a facepalm, and take 3 deep breaths. "All hope is lost..." I think to myself.
7.5) A GOOGLE SEARCH TELLS ME THAT ALL HOPE IS NOT LOST!!! (that's supposed to signal you to keep reading)
8) Turns out, there is a way to disable the device compatibility check. So what I did was copy the CM11 zip to my pc, and unzip all of its contents. I go to META-INF\com\google\android\, and add a .txt ending to the "updater-script" file, which allows me to open it with Notepad++. It is possible to edit this with plain old Notepad in Windows, but it doesn't format the code very neatly like Notepad++ does. If you open the file in Notepad and Notepad++ and compare them you will see what I mean. Anyway, the line of code that reads...
assert(getprop("ro.product.device") == "mb520" || getprop("ro.build.product") == "mb520" || abort("This package is for \"mb520\" devices; this is a \"" + getprop("ro.product.device") + "\"."); (ignore that winking face in the line of code, that is supposed to be a "; )" but without the space between them.)
... was the one I deleted from the updater-script file. This should be the first line of code. I save, exit Notepad++, and remove the .txt ending from the updater-script so that it returns to an unknown filetype. Now, I take the META-INF, system, and file_contexts files that came from the original CM11 ROM zip and I create a NEW ZIP with all of the NEW files and folders.
9) I reboot to TWRP with the ROM zip copied to my phone's SD card, and I flash the new, fixed ROM zip. "Installation completed."
10) My Bravo is rebooted, it boots up, and i get a "Welcome!" bubble in my brand-new homescreen in KitKat
11) I nearly cried. Seriously.
So looking back I think it was really the recovery that was the issue for the Status 0 problem, and the only real way to update the recovery and solve the Status 0 problem is by flashing all these ROMs in the order I mentioned, but that's as far as I know, there may be a better and quicker way to do this that I just don't know about.
So basically this thread turned into a how-to. I wanted to post the instructions here because on the CM11-for-the-Defy-and-Bravo topic did NOT have any instructions whatsoever for flashing the Bravo CM11 build on the Bravo. If anyone has questions about what I wrote, then you can certainly post them below and I'll respond to them as soon as I can, and I'll answer them to the best of my abilities.
Thanks for the Guide
I just wanted to thank you for this well-written, step-by-step guide. I haven't tried it since I'm a beginner and need some more reading to do. I'm glad you overcame those issues, though.
Anyway, I wanted to ask you how smooth it ran and if it was worth it. Also I'm starting with Android 2.1, would that make a difference?
Gastnow said:
I just wanted to thank you for this well-written, step-by-step guide. I haven't tried it since I'm a beginner and need some more reading to do. I'm glad you overcame those issues, though.
Anyway, I wanted to ask you how smooth it ran and if it was worth it. Also I'm starting with Android 2.1, would that make a difference?
Click to expand...
Click to collapse
I think you should upgrade to 2.2.1 to make sure the one-click tool works with it because I do not know if the one click root and recovery works with 2.1. Upgrade to 2.2.1 just to be safe.
Sent from my SAMSUNG-SGH-I847
Thanks for the guide
Appreciate the work. What gapps are you using.
Doesn't have much support
I tried it. A lot slower then CM7.2 and very difficult to get my most important apps working (and I don't use many).
I would not recommend it for a daily (as mentioned on the Defy link). But, has potential if a developer takes up the task.
ilikepcs said:
Appreciate the work. What gapps are you using.
Click to expand...
Click to collapse
ilikepcs said:
I tried it. A lot slower then CM7.2 and very difficult to get my most important apps working (and I don't use many).
I would not recommend it for a daily (as mentioned on the Defy link). But, has potential if a developer takes up the task.
Click to expand...
Click to collapse
The gapps for this KitKat ROM can be found here. This came from the 4.4 thread:
QUARX2K'S KITKAT GAPPS
I used this as a daily driver for a little bit, until an update (I believe was from April 10th) with the Android 3.0 kernel broke the Camera. Whenever you would try to open the camera it would say "Can't connect to Camera". I'm not sure if this issue was fixed since then, and I know the versions before this had the 2.x kernel which was fine with the camera. I lent my Bravo to a family member because their phone broke, so I can't really do anything with the phone because it is not in my possession.
Anyway, check back at this thread and the link that it gives to the Bravo version of 4.4 to keep up with the latest version. This thread does not give a change log for the BRAVO version, but I assume that it's basically the same as the main version that the majority of the thread is talking about:
ANDROID KITKAT FOR DEFY AND DEFY PLUS (ALSO FOR THE MOTOROLA BRAVO)
Help please
The procedure to install cm11 after October 1 is the same? Or did it change? @jasonmerc
Quarx on their website does not mention cm10 and cm10.1
Sent from my mb520 using XDA Free mobile app
@jasonmerc
You are not using CM11 anymore? Do you know if the camera problem has been solved (I assume that with the 2.6.x kernel the original motorola camera drivers were used which most likely do not work with a 3.x kernel)? What was your general experience (especially regarding performance) with CM11 on the Bravo?
Thanks,
Markus
oldschool63 said:
@jasonmerc
You are not using CM11 anymore? Do you know if the camera problem has been solved (I assume that with the 2.6.x kernel the original motorola camera drivers were used which most likely do not work with a 3.x kernel)? What was your general experience (especially regarding performance) with CM11 on the Bravo?
Thanks,
Markus
Click to expand...
Click to collapse
Its been forever since I've used my Bravo let alone CM11. From what I can remember the new CM11 was EXTREMELY FAST compared to other ROMs. The only issue was the camera.
Sent from my LG-D415 using XDA Free mobile app
can you create a backup of it because some of the downloads don't work i got cm 9 4.0.4 im 12 and i ran into
a problem on cm 10.1 i cannot download it or flash it thx
Has anyone else made any serious attempts at compiling a kernel? Prompted by doctorow's thread about the wakelock issue, I got interested in compiling a kernel so it could actually be fixed. For anyone who's tried at all, there are obviously some missing files in Lenovo's release.
I tried copying over the missing files from ASUS's Zenfone kernel release (since it uses the same SoC and their kernel had all the files that make was complaining about). Between that and commenting out some references to a nonexistent tablet_config.h header, it managed to at least finish compiling. Unfortunately I don't have a bootloader-unlocked device to test on yet, so I'm not terribly confident that it actually works.
P.S.: I'm not really sure if this belongs in the dev section or not? Sorry if it's in the wrong place, but I can't start threads there anyway at my current post count.
iampanis said:
I tried copying over the missing files from ASUS's Zenfone kernel release (since it uses the same SoC and their kernel had all the files that make was complaining about). Between that and commenting out some references to a nonexistent tablet_config.h header, it managed to at least finish compiling. Unfortunately I don't have a bootloader-unlocked device to test on yet, so I'm not terribly confident that it actually works.
Click to expand...
Click to collapse
Interesting, I haven't even gotten that far when I tried to compile them. The sources are most likely not up to date or even representative of the actual firmware kernel. For example, when I looked at the battery driver, I noticed in the published sources, the polling interval was hard-coded in such a way that it would completely ignore the setting of the poll_interval kernel parameter. But we know that this is not true for the actual firmware which is in fact respecting the setting of said parameter.
@Grarak and me have managed to get the messy "source code" of Lenovo to build. I have additionally added some security patches and stripped some kernel modules. Since we don't want to violate the GPL like Lenovo, we have pushed the kernel to GitHub.
Bear in mind that there may be some issues, given the kernel is a work in progress. It boots on stock as well as on cm-12.1, though.
Olivier said:
@Grarak and me have managed to get the messy "source code" of Lenovo to build. I have additionally added some security patches and stripped some kernel modules. Since we don't want to violate the GPL like Lenovo, we have pushed the kernel to GitHub.
Bear in mind that there may be some issues, given the kernel is a work in progress. It boots on stock as well as on cm-12.1, though.
Click to expand...
Click to collapse
Same kernel works for both 830f and 1050f?
Could you please post a compiled kernel? (which I assume can be flashed simply via fastboot)
Thanks!
raenye said:
Same kernel works for both 830f and 1050f?
Could you please post a compiled kernel? (which I assume can be flashed simply via fastboot)
Thanks!
Click to expand...
Click to collapse
Sure, here you go: kernel-yt2-20160327.img. I think it will boot on 1050F.
Olivier said:
Sure, here you go: kernel-yt2-20160327.img. I think it will boot on 1050F.
Click to expand...
Click to collapse
Hello, I have a 1050F too is somebody tried this kernel on 1050F? Is it possible to support wake gesture kernel extensions with this kernel?
Olivier said:
Sure, here you go: kernel-yt2-20160327.img. I think it will boot on 1050F.
Click to expand...
Click to collapse
I was able to unlock bootloader, install TWRP and flash this kernel via fastboot on both 830F and 1050F.
It works fine (and the battery life seems better since there's no wakelock bug).
Thanks!
Looking forward to alpha-grade CM....
raenye said:
I was able to unlock bootloader, install TWRP and flash this kernel via fastboot on both 830F and 1050F.
It works fine (and the battery life seems better since there's no wakelock bug).
Thanks!
Looking forward to alpha-grade CM....
Click to expand...
Click to collapse
Did you use.
Fastboot Flash recovery recoveryname.img.
or
Fastboot flash boot bootname.img
To send it to the tablet.
corasman said:
Did you use.
Fastboot Flash recovery recoveryname.img.
or
Fastboot flash boot bootname.img
To send it to the tablet.
Click to expand...
Click to collapse
The kernel goes to the boot partition. So 2nd option.
raenye said:
The kernel goes to the boot partition. So 2nd option.
Click to expand...
Click to collapse
Thanks ,I'll give it a try.
O.K tried this
I put the file in to my ADB folder
from a command prompt I typed Fastboot flash boot c:/adb/kernel-yt2-20160327.img and it returned
FAILED (remote: unknown command) any suggestion please.
corasman said:
Thanks ,I'll give it a try.
O.K tried this
I put the file in to my ADB folder
from a command prompt I typed Fastboot flash boot c:/adb/kernel-yt2-20160327.img and it returned
FAILED (remote: unknown command) any suggestion please.
Click to expand...
Click to collapse
Using windows? paths are c:\directory\file and not c:/directory/file
I used the fastboot executable from the tethered recovery package.
Checklist:
Did you unlock bootloader? it won't boot otherwise.
Did you backup current boot partition from TWRP/CWM?
Did you boot the tablet in fastboot mode? (down+pwr)
Can fastboot detect your tablet? (fastboot devices)
raenye said:
Using windows? paths are c:\directory\file and not c:/directory/file
I used the fastboot executable from the tethered recovery package.
Checklist:
Did you unlock bootloader? it won't boot otherwise.
Did you backup current boot partition from TWRP/CWM?
Did you boot the tablet in fastboot mode? (down+pwr)
Can fastboot detect your tablet? (fastboot devices)
Click to expand...
Click to collapse
Yes to all.
I wondered if the command slashes were the right way / or \ the way I used is what I used to unlock the bootloader and install TWRP.
I have tried the slashes the other way and get the same result, as in \ .
raenye said:
I was able to unlock bootloader, install TWRP and flash this kernel via fastboot on both 830F and 1050F.
It works fine (and the battery life seems better since there's no wakelock bug).
Thanks!
Click to expand...
Click to collapse
Hmm, I'm getting a high battery_wake_lock (on the April OTA firmware) -- even when running this kernel!
Any idea how can this be?
Hi,
I was trying to play a little bit with kernel provided by @Olivier and @Grarak ...
1. Binary Image kernel-yt2-20160327.img boots up fine on 1050l, but LTE is not working. Rest seems to be fine...
2. In next steps I replaced initrd.img with a little modified stock one - and LTE started to work - I removed from initrd almost all modules leaving only bcm43241.ko.
3. Battery wakelock problem seems not be resolved - brief check at bq27x00_battery.c in repository shows that wake_lock is still set under bq27x00_battery_suspend_resume()
... so I trying to fix this battery driver but I have problem with kernel - I can compile it successfully, but it doesn't boot
@Olivier:
1. Which branch was used to build kernel-yt2-20160327.img?
2. Which config did you use ?
My procedure using android-ndk-r12b toolchain:
# git clone ...github.com/lenovo-yt2-dev/android_kernel_lenovo_baytrail
# export PATH=~/android_yoga/toolchain/bin:$PATH
# export CROSS_COMPILE=x86_64-linux-android-
# export ARCH=x86
# make cyanogenmod_YT2_10_defconfig --- if this right config?
# make -j8 ----- lot's of warninigs, but kernel is compiled sucesfully.
# abootimg --create boot_test5.img -f bootimg.cfg -k bzImage -r initrd.img ---- bzImage from arch/x86/boot
> fastboot.exe flash boot boot_test5.img
... kernel stuck somewhere, it's doesn't even come to Zygote phase (lenovo animation). Is there any way to see kernel boot messages ?
Hi
I would also like to experiment with the Kernel, but I need to unlock the bootloader. unfortunately the thread is deleted files and I can not, can anyone help me even for private?
I have a 1380F in KitKat
Kind regards
airmalaga said:
Hi
I would also like to experiment with the Kernel, but I need to unlock the bootloader. unfortunately the thread is deleted files and I can not, can anyone help me even for private?
I have a 1380F in KitKat
Kind regards
Click to expand...
Click to collapse
I used this procedure: mobility.forumsee.com/a/m/s/p12-9574-0973888--yoga-tab-unlocking-daaa-deee-daaa-dooo.html
Patched ESP file I found on another forum: forum.android.com.pl/topic/259763-odblokowanie-bootloader%C3%B3w-yoga-tab-2/#entry4598175
For me it worked on Lolipop, but I as know bootloader changed arch x32->x64 during Lolipop->KK upgrade... I don't know if this esp will work on KK (at least do backup of ESP and boot partitions before).
---------- Post added at 12:07 PM ---------- Previous post was at 11:52 AM ----------
BTW: I was able finally to compile and startup my modified kernel using CM building engine from this thread .
I removed all wakelock code from bq27x00_battery_x8.c
For 1050L I merged: kernel from @Olivier repository + my patch on bq27x00_battery_x8.c + my initrd based on stock + stock Lolipop.
First tests seems to be very promising:
- finally NO battery_wakelock in Wakelock Detector
- LTE is working
- GPS is working
- Sound system is working
- No crashed till now
If anybody is interested i can attach img file.
Thx :good:
jasfasola said:
I used this procedure: mobility.forumsee.com/a/m/s/p12-9574-0973888--yoga-tab-unlocking-daaa-deee-daaa-dooo.html
Patched ESP file I found on another forum: forum.android.com.pl/topic/259763-odblokowanie-bootloader%C3%B3w-yoga-tab-2/#entry4598175
For me it worked on Lolipop, but I as know bootloader changed arch x32->x64 during Lolipop->KK upgrade... I don't know if this esp will work on KK (at least do backup of ESP and boot partitions before).
---------- Post added at 12:07 PM ---------- Previous post was at 11:52 AM ----------
BTW: I was able finally to compile and startup my modified kernel using CM building engine from this thread .
I removed all wakelock code from bq27x00_battery_x8.c
For 1050L I merged: kernel from @Olivier repository + my patch on bq27x00_battery_x8.c + my initrd based on stock + stock Lolipop.
First tests seems to be very promising:
- finally NO battery_wakelock in Wakelock Detector
- LTE is working
- GPS is working
- Sound system is working
- No crashed till now
If anybody is interested i can attach img file.
Click to expand...
Click to collapse
jasfasola said:
I removed all wakelock code from bq27x00_battery_x8.c
For 1050L I merged: kernel from @Olivier repository + my patch on bq27x00_battery_x8.c + my initrd based on stock + stock Lolipop.
Click to expand...
Click to collapse
Cool, could you push your patch to GitHub?
jasfasola said:
First tests seems to be very promising:
- finally NO battery_wakelock in Wakelock Detector
- LTE is working
- GPS is working
- Sound system is working
- No crashed till now
Click to expand...
Click to collapse
The kernel should be working, but the ALS is broken (seems to be a sensor from Avago) - you'll notice that if you use automatic brightness.
Olivier said:
The kernel should be working, but the ALS is broken (seems to be a sensor from Avago) - you'll notice that if you use automatic brightness.
Click to expand...
Click to collapse
Fixed. That was quite easy. Driver al3320 was in place. The problem was permissions set by script init.byt_t_ffrd8.rc in initrd. By default it's root/root, but it should be system/system. I already corrected paths and checked it - it's working. If you could give me permission to repo I can push the patch.
BTW: I see lot's of things are being hard-coded into initrd scripts. Since we changed config kernel, all those scripts must be checked. I can try to do it in free time...but some things are platform depended so, another original initrd from lolopop on 830f would be nice to compare...
jasfasola said:
so, another original initrd from lolopop on 830f would be nice to compare...
Click to expand...
Click to collapse
What do you need exactly? @jasfasola
Hello . I really need some help with this problem. When I try to install for example the unofficial dirty unicorns ROM on my pixel 4 after flashing the boot.img the device won't boot into recovery. Its saying error boot prepare and it's stuck in fastboot. This also happens to other ROMs.
Thank you
And yes, I did use the commands to flash to the one slot only and on the both slots too
microcube123 said:
Hello . I really need some help with this problem. When I try to install for example the unofficial dirty unicorns ROM on my pixel 4 after flashing the boot.img the device won't boot into recovery. Its saying error boot prepare and it's stuck in fastboot. This also happens to other ROMs.
Thank you
Click to expand...
Click to collapse
Post your question on the unofficial dirty unicorn ROM thread. They should have the answer to your question.
Homeboy76 said:
Post your question on the unofficial dirty unicorn ROM thread. They should have the answer to your question.
Click to expand...
Click to collapse
This also applies to other ROMs
microcube123 said:
This also applies to other ROMs
Click to expand...
Click to collapse
With all the different types of devices and that use unofficial dirty unicorns ROM, how would one provide a solution without specific information:
- Device model
- Android Version
- ROM
- ROM Version
- etc.
On the other hand, if the information was posted on the thread of the ROM you are trying to install. A solution may have already been posted.
Did you search that thread?
Homeboy76 said:
With all the different types of devices and that use unofficial dirty unicorns ROM, how would one provide a solution without specific information:
- Device model
- Android Version
- ROM
- ROM Version
- etc.
On the other hand, if the information was posted on the thread of the ROM you are trying to install. A solution may have already been posted.
Did you search that thread?
Click to expand...
Click to collapse
Yes, I know and I have searched for it. No one seems to have this problem. Will the problem be fixed if I flash the whole stock factory image? Most people have this problem when magisk patching the factory/stock boot.img.
microcube123 said:
Yes, I know and I have searched for it. No one seems to have this problem. Will the problem be fixed if I flash the whole stock factory image? Most people have this problem when magisk patching the factory/stock boot.img.
Click to expand...
Click to collapse
Now, I understand your problem: I think.
In your original post you couldn't flash the boot.img not the magisk_patched.img.
microcube123 said:
Hello . I really need some help with this problem. When I try to install for example the unofficial dirty unicorns ROM on my pixel 4 after flashing the boot.img the device won't boot into recovery. Its saying error boot prepare and it's stuck in fastboot. This also happens to other ROMs.
Thank you
Click to expand...
Click to collapse
Try this:
- Flash the Stock boot.img to both slots:
(fastboot flash boot boot.img --slot all)
- Delete all magisk_patched.img
- Open Magisk (Beta or Canary) Manager
- Depending on the version of Magisk Manager installed: Set the Update Channel to Beta or Canary.
- Close Magisk Manager, reboot
- Open Magisk Manager
- Tap install (Next to Magisk)
- Tap Select and patch a file
- Navigate to the Stock boot.img that you extracted from the current Factory image (October 2020)
- Select it
- tap the ✓ (Check mark)
- Tap Lets Go
- Wait for Magisk to finish patching it.
- Reboot
- Move the magisk_patched.img from the download folder on your phone to the Platform-tools folder on your Computer
- Flash it
(fastboot flash boot magisk_patched.img)