T1040RDB_booting from SPI

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

T1040RDB_booting from SPI

974 Views
vijayb1
Contributor II

Hi,

We are trying to boot T1040RDB from SPI, here is what i have tried so far

1) Build u-boot.(make T1040RDB_SPIFLASH_defconfig)

    make

2) copy the generated u-boot.bin and u-boot-with-spl-pbl.bin

=>tftp 100000 u-boot-with-spl-pbl.bin

=>sf probe 0

=>sf erase 0 100000

=>sf write 100000 0 $filesize

write u-boot.bin at offset 0x40000 (256KB):

=>tftp 100000 u-boot.bin

=>sf write 100000 40000 $filesize

Change the switch setting as below

SW1 [1:8] = 0010 0010

SW2 [1:8] = 1011 1011

SW3 [1:8] = 1110 0001

So far i have been unsuccessful, my understanding is that u-boot will build PBL.bin with default rcw which is good enough to test boot from spi. Is my understanding correct? Am i missing something?

Thanks

Vijay

Labels (1)
0 Kudos
7 Replies

722 Views
vijayb1
Contributor II

I am able to generate SPI image, and i can boot, my question is more on the serial nor flash memory layout, more specifically on secure boot, where should u-boot header/boot script header should go at what address?

0 Kudos

722 Views
ufedor
NXP Employee
NXP Employee

It will be more convenient to support the issue as a Technical Case:

https://community.nxp.com/thread/381898 

0 Kudos

722 Views
ufedor
NXP Employee
NXP Employee

1) Which exactly board is in question - i.e. what is written on the board itself and in on-board sticker(s)?

2) Which version of the NXP Linux SDK is used?

0 Kudos

722 Views
vijayb1
Contributor II

Hi Ufedor

1) T1040RDB Rev B - SCH28125 RevB/700/28215 RevB

2) I am using Linux SDK 2.0

Thanks

Vijay

0 Kudos

722 Views
ufedor
NXP Employee
NXP Employee

> 2) I am using Linux SDK 2.0

The SDK 2.0-1703 is able to generate complete bootable SPI image (it contains RCW, PBL, U-Boot at once - refer to the attached image), but for the T1040D4RDB board - it is possible to refer to the SDK Images ISO available at:

https://freescaleesd.flexnetoperations.com/337170/447/10318447/QorIQ%20Linux%20SDK%20v2.0%20PPC64E55... 

and

https://freescaleesd.flexnetoperations.com/337170/467/10318467/QorIQ%20Linux%20SDK%20v2.0%20PPCE5500... 

0 Kudos

722 Views
vijayb1
Contributor II

Attached are PBL.bin and u-boot.bin that i am using.

rcw seems to be correct

aa 55 aa 55 01 0e 01 00 0c 18 00 0e 0e 00 00 00
00 00 00 00 00 00 00 00 66 00 00 02 80 00 00 02
58 10 60 00 01 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 28 10 00 00 00 00 03 42 50 0f
00 00 00 00 00 00 00 00 09 25 01 00 00 00 04 00
09 25 01 08 00 00 20 00 09 00 00 10 00 00 00 0b
09 00 00 14 c0 00 00 00 09 00 00 18 81 d0 00 17
89 02 04 00 a1 00 00 00 09 13 80 c0 00 0f 00 00
89 02 04 00 00 00 00 00 09 01 00 00 00 20 04 00
09 13 80 00 00 00 00 00 09 13 80 c0 00 00 01 00
09 01 01 00 00 00 00 00 09 01 01 04 ff fc 00 07
09 01 0f 00 08 1e 00 0d 09 01 00 00 80 00 00 00
09 00 0c d0 00 00 00 00 09 00 0c d4 ff fc 00 00
09 00 0c d8 81 00 00 11 09 00 00 10 00 00 00 00
09 00 00 14 ff 00 00 00 09 00 00 18 81 00 00 00
09 11 00 00 80 00 04 03 09 11 00 20 2d 17 00 08

0 Kudos

722 Views
vijayb1
Contributor II

Below switch settings worked for me

SW1 [1:8] = 0010 0001

SW2 [1:8] = 1011 1011

SW3 [1:8] = 1110 0001

What is the serial nor flash memory map for SPI boot, at what address should we flash kernel image and dtb for spi boot?

0 Kudos