ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] patch to mtd-utils to dump ECC layout for a NAND MTD device


From: Stuart Hughes
Subject: Re: [Ltib] patch to mtd-utils to dump ECC layout for a NAND MTD device
Date: Mon, 08 Mar 2010 14:00:05 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Peter,

Thanks for the confirmation.  I've uploaded the patch to the GPP and
integrated it into the spec file and committed to CVS.

Regards, Stuart

Peter Barada wrote:
> Yes, its something I wrote and its GPL...
> Sent via BlackBerry by AT&T
> 
> -----Original Message-----
> From: Stuart Hughes <address@hidden>
> Date: Mon, 08 Mar 2010 09:34:12
> To: Peter Barada<address@hidden>
> Cc: <address@hidden>
> Subject: Re: [Ltib] patch to mtd-utils to dump ECC layout for a NAND MTD
> device
> 
> Hi Peter,
> 
> Thanks for the patch it looks useful.  I added it into
> dist/lfs-5.1/mtd-utils/mtd-utils.spec and it builds fine.
> 
> Before I upload this to the GPP on your behalf, could you confirm
> whether this is something you wrote and is GPL, or if not what the
> origin is.
> 
> Regards, Stuart
> 
> Peter Barada wrote:
>> The attached patch adds code to "mtd_debug info" that dumps out the ECC
>> layout of the device.  Output looks like(with addition in bold):
>>
>> OMAP-35x# mtd_debug info /dev/mtd2
>> mtd.type = MTD_NANDFLASH
>> mtd.flags = MTD_CAP_ROM
>> mtd.size = 2228224 (2M)
>> mtd.erasesize = 131072 (128K)
>> mtd.writesize = 2048 (2K)
>> mtd.oobsize = 64
>> *ecclayout {*
>> *        eccbytes = 12,*
>> *        eccpos = { 2, 3, 4, 5, 6, 7, 8, 9,*
>> *                10, 11, 12, 13},*
>> *        .oobfree = {*
>> *                { .offset = 14,*
>> *                  .length = 50},*
>> *        },*
>> *};*
>>
>> regions = 0
>>
>>
>> Adding in this code made life so much easier trying to hunt down and fix
>> a but in YAFFS/NAND ECC compatibility between Linux and u-boot on my
>> target....
>>
>>
>> --
>> Peter Barada <address@hidden <mailto:address@hidden>>
>> Logic Product Development, Inc.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> LTIB home page: http://ltib.org
>>
>> Ltib mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/ltib
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]