public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Tobias Arp" <tobiasarp@web.de>
To: linux-mtd@lists.infradead.org
Subject: MTD partitions
Date: Fri, 16 Apr 2004 09:33:34 +0200	[thread overview]
Message-ID: <1196013956@web.de> (raw)

Hi,  
  
on my old kernel (2.4.21 and the arm linux patch rmk2) it was possible to configure the  
remapping of the flash in the xconfig/menuconfig files. I have created the mtd partitions in  
physmap.c. So when i have made:  
  
cat /proc/mtd  
  
i got these outputs  
  
dev: size erasesize name  
mtd0: 00400000 00010000 ""physically mapped flash"  
mtd1: 00060000 00010000 ""USER fs"  
  
My flash has a size of 4 MBytes and typically 64kbytes sector size. It started physically at  
offset 0x10000000 and is connected via a 16 bit bus. These were also the configuration  
paramter which i added to my config files. This must be mtd0. The mtd1 device is the partition  
which i have configured in physmap.c.  
  
After applieing the mtd snapshot(mtd-snapshot-20040407.tar.bz2) i have used  
physmap_configure with the same data:  
  
physmap_configure(0x10000000,0x00400000,2,NULL);  
  
0x10000000 = physical flash base  
0x00400000 = Flash size  
2 = 16 Bit Buswidth  
  
Then i have used  
  
physmap_set_partitions(at91_mtd_parts,1);  
  
to add my USER fs  
  
static struct mtd_partition at91_mtd_parts[] __initdata = {  
 {  
 .name = "USER fs",  
 .offset = 0x00380000,  
 .size = 0x00060000,  
 }  
};  
  
Now i get following outputs when i make cat proc/mtd  
  
dev: size erasesize name  
mtd0: 00060000 00010000 ""USER fs"  
  
where is the "old mtd0" device with the whole flashsize ?  
  
And how can i remove these messages from the startup of the kernel:  
  
  
>cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
- Is there any patch for this problem ? -  
  
>kmod: failed to exec /sbin/modprobe -s -k cmdlinepart, errno = 2  
>cmdlinepart partition parsing not available  
>kmod: failed to exec /sbin/modprobe -s -k RedBoot, errno = 2  
>RedBoot partition parsing not available  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
- Is there any reason for these messages ? -  
  
  
Regards  
Tobias Arp  
  
_____________________________________________________________________
Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P!
Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157

             reply	other threads:[~2004-04-16  7:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16  7:33 Tobias Arp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-09-22 22:26 MTD Partitions Nikhil Bansal (nikbansa)
2006-09-23  0:08 ` Josh Boyer
2006-09-24 18:19 ` Michael Trimarchi

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=1196013956@web.de \
    --to=tobiasarp@web.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox