AnsweredAssumed Answered

T1040RDB boot from SD card

Question asked by Jacob Tummond on Jan 22, 2015
Latest reply on Aug 14, 2015 by Mathias Parnaudeau

I'm in a situation where my USB TAP is still on backorder and I've bricked my flash image (I was trying to get a 64-bit RCW, etc... into the flash). Now I'm trying to build up a SD card to boot from. The answer by Yiping Wang inthis post here has got most of the way I think but the board (T1040RDB) is not booting all the way. In my terminal output I get:

 

Initializing....using SPD
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready

 

Since I didn't have access to u-boot I used the shell and dd commands instead. Here's what I did (P.S. I built these images from the 1.7 SDK 32-bit)

1) I changed the following line in t1040rdb.conf and rebuilt:

UBOOT_MACHINES ?= "T1040RDB T1040RDB_SECURE_BOOT T1040RDB_SDCARD"

 

bitbake now produces u-boot-sd-T1040RDB_SDCARD.bin in the images folder. I also grabbed iram_Type_A_T1040_r1.0.bin and fsl_man_ucode_r1.0_107_4_2.bin from the images folder

 

I've formatted a 4GB SD card as FAT32 (not sure that it matters) and run the following commands

sudo dd /dev/disk1 if=u-boot-sd-T1040RDB_SDCARD.bin of=/dev/disk1 bs=512 seek=8
sudo dd /dev/disk1 if=fsl_man_ucode_t1040_r1.0_107_4_2.bin of=/dev/disk1 bs=512 seek=2080
sudo dd /dev/disk1 if=iram_Type_A_T1040_r1.0.bin of=/dev/disk1 bs=512 seek=2336

 

I chose a block format of 512 based on the answer in the linked post that the u-boot block is 2048 blocks and 1MB, hence 512KB blocks.

 

I'm suspicious that the u-boot environment is not landing in the correct location. Looking at the u-boot-sd-xxx.bin it looks around offset 0x00012380

 

00012380: 0000 0048 7364 7862 696d 0000 626f 6f74  ...Hsdxbim..boot
00012390: 636d 643d 7365 7465 6e76 2062 6f6f 7461  cmd=setenv boota
000123a0: 7267 7320 726f 6f74 3d2f 6465 762f 7261  rgs root=/dev/ra

 

Any suggestions?

Outcomes