Whenever I try to reboot my linux system I get the error message
Code:
Wrong Image Format for bootm command
ERROR: can't get kernel
and fall back to the uboot prompt. I suspect the filesystem overwrote my kernel's partition coz everything works fine if I mount the root filesystem as read-only .
My uboot environment :
Code:
U-Boot> printenv
bootdelay=3
baudrate=115200
boot_addr=0x21500000
bootcmd=run boot
ker=nand read 21500000 200000 160000
boot=run ker; bootm 21500000
bootargs=mem=64M console=ttySAC0,115200 noinitrd root=/dev/mtdblock1 ro rootfstype=jffs2
My rcS script :
Code:
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prelevel
# mount proc
mount proc /proc -t proc
#remount filesystem as read-write
mount /dev/root / -o remount,rw
# insmod sdio.ko
if [ -f /usr/modules/unifi_sdio.ko ]; then
insmod /usr/modules/unifi_sdio.ko
else
echo -e "unifi_sdio.ko not exits !!!!"
fi
I would appreciate your help.