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 | + | ''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.