Read YAFFS image using loop device

David
I have built my own file system and I am using u-boot ( JFFS nand partition
). However, I would like to get the QT provided in official RFS Yaffs2
image on this website.  So I would like to mount the yaffs2 image 
without flashing any NAND or use SDCARD.

I try this wihtout success :

[root@mini2440 /]# losetup root_qtopia-128M.img /dev/loop/loop1 
losetup: root_qtopia-128M.img
[root@mini2440 /]# 
[root@mini2440 /]# mount -o loop /dev/loop/loop1 /tmp/sd/
mount: mounting /dev/loop/loop1 on /tmp/sd/ failed: Invalid argument
[root@mini2440 /]# mount  /dev/loop/loop1 /tmp/sd/       
mount: mounting /dev/loop/loop1 on /tmp/sd/ failed: Invalid argument

Anyone can help ?


Thank a lot

Sak1s
it posible but not under loopback device

install mtd-tools or mtd-utils and try those

modprobe mtd
modprobe jffs2
modprobe mtdram
modprobe mtdchar
modprobe mtdblock

after that ,will be a device at /dev/mtdblock0 

dd if=your_image_jffs2 of=/dev/mtdblock0


make a folder, ex.  mkdir /mnt/mtd

mount -t jffs2 /dev/mtdblock0 /mnt/mtd

davef
I thought u-boot could only load uImages and Supervivi only load zImages.  

Or is there something happening here that I don't understand about
loopback?

david
Thank for answer
In fact, I would like to mount the YAFFS ( not JFFS2) on mini2440 and not
my computer ( Under Ubuntu, YAFFS is not support by kernel I suppose )

Ziad
hi , 

i've used this tool to extract the image -not mount it- , and it working on
ubuntu 10.10 

http://www.google.com/url?sa=D&q=http://code.google.com/p/yaffs2utils/