OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Joshp on March 13, 2004, 03:27:12 pm
-
How do you mount a JFFS2 filesystem on a linux box. I relleay want to be able to mount the OZ
initrd.bin file and change some things around. But so fair I havent been able to.
JP
-
I don\'t know (I know I saw a thread about that somewhere, but I really can\'t remember where...), but if you find out how to make changes to a such an initrd, please tell me how you do it, i\'d really like to do that as well...
Cheers
Philipp
-
Google for \'mtdblock mtdram jffs2\'
-
Ok I am running Slackware 9.1 with kernel 2.4.22
cd /usr/src/linux (or where ever you kernel src is)
make menuconfig
Under:
Memory Technology Devices (MTD) mark as a module:
Memory Technology Device Support
MTD partitioning support
MTD concatenating support
Direct char devive acess to MTD devices
Caching block device access to Mtd devices
Now under self-contained MTD device drivers mark as a module:
Test drivers using RAM
MTD emulation using block device.
Now go under file system on the main menu and make sure that JFFS2 support is marked as a module.
Now exit menuconfig and run:
make dep && make modules && make modules_install
You will need to up date your modules by ether running the module rc script are rebooting.
Now to mount the image:
modprobe mtdcore
modprobe mtdram total_size=32768 erase_size=256
modprobe mtdblock
modprobe jffs2
mkdir /dev/mtdblock
cd /dev/mtdblock
mknod 0 b 31 0
mknod 1 b 31 1
mknod 2 b 31 2
dd if=initrd.bin of=/dev/mtdblock/0
mount -t jffs2 /dev/mtdblock/0 /mnt/ozimage/
Ok ozimage is now mounted.
JP