[Shr-User] UBI success story

Martin Jansa martin.jansa at gmail.com
Wed Jan 6 02:21:34 CET 2010

On Mon, Jan 04, 2010 at 02:37:14PM +0100, Christoph Mair wrote:
> > Ah great!, thanks
> Remember that ubi0:rootfs specifies the volume name. The current ubinize.cfg 
> sets this name to om-gta02-rootfs, so change this to ubi0:om-gta02-rootfs

I've removed some UBI debug after max_posedon request and those 2
success stories..

With disabled BGT it seems a bit better also here.

Today I successfully booted ubifs rootfs with Qi too (I'm using 2.6.32,
max_posedon seems happy with standard shr kernel - 2.6.29-rc3). 2.6.32
won't suspend yet (WSOD) but its imho a bit faster.

just after few steps:

1) booting 2.6.32 kernel on uSD
download uImage to /boot 
download modules and untar it to /
update uImage link in /boot

2) flash image
flash_eraseall /dev/mtd6
nandwrite -p /dev/mtd6 shr-full-eglibc-ipk--20100105-om-gta02.rootfs.ubi
(almost the same ubinized image will finish build in few mins as

3) then test if it works 
ubiattach /dev/ubi_ctrl -O 2048 -m 6
mount -t ubifs ubi0:om-gta02-rootfs /media/om
ls /media/om

3) update Qi with dfu-util
qi built here
is still using jffs2 in kernel params
but you can you binary from here
or build Qi yourself with bitbake from latest shr/merge branch + this patch:

4) flash 2.6.32 also to NAND

5) boot it, test it, play with it

max_posedon provided some bonnie++ results from UBI, please run bonnie++
on jffs2 if you have jffs2 partition (bonnie++ is now in shr-unstable feeds).

<snip from="http://pastebin.ca/1739342">
root at localhost / $ bonnie\+\+ -u 0:0
Using uid:0, gid:0.
Writing with putc()...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version 1.03c       ------Sequential Output------ --Sequential Input-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
localhost      300M  1512  72  4878  60  2696  58  1587  98  5519  96
640.6  96
                    ------Sequential Create------ --------Random
                    -Create-- --Read--- -Delete-- -Create-- --Read---
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
/sec %CP
                 16   889  98  2619  99   802  95   883  97 15728  87
640  98



uin:136542059                jid:Martin.Jansa at gmail.com
Jansa Martin                 sip:jamasip at voip.wengo.fr 

More information about the community mailing list