Reading BOOT_MODE[1,0] register

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading BOOT_MODE[1,0] register

2,702件の閲覧回数
shonysinay
Contributor I

hi,

Can I read in u-boot the BOOT_MODE[1,0] register? How?

Thans,

Shony

0 件の賞賛
返信
7 返答(返信)

2,558件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Shony

it can be read using register SRC_SBMR2.

Best regards

igor

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

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

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

0 件の賞賛
返信

2,558件の閲覧回数
shonysinay
Contributor I

Igor, since I am not software engineer I don't even know the exact command. Please write the exact command for reading the SRC_SBMR2.

Thanks,

Shony

0 件の賞賛
返信

2,558件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Shony

one can attach jtag and read SRC_SBMR2.

Best regards

igor

0 件の賞賛
返信

2,082件の閲覧回数
Mestkim
Contributor III

Igor,

Till now, you did ask which chip it is. 

Do you also feel shame of yourself. 

 

0 件の賞賛
返信

2,558件の閲覧回数
shonysinay
Contributor I

I don't have JTAG. I download the u-boot through the serial port.

Can't I some u-boot command?

0 件の賞賛
返信

2,083件の閲覧回数
Mestkim
Contributor III

You are not a software engineer. But you are not an engineer at all.

Till now, you did say which i.MX chip you are using, i.MX6, i.MX8MM or others. 

Do you feel shame of yourself? 

 

 

 

0 件の賞賛
返信

2,107件の閲覧回数
joaofl
Contributor I

For the IMX8MP, those flags are located at the following address:

```
# the BOOT_MODE register
boot_mode_bits_addr=0x30390073

```

You can find the exact address for your variant on its datasheel.

Then I just compared the values on that register to the one I'm expecting:

`cmp.b ${boot_mode_bits_addr} 0x2 1`

I compare the first byte of the content on `boot_mode_bits_addr` with `0x2`, and `test` to see if the result is 0 or 1.

0 件の賞賛
返信