Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jadonk opened this issue May 30, 2019 · 2 comments

Comments

@jadonk
Copy link
Contributor

jadonk commented May 30, 2019

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):

  • Bits 7:0 will reflect what the processor read on SYSBOOT[7:0]
  • Bit 16:23 will reflect what the processor read on SYSBOOT[15:8]

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
Copy link
Owner

@jadonk nice !!!

debian@test-bbb-2:~$ sudo omapconf read 0x44E10040
0040033C

@RobertCNelson
Copy link
Owner

Boot from eMMC:

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

Boot from microSD (boot button pressed):

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants