Hello All,

I have been trying to mount android_root.img as ubifs image, but I got an error which I don't know how to solve it. hope it can be solved by some experts here.

Backgroud information:

SABRE-AI NAND Image Description
u-boot-mx6q-nand.bin The bootloader (with padding) for i.MX 6Dual/6Quad SABREAI
NAND boot
u-boot-mx6dl-nand.bin The bootloader (with padding) for i.MX 6DualLite SABRE-AI
NAND boot
u-boot-mx6solo-nand.bin The bootloader (with padding) for i.MX 6Solo SABRE-AI
NAND boot
NAND/boot.img Boot Image for NAND
NAND/android_root.img System Boot Image
NAND/recovery.img Recovery Image

Code:
cat fstab.freescale
# Android fstab file.
#<src>                                                  <mnt_point>         <type>    <mnt_flags>                                                                         <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

# below is for ubi support, uncomment to support ubifs(NAND)
ubi0:system	/system		ubifs 	ro					wait
ubi0:data       /data           ubifs   nosuid,nodev,nodiratime,noatime         wait
ubi0:cache      /cache          ubifs   nosuid,nodev                            wait
ubi0:device     /device         ubifs   nosuid,nodev                         wait
Method to mount android_root.img:
Code:
modprobe mtd
 modprobe mtdblock
modprobe nandsim first_id_byte=0xec second_id_byte=0xd5 third_id_byte=0x51 fourth_id_byte=0xa6  //- 2GiB, 4096 bytes page.
dd if=rootfs.img of=/dev/mtdblock0 bs=2048
ubiattach /dev/ubi_ctrl -m 0 -O 4096
mount -t ubifs /dev/ubi0_0 ./android_root
mount: wrong fs type, bad option, bad superblock on /dev/ubi0_0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

 dmesg|tail
[ 9831.015409] UBIFS error (pid 4059): validate_sb: LEB size mismatch: 516096 in superblock, 253952 real
[ 9831.015452] UBIFS error (pid 4059): validate_sb: bad superblock, error 1
[ 9856.930386] UBIFS error (pid 4062): validate_sb: LEB size mismatch: 516096 in superblock, 253952 real
[ 9856.930393] UBIFS error (pid 4062): validate_sb: bad superblock, error 1

Now, how do I deal with this problem? did anyone encounter similar problem?

Best Regards