Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754761AbZALMHt (ORCPT ); Mon, 12 Jan 2009 07:07:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752604AbZALMH1 (ORCPT ); Mon, 12 Jan 2009 07:07:27 -0500 Received: from mailbox-us-s-12.mailhostingserver.com ([75.125.101.9]:40876 "EHLO mailbox-us-s-12.mailhostingserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316AbZALMHX (ORCPT ); Mon, 12 Jan 2009 07:07:23 -0500 X-Greylist: delayed 573 seconds by postgrey-1.27 at vger.kernel.org; Mon, 12 Jan 2009 07:07:23 EST Date: Mon, 12 Jan 2009 12:57:41 +0100 From: Matthias Kaehlcke 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 Message-ID: <20090112115741.GA23365@traven> Mail-Followup-To: Matthias Kaehlcke , dwmw2@infradead.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2057 Lines: 55 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 `- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/