PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : jffs2



Lemmi
08.02.2005, 22:43:48
Hat es schon jemand geschafft, ein jffs2 image zu mounten?

Meine Versuche wie


sh-2.05# mount -r -n -t jffs2 -o loop /pc1/test/data /mnt2
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems

scheitern.

gambler
09.02.2005, 11:19:02
hi lemmi,

mit loop wirst du da wenig chancen haben. soweit ich das mtd-jffs-HOWTO verstanden habe muss das erst in ein blockdevice.



Q. Does JFFS only work on devices suported by the MTD driver layer?

A. Yes.




Q. Do I have to have JFFS on MTD?

A. Yes! JFFS (at the moment) only works on any linear device supported
by the MTD layer. It does NOT work on DOC. It does NOT work on
Compact flash. It does NOT work on IDE flash disks.

It will work on SRAM. It will work on DRAM. It will work on FRAM.
But you have to install MTD drivers for each first and then mount
the JFFS fs on the block device for them respectively.

Lemmi
09.02.2005, 12:11:48
hi lemmi,

mit loop wirst du da wenig chancen haben. soweit ich das mtd-jffs-HOWTO verstanden habe muss das erst in ein blockdevice.

/dev/loop* sind block devices.
Den Umweg über die Ram-Disk hatte ich auch schon versucht. Schade.

gambler
09.02.2005, 12:23:17
/dev/loop* sind block devices.

schon klar...



But you have to install MTD drivers for each first and then mount
the JFFS fs on the block device for them respectively.


hast du schon mal versucht das ganze nicht ueber die ramdisk zu loesen sondern das nach mtdblock6 zu schreiben? der ist ja angelegt aber bis jetzt ungueltig.

gambler
09.02.2005, 13:04:07
nachtrag:

unter debian kann man das ganze emulieren in dem man den mtd-support im kernel und die ram-emulation aktiviert.

dann kann man einfach das jffs2.img in den mtd schreiben und mounten.

gambler
10.02.2005, 15:42:54
mounting von jffs2 auf einem anderen linux system:

geraucht werden als kernel module oder build in:

modprobe mtdblock
modprobe mtdram
modprobe jffs2

packeges:
mtd-tools

als naechtes erstellt man den mtd (war bei mir in der kernel config)



cat /proc/mtd
dev: size erasesize name
mtd0: 00600000 00010000 "mtdram test device"


danach muss je nach endian das image konvertiert werden mittels jffs2dump
ich habs auf nem le gemacht.


jffs2dump -b -c -e mtdblock2-le.img /home/gambler/mtdblock2.img


dann das image in den mtdblock0 dd'en und mounten


dd if=/mtdblock2-le.img of=/dev/mtdblock0
11776+0 records in
11776+0 records out
6029312 bytes transferred in 0.054341 seconds (110953368 bytes/sec)

mount -t jffs2 /dev/mtdblock0 /mnt




wk01:/mnt# ls
Application click.pcm osd_progress smb.conf
CRIDS click_one.pcm pic16f73.o tda10046.o
PLAYLISTS cursor_mark_record_serie.png ping test
RA_FILE cursor_red_enforced_serie.png play testbild2.png
RECORDER_LOG disp_startbild sample.pcm text
SI downclick.pcm scale_image tune.log
SISAN06.TTF etc share tuner.o
SM_FILE factory_settings skin0 usb.ids
auto_shutdown flash_content skin1 vt1518.png
bin lsusb skin2 wavebox


ab jetzt kann es dann frei veraendert werden und mittels mkfs.jffs wieder zusammen gepackt werden. je nach endian muss es dann auch erst wieder konvertiert werden.

Lemmi
10.02.2005, 16:37:10
Da hab ich was für's Wochenede :D