public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: running out of space dd'ing JFFS2 image to /dev/mtdblock/0
Date: Mon, 31 Jan 2005 17:01:29 +0100	[thread overview]
Message-ID: <20050131160129.GG6694@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0501311038140.3730@localhost.localdomain>

On Mon, 31 January 2005 10:43:25 -0500, Robert P. J. Day wrote:
> 
>   ah, excellent, but while we're on the subject of parameters, is
> there any hope of getting some consistency in the way parameter values
> are supplied across the world of JFFS2 and MTD?
> 
>   to wit, with "mkfs.jffs2":
> 
> -p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
>                         not specified, the output is padded to the
> 			end of the final erase block
> 
> 
>   so, apparently, you supply an *exact* byte size here (it's not
> mentioned if you can use KiB or MiB prefixes).
> 
>   with "--pagesize" and "--eraseblock", the help states that you *can*
> use those prefixes.
> 
>   if you check what you can do with the mtdram module, you get:
> 
> $ modinfo mtdram
> filename:
> /lib/modules/2.6.10-1.741_FC3/kernel/drivers/mtd/devices/mtdram.ko
> parm:           total_size:Total device size in KiB
> parm:           erase_size:Device erase block size in KiB
> 
>   so the values here are ... what?  strictly in KiB?  so i'd supply
> something like
> 
>   total_size=16384
> 
> to specify 16M?  it's just a bit painful to jump around between the
> various utilities and have to keep remembering what the standard is.
> 
>   thoughts?

Feel free to send patches. :)

mkfs.jffs2 is something I personally don't care about.  Few do, thus
the current state.

mtdram looks pretty broken, interface-wise.  So if you want to fix it,
you might want to follow my path with slram/phram or blkmtd/block2mtd.
Rename the file, fix the interface, fix the other crap you find,
submit for inclusion.  If it's better, people will start using it.

Jörn

-- 
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
-- Theodore Roosevelt, Kansas City Star, 1918

      parent reply	other threads:[~2005-01-31 16:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 15:14 running out of space dd'ing JFFS2 image to /dev/mtdblock/0 Robert P. J. Day
2005-01-31 15:21 ` Josh Boyer
2005-01-31 15:43   ` Robert P. J. Day
2005-01-31 15:54     ` Artem B. Bityuckiy
2005-01-31 16:14       ` Robert P. J. Day
2005-01-31 16:22         ` Artem B. Bityuckiy
2005-01-31 16:22         ` Thomas Gleixner
2005-01-31 16:26           ` David Woodhouse
2005-01-31 16:51             ` Robert P. J. Day
2005-01-31 17:11               ` Artem B. Bityuckiy
2005-01-31 17:21                 ` Jörn Engel
2005-01-31 17:25                   ` Artem B. Bityuckiy
2005-01-31 17:29                     ` Josh Boyer
2005-01-31 17:38                       ` Jörn Engel
2005-01-31 17:29                     ` Jörn Engel
2005-01-31 17:43                 ` Robert P. J. Day
2005-01-31 17:52                   ` Jörn Engel
2005-01-31 18:22                     ` Robert P. J. Day
2005-01-31 18:31                   ` David Woodhouse
2005-01-31 19:02                     ` Robert P. J. Day
2005-01-31 22:30           ` Robert P. J. Day
2005-01-31 16:39         ` Jörn Engel
2005-02-01  0:19           ` David Woodhouse
2005-02-01  0:43             ` Josh Boyer
2005-02-01 13:03             ` Jörn Engel
2005-01-31 16:01     ` Jörn Engel [this message]

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=20050131160129.GG6694@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=rpjday@mindspring.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox