[PATCH] ARM: expose PB1176 ROM in debugfs

Marek Vasut marek.vasut at gmail.com
Fri Sep 3 22:13:10 EDT 2010


Dne Pá 3. září 2010 23:38:54 Linus Walleij napsal(a):
> Ping on this David, you have an opinion? debugfs ROM or
> MTD ROM mapping?

Hey, I'd be for having this exposed through mtd_rom too. Cheers
> 
> Yours,
> Linus Walleij
> 
> 2010/7/18 Linus Walleij <linus.ml.walleij at gmail.com>:
> > 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
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list