linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Thiago Galesi" <thiagogalesi@gmail.com>
To: "Laurent Pinchart" <laurent.pinchart@tbox.biz>
Cc: linuxppc-embedded@ozlabs.org
Subject: Preferred way to configure MTD physical mapping and partitioning
Date: Mon, 22 May 2006 10:27:10 -0300	[thread overview]
Message-ID: <82ecf08e0605220627s7118f006if7a66d56df7a2b52@mail.gmail.com> (raw)
In-Reply-To: <200605221500.00634.laurent.pinchart@tbox.biz>

> >
> > BTW, you can partition your flash via cmdline
>
> So would that be the preferred way to configure MTD partitions ?
>
> Laurent Pinchart
>
Using the mtdparts option in the boot cmdline. example

mtdparts=256k(partition1)ro,333k(partition2),444k(partition3),-(partition 4)

This will create /dev/mtd1, /dev/mtd2, etc, etc (and the corresponding
mtdblock devices) - you still have to create the inodes manually
(AFAIK) with the corresponding size, etc Using the '-' in the last
option uses all the remaining space. (as the ro option that makes the
partition read only. Useful for not overwriting your bootloader)

-- 
-
Thiago Galesi

  parent reply	other threads:[~2006-05-22 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-22 10:32 Preferred way to configure MTD physical mapping and partitioning Laurent Pinchart
2006-05-22 12:27 ` Thiago Galesi
     [not found]   ` <200605221500.00634.laurent.pinchart@tbox.biz>
2006-05-22 13:27     ` Thiago Galesi [this message]
2006-05-22 16:30 ` Guillaume Autran
2006-05-22 22:35 ` David Woodhouse

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=82ecf08e0605220627s7118f006if7a66d56df7a2b52@mail.gmail.com \
    --to=thiagogalesi@gmail.com \
    --cc=laurent.pinchart@tbox.biz \
    --cc=linuxppc-embedded@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).