[U-Boot-Users] Problems with root JFFS2 on NAND Flash

Stuart Wood
2008-06-13T13:58:28Z

I'm having some new problems with my jffs2 root file system when it is
mounted the first time from small page nand flash.
I'm pretty sure its some sort of configuration problem but the web
hasn't helped so far.

NAND Flash,
erase block = 0x4000, page size

The jffs2 image is being built with this command from Buildroot:

# Use fakeroot so mkfs.jffs2 believes the previous fakery
echo "/home/stuart/ArmLinux/buildroot/toolchain_build_arm_nofpu/mtd_orig/util/mkfs.jffs2
-e 0x4000 -p -l -s 0x200 -n -D target/generic/device_table.txt -d
/home/stuart/ArmLinux/buildroot/build_arm_nofpu/root -o
/home/stuart/ArmLinux/buildroot/rootfs.arm_nofpu.jffs2" \
>> /opt/buildroot/_fakeroot.rootfs.arm_nofpu.jffs2
chmod a+x /opt/buildroot/_fakeroot.rootfs.arm_nofpu.jffs2
/opt/buildroot/usr/bin/fakeroot --
/opt/buildroot/_fakeroot.rootfs.arm_nofpu.jffs2
rootdir=/home/stuart/ArmLinux/buildroot/build_arm_nofpu/root
table='target/generic/device_table.txt'
mkfs.jffs2: skipping device_table entry '/dev': no parent directory!
mkfs.jffs2: skipping device_table entry '/tmp': no parent directory!
mkfs.jffs2: skipping device_table entry '/etc': no parent directory!
-rw-r--r-- 1 stuart stuart 2736128 2008-06-13 09:52
/home/stuart/ArmLinux/buildroot/rootfs.arm_nofpu.jffs2
/sbin/ldconfig -r /home/stuart/ArmLinux/buildroot/build_arm_nofpu/root
2>/dev/null

I'm using u-boot 1.3.3 to load the image like this:

--
Stuart Wood

Lab X Technologies, LLC
176 Anderson Ave.
Suite 302
Rochester, NY 14607
Phone: (585) 271-7790 x207
Fax: (585) 473.4707