Hi,
We are trying to Boot from SD card for #T4240RDB# , using u-boot version : 2016.09+fslgit-
With the reference of QORIQ-SDK-2.0-IC-REV0.pdf (1927 page) ,generated u-boot-spl.bi
u-boot.bin, u-boot-with-spl-pbl.bin ,u-boot-spl.bin : generated from 2016.09+fslgit-r0
PBL.bin : generated from codewarrior tool by importing rcw from the given path
/QoriQ_SDK2.0/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb/tmp/work/t4240rdb-fsl-linux/rcw/git-r0/git/t4240rdb/SSFFPPH_27_55_1_9
---------------------------------------------------
Case 1 :
Loaded u-boot-with-spl-pbl.bin
Commands used to build T4240RDB SD card u-boot
source <path>
make T4240RDB_SDCARD_defconfig
make
Loaded the images into SD card using the below commands
tftp 1000000 u-boot-with-spl-pbl.bin
mmc write 1000000 8 658
#block_number_uboot_with_spl_pbl = hex(((831216 - 1) /512) +1) == 658
Image didn't get booted after changing switch configuration to boot from SD card.
-----------------------------------------------------
Case 2:
Loaded PBL.bin & u-boot.bin has been generated from CodeWarrior .
Steps followed to generate pbl from code warrior
Boot Configuration->PBI_src=0b0110 - SD/MMC
Boot Configuration->BOOT_LOC = 0b10000 -Memory Complex 1
Appended the following commands PBI commands
#Initialize CPC1
09010000 00200400
09138000 00000000
091380c0 00000100
#512KB SRAM
09010100 00000000
09010104 fff80009
09010f00 08000000
#enable CPC1
09010000 80000000
#Configure LAW for CPC1
09000d00 00000000
09000d04 fff80000
09000d08 81000012
#Initialize eSPI controller
09110000 80000403
09110020 2d170008
09110024 00100008
09110028 00100008
0911002c 00100008
#Configure alternate space
09000010 00000000
09000014 ff000000
09000018 81000000
#Flush PBL data
09138000 00000000
091380c0 00000000
Selected ACS File (data from binary file)
offset : fd8000
loaded uboot-spl .bin
Flush
Wait
If I'm not wrong , only eSPI and SRAM are getting initialized in the above commands.
Dumped the images into board with following commands.
tftp 100000 PBL.bin
mmcinfo
mmc write 100000 8 block_number
mmc read 100000 8 361
md 100000
#block_number_pbl = hex(((184608 - 1) /512) +1) == 361
tftp 100000 u-boot.bin
mmc write 100000 208 block_number
mmc read 200000 208 1112
md 200000
#block_number_uboot = hex(((569072 - 1) /512) +1) == 1112
I'm able to read and write from mmc in both cases but still couldn't boot from SD card after configuring SW3[4-1] ON and SW2[1] OFF on T4240 EVM board
My questions are :
1. In the reference document there is no initialization for SD card ?
2. Is there any requirement of partition in Linux ?
3. Where the u-boot-spl.bin's offset will be stored ?
4. Found few u-boot versions doesn't support SD card booting. Can u please provide us the SD card booting supporting u-boot version info ?
Pls do let me know how can I proceed further to boot from SD card.
Thanks and Regards,
Venkat