teamacid / android_kernel_galaxys4gmtd

CyanogenMod Kernel for the Galaxy S 4G (herring)
http://forum.xda-developers.com/showthread.php?t=1618016
Other
9 stars 10 forks source link

Reboot to download mode broken #9

Closed maxfierke closed 5 years ago

maxfierke commented 12 years ago

Reboot to download mode is not working. We may not be passing the correct reboot reason to S5P_INFORM6.

bhundven commented 12 years ago

Think you are on to something here.

For those interested, here is the call notifier chain call: https://github.com/teamacid/android_kernel_galaxys4gmtd/blob/gingerbread/arch/arm/mach-s5pv210/mach-aries.c#L204

Here are the definitions of the different REBOOT_MODEs: https://github.com/teamacid/android_kernel_galaxys4gmtd/blob/gingerbread/arch/arm/mach-s5pv210/include/mach/param.h#L75

and at the top of mach-aries (yes... our phone is herring :-P thanks for the confusion samsung) they override fastboot (which is never used): https://github.com/teamacid/android_kernel_galaxys4gmtd/blob/gingerbread/arch/arm/mach-s5pv210/mach-aries.c#L173

I've noticed from other devices that sometimes samsung enters the wrong values in these defines and certain modes don't work (like reboot or download).

We should try adding a printk that outputs "(char *)_cmd" in that call notifier (say... KERN_INFO) so we know what it thinks it is doing so we can better catch that mode as download mode.

maxfierke commented 12 years ago

I'm thinking I might be able to make something hacky out of this:

http://forum.xda-developers.com/showthread.php?t=1108103

Maybe.

bhundven commented 12 years ago

http://forum.xda-developers.com/showthread.php?t=1629359

check that out ;)