Writing JFFS2 to Samsung K9F1208U0B NAND on AMCC PPC405EX/r Kilauea/Haleakala
Josh Boyer
jwboyer at linux.vnet.ibm.com
Fri Feb 29 09:17:07 EST 2008
On Thu, 28 Feb 2008 16:30:38 -0800
Grant Erickson <gerickson at nuovations.com> wrote:
> I am attempting to create and write a JFFS2 file system to the Samsung
> K9F1208U0B NAND part on an AMCC PPC405EXr "Haleakala" board and seem to be
> running into a hurdle or two.
>
> Given the Samsung K9F1208U0B's 16 KiB erase block and 512 B page sizes, I
> invoked mkfs.jffs2 with:
>
> % mkfs.jffs2 -n -b -s 512 -e 16 KiB -d /export/haleakala -o haleakala.img
>
> I then erase the device with 'flash_eraseall' using the '-j' option:
>
> # flash_eraseall -j /dev/mtd9
> Erasing 16 Kibyte @ 3f94000 -- 99 % complete. Cleanmarker written at
> 3f94000.
>
> However, when I attempt to lay down the file system image with nandwrite
> (again, using the '-j' option), I get a driver error:
>
> # nandwrite -j /dev/mtd9 haleakala.img
> MEMSETOOBSEL: Inappropriate ioctl for device
This has been broken since the ECC rework went into the kernel. I hear
there are patches floating around to fix it. Maybe they will magically
appear today...
josh
More information about the linux-mtd
mailing list