Bootloader - How does it know what partition to boot
I am looking at fixing powerdown from TWRP on the Galaxy Note2 series of phones. I was able to get it to power down calling android_reboot(ANDROID_RB_POWEROFF, 0, 0); from libcutils. However when the phone powers on, it goes straight into recovery.
I was hoping someone might have an idea on where the bootloader gets it's information on what partition to boot so we can fix this to boot into system right away.
On the qualcomm Note1, we could run
echo 3 > /dev/block/mmcblk0p12
to boot into system.
I am looking forward to your ideas.
Phone: Tmobile Galaxy Note 3 Sim unlocked
ROM: Touchwiz stock SELINUX Enforcing
64 GB Class 10 Sandisk
If you need help please, please, please, please post recovery.log.
1. adb pull /tmp/recovery.log or Advanced->Copy Log to SDCard
2. Upload /tmp/recovery.log or /sdcard/recovery.log to http://paste.tinyw.in
How to submit a bug report!
for support or join us in #twrp on Freenode IRC servers