Forum Discussion
Altera_Forum
Honored Contributor
21 years agoR/W Filesystem?
I'm currently running the stock FS, built following the instructions in the Getting Started manual. Is there any quick way to make this FS read/write? Changing the kernel command line str...
Altera_Forum
Honored Contributor
21 years agoHi Ryan,
Take a look at the code in drivers/mtd/maps ... I don't have the source available right now, but I believe the file you want to look at is microtronix.c.Using Microtronix development partition definition
Creating 2 MTD partitions on "Microtronix map":
0x00200000-0x00800000 : "romfs"
0x00000000-0x00200000 : "loader/kernel" I'm not sure which board you're using ... but you can add your own partition (if space allows). For testing purposes, a small partition is all you'll need ... you might be able to grab a meg from the "romfs" partition ;-) Enable JFFS2 in the kernel config. You can boot as you are already doing ... then mount your partition. You might want to add /mnt/flash (or something like that) to your filesystem to use as a mount point ... and you'll need a block device inode with the appropriate major/minor numbers as well. It would also be handy if you erase the appropriate sectors prior to first use ;-) Once the partition is mounted you can write whatever you want. Regards, --Scott