AnsweredAssumed Answered

sd_boot cmd missing in uboot_ls1021atwr_sdcard_ifc.bin

Question asked by Elias Bitbaker on Jan 2, 2020
Latest reply on Jan 22, 2020 by Elias Bitbaker

Guys,

 

I have a standalone ls1021a and external eMMC. I need build a uboot that goes to my eMMC.

 

I used

flex-builder -c uboot -m ls1021atwr -b sd

 

to create files under

/build/firmware/u-boot/ls1021atwr:

 

I then used uboot_ls1021atwr_sdcard_ifc.bin

I tried to flash the bin image into the eMMC using CodeWarrior

 

I realized that in uboot_ls1021atwr_sdcard_ifc.bin 

bootcmd=run distro_bootcmd; run sd_bootcmd; env exists secureboot && esbc_halt;

there is no sd_bootcmd variable that is defined after it says sd_bootcmd not defined (How to define this please hlep)

 

From the NXP sd card image I checked the uboot variable says that

sd_bootcmd=echo Trying load from SD ..;mmcinfo && mmc read $load_addr $kernel_addr_sd $kernel_size_sd && env exists secureboot && mmc read $kernelheader_addr_r $kernelhdr_addr_sd $kernelhdr_size_sd && esbc_validate ${kernelheader_addr_r};bootm $load_addr#$board

 

But does not exist in uboot_ls1021atwr_sdcard_ifc.bin 

 

(1)How am I able to fix this

(2) How do I know what is the right kernel address I am using:

kernel_addr=0x61000000
kernel_addr_r=0x81000000
kernel_addr_sd=0x8000
kernel_size=0x2800000
kernel_size_sd=0x14000
kernelhdr_addr_sd=0x4000
kernelhdr_size_sd=0x10
kernelheader_addr=0x60800000
kernelheader_addr_r=0x80200000
kernelheader_size=0x40000

 

(3)How am I able to recompile the uboot to have those no exist variables

Outcomes