Wrong image format for bootm command kernel image

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

Wrong image format for bootm command kernel image

7,855 Views
gouravjain
Contributor IV

Hi NXP experts,

want to boot uImage, rfs, and dtb file from uboot and created small command by using bootcmd but while running it throws error like,

=> run bootcmd

WARNING: adjusting available memory to 30000000

Wrong Image Format for bootm command

ERROR: can't get kernel image!

printenv log is:

FUSE_DTB=tftp $fdtaddr $dtbfile && protect off $dtb_saddr + $dtb_eaddr && erase $dtb_saddr +$dtb_eaddr && cp.b $fdtaddr $dtb_saddr +$dtb_eaddr && protect on $dtb_saddr +$dtb_eaddr

FUSE_KER=tftp $loadaddr $uImagefile && protect off $uImage_saddr + $uImage_eaddr && erase $uImage_saddr +$uImage_eaddr && cp.b $loadaddr $uImage_saddr +$uImage_eaddr && protect on $uImage_saddr + $uImage_eaddr

FUSE_LINUX= run $FUSE_KER $FUSE_RFS $FUSE_DTB

FUSE_RFS=tftp $ramdiskaddr $rfsfile && protect off $rfs_saddr + $rfs_eaddr && erase $rfs_saddr +$rfs_eaddr && cp.b $ramdiskaddr $rfs_saddr +$rfs_eaddr && protect on $rfs_saddr +$rfs_eaddr

FUSE_UBOOT=tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $loadaddr $ubootaddr $filesize && protect on $ubootaddr +$filesize && cmp.b $loadaddr $ubootaddr $filesize

baudrate=115200

bdev=sda

bootcmd=bootm $uImage_addr $rfs_addr $dtb_addr

bootdelay=10

bootfile=uImage

consoledev=ttyS0

dtb_eaddr=e88fffff

dtb_saddr=e8800000

dtb_size=a000

dtbfile=GCR.dtb.VER1

eth1addr=00:04:9F:03:40:47

eth2addr=00:04:9F:03:40:48

eth3addr=00:04:9F:03:40:49

eth4addr=00:04:9F:03:40:4a

ethact=FM1@DTSEC5

ethaddr=00:04:9F:03:40:46

ethprime=FM1@DTSEC5

fdtaddr=6000000

fman_ucode=eff00000

gatewayip=192.168.25.1

hwconfig=fsl_ddr:bank_intlv=null;usb1:dr_mode=host,phy_type=utmi;usb2:dr_mode=host,phy_type=utmi

ipaddr=192.168.25.10

loadaddr=1000000

netdev=eth0

netmask=255.255.255.0

nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr

ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr

ramdiskaddr=2000000

ramdiskfile="t104xrdb/ramdisk.uboot"

rfs_eaddr=ebefffff

rfs_saddr=e9300000

rfs_size=1f00000

rfsfile=GCR.rfs.VER1

rootpath=/opt/nfsroot

serverip=192.168.24.191

setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs

uImage_eaddr=e86fffff

uImage_saddr=e8020000

uImage_size=600000

uImagefile=GCR.uImage.VER1

uboot="u-boot-gcr.bin"

ubootaddr=0xeff40000

Environment size: 2371/8188

pls letme know where i have done wrong ?

regards,

Gourav

Labels (1)
3 Replies

3,684 Views
ufedor
NXP Employee
NXP Employee

> bootcmd=bootm $uImage_addr $rfs_addr $dtb_addr

The following environment variablea are undefined:

uImage_addr

rfs_addr

dtb_addr

3,684 Views
gouravjain
Contributor IV

Hi,

Thanks for your observation ...one more thing i want to ask how to run multiple environment variables with a single variable??

Like i want to do in uboot: run  FUSE_LINUX (where FUSE_LINUX = run $FUSE_KER && $FUSE_RFS && $FUSE_DTB).

what will be the exact syntax here ? i tried multiple combination but it didnt through.

--

Gourav

0 Kudos

3,684 Views
ufedor
NXP Employee
NXP Employee

Please refer to the U-Boot documentation at:

Documentation < U-Boot < DENX

0 Kudos