Booting T4240RDB from SD card or SPI

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

Booting T4240RDB from SD card or SPI

1,847 Views
michaelborgelt
Contributor II

Hello all,

I am having quite a bit of trouble building a U-Boot, in Yocto (SDK 1.8) and then

deploying it onto an SD card and booting it on the T4240RDB eval board.

Since T4240RDB U-Boot does not support SDCARD I build T4240QDS_SDCARD.

I copied the generated file: u-boot-sd-T4240QDS_SDCARD-2014.07+fslgit-r0.bin
to block 8 of the SD-card and set T4240RDB SW2-1 to OFF (RCW in SD/EEPROM) and SW3-4
to ON (RCW source located in SD).
But this does not work. I also tried to
create the bin file using the QorIQ Configuration Suite but also without success.

Is there anyone who hast booted T4240RDB from SD-card or SPI?

Labels (1)
0 Kudos
4 Replies

993 Views
norabjorklund
Contributor II

Good that it is supported in the new sdk. I did manage to bring up u-boot from an sd-card with SDK1.8 by following the instructions in the large 1.8 sdk user manual for SD-card boot.


It had some extra instructions specific to t4240rdb. I did this from another target since my u-boot could not boot at all on t4240rdb, and it worked well too.

1) write PBL1.bin at offset block 8:

=>tftp 100000 PBL1.bin

=>mmcinfo

=>mmc write 100000 8 block_number

2)write u-boot.bin at offset 0x41000 (260KB), e.g. 520(0x208)

blockes (For T4240QDS, the offset is 0x200, it's changed to 0x208

in 2014.04+).

=>tftp 100000 u-boot.bin

=>mmc write 100000 208 block_number

3) write fman ucode to SD card from block 0x820

=>tftp 100000 fsl_fman_ucode_xx.bin

=>mmc write 100000 820 block_number

4) write CS4315 ucode to SD from block 0x8a0 (only for T2080RDB/

T4240RDB)

=>tftp 100000 CS4315-ucode.txt

=>mmc write 100000 8a0 200

5) power down board

6) Change board switch configuration

Best,

Nora

0 Kudos

993 Views
lunminliang
NXP Employee
NXP Employee

Hello Michael Borgelt,

The SDK1.8 is not supported T4240RDB SDCard U-Boot, you could use the latest SDK1.9, this has been added as "T4240RDB_SDCARD" target.

You need to add it to the UBOOT_MACHINES in its conf file.

The SDK 1.9 is available at:

Linux® SDK for QorIQ Processors|NXP


Have a great day,
Lunmin

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

0 Kudos

993 Views
nickcaruso
Contributor III

Lunmin,

Can you tell me where to find the instructions on how to do this?  I've recently taken over a project where a T4240 RDB and QDS need to be upgraded to the latest OS release, and I could use some documentation.

   thanks, and best regards,

      Nick Caruso

      Lead Software Engineer,

      Scientific Systems Company, Inc.

0 Kudos

993 Views
michaelborgelt
Contributor II

Hi Lunminliag,

thanks, SDK 1.9 is working for SD Card.

Now I tried to build an SPIFLASH U-Boot Image with SPL for my design:

CONFIG_SPL=y

CONFIG_SYS_EXTRA_OPTIONS="PPC_T4240,RAMBOOT_PBL,SPL_FSL_PBL,SPIFLASH"

CONFIG_PPC=y

CONFIG_MPC85xx=y

CONFIG_TARGET_G052A=y

But this ends up in a build error:

./scripts/Makefile.spl:114: *** could not find linker script.  Schluss.

make: *** [spl/u-boot-spl] Fehler 2

Do you have an idea?

Is it possible to have RCW, PBI and U-Boot in SPI?

BR

Michael

0 Kudos