ltib
[Top][All Lists]
Advanced

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

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


From: Peter Barada
Subject: [Ltib] patch to mtd-utils to dump ECC layout for a NAND MTD device
Date: Sat, 6 Mar 2010 14:52:29 -0600

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>
Logic Product Development, Inc.

Attachment: mtd-utils-20080618-add-ecclayout.patch
Description: mtd-utils-20080618-add-ecclayout.patch


reply via email to

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