Porting UBoot to IMX7D Board

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

Porting UBoot to IMX7D Board

906 Views
nicholash
Contributor I

Hi, I'm trying to port U-Boot from an imx7dSabre board to custom board.

I've run the memory tester and that works fine, I can read and write to the memory with no problems using that tool. However, when I put the values from the init script into our imximage.cfg and try and load it with uuu, it seems to get stuck somewhere. When I go to debug it with J-Link over JTAG, I can halt, see that it's stuck and in a perpetual loop at 0xBFF9ACD8, however the code I'm trying to load is set to a base of 0x87800000, so this is way outside it. Weirder still, if I try and read other memory addresses than the one I'm stuck at, I stop being able to read anything and lose debug and when trying to reconnect I get an error saying "CP15 registers unable to be read". If I try and reset under JTAG, or load code under JTAG, I get the program counter stuck at 0xFC00C1FC.

What's going on here? How do I test this and debug my problem when I can't debug normally?

Is there a security setting I have inadvertently activated that causes this?

Labels (1)
0 Kudos
3 Replies

804 Views
Yuri
NXP Employee
NXP Employee

nicholash@questps.com.au 

Hello,

  What Linux release is used?

Regards,

Yuri.

0 Kudos

804 Views
nicholash
Contributor I

I have not got to the stage of booting Linux, it's U-Boot 2018.03 I believe.

0 Kudos

804 Views
Yuri
NXP Employee
NXP Employee

nicholash@questps.com.au 

Hello,

  use Chapter 3 (Porting U-Boot) of the attached i.MX_Porting_Guide.pdf.

Also, please check differences between mx7dSabre and the custom board.

Regards,

Yuri.

0 Kudos