NGW100 Error: UBoot Can’t Get Kernel Image!
May 23rd, 2009 by TheKidd
I did run into a bit of a problem after restoring u-boot and the root filesystem with the JTAG ICE. It appears that the version the board shipped with was setup to boot the linux kernel off of /dev/mtdblock1 at /uImage but the latest build, 2.3.0, had the kernel located at /boot/uImage. I was constantly getting the following error from u-boot:
Wrong Image Format for bootm command
ERROR: can’t get kernel image!
UBoot>
After a bit of Googling, I found a blog on the subject which suggested the following:
Booting By Internal Flash
To boot the kernel and root file system off of the internal flash (/dev/mtd1), get into u-boot and enter this:
Uboot> askenv bootcmd
Please enter ‘bootcmd’: fsload /boot/uImage; bootm
Uboot> askenv bootargs
Please enter ‘bootargs’: console=ttyS0 root=/dev/mtdblock1 rootfstype=jffs2
Uboot> saveenv
Uboot> bootm
Booting By SD Card
To boot the kernel and root file system off of SD card (/dev/mmcblk0p1), get into u-boot and enter this:
Uboot> askenv bootcmd
Please enter ‘bootcmd’: mmcinit; ext2load mmc 0:1 0×103000000 /boot/uImage; bootm 0×103000000
Uboot> askenv bootargs
Please enter ‘bootargs’: console=ttyS0 root=/dev/mmcblk0p1 rootwait
Uboot> saveenv
Uboot> bootm
You can test to see if u-boot can read the card by issueing the command ext2ls mmc 0:1. It should list all of the files on the card.
I did notice while I was looking around that if you have problems on the NGW100 board with the above SD u-boot settings, that it is recommended to try setting rootwait to rootwait=1. Hope that will help someone else.
[...] Note: The first time I tried to boot the root filesystem, I got some unexpected errors. For more information check here. [...]
[...] Note: The first time I tried to boot the root filesystem, I got some unexpected errors. For more information check here. [...]