[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Microblaze with root rw mode



Hi Marco,

Marco Cavallini wrote:

> my platform is uClinux Insight/Memec S3MB1500 board (Spartan 3)
> I am puzzled about how to activate a root filesystem in read/write mode
> instead of the usual romfs read only using

Is your intention to have the root filesystem stored on flash or some
other persistent storage?

For /etc, one simple way is to create symlinks into from /etc/* to
/etc/config/*, and use flatfsd to manage and store the files in /etc/config.

To mount the whole root fs as R/W, you could use JFFS2

Pass command line options to the kernel e.g.

rootfstype=jffs2 root=/dev/mtdblockN

(where mtdblockN = whichever MTD block device actually has your root
filesystem).

google for jffs2 root and you'll get lots of hints.

The tricky part is bootstrapping the system - you need to get the root
filesystem image into the flash first, before you can boot from it.  One
way would be to boot first with a normal romfs, and copy a jffs2 image
into the flash partition.  Then, reboot with the rootfs / rootfstype
parameters to boot from the flash.

Hope this helps,

John


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/