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

Re: [microblaze-uclinux] jffs2




kbb@xxxxxxxxxxxxxxxx wrote:
I have a single 8Mx16bit flash on a microblaze.  Can I set up a JFFS2 root
file system on it?

Sure, if you can get MTD to recognise it, and can get JFFS2 to mount a volume on that.

If so how do I get the user part to be writable when using cramfs as the
onter part?

Basically you need to bootstrap it. Create a jffs2 root filesystem image using the standard jffs2 utilities.

Boot up with a normal cramfs root, erase the desired MTD flash partition, and copy the jffs2 image into that partition. Mount it on /var/tmp or similar to make sure all is good.

Then, reboot the kernel passing the "root=/dev/mtdblockN" parameter, where N is the appropriate partition number.

Once this is working, you will want to adjust the build procedure so that the cramfs image is not appended to the end of the kernel image.

As I said, this is not an automatically supported mode in PetaLinux right now, so you'll have a small amount of work to do to get it going.

Google around for jffs2 root and you'll get a bit of a picture of what is required.

Regards,

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/