Hi CVS Thanks a lot for your explanation. Do you have any pointer for where in the source I should look for this functionality?
Specifically I have been looking at the source for adb which seems to call the __reboot syscall with "recovery" as a parameter. But nowhere in the Android Linux kernel can I see this information being stored for use by the the bootloader. Also looking at the bootable/bootloader/legacy, which I assume is the default bootloader, I am unable to locate where the command to boot into recovery mode is picked up. Can you point me in the right direction? Thanks in advance. /Bjarke On Wed, Mar 30, 2011 at 2:59 PM, Chinmay S <cvs...@gmail.com> wrote: > Hi Bjarke, > > When the kernel reboots into recovery-mode, its a warm-reset. > (NOT a cold-reset where contents of ALL registers are lost.) > > Before warm-reboot, the kernel sets a particular register to a specify value > (the value in this register is retained even after a warm-reset.) > > The bootloader just reads this register as part of it boot-up routine > and upon finding the specific recovery value, starts the kernel and > points it to the recovery-fs this time as you rightly identified. > > The exact register used may vary in different architectures/devices. > > Regards > CVS > -- Bjarke Freund-HansenĀ <bjark...@gmail.com> -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting