public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Matthias Kaehlcke <matthias@kaehlcke.net>
To: dwmw2@infradead.org
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [BUG] 2.6.29-rc1: /proc/mtd partition names obfuscated
Date: Mon, 12 Jan 2009 12:57:41 +0100	[thread overview]
Message-ID: <20090112115741.GA23365@traven> (raw)

i'm running 2.6.29-rc1 on a edb9302 (ARM) board. the partitioning of
the flash is passed as usual as parameter:

cat /proc/cmdline
console=ttyAM0,115200
mtdparts=physmap-flash.0:256k(u-boot),128k(cfg_boot),128k(cfg_boot.bak),1664k(kernel_1),6144k(rootfs_1),1664k(kernel_2),6144k(rootfs_2),128k(cfg_app),128k(cfg_app.bak)


dmesg shows that the command line is interpreted correctly:

9 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 9 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000060000 : "cfg_boot"
0x000000060000-0x000000080000 : "cfg_boot.bak"
0x000000080000-0x000000220000 : "kernel_1"
0x000000220000-0x000000820000 : "rootfs_1"
0x000000820000-0x0000009c0000 : "kernel_2"
0x0000009c0000-0x000000fc0000 : "rootfs_2"
0x000000fc0000-0x000000fe0000 : "cfg_app"
0x000000fe0000-0x000001000000 : "cfg_app.bak"


but when looking at /proc/mtd, the partition names are somehow, 'obfuscated':

 cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 ""
mtd1: 00020000 00020000 ""
mtd2: 00020000 00020000 ""
mtd3: 001a0000 00020000 "�"
mtd4: 00600000 00020000 ""
mtd5: 001a0000 00020000 ""
mtd6: 00600000 00020000 ""
mtd7: 00020000 00020000 ""
mtd8: 00020000 00020000 "s"

-- 
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

               For to be free is not merely to cast off
               one's chains, but to live in a way that
              respects and enhances the freedom of others
                           (Nelson Mandela)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

                 reply	other threads:[~2009-01-12 12:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090112115741.GA23365@traven \
    --to=matthias@kaehlcke.net \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --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