Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,645 Members 38,660 Now Online
XDA Developers Android and Mobile Development Forum

eMMC sudden death research

Tip us?
 
Oranav
Old
#21  
Member - OP
Thanks Meter 257
Posts: 50
Join Date: Oct 2010
Default Re: eMMC sudden death research

As far is it seems right now, it isn't caused by flash wear or anything like that. It seems that it's caused by a bug which is triggered in a very specific case. Then, it causes the device to corrupt its inner structures or its firmware - I'm not sure which one yet.

The specific bug is that they don't check the return value of some function returning a pointer, which may be NULL. It then leads to a NULL pointer dereference which corrupts things.

So, as far as it seems currently, there is no negative effect of using an unpatched kernel (except for the risk of it suddenly dying, of course).


By the way, it's worthy to note that the firmware actually resides on the flash itself. There is a very small boot ROM (which is probably a mask ROM) that loads the firmware out of the NAND device.
Why am I mentioning this? It means that a bug in the firmware may actually corrupt the firmware itself, bricking the device.

Sent from my GT-I9300 using xda app-developers app
The Following 12 Users Say Thank You to Oranav For This Useful Post: [ Click to Expand ]
 
liamR
Old
#22  
liamR's Avatar
Senior Member
Thanks Meter 79
Posts: 569
Join Date: Feb 2007
That is awesome research. Assuming that samsung just made a quick "fix" with the new kernels (and it does causing random freezes), Do you think that they can make a proper fix without side effects ?

Assuming they know all about it since SGS2 and it still effects SGS3 this makes samsung a terrible company.
 
Oranav
Old
#23  
Member - OP
Thanks Meter 257
Posts: 50
Join Date: Oct 2010
Default Re: eMMC sudden death research

Quote:
Originally Posted by liamR View Post
Assuming that samsung just made a quick "fix" with the new kernels (and it does causing random freezes), Do you think that they can make a proper fix without side effects ?
Absolutely yes.


Sent from my GT-I9300 using xda app-developers app
 
odoto
Old
#24  
Member
Thanks Meter 21
Posts: 56
Join Date: Dec 2010
Quote:
Originally Posted by Oranav View Post
Absolutely yes.


Sent from my GT-I9300 using xda app-developers app
question is, will they be smart enough do actually do it :P
(I'm not talking about their engineers, but their management)
 
Rob2222
Old
#25  
Senior Member
Thanks Meter 298
Posts: 411
Join Date: Feb 2008
@Oranav:
Do you know, if the fix is applied in download mode, too?
I assume that the download mode does _not_ load a kernel or recovery, so the following assumption would be, that in download mode the eMMC is not protected.
Could that be?

BR
Rob
 
Product F(RED)
Old
#26  
Product F(RED)'s Avatar
Senior Member
Thanks Meter 2,585
Posts: 8,828
Join Date: Sep 2010
Location: Brooklyn, NY

 
DONATE TO ME
Quote:
Originally Posted by Rob2222 View Post
@Oranav:
Do you know, if the fix is applied in download mode, too?
I assume that the download mode does _not_ load a kernel or recovery, so the following assumption would be, that in download mode the eMMC is not protected.
Could that be?

BR
Rob
You have to have a kernel. I'm sure it shares the recovery kernel since the recovery kernel is basically a backup/fail-safe kernel.

HTC Evo 4G -> HTC Evo 3D/Nexus S 4G -> Galaxy S II -> iPhone 4S -> Galaxy S II -> Galaxy Nexus -> Galaxy S3 i9300 -> Galaxy Note 2 i317 -> Galaxy Note 2 T889


 
Rob2222
Old
#27  
Senior Member
Thanks Meter 298
Posts: 411
Join Date: Feb 2008
Quote:
Originally Posted by Product F(RED) View Post
You have to have a kernel. I'm sure it shares the recovery kernel since the recovery kernel is basically a backup/fail-safe kernel.
I am not sure about this. From my understanding the (second?) bootloader already has eMMC and display driver. So there are enough parts already initialized to make the eMMC aviable for USB access. No real need to load the kernel for that.

If download mode would need kernel/recovery, it would not be aviable if you flash a wrong kernel/recovery. And if I remember right I've seen wrong kernel and wrong recovery flashs got repaired by just flashing the correct kernel/recovery, so download mode was still working.

BR
Rob
 
Product F(RED)
Old
#28  
Product F(RED)'s Avatar
Senior Member
Thanks Meter 2,585
Posts: 8,828
Join Date: Sep 2010
Location: Brooklyn, NY

 
DONATE TO ME
Default Re: eMMC sudden death research

Quote:
Originally Posted by Rob2222 View Post
I am not sure about this. From my understanding the (second?) bootloader already has eMMC and display driver. So there are enough parts already initialized to make the eMMC aviable for USB access. No real need to load the kernel for that.

If download mode would need kernel/recovery, it would not be aviable if you flash a wrong kernel/recovery. And if I remember right I've seen wrong kernel and wrong recovery flashs got repaired by just flashing the correct kernel/recovery, so download mode was still working.

BR
Rob
You could be right but I know that recovery mode has its own separate kernel. That's why I thought maybe download mode shared it.

Sent from my GT-I9300 using Tapatalk 2

HTC Evo 4G -> HTC Evo 3D/Nexus S 4G -> Galaxy S II -> iPhone 4S -> Galaxy S II -> Galaxy Nexus -> Galaxy S3 i9300 -> Galaxy Note 2 i317 -> Galaxy Note 2 T889


 
Oranav
Old
#29  
Member - OP
Thanks Meter 257
Posts: 50
Join Date: Oct 2010
Default Re: eMMC sudden death research

Download mode has nothing in common with the recovery partition. It is implemented in sboot (the device's bootloader).
It has its own implementation of hardware drivers. If it doesn't patch the eMMC RAM, then it isn't safe!

However, I haven't checked it enough yet to conclude whether it's safe or not. Right now, I'd recommend anyone to avoid flashing via download mode. Recovery and Mobile Odin (or just dd) are good enough.

Sent from my GT-I9300 using xda app-developers app
The Following 12 Users Say Thank You to Oranav For This Useful Post: [ Click to Expand ]
 
AndreiLux
Old
#30  
AndreiLux's Avatar
Senior Member
Thanks Meter 13,624
Posts: 2,759
Join Date: Jul 2011

 
DONATE TO ME
Quote:
Originally Posted by Oranav View Post
Download mode has nothing in common with the recovery partition. It is implemented in sboot (the device's bootloader).
It has its own implementation of hardware drivers. If it doesn't patch the eMMC RAM, then it isn't safe!

However, I haven't checked it enough yet to conclude whether it's safe or not. Right now, I'd recommend anyone to avoid flashing via download mode. Recovery and Mobile Odin (or just dd) are good enough.

Sent from my GT-I9300 using xda app-developers app
Makes sense into why they upgraded the bootloader with LLA then, the increased modification detection would be just a side-effect of a newer bootloader version which already had heightened warranty enforcements on the 9305 and the Note 2's.

The Following 4 Users Say Thank You to AndreiLux For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes