diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-06-24 14:46:45 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-06-24 14:46:45 +0200 |
commit | dd9c6a9398ad5cbc67983c3356f834da5f61dcb8 (patch) | |
tree | 3feb0101c9035bc83bed45a025e5e4e656fc9eab | |
parent | 54ba2ced38ca92e7837cf2cf12f769e0fa3968d4 (diff) | |
download | bootable_bootloader_goldelico_gta04-dd9c6a9398ad5cbc67983c3356f834da5f61dcb8.zip bootable_bootloader_goldelico_gta04-dd9c6a9398ad5cbc67983c3356f834da5f61dcb8.tar.gz bootable_bootloader_goldelico_gta04-dd9c6a9398ad5cbc67983c3356f834da5f61dcb8.tar.bz2 |
Separate light indications for kernel and recovery kernel booting
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r-- | boot-scr/boot.txt | 35 | ||||
m--------- | x-loader | 0 |
2 files changed, 25 insertions, 10 deletions
diff --git a/boot-scr/boot.txt b/boot-scr/boot.txt index 9cdaf10..f972e5c 100644 --- a/boot-scr/boot.txt +++ b/boot-scr/boot.txt @@ -1,15 +1,12 @@ setenv kerneladdr 0x82000000 setenv splashzipaddr 0x80400000 setenv splashaddr 0x80800000 -setenv status_loading 'status set 18' -setenv status_load_success 'status set 10' -setenv status_load_error 'status set 8' setenv bootargs mpurate=${mpurate} mux=${mux} echo "Replicant GTA04" -run status_loading i2c dev 0 +status init if mmc rescan 0 then @@ -42,9 +39,11 @@ then if status check 1 || ext4load mmc 0:3 ${kerneladdr} .startrecovery then + status set 3 + if fatload mmc 0 ${kerneladdr} recovery.img then - run status_load_success + status set 2 lcm backlight 0 lcm power 0 @@ -53,13 +52,29 @@ then bootm ${kerneladdr} else echo "Loading recovery kernel failed" - run status_load_error + status set 19 + + if fatload mmc 0 ${kerneladdr} boot.img + then + status set 11 + + lcm backlight 0 + lcm power 0 + lcm off + + bootm ${kerneladdr} + else + echo "Loading recovery kernel failed" + status set 9 + fi fi fi + status set 18 + if fatload mmc 0 ${kerneladdr} boot.img then - run status_load_success + status set 10 lcm backlight 0 lcm power 0 @@ -68,11 +83,11 @@ then bootm ${kerneladdr} else echo "Loading kernel failed" - run status_load_error + status set B if fatload mmc 0 ${kerneladdr} recovery.img then - run status_load_success + status set A lcm backlight 0 lcm power 0 @@ -81,7 +96,7 @@ then bootm ${kerneladdr} else echo "Loading recovery kernel failed" - run status_load_error + status set 9 fi fi else diff --git a/x-loader b/x-loader new file mode 160000 +Subproject d77b483ab5bbd79ebf5e39ed0ee297e68145a29 |