Editing Modifying the root image

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 118: Line 118:
== Making the actual jffs2 image ==
== Making the actual jffs2 image ==
-
''This was done on a Ubuntu Hardy system and was only done to make an initfs image successfully. I can't ensure this will work (though in theory, it should do) for creating an rootfs.''
+
''This was done on a Ubuntu Hardy system and was only done to make an initfs image successfully. I can't ensure this will work for creating an initfs.''
<ol><li>Install mtd-tools which contains the required mkfs.jffs2.</li></ol>
<ol><li>Install mtd-tools which contains the required mkfs.jffs2.</li></ol>
:<pre> sudo apt-get install mtd-tools </pre>
:<pre> sudo apt-get install mtd-tools </pre>
<ol start="2"><li>Run:</li></ol>
<ol start="2"><li>Run:</li></ol>
-
:<pre> sudo mkfs.jffs2 -r myRootImage -o myRootImage.jffs2 -e 128 -l -n </pre>
+
:<pre> sudo mkfs.jffs2 -r ''myRootImage'' -o ''myRootImage.jffs2'' -e 128 -l -n </pre>
Where ''myRootImage'' is the root of your new filesystem and ''myRootImage.jffs2'' is the name of the output file. -e 128 specifies a erase size of 128 KiB. 128 KiB is the correct erase size for the initfs. It is correct for an rootfs too.
Where ''myRootImage'' is the root of your new filesystem and ''myRootImage.jffs2'' is the name of the output file. -e 128 specifies a erase size of 128 KiB. 128 KiB is the correct erase size for the initfs. It is correct for an rootfs too.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)