howto jffs2 + mtd

Nils Faerber nils.faerber at kernelconcepts.de
Mon Sep 11 06:12:16 EDT 2006


Felix Joussein schrieb:
> Hello list,
> 
> I would like to create a jffs2 filesystem on to an ordinary fresh- out 
> of the box 512 Kingston Datatraveller USB Stick.
> As I later want to boot from it, I performed the following steps:
> 
> fdisk /dev/sda
> create 2 partitions
> sda1, sda2
> 
> syslinux /dev/sda1
> mount /dev/sda1 /mnt
> cp $allYouNeedToBoot /dev/sda1
> umount /mnt
> 
> Here now the mtd part:
> modprobe block2mtd
> echo "/dev/sda2" > /sys/module/block2mtd/parameters/block2mtd
> cat /proc/mtd
> mtd0: 0f480000 00001000 "block2mtd: /dev/sda2"
> 
> now I read in the internet 2 different commands:
> either flash_eraseall -j /dev/mtd0
> or flash_erase /dev/mtd0 0 00001000

You do not need that on the mtdblock device. This is only useful on real
flash devices, i.e. physicall mapped flash devices, not USB sticks or CF
cards.

[...]
> I would be very thankfull, if anybody could help me with this.

> Thanks,
> Felix Joussein
Cheers
  nils

-- 
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--




More information about the linux-mtd mailing list