All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nils Faerber <nils.faerber@kernelconcepts.de>
To: Felix Joussein <felix@joussein.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: howto jffs2 + mtd
Date: Mon, 11 Sep 2006 12:12:16 +0200	[thread overview]
Message-ID: <45053680.1060206@kernelconcepts.de> (raw)
In-Reply-To: <450534E0.2000405@joussein.com>

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
--

  reply	other threads:[~2006-09-11 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11 10:05 howto jffs2 + mtd Felix Joussein
2006-09-11 10:12 ` Nils Faerber [this message]
     [not found]   ` <45053A19.5050801@joussein.com>
2006-09-11 10:41     ` Nils Faerber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45053680.1060206@kernelconcepts.de \
    --to=nils.faerber@kernelconcepts.de \
    --cc=felix@joussein.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.