RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

version.sh should check the CONTROL_STATUS register to determine which SPL was run #93

Open jadonk opened 5 years ago

jadonk commented 5 years ago

It would be of great help in supporting people to know what boot mode was configured and exactly which SPL was executed on a specific boot cycle. At least the boot mode can be figured by reading the CONTROL_STATUS register (0x44E10040):

The actual SPL executed might be possible to determine, but I'm not currently aware of how to do it.

Grabbing the SYSBOOT status and putting the boot order in the output of version.sh will help in some debugging instances.

RobertCNelson commented 5 years ago

@jadonk nice !!!

debian@test-bbb-2:~$ sudo omapconf read 0x44E10040
0040033C
RobertCNelson commented 5 years ago

Boot from eMMC:

debian@beaglebone:~$ sudo omapconf read 0x44E10040
0040033C

Boot from microSD (boot button pressed):

debian@beaglebone:~$ sudo omapconf read 0x44E10040
00400338