Yes, I made mistake... And finally got mounted with following method:

# modprobe mtdblock

# modprobe ubi

# modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 
fourth_id_byte=0x15

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 10000000 00020000 "NAND simulator partition 0"

# ls -la /dev/mtd*
brw-r--r-- 1 root root 31, 0 2009-12-01 18:50 /dev/mtd0
brw-rw---- 1 root disk 31, 0 2009-12-01 19:06 /dev/mtdblock0

# dd if=rootfs.jffs2 of=/dev/mtdblock0 bs=2048
74688+0 records in
74688+0 records out
152961024 bytes (153 MB) copied, 5.87334 s, 26.0 MB/s

# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (264241152 bytes, 252.0 MiB), available 0 
LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)

# ls -la /dev/ubi*
crw-rw---- 1 root root 252,  0 2009-12-01 19:06 /dev/ubi0
crw-rw---- 1 root root 252,  1 2009-12-01 19:06 /dev/ubi0_0
crw-rw---- 1 root root  10, 58 2009-12-01 19:05 /dev/ubi_ctrl

# mount -t ubifs ubi0_0 /mnt/

Thanks
Victor Liu

-----Original Message-----
From: ext David Kedves [mailto:[email protected]] 
Sent: Wednesday, July 21, 2010 7:13 PM
To: Development for the MeeGo Project (discussion list)
Cc: Liu Victor (Nokia-MS/Beijing)
Subject: Re: [MeeGo-dev] Failed to mount rootfs.jffs2

Hi,

On 07/21/2010 01:07 PM, [email protected] wrote:
> Hi,
> 
> I just downloaded the ubiimg 
> "meego-codedrop-arm-n900-closed-201003311635.ubiimg" from 
> http://tablets-dev.nokia.com/meego-codedrop.php and unpack it with flasher, 
> got a "rootfs.jffs2" image. And I want to mount this image to my host PC, but 
> failed both on Ubuntu and openSUSE. Here are the steps I made:
> 
> mknod /tmp/mtdblock0 b 31 0
> modprobe loop
> losetup /dev/loop0 rootfs.jffs2
> modprobe mtdblock
> modprobe block2mtd
> modprobe jffs2
> mount -t jffs2 /tmp/mtdblock0 /media/jffs2
> 
> And I always get error: "mount: /tmp/mtdblock0: can't read superblock"

I think it is not jffs2, it is ubifs....

Br,
David
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to