U-boot SDK 1.8 SD boot problem T2080RDB

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

U-boot SDK 1.8 SD boot problem T2080RDB

2,694 Views
pacoelflaco
Contributor I

Hi! I followed the manual QorIQ SDK v1.8 Info Center.pdf to make a SD boot.

I'm working with this hardware:

  • T2080RDB rev 1.1
  • Serial/USB connected to UART0
  • SD info with u-boot:

=> mmc info

Device: FSL_SDHC

Manufacturer ID: 3

OEM: 5344

Name: SU32G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 29.7 GiB

Bus Width: 4-bit

I created the file PBL using Eclipse IDE for C/C++ Developers, Version: Juno Service Release 2, Build id: 20130225-0426 and:

Name VersionIDProvider
  Eclipse IDE for C/C++ Developers1.5.2.20130211-1820epp.package.cpp
  FSL Eclipse Updater Custom Actions Feature for Eclipse 3.7 and 4.2.x2.0.12.FSL_150430com.freescale.updater.customActions.feature.feature.groupFreescale Semiconductor, Inc.
  QorIQ Configuration and Validation Suite4.2.1.0001-20150518com.freescale.qcvs.feature.feature.groupFreescale Semiconductor

And I used this 4 files:

NameSize
PBL.bin (rcw_66_15_1800MHz.bin + manual PBI commands + u-boot-spl.bin + flush + wait)327.936 bytes
u-boot-sd-T2080RDB_SDCARD-2014.07+fslgit-r0.bin786.432 bytes
fsl_fman_ucode_t2080_r1.1_106_4_15.bin31.692 bytes
cs4315-cs4340-PHY-ucode.txt133.738 bytes

To make this instructions with u-boot:

=> tftp 100000 PBL.bin; mmc write 100000 8 281; tftp 100000 u-boot.bin; mmc write 100000 208 469; tftp 100000 fsl_1.1_4_15.bin; mmc write 100000 820 3E; tftp 100000 ucode.txt; mmc write 100000 8a0 200

Then I turned off the machine, changed the switches (SW1[0:7] = 0010 0000 & SW2[0]= 0) and turned on but... nothing happened.

What am I doing wrong?

Thanks for your help.

Labels (1)
0 Kudos
Reply
5 Replies

1,470 Views
pacoelflaco
Contributor I

Hi again,

I'm using T2080RDB model 1.1 Rev C and QorIQ SDK 1.8.

Based on this I want to ask a few questions:

1.- I have many files u-boot*.bin generated by Yocto, Which one should I use in Eclipse?

I'm taking u-boot-spl.bin file from here:

~/build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/u-boot-qoriq/2014.07+fslgit-r0/git/T2080RDB_SDCARD/spl$

And u-boot.bin file in the following folder: ~/build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/u-boot-qoriq/2014.07+fslgit-r0/git/T2080RDB_SECURE_BOOT$

2.- Can I directly use the file u-boot-with-spl-pbl.bin generated by Yocto project hosted in the same folder?

3.- The 4th step making New QorIQ Configuration Project in Eclipse, after selecting T2080 silicon revision 1.1 processor and PBL - Preboot Loader RCW configuration, I have to choose (in Use RCW Hard-coded configuration) between:

  - Hard-coded RCW: 0x8C

  - Hard-coded RCW: 0x8F

Both show the same options:

  Hard-coded configuration options:

  - SYSCLK: 66.7 MHz

  - DDRCLK: 133.3 MHz

I have tried both but I would like to know the correct one.

4.- QorIQ SDK v1.8 Info Center.pdf Pag. 2173, at the bottom says:

1.1)write PBL1.bin at offset block 8:

=>tftp 100000 PBL1.bin

=>mmcinfo

=>mmc write 100000 8 block_number

1.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

0x208 - 0x8 = 0x200 = 262KB (512 blocks * 512 / 1000)

How I can put a 327,9KB file (PBL.bin) in a 262KB space?

Thanks for your time.

0 Kudos
Reply

1,470 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paco El Flaco,

I got more information from the development team. Since SDK 1.8 release, you could use the image build_t2080rdb_release/tmp/deploy/images/t2080rdb/u-boot-sd-T2080RDB_SDCARD.bin directly, please copy this image in the SD card, it is T2080RDB_SDCARD/u-boot-with-spl-pbl.bin in u-boot source folder, which includes RCW, PBI,u-boot-spl.bin and u-boot.bin, so no need to generate the pbl file with QCVS Tool any more.

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

        => mmc write 1000000 8 0x800

        => tftp 1000000 fsl_fman_ucode_T2080_xx.bin

        => mmc write 1000000 0x820 80


Have a great day,
Yiping

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

0 Kudos
Reply

1,470 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paco,

1. In order to generate the PBL file, you only need to use /build_t2080rdb_release/tmp/work/t2080rdb-fsl-linux/u-boot-qoriq/2014.07+fslgit-r0/git/T2080RDB_SDCARD/spl/u-boot-spl.bin.

Please don't touch the images in T2080RDB_SECURE_BOOT, if you don't want to use secure boot feature.

2. No. For T2080, the 512KB CPC is not big enough to store the U-boot since the u-boot size is 768KB, a two stage boot is introduced which produces two U-boot images, the first stage u-boot is loaded to CPC, and run in CPC, which will init DDR and load thesecond stage u-boot to DDR, then jump to DDR to boot up to U-boot command line.

3. Please import the RCW file provided in the pre-built images ISO.

4. According to your previous description, probably your didn't use the correct file u-boot-spl.bin to generte the PBL file. Your PBL file is too large, there is problem in your procedure.

Please feel free to let me know, if you need further assistance, you could send your PBL file to me.


Have a great day,
Yiping

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

0 Kudos
Reply

1,470 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paco El Flaco,

As you described, nothing output in the console, please check whether RCW configuration is correct.

For T208xRDB:

PBI_SRC needs to set to 0b1110 - IFC.

BOOT_LOC needs to set to 0b11000 - IFC.

Please note for SD boot, you need to use the same setting as IFC(the above), this is a workaround of T2080RDB.

If your problem remains, please attach your PBL file.


Have a great day,
Yiping

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

0 Kudos
Reply

1,470 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Paco El Flaco,

On import thing, if you use T2080RDB Rev A, you need to use SDK 1.7, SDK 1.8 is only used for T2080RDB Rev C, the difference between T2080RDB Rev A and T2080RDB Rev C is DDR type, the DDR used on T2080RDB Rev A is not manufactured any more, so it is changed.

Most probably you are using T2080RDB Rev A, if so please use SDK 1.7.

I reviewed the procedure which you described, didn't find obvious problem.


Have a great day,
Yiping

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

0 Kudos
Reply