Talk:UBIFS initial experiments: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
I have one more suggestion.
Hi, I'd like to comment this:
* UBI is taking an extremely long time (~50s) to attach to the MTD device on the XO I am currently using for this testing.
UBI attach time does scale linearly w.r.t flash size, however the 50s seems wrong. According to this, we should only
take about 2 seconds.


Currently, you create a JFFS2 partition containing /boot.
I'm sure what you do is you erase the partition, then attach it to UBI. In this case UBI first read your partition and makes sure it contains all 0xFF bytes, which means it is empty, then it starts formatting this partition - it erases all eraseblocks again and writes the Erase counter and VID headers. This takes long time. If you attach it for the second time, it'll be fast, because it won't format it.
But at the end, when the device has booted, I do not see
Please, glance here: http://www.linux-mtd.infradead.org/faq/ubi.html#L_format_mtd
any JFFS2 partition mounted. So it seems you use this JFFS2
Please, also glance here: http://www.linux-mtd.infradead.org/faq/ubi.html#L_ubierase
partition to boot, then you do not use it.


UBIFS image contains a copy of /boot. I thing it is not a
Also, make sure you do not have UBI debugging enabled. It slows down things a lot. The same is true for UBIFS.
good idea to keep 2 copies. Probably it is better to have
/boot on JFFS2, and remove /boot directory from UBIFS at
all.


OFW will unlikely be able to mount UBIFS because it is
HTH,
rather complex and would need a lot of work. So probably
Artem Bityutskiy.
it is OK to have 2 file-systems.

Latest revision as of 09:05, 20 October 2008

I have one more suggestion.

Currently, you create a JFFS2 partition containing /boot. But at the end, when the device has booted, I do not see any JFFS2 partition mounted. So it seems you use this JFFS2 partition to boot, then you do not use it.

UBIFS image contains a copy of /boot. I thing it is not a good idea to keep 2 copies. Probably it is better to have /boot on JFFS2, and remove /boot directory from UBIFS at all.

OFW will unlikely be able to mount UBIFS because it is rather complex and would need a lot of work. So probably it is OK to have 2 file-systems.