[Buildroot] Writable EXT2 fs on dataflash (using MTD)

Jonathan Nalley buildroot at bluebot.org
Mon Oct 15 14:56:18 UTC 2007


You can make sure that the flash is unlocked by running:

flash_unlock /dev/mtd/x

(Where /dev/mtd/x is the character device corresponding to the mtd in
question).

"flash_unlock" is part of the mtd tools and can be selected under package
selection in the buildroot.

You might have better luck using jffs2 instead of ext2.  The jffs2 file
system is intended for MTD devices, and uses "wear-leveling" to distribute
writes over the entire flash part.

Regards,

Jon Nalley

On 10/14/07, Jorge S. <jorgesolla at gmail.com> wrote:
>
> Hi all,
>
> I've created a rootfs for my AT91RM9200 based custom board and i'm unable
> to mount the ext2 fs on a writable way.
>
> I'm using an AT45DB64 spi dataflash as an MTD device and i've defined 3
> partitions using this kernel bootargs:
>
> console=/dev/ttyS0,115200 root=/dev/mtdblock2 mtdparts=AT45DB642.spi0:168960(boot)ro,2162688(kernel),-(rootfs)rw
> rootfstype=ext2 mem=32M
>
> After booting the kernel always says:
>
> VFS: Mounted root (ext2 filesystem) readonly.
>
> Even if i try a "mount -o remount,rw /" from the busybox shell, i get this
> message:
>
> mount: /dev/root is write-protected, mounting read-only
>
> The "rootfs" partition is defined "writable" at the u-boot code, so i
> think i can assume the flash is Unlocked.
>
>
> Any ideas? Did i miss something when building the Rootfs? any option?
>
> Thanks in advance.
>
>
>
>
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/buildroot/attachments/20071015/5f0c5d54/attachment-0002.htm 


More information about the buildroot mailing list