public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Alice Hennessy <ahennessy@mvista.com>
To: Patrik Fuchs <pfuchs@giga-stream.de>
Cc: linux-mtd@lists.infradead.org
Subject: Re: MTD partition help
Date: Wed, 24 Apr 2002 14:38:58 -0700	[thread overview]
Message-ID: <3CC725F2.E0BDEDDE@mvista.com> (raw)
In-Reply-To: MNEEJPPNAELHIHNGGLHOMECDCAAA.pfuchs@giga-stream.de

Patrik Fuchs wrote:

> Hello!
> I am  a complete newbie to this mtd mailing list and its subject.
> I have a AMD flash  AM29F040B (512kB, 8 sectors) on a Walnut 405 GP board
> and I want to partition this device. I have Hard Hat Linux 2.4.2 and I boot
> it via PPC boot 1.1.5.  In the description from DENX PPC Boot and Linux
> guide they say you have to define the partition in the board-specific
> mapping routines, which can be seen in drivers/mtd/maps/. They took an
> ICU862 board for example:
> Static struct mtd_partition icu862_partitions[] = {
> {   name: ?kernel?,
>      offset: 0,
>       size: 1 << 20,
> },
> {
> },
> .
> .and so on
>
> I cannot find a similar configuration for my Walnut 405 GP board nor do I
> find the maps directory in drivers/mtd. However I´ve found a file in the mtd
> directory named cstm_cfi_jedec.c and I defined the partition there as a fit
> of faintness.
>
> static struct mtd_partition
> cstm_cfi_jedec_partitions[PHYSMAP_NUMBER][MAX_PHYSMAP_PARTITIONS] = {
> {
> /*      {
>                 name: "main partition",
>                 size:  CONFIG_MTD_PHYSMAP_LEN,
>                 offset: 0,
>         },
> */
>        {                                             //example
>                 name: "ppcboot ",
>                 size: 192 << 10, // 3 Blocks
>                 offset: 0,
>         },
>         {
>                 name: "initrd ",                     //example
>                 size: 64 << 10, // 1 Block
>                 offset: 192 << 10,
>         },
> .
> .and so on
>
> But this did not work. Whenever I check the partition using  cat   /proc/mtd
> I get only this:
> Dev:     size     erasesize     name
> ?and nothing else although there are mtd entries from 0 to9 in the dev
> directory.
> Can someone help me out? Any hints where I am wrong? Thanx in advance
> Patrik
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

What does your cstm_cfi_jedec_board_desc array look like and also
what is PHYSMAP_NUMBER defined as?   Do you see any flash related prints
in the bootup?

Alice

      reply	other threads:[~2002-04-24 21:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-24 13:59 MTD partition help Patrik Fuchs
2002-04-24 21:38 ` Alice Hennessy [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=3CC725F2.E0BDEDDE@mvista.com \
    --to=ahennessy@mvista.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=pfuchs@giga-stream.de \
    /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