LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Kernel image corrupted : Wrong Image Format for bootm command ERROR: can't get kernel (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/kernel-image-corrupted-wrong-image-format-for-bootm-command-error-cant-get-kernel-880473/)

blink182 05-13-2011 03:11 AM

Kernel image corrupted : Wrong Image Format for bootm command ERROR: can't get kernel
 
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.


All times are GMT -5. The time now is 11:53 PM.