[Q][SOLVED]Help Needed in 2nd-init - Defy Q&A, Help & Troubleshooting

Hello all defy users and devs.
I'm a XT530 user. Again another locked bootloader from Motorola.
So some months ago we got info of your device's bootmenu. We tried porting it and we succeeded.
But the only thing we can use in bootmenu is CWM.
When we start 2nd-init, we get stuck at M logo with no logcat possible.
I wanna give full details.
We are running bootmenu by init.d script because logwrapper hijack didn't worked.
The script is:
Code:
#!system/bin/sh
stop
exec system/bootmenu/binary/bootmenu
I even had tried 2nd-init with stock .rc files. But still system refuses to boot.
Some questions:
1. 2nd-int binary would be different for my device or I can use urs?
2. I've uploaded 2nd-init script, can you check and tell me where I'm wrong.
Could anyone point out my mistakes or teach me?
Thanks in advanced.
Thank you guys, I succeeded. :laugh:

Related

[Q] CWM and some boot questions

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!

Confuse about unlocking bootloader

I bought this tablet and I want to install a custom rom. I am not interested in dual booting. I found a thread titled
"[GUIDE]A500/501/G100W-Installing ICS V8 UNL-BL & CWM Or back to HC BL(24-6-2012) "
Information there is a little confusing to me. On my A200, the steps were simple, unlock boot loader, install CWM and then root/install rom. Then I was done. Seems like I have to do more steps on theA500, which I don't mind I just want to do it right. Is it my understanding that the thread is for dual booting, it also talks about CPU ID.
I found another thread that talks about Afterota v1.09, do I only need to just do this for what I want to do or do I need to do more? Why would I need to install a ICS bootloader, I have ICS now, stock, doesn't it already have it? I tried looking at the Q/A but I just ended up more confuse.
Could someone just give point me in the right direction so I can go about unlocking bootloader and installing CWM so I can install a custom rom.
I have Android 4.0.3 Kernel Version 2.6.39.4+ Stock
Side question, my unit is a 16gb model but its only reading about 12.71gb, does anyone know why?
A500 works differently: the stock ICS BL is locked and cannot be unlocked from fastboot. What we can do however, is to flash custom BL, since we know the device "Secure Boot Key". In general the term "ICS BL" means my patched BL, which you can find in my signature. There is a bunch of guides to get it flashed on the forum, and blackthunder made a tool to simplify the process.
Skrilax_CZ said:
A500 works differently: the stock ICS BL is locked and cannot be unlocked from fastboot. What we can do however, is to flash custom BL, since we know the device "Secure Boot Key". In general the term "ICS BL" means my patched BL, which you can find in my signature. There is a bunch of guides to get it flashed on the forum, and blackthunder made a tool to simplify the process.
Click to expand...
Click to collapse
Alright, so I do not need to do
Option 1 use Afterota for A500/G100W IF YOU ARE ON OTA ICS and follow this thread
or
Option 2 , keep reading.... don't be a chicken , just do it !!.
then I just need to use blackthun3r tool? I tried it but when I launch A500APXFLASH.EXE it ask me for a SBK and the guide said this "the v0.4 APX flash tool will give your SBK automaticly !!" but its blank it has not given me SBK automatically. So I was directed to this thread
http://forum.xda-developers.com/showthread.php?t=1810618
which has the "SBCalc "
which then directed me to
http://forum.xda-developers.com/showthread.php?t=1624645
which reads
GET ME MY CPUID!!!
There are 2 different cpuid
ICS CPUID has only 13 digits/characters and is your "serial no." as reported in settings, on your sdcard cover and on the box
we are only interested in the 15 digit HC CPUID this can only be got:
(1) From a PC using Blackthund3rs A500 manager
(2) From your device using Terminal Emulator App
(3) From USBDeview must have previously used the Tab under HC with the PC you're using
(4) From a uid.txt in any Honeycomb-cwm backup in external_sd/clockworkmod/backup/"your_HC_backup" folder
(5) From adb devices if you're running honeycomb
(6) From cwm 1.7.2 via on screen display and a text file - great if you are on ICS already
(7) Master_Ellis has posted that he found the HC cpuid in /sys/firmware/fuse/acer_cpuid - add a zero to the front!!!
please if anyone uses this let us know if this is correct!!!
thanks Master for the heads Up!!!
(8) Gersma's most excellent OTA Toolmakes most of this thread obsolete!!!! Thankyou Gersma for all you've done OTA Tool is all anyone ever needs....
Features :
I don't get it though, I thought you said all I needed was the blackthund3r apx flash utility. I'm really confuse, can you specify what I need to do?
I went back to the original thread where the blackthund3r flash tool is and it clearly says
"3-When it askes for your SBK you need to type it in , the v0.4 APX flash tool will give your SBK automaticly !!"
But I do not see the SBK come up automatically. Man all I want is to be able to flash roms ;/ Can you specify what I need to do please I do not want to jump the gun here and brick my device. I see two files in the zip file, a500 Manager v1.0.2 and Apx Flash Utility v0.4
Alright I figured out what I was missing and manage to go through the whole process easily. I have Apex now but how do I install CWM or TWRP? WHen I go into recovery I get a dead android.
Lots of trials and errors lol so I figured out Recovery only works the first time, is there any way to have CWM on there permanently?
Update
Recovery always works now, wasn't sure if that was a glitch or what. Anyways, thanks Skrilax, that little piece was enough for me to get going. I understood the guide once I knew what I needed which required me reading a few threads. Guide kinda needs to be tweaked a little.
F9zSlavik said:
Lots of trials and errors lol so I figured out Recovery only works the first time, is there any way to have CWM on there permanently?
Update
Recovery always works now, wasn't sure if that was a glitch or what. Anyways, thanks Skrilax, that little piece was enough for me to get going. I understood the guide once I knew what I needed which required me reading a few threads. Guide kinda needs to be tweaked a little.
Click to expand...
Click to collapse
Recovery not sticking is due to having a stock rom. Rooting with ICS Root 7.1.1 stops this
Sent from my Iconia A500 using Tapatalk 2
Just noting: stock recovery won't work, and if you ever applied OTA, booting Android will overwrite recovery, unless you remove the updater. And for the guides, all will work, some are more automated, some less.

Skrilax_CZ`s bootloader V8 Boot Menu what now?

Please
I tried several times to ask on this forum if someone can help me, but no luck so far i am verry desperad now
I have install Skrilax CZ bootloader V8 on my tab, but thats all i dont now what i need to do now to install a custom rom, i have put the update file in to the sd kart but it wont install.
I have this option only
option
Reboot
Fastboot Mode
Boot Primary Kernel Image
Boot Secondary Kernel Image
Boot Recovery
Set Boot Secondary kernel Image
Set Debug mode on
Wipe Cache.
So cany anyone tel me what i must do to root and install CWM recovery
so i can install then after custom roms?
Is ther no tutorial from heren to folow!!
Please don't double post it gets confusing -
remember, this is the holiday season and alot of us are having a break and spending time with our long neglected family members, we can't be around here as much as we would like....
Yes there are guides on using fastboot, skrilax's bootloader thread for one...
PLEASE don't flash an update.zip it doesnt work that way, you'll end up stuck again
you should read the first 2 guides linked in my sig..
I too need help exactly on this point
I have not the slightest clue what to do and i do not think this is a duplicated post.
I spent days to come at this point and i don't want to **** things up.
I red your posts dibb_nz and it just gets more confusing
You write in this post :
PLEASE don't flash an update.zip it doesnt work that way, you'll end up stuck again
and then you write here: http://forum.xda-developers.com/showthread.php?t=2049778
Have your Custom Rom downloaded and copied to your External SD Card ready to install immediatelyafter flashing skrilax's patched bootloader
So is it too hard for someone to tell what to do here to install a custom rom ?!
P.S. I also got [ ERROR: Invalid primary (LNX) kernel image ] on my screen.
http://s15.postimg.org/e02avn6aj/IMG_0020.jpg
something to worry about ?
Thread closed, duplicate of this one:
http://forum.xda-developers.com/showthread.php?t=2076510

[Q] Defy stuck to bootmenu (solved)

Greetings,
Quick history of the problem:
*I have a Defy, with stock rom, rooted, and TWRP 2.1. I have a full android backup with TWRP.
*I flash CM9-NIGHTLY-120716-Defy.zip. I reboot, everything is fine.
*I reboot into new CWM recovery, make another android backup with CWM.
*I install TWRP 2.1 again.
*I flash CM10-20120924-NIGHTLY-mb525.zip.
*But then, I immediately flash again TWRP 2.1 (I think that was a mistake).
*I reboot, CM10 works fine.
*But when trying to boot into recovery from (new) bootmenu, TWRP immediately crashes and phone reboots I have no recovery mode available.
*At this time, phone still boots into CM10 just fine.
*I spend many hours trying to find how to flash a proper recovery, but to no avail. In desperation, I then follow the same recovery install procedure I followed many time ago after rooting the phone (see for example "wiki.cyanogenmod.org/w/Install_CM_for_jordan"). So bootmenu 0.61 is installed.
*And now the phone always reboots into bootmenu 0.61; recovery cannot be accessed ("recovery.sh not found"); CM10 does not boot.
So the phone is (probably soft) bricked.
At this point, after reading different posts, the only solution I have in mind is to flash a stock sbf file. However, since most of my previous actions have resulted in worse and worse situation, I am not sure this is the best solution.
What would you advise?
Thank you,
Colinou
EDIT: after reading different posts, finally flashed stock rom with sbf file following tutorial in forums. No problem encountered, apart from starting over everything.
EDIT2: I now realise that the reason for always booting to bootmenu, was that bootmenu 0.61 was set to always boot to bootmenu! There is an option in the bootmenu to start phone to "default" instead of "bootmenu". Anyway, the recovery was still broken, so I needed to flash a SBF file anyway.
Help with SBF
ColinouRussie said:
Greetings,
Quick history of the problem:
*I have a Defy, with stock rom, rooted, and TWRP 2.1. I have a full android backup with TWRP.
*I flash CM9-NIGHTLY-120716-Defy.zip. I reboot, everything is fine.
*I reboot into new CWM recovery, make another android backup with CWM.
*I install TWRP 2.1 again.
*I flash CM10-20120924-NIGHTLY-mb525.zip.
*But then, I immediately flash again TWRP 2.1 (I think that was a mistake).
*I reboot, CM10 works fine.
*But when trying to boot into recovery from (new) bootmenu, TWRP immediately crashes and phone reboots I have no recovery mode available.
*At this time, phone still boots into CM10 just fine.
*I spend many hours trying to find how to flash a proper recovery, but to no avail. In desperation, I then follow the same recovery install procedure I followed many time ago after rooting the phone (see for example "wiki.cyanogenmod.org/w/Install_CM_for_jordan"). So bootmenu 0.61 is installed.
*And now the phone always reboots into bootmenu 0.61; recovery cannot be accessed ("recovery.sh not found"); CM10 does not boot.
So the phone is (probably soft) bricked.
At this point, after reading different posts, the only solution I have in mind is to flash a stock sbf file. However, since most of my previous actions have resulted in worse and worse situation, I am not sure this is the best solution.
What would you advise?
Thank you,
Colinou
EDIT: after reading different posts, finally flashed stock rom with sbf file following tutorial in forums. No problem encountered, apart from starting over everything.
EDIT2: I now realise that the reason for always booting to bootmenu, was that bootmenu 0.61 was set to always boot to bootmenu! There is an option in the bootmenu to start phone to "default" instead of "bootmenu". Anyway, the recovery was still broken, so I needed to flash a SBF file anyway.
Click to expand...
Click to collapse
Hi, can you please send a link for SBF, because I am having hard time searching.It seams that default link for SBF-s doesent work.
Thanks
Matija28 said:
Hi, can you please send a link for SBF, because I am having hard time searching.It seams that default link for SBF-s doesent work.
Thanks
Click to expand...
Click to collapse
Hi, Can you send me how to add twrp to stock sbf like which file will work from Motorola recovery menu or any apk ?
Hello,
Could you help me? The site sbf.droid-developers.org is offline. I need any retail sbf file to unbrick my defy mb526. Does anyone have a mirror for a stock rom of this device?
gabrielms26 said:
Hello,
Could you help me? The site sbf.droid-developers.org is offline. I need any retail sbf file to unbrick my defy mb526. Does anyone have a mirror for a stock rom of this device?
Click to expand...
Click to collapse
There is a link on quarx page,i used this to unbrick & root mine,if it helps ,i cannot post links so find it own.
Hai,
I don't remember where I downloaded the stock sbf file from, most likely from sbf.droid-developers.org, which is down now
However I kept a copy of the sbf file on my computer , it is a french retail version (but langage can be changed later), in case of desperate need, I can post it somewhere.
Nr
ColinouRussie said:
Hai,
I don't remember where I downloaded the stock sbf file from, most likely from sbf.droid-developers.org, which is down now
However I kept a copy of the sbf file on my computer , it is a french retail version (but langage can be changed later), in case of desperate need, I can post it somewhere.
Nr
Click to expand...
Click to collapse
I'm in need of an sbf file. I have a tmobile us defy will this work with it? my phone is in a bootloop. I searched high and low in this forum and on the internet all the links point to sbf.droid-developers.org or multiupload both are down. If anyone has any sbf files please upload them. thanks in advance.
axel2230 said:
I'm in need of an sbf file. I have a tmobile us defy will this work with it? my phone is in a bootloop. I searched high and low in this forum and on the internet all the links point to sbf.droid-developers.org or multiupload both are down. If anyone has any sbf files please upload them. thanks in advance.
Click to expand...
Click to collapse
I will send you a link by private message. I don't know if it will work with Tmobile, but at least you can boot your phone and flash another rom afterwards. At start it will ask you to login to motoblur, just cancel the requests, change language to english, and you're set.
Nr
defy stuck on CMR
hi guys i defy was stuck on boot it keeps on showing motorola logo then i think there is a problem i think i did a mistake that i nstalled Cynogen 7 and after using it for some time i again installed a back up from miui rom there i did a mistake and when iam on the recovery menu i cant select any option touchscreen is not working..pls help me guys

Help Recovering Please

I eventually decided to flash Kitkat onto my Defy+.
Followed this guide here:-
http://forum.xda-developers.com/showthread.php?p=52342403#post52342403
Everything worked fine until I got to the actual flashing of the KK Rom. TWRP had loaded fine but insisted I had no OS installed and on exit suggested device was not rooted?
Phone kept saying failed and to re partition. So I tried the Resize.zip from another guide. This did nothing either , still the same.
It had also had the following error, "Error Executing Updater Binary In Zip".
So I tried the solution here:-
https://kalitutorials.wordpress.com/2015/06/19/solve-error-executing-updater-binary-in-zip/
Now I cannot boot into TWRP or Clockworkmod recovery. When I try to boot phone it just sits on Motorola Sign but doesn't progress and no led flashes to enter TWRP. Battery needs to be removed to switch off.
If I power up with Volume down pressed, I get picture of Android Green Robot standing up with an yellow exclamation in a white lined triangle. No options are shown.
Pressing Vol up and down I get me to Android System Recovery <3e>. Options there are, reboot system now, apply update from sdcard, wipe data/factory reset, wipe cache partition.
I can also enter bootloader using vol up and power.
Any ideas anyone, found this guide to try to fix but don't want to try anything else without some confidence it will work.
http://www.tech-zealots.com/tutorials/unbrick-motorola-defy-or-defy-100-working/
I have a nandroid backup created in normal recovery btw. I would prefer to flash back to it if possible.
Thanks
G
You need to download a sbf file https://mega.nz/#!915TCAAD!X7_f1t83lVPkK5p7jUdokeE4SQ8qTRqPnBWNvfgyxWA (this one is stock android 2.3.6), then you need to install drivers and rsd lite and connect your phone (must be already in bootloader mode) to your pc and then reflash the sbf file. After that, your phone will boot up to the stock firmware and you can install cm11 then. Basically you can follow up the the guide that you posted. Good Luck
dc239 said:
You need to download a sbf file https://mega.nz/#!915TCAAD!X7_f1t83lVPkK5p7jUdokeE4SQ8qTRqPnBWNvfgyxWA (this one is stock android 2.3.6), then you need to install drivers and rsd lite and connect your phone (must be already in bootloader mode) to your pc and then reflash the sbf file. After that, your phone will boot up to the stock firmware and you can install cm11 then. Basically you can follow up the the guide that you posted. Good Luck
Click to expand...
Click to collapse
Thanks for your reply.
Tried what you suggested but after flashing that sbf the phone tries to boot up but after logo drops back to bootloader 9.10 with ERR:a5,69,35,00,27 .
I managed to get the Retail UK sbf referred to here:-
http://forum.xda-developers.com/showthread.php?t=1421526
Tried flashing it but end up with a black screen bootloader and just white led lit. Reflashed the sbf u suggested and back to Bootloader with Err.
Googling seems to suggest I am just needing to get the right sbf for the phone.
I have the Nandroid backup made with Clockworkmod recovery. Is there anyway to flash it?
TIA
G
Sorted
After extensive digging and climbing the steep learning curve. Decided the problem was that the sbf file u suggested was DFP 231 and possibly my phone was DFP 2311. Found Firmwares here:-
https://firmware.center/firmware/Motorola/Defy+ (MB526)/Stock/
And downloaded the DPF 2311 Rom, only was one. (DEFYPLUS_U3_4.5.1-134_DFP-2311_BLUR_SIGN_USADEFYEMARAB1B8TFDE004.0R_PDS03C_USAJRDNGIBRO2DE_P020_A025_M002_Service1FF.sbf). Tried flashing it and voila system is back, albeit it started up in German.
Gonna try the rooting mehod here:-
http://forum.xda-developers.com/showthread.php?t=1820282
For anyone elses benefit, the links for Roms at Android Developers don't work. The retail EU Firmware mentioned in the rootong guide is available on the site referred to above. U can tell when you click the link to the Android Developers site as the browser URL shows the full file name as follows.
DEFYPLUS_U3_4.5.1-134_DFP-231_GR_SIGN_UCADEFYEMARAB1B80AA004.0R_PDS03C_USAJRDNGIBRRTCEE_P022_A022_Service1FF.sbf.gz
The rooted one I think is the same one you linked me to and is still valid in the Rooting guide too.
Thanks for all help and I hope this is of use to someone else.
G
Minor question still remains.
If I am trying to install Kitkat rom. DO I still need to Root phone if the rooted 231 has been installed, I presume not?
G
Followed rooting guide and so now have a rooted 231. All good
Now for KK.
G

Categories

Resources