linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] Fix mtd-utils bugs
@ 2010-06-20 12:22 Stanley.Miao
  2010-06-20 12:22 ` [PATCHv3 1/3] clean up the legacy interfaces in nandwrite.c Stanley.Miao
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Stanley.Miao @ 2010-06-20 12:22 UTC (permalink / raw)
  To: linux-mtd; +Cc: Artem.Bityutskiy, joakim.tjernlund

Changes from V2:
1, Get the linux version via uname() according to Joakim Tjernlund.
2, Set the default version the latest version according to Joakim Tjernlund.

The "struct nand_oobinfo" is able to record only 32 ECC code positions,which
is not enough for many big NAND chips. Therefore, this structure is replaced
by "struct nand_ecclayout" in linux kernel from the version 2.6.17.
Consequently, the ioctl command changed from MEMGETOOBSEL to ECCGETLAYOUT.

Now update nandwrite to use the new ioctl command ECCGETLAYOUT. In order to
keep compatible with the old linux kernel, a linux version detection function
is added.

YAFFS and JFFS2 has updated and we don't need the arguments "forcelegacy",
"forcejffs2", "forceyaffs" anymore. Now clean them up. 


Stanley.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [PATCH v3] Fix mtd-utils bugs
@ 2010-06-18 10:32 Stanley.Miao
  0 siblings, 0 replies; 16+ messages in thread
From: Stanley.Miao @ 2010-06-18 10:32 UTC (permalink / raw)
  To: linux-mtd; +Cc: Artem.Bityutskiy, joakim.tjernlund

Changes from V2:
1, Get the linux version via uname() according to Joakim Tjernlund.
2, Set the default version the latest version according to Joakim Tjernlund.

The "struct nand_oobinfo" is able to record only 32 ECC code positions,which
is not enough for many big NAND chips. Therefore, this structure is replaced
by "struct nand_ecclayout" in linux kernel from the version 2.6.17.
Consequently, the ioctl command changed from MEMGETOOBSEL to ECCGETLAYOUT.

Now update nandwrite to use the new ioctl command ECCGETLAYOUT. In order to
keep compatible with the old linux kernel, a linux version detection function
is added.

YAFFS and JFFS2 has updated and we don't need the arguments "forcelegacy",
"forcejffs2", "forceyaffs" anymore. Now clean them up. 


Stanley.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-08-30 10:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-20 12:22 [PATCH v3] Fix mtd-utils bugs Stanley.Miao
2010-06-20 12:22 ` [PATCHv3 1/3] clean up the legacy interfaces in nandwrite.c Stanley.Miao
2010-06-20 12:22   ` [PATCHv3 2/3] Discard the legacy interface MEMGETOOBSEL in flash_eraseall Stanley.Miao
2010-06-20 12:23     ` [PATCHv3 3/3] Place the cleanmarker in OOB area according to the mode MTD_OOB_AUTO Stanley.Miao
2010-06-22  8:35 ` [PATCH v3] Fix mtd-utils bugs stanley.miao
2010-06-23 13:18   ` Artem Bityutskiy
2010-06-23 15:16 ` Ladislav Michl
2010-08-20  5:29   ` Artem Bityutskiy
2010-08-20 13:03     ` Ladislav Michl
2010-08-30 10:42       ` Artem Bityutskiy
2010-07-08  6:47 ` Artem Bityutskiy
2010-07-08  7:10   ` stanley.miao
2010-07-18  8:40 ` Artem Bityutskiy
2010-08-04  7:04   ` Artem Bityutskiy
2010-08-04  7:33     ` stanley.miao
  -- strict thread matches above, loose matches on Subject: below --
2010-06-18 10:32 Stanley.Miao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).