Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,029 Members 43,188 Now Online
XDA Developers Android and Mobile Development Forum

Hang on boot with older bootloader

Tip us?
 
Tasssadar
Old
(Last edited by Tasssadar; 1st February 2013 at 01:20 PM.)
#1  
Tasssadar's Avatar
Recognized Developer - OP
Thanks Meter 4285
Posts: 676
Join Date: Dec 2010
Location: Brno

 
DONATE TO ME
Default Hang on boot with older bootloader

I've got reports when for some users, the device would freeze on boot when using older bootloader versions (3.41 I guess?) and custom kernel. This hang apparently disappears if the user upgrades to the newest bootloader.

Does anybody knows why this happens? I know Metallice has this issue with his kernel, so he tells users to upgrade to newest bootloader. Does anybody else have the same issue, maybe pinpointed the reason why this happens?

It doesn't cause any real problems because newest bootloader works okay, but I would still like to know why it happens.
 
zachf714
Old
#2  
zachf714's Avatar
Senior Member
Thanks Meter 983
Posts: 3,539
Join Date: Jun 2012
Location: Mooresville
Quote:
Originally Posted by Tasssadar View Post
I've got reports when for some users, the device would freeze on boot when using older bootloader versions (3.41 I guess?) and custom kernel. This hang apparently disappears if the user upgrades to the newest bootloader.

Does anybody knows why this happens? I know Metallice has this issue with his kernel, so he tells users to upgrade to newest bootloader. Does anybody else have the same issue, maybe pinpointed the reason why this happens?

It doesn't cause any real problems because newest bootloader works okay, but I would still like to know why it happens.
I found after wondering the same question that it doens't actually hang but people are to impatient to wait and see. I also found that on a dead battery even on the newest bootloader even if there is enough charge that it can hang and a reboot is needed to be forced apon.
OMNI-ROM Co-Maintainer for TF-101

Verizon Samsung Galaxy SIII Unlocked Bootloader Running my CM-11.0 Custom Builds

Droid Incredible AMOLED Unlocked Bootloader S-OFF Running My CM-11.0 Builds

Asus Transformer B60 with B80 Dock Running Omni 4.4
 
adfad666
Old
#3  
adfad666's Avatar
Recognized Developer
Thanks Meter 4147
Posts: 718
Join Date: Jul 2011
Location: Olomouc

 
DONATE TO ME
Google made an announcement that they added some extra suppliers for certain components, I think some different storage chips, that required the new boot loader. That's probably the issue.
The dawn of mobile phones
Ericsson GA 628 => Nokia 5110 => Siemens C35i => Siemens C45

The age of colour screens and polyphonic ringtones
Motorola C350 => Sony Ericsson T610 => Sony Ericsson T630 => Sony Ericsson K790i => Sony Ericsson T250i

The age of Android
LG Optimus One => Sony XPERIA J => Sony XPERIA SP => Sony XPERIA Z1 Compact
 
bftb0
Old
(Last edited by bftb0; 2nd February 2013 at 01:14 AM.)
#4  
Senior Member
Thanks Meter 794
Posts: 2,120
Join Date: Feb 2010
[speculation]

There is no hardware reset/change which occurs when the bootloader transfers control to whatever comes next (recovery kernel, OS kernel, etc) other than what the kernel itself will attempt to do on it's own as it begins initializing, so beyond things which are explicitly passed to the kernel from the bootloader (e.g. the kernel boot command argument list), whatever hardware state - clocking configuration, rate, or a whole slew of other device initializations - that the bootloader sets up can be regarded as an implicit set of "hardware state" parameters for the kernel which follows. (It is impossible for the kernel to reset *everything* back to a known state via a hardware reset, as this would just re-launch the bootloader)

So, the scenario described certainly seems feasible enough if the kernel code makes inappropriate assumptions about inherited state, sequences initializations differently, etc.

I was poking through TWRP's kernel log the other day, and was somewhat shocked to see a message about failure to read the mmc device's (Flash Memory!) partition table - followed immediately by an indecipherable message about a clocking change .... and then normal sorts of messages about partitions found. Rather unnerving as that suggests something extremely fundamental for a recovery (partition layout) is being attempted initially in a sketchy fashion.

It does seem rather odd that some mismatch between the kernel's presumption of inherited hardware state would manifest itself in late boot behavior - the boot animation screen for the OS is in /system, no? Seems like if you are seeing things progress that far along the kernel probably has not failed in any dramatic way.

Anyhow - why not just put the question to the M-kernel dev in his thread, or give him the URL to this thread and ask him to comment?

[/speculation]

cheers

[ Edit ] I suppose I should have added that if you experience the problem yourself with a set of kernel mods, you might be able to come up with a hypothesis by bisecting backwards towards a reference commit that doesn't have the problem. Seems like a lot of work though, given that - for lack of Asus bootloader source code - the bootloader's behavior changes between releases are opaque.
 
Metallice
Old
#5  
Metallice's Avatar
Recognized Contributor
Thanks Meter 4674
Posts: 3,125
Join Date: Jun 2010

 
DONATE TO ME
I spent a long time trying to figure it out before the bootloader update fixed it. Couldn't. The problem would just appear randomly. I tried reverting patches, resetting git, trying to find a cause, but there seemed to be no definite cause. One patch removal would seem to solve it, and then it would come back after adding another, dissapear when I added back the patch I thought was causing it, etc. etc.

I now don't see it as an issue since any bootloader beyond 4.1.x fixes this.
 
ngoralph
Old
#6  
ngoralph's Avatar
Recognized Contributor
Thanks Meter 1257
Posts: 1,527
Join Date: Apr 2012
was on 3.34 when started to experience this the only way it gets fix for me is pressing the up/power button
and the hang was not just in boot even going to the recovery via fastboot also hangs
i think the only fix for this is updating bootloader
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Slide Dial Replacement Dialer Lets You Make Calls from Anywhere

If you frequently make phone calls, your dialer (aka phone app)is one of the … more

Navigate with Your Samsung Gear 2 Using DMA Navi Watch

Whether you’re travelling to a new destination or exploring some previously … more

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more