Error: can't get kernel image

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

Error: can't get kernel image

Jump to solution
7,926 Views
yusufalti333
Contributor IV

Hello nxp community, I accidently tried to write NAND flash u-boot.bin file to Nor flash alternate bank area which is 0xEBF40000 in my T1042D4RDB-64b board.

Then I rewrote NOR flash u-boot.bin to 0xEBF4000. U-boot is working but kernel image is not loading. I tried to rewrite kernel uImage but it did not work.

Prompt message is::

WARNING: adjusting available memory to 30000000                                                                    
Wrong Image Format for bootm command                                                                               
ERROR: can't get kernel image!

printenv prompt message is::

baudrate=115200
bdev=sda3
bootargs=root=/dev/nfs rw nfsroot=192.168.10.50:/home/hwlab/Desktop/nfshare ip=192.168.10.99:192.168.10.50:192.1680
bootcmd=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;bootm e8020000 e9300000 e880000
bootdelay=3
bootfile=uImage
c=ffe

consoledev=ttyS0
eth1addr=00:04:9F:05:B7:7F
eth2addr=00:04:9F:05:B7:80
eth3addr=00:04:9F:05:B7:81
eth4addr=00:04:9F:05:B7:82
eth5addr=00:04:9f:8e:7b:b4
ethact=FM1@DTSEC1
ethaddr=00:04:9F:05:B7:7E
ethprime=e1000#0
fdtaddr=2000000
fdtfile=uImage-t1042d4rdb.dtb
fileaddr=2000000
filesize=9a83
fman_ucode=eff00000
gatewayip=192.168.10.4
hvboot=setenv bootargs console=$consoledev,$baudrate config-addr=0xfe8900000;bootm 0xfe8700000 - 0xfe8800000
hwconfig=fsl_ddr:bank_intlv=cs0_cs1
ipaddr=192.168.10.99

loadaddr=1000000                                                                                                   
netdev=FM1@DTSEC4                                                                                                  
netmask=255.255.255.0                                                                                              
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hosr
nohvboot=tftp 1000000 $dir/$bootfile;tftp 5000000 $dir/$ramdiskfile;tftp 2000000 $dir/$fdtfile;setenv bootargs roo;
othbootargs=ramdisk_size=1000000                                                                                   
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfiler
ramdiskaddr=5000000                                                                                                
ramdiskfile=fsl-image-core-t1042d4rdb.ext2.gz.u-boot                                                               
rootpath=/opt/nfsroot                                                                                              
serverip=192.168.10.50                                                                                             
tftpflash=tftpboot $loadaddr $uboot && protect off $ubootaddr +$filesize && erase $ubootaddr +$filesize && cp.b $le
uImage_addr=0xEE020000                                                                                             
uboot=u-boot.bin                                                                                                   
ubootaddr=0xeff40000 

Any idea ?

Labels (1)
0 Kudos
1 Solution
7,469 Views
vinothkumars
Senior Contributor IV

Hi,

Check and Set the proper address in bootm command

bootcmd=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0xe9300000;setenv fdtaddr 0xe8800000;setenv loadaddr 0xe8020000;bootm $loadaddr $ramdiskaddr $fdtaddr

Thanks,

VinothS,

Regards,
Vinothkumar Sekar

View solution in original post

0 Kudos
3 Replies
7,470 Views
vinothkumars
Senior Contributor IV

Hi,

Check and Set the proper address in bootm command

bootcmd=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0xe9300000;setenv fdtaddr 0xe8800000;setenv loadaddr 0xe8020000;bootm $loadaddr $ramdiskaddr $fdtaddr

Thanks,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos
7,468 Views
yusufalti333
Contributor IV

Should I write bootm $loadaddr $ramdiskaddr $fdtaddr each time ?  It was loading kernel automatically before i mess up with memory.

0 Kudos
7,469 Views
vinothkumars
Senior Contributor IV

No need to set each time. Once you set the env. You needs to save the env by using "saveenv" command.

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos