Author Topic: Using mkfs.jffs2  (Read 1962 times)

boosalis

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://
Using mkfs.jffs2
« on: February 20, 2004, 03:26:40 pm »
Can anyone provide some guidence in how to  create a jffs2 file system from a modifed Zaurus file initrd.bin.  Here is what I have done so far:

Bumping along in the dark I have been able to get the ROM off a 5600 then copy and mount the file system \"initrd.bin\" to my desktop

I made two minor changes to the logos as a test (Both in /usr/Qtopia.rom/pics).  This changd the size of initrd.bin by a few bytes when compared to the original.


Then I ran
      /opt/Qtopia/bin/mkfs.jffs2 -d \"dirName\" -o initrd.bin

After migrating this and other files to the compact flash, the boot failed.  

Do I have to  set the padding option on the mkfs.jffs2 utility.  If so, then to what

Do I need to modify the parameters in the update.pro file.

Any help is most appreciated.

Thank you
David
Zaurus 6000 with expansion jacket

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Using mkfs.jffs2
« Reply #1 on: February 20, 2004, 06:56:56 pm »
Don\'t know about creating a new initrd.bin, but do you know you can remount / on your 5600 as read/write, change whatever and then remount it read only again? Just do

mount / -o rw,remount

and then this to get it back to read only:

mount / -o ro,remount

I think there\'s about 700KB of flash left to play around with by default. I used this method to put Opera 7 in the ROM, which is about 400KB bigger than Opera 6.

Probably easier than creating your own initrd.bin just to change a couple of images.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

boosalis

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://
Using mkfs.jffs2
« Reply #2 on: February 20, 2004, 08:51:50 pm »
Tummis.  
Will give it a try.  Thanks for the suggestion.  
-David
Zaurus 6000 with expansion jacket