Hi. I'm trying to boot Android (w/ Linux-2.6.31) on a UBIFS partition.

I created previously one UBI volume:

  $ flash_eraseall /dev/mtd3
  $ ubidetach /dev/ubi_ctrl -m 3
  $ ubiformat /dev/mtd3 -y
  $ ubiattach /dev/ubi_ctrl -m 3
  $ ubimkvol /dev/ubi0 -N system -m

  $ mount -t ubifs ubi0:system /mnt/ubi

     # copied the rootfs

  $ umount /mnt/ubi

Next I defined my kernel cmdline on u-boot:

$ setenv bootargs 'console=ttymxc0,115200 androidboot.console=ttymxc0
rootfstype=ubifs ubi.mtd=3 init=/bin/sh di1_primary'

but I can't mount...

UBIFS error (pid 1): ubifs_get_sb: cannot open "/dev/root", error -22
List of all partitions:
1f00            3072 mtdblock0 (driver?)
1f01            5120 mtdblock1 (driver?)
1f02            1024 mtdblock2 (driver?)
1f03          102400 mtdblock3 (driver?)
1f04           10240 mtdblock4 (driver?)
1f05           10240 mtdblock5 (driver?)
1f06          392192 mtdblock6 (driver?)
No filesystem could mount root, tried:  ubifs

-22 means that I using in someway an 'Invalid argument'. A tried some
variations on cmdline (i.e: root=/dev/mtdblock3).

I .config is defined with:

# UBI - Unsorted block images
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_RESERVE=1
CONFIG_MTD_UBI_DEBUG=y
CONFIG_MTD_UBI_DEBUG_MSG=y
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
(...)

I considered two things. 1) I'm using a wrong rootfs... 2) I'm passing
an invalid cmdline param.

Any points?

BR

--tm

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to