MTD/JFFS2 causes libc.so to break(?)
Manu Rao
MRao at AlienTechnology.com
Tue May 6 18:09:31 EDT 2008
Hi all,
I have a linux 2.6.22.2 kernel running on an AT91SAM9260 processor board, with debian filesytem stored on a Samsung NAND flash.
When I setup the filesystem by untarring a tarball into /dev/mtblock0, everything is fine.
When I setup the filesystem by using a jffs2 image (with either uboot, nandwrite(in linux) or preprogrammed ) , it boots fine once( or a couple of times) and then gives the following error:
/bin/sh: error while loading shared libraries: /lib/libc.so.6: undefined symbol: __`À, version GLIBC_2.0
I have verified (using md5-sum) that the library remains the same. I have a soft link to the library like so:
ls -la libc.so.6
lrwxrwxrwx 1 root root 13 May 5 2008 libc.so.6 -> libc-2.3.2.so
ls -la libc-2.3.2.so
-rwxr-xr-x 1 root root 1159708 Mar 5 2007 libc-2.3.2.so
1) Could it be that my mkfs.jffs2 is the wrong version (mkfs.jffs2: revision 1.50 ) ?? What version would I need to compile a FS for a 2.6.22 kernel ?
2) Am I passing the wrong params to mkfs.jffs2? I invoke it like so:
mkfs.jffs2 -n -l -s 512 -p 16KiB -e 16 KiB -o jffs2.img -d deb_root
Does the page size need to include the oob area???
My Flash is K9F1208U0B, which has 512 byte pages, and 16 KiB erase blocks.
Any and all help greatly appreciated
Manu Rao
Misc info:
uname -a == Linux version 2.6.22.2.alien.x650 (mrao at mhlxrh4rfe) (gcc version 4.0.1) #2 Fri May 2 17:32:13 PDT 2008
More information about the linux-mtd
mailing list