Get boot source from user-space

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get boot source from user-space

970 Views
BrilliantovKiri
Senior Contributor I

Hello!

I work with board on iMX6Quad CPU, board should boot from SD-card and eMMC-card and execute different programm.

How can I get in user-space boot source?

Thank you and excuse my bad english.

Labels (2)
0 Kudos
Reply
2 Replies

897 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kirill

one can read from uboot SRC_SBMR1,2 registers

then perform necessary steps for booting.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

897 Views
BrilliantovKiri
Senior Contributor I

Thank you, Igor!

No, boot steps always one. I have to this information in user-space after linux boot, e.g. if system boot from SD-card I run script1.sh, but if from eMMC-card - run script2.sh.

0 Kudos
Reply