[PATCH] ARM: expose PB1176 ROM in debugfs

Linus Walleij linus.ml.walleij at gmail.com
Sun Jul 18 16:39:52 EDT 2010


2010/7/18 Russell King - ARM Linux <linux at arm.linux.org.uk>:

> On Wed, Jul 07, 2010 at 02:05:39PM +0200, Linus Walleij wrote:
>> This exposes the PB1176 ROM as a simple 16KiB file in debugfs so
>> that it can be copied out and disassembled with some
>> objcopy+objdump massage for example. I used this to find out how
>> the ROM handled the CharLCD.
>
> Would it be better to expose this through a mtd ROM mapping (map_rom) ?

This is more convenient I think.

I don't know the actual purpose of MTD ROM mappings, so
paging David on this.

It has the small upside of only getting compiled in if you select
CONFIG_DEBUG_FS, and getting a distinct name in debugfs
rather than /dev/mtdN.

Also I can now cp /debugfs/pb1176-ROM foo.bin
Is this possible with mtdblocks or do you have to dd if=... ?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list