Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Oct 2011
#1
[QUOTE=x86;403015]Here one solution to mount N900 root.jffs2 with UBIfs written by X86
Code:
# 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/n900/

# ls -la /mnt/n900 | head
total 4
drwxr-xr-x 22 root root 1504 2009-10-30 14:36 .
drwxr-xr-x  9 root root 4096 2009-10-25 20:02 ..
drwxr-xr-x  2 root root 3920 2009-10-30 14:31 bin
drwxr-xr-x  2 root root  232 2009-10-30 14:48 boot
drwxr-xr-x  2 root root  160 2009-10-30 14:28 cdrom
drwxr-xr-x  3 root root 3808 2009-10-30 14:37 dev
drwxr-xr-x  2 root root  160 2009-10-30 14:28 .dev
drwxr-xr-x 72 root root 7488 2009-10-30 14:48 etc
drwxr-xr-x  2 root root  160 2009-10-30 14:28 floppy

#
Hi, working perfect with a N900, thanks man.

But I make the same procedure to open N9 root.jffs2, a <FIASCO image> of about 846 Mb so i had unpack it with flasher 3.5 and now I can work with a root.jffs2 of about 826Mb:

Code:
apt-get update && apt-get install mtd-tools
modprobe mtdblock
modprobe ubi
modprobe nandsim cache_file=my_image first_id_byte=0xec second_id_byte=0xd3 third_id_byte=0x51 fourth_id_byte=0x95 

# i use a NAND 1GB putting all datas to a cache file , not to RAM
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 40000000 00020000 "NAND simulator partition 0"

ls -la /dev/mtd*
dd if=rootfs.jffs2 of=/dev/mtdblock0 bs=2048 
ubiattach /dev/ubi_ctrl -m 0
# ubiattach: error!: cannot attach mtd0 error 22 (Invalid argument)
on dmesg I have many errors on UBI creation phase

PS : i try also with nandwrite -p /dev/mtd0 rootfs.jffs2 in replacing to dd method but with the same errors.

Can anyone do it?

Last edited by mrhevor; 2011-10-08 at 07:47.
 
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#2
flasher -u N9's rootfs.bin.
use unlzo.py on rootfs.lzo.
go wild.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Posts: 3 | Thanked: 0 times | Joined on Oct 2011
#3
unlzo.py need lzo module otherwise give
ImportError: No module named lzo.

I've installed the last python, python-dev ,python-setuptools liblzo*, liblzo2* and python-lzo last release and I've solved thanks.

Last edited by mrhevor; 2011-10-09 at 15:32.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:50.