[ELDK] can't un linuxrc on MTD root file system

jean-francois simon jfs at themis.com
Mon Apr 7 17:09:06 CEST 2008


Hi,

I am running the eldk on a powerpc 64bit based design from Pasemi. it is
very close to their reference platform (electra) except that we have
added a NAND flash, from which we intend to boot. to begin with i have
initiazed the NAND with the image file system binary from the eldk.

i have written a small MTD NAND driver and it seems to work ok, as I
can mount the NAND ok when booting from NFS. but when i try to boot from
the NAND, the kernel complains that it can find linuxrc or that it got a
bus signal (11) running it.

In the image i found strange that linuxrc was a link to ../busybox/bin
and not to ./bin/busybox. i have created a new one, but that didn't work
eitheir.

note that i am booting a 2.6.24 kernel with the pasemi kernel patches. i
also tried a similarly patched 2.6.23...same problem.

how could i debug this one?

thansks a lot for any idea.
-jfs



1/ when booting from NFS

-bash-3.2# !mou
mount -t jffs2 /dev/mtdblock0 /mnt
jffs2_scan_inode_node(): CRC failed on node at 0x00a00fc8: Read
0xffffffff, calculated 0x1eb639a4
Empty flash at 0x02341e04 ends at 0x02342000
JFFS2 notice: (659) check_node_data: wrong data CRC in data node at
0x02341db0: read 0xac142184, calculated 0xae89bd1d.
-bash-3.2#
-bash-3.2#
-bash-3.2#
-bash-3.2# cd /mnt
-bash-3.2#
-bash-3.2#
-bash-3.2#
-bash-3.2# ls
bin  etc  home  lib64    linuxrc2  lost+found  sbin  usr
dev  ftp  lib   linuxrc  linuxrc3  proc        tmp   var
-bash-3.2# mkdir root
-bash-3.2#
-bash-3.2#
-bash-3.2# ls -l
total 2
drwxr-xr-x 2 root root   0 Nov 20  2007 bin
drwxr-xr-x 2 root root   0 Mar 31  2008 dev
drwxr-xr-x 5 root root   0 Mar 31  2008 etc
drwxr-xr-x 2  512  512   0 Sep  2  2007 ftp
drwxr-xr-x 2  512  512   0 Sep  2  2007 home
drwxr-xr-x 2 root root   0 Nov 20  2007 lib
drwxr-xr-x 3 root root   0 Nov 20  2007 lib64
lrwxrwxrwx 1  512  512  14 Jan  1  2006 linuxrc -> ../bin/busybox
lrwxrwxrwx 1 root root  13 Jan  1  2006 linuxrc2 -> ./bin/busybox
-rwxrwxrwx 1 root root 153 Jan  1 13:01 linuxrc3
drwx------ 2 root root   0 Sep  2  2007 lost+found
dr-xr-xr-x 2 root root   0 Jan  1 13:00 proc
drwxr-xr-x 2 root root   0 Jan  1 13:02 root
drwxr-xr-x 2 root root   0 Nov 20  2007 sbin
drwxrwxrwt 2 root root   0 Mar 31  2008 tmp
drwxr-xr-x 4  512  512   0 Sep  2  2007 usr
drwxr-xr-x 4  512  512   0 Sep  2  2007 var
-bash-3.2# chown -R root *
-


2/ when trying to boot from NAND MTD device:

NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB
3,3V 8-bit)
Creating 1 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00c00000-0x04000000 : "TPA-XMC NAND Flash partition 1"
.....snip....
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 384k freed
JFFS2 notice: (393) check_node_data: wrong data CRC in data node at
0x02341db0: read 0xac142184, calculated 0xae89bd1d.
linuxrc[1]: unhandled signal 11 at 0000000000011020 nip 0000000020000ad8
lr 00000000200008e4 code 30001
init has generated signal 11 but has no handler for it
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 180 seconds..






More information about the eldk mailing list