From: AYYANARPONNUSAMY GANGHEYAMOORTHY <moorthy.apg@samsung.com>
To: linux-mtd@lists.infradead.org
Cc: David.Woodhouse@intel.com
Subject: [PATCH] [MTD-UTILS] Add support for 4KB page flash devices
Date: Fri, 19 Sep 2008 12:41:28 +0000 (GMT) [thread overview]
Message-ID: <33142758.53091221828088797.JavaMail.weblogic@epml16> (raw)
We can now use these utilities on 4KB devices.
Signed-off-by: Rohit Hagargundgi <h.rohit@samsung.com>
---
--- a/flash_otp_write.c 2008-06-27 21:51:28.000000000 +0530
+++ b/flash_otp_write.c 2008-07-01 16:04:12.000000000 +0530
@@ -18,7 +18,7 @@ int main(int argc,char *argv[])
int fd, val, ret, size, wrote, len;
mtd_info_t mtdInfo;
off_t offset;
- char *p, buf[2048];
+ char *p, buf[4096];
if (argc != 4 || strcmp(argv[1], "-u")) {
fprintf(stderr, "Usage: %s -u <device> <offset>\n", argv[0]);
--- a/include/mtd/mtd-abi.h 2008-06-27 21:51:28.000000000 +0530
+++ b/include/mtd/mtd-abi.h 2008-06-30 18:51:39.000000000 +0530
@@ -104,7 +104,7 @@ struct nand_oobinfo {
uint32_t useecc;
uint32_t eccbytes;
uint32_t oobfree[8][2];
- uint32_t eccpos[32];
+ uint32_t eccpos[128];
};
struct nand_oobfree {
@@ -119,7 +119,7 @@ struct nand_oobfree {
*/
struct nand_ecclayout {
uint32_t eccbytes;
- uint32_t eccpos[64];
+ uint32_t eccpos[128];
uint32_t oobavail;
struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
};
--- a/flashcp.c 2008-06-27 21:51:28.000000000 +0530
+++ b/flashcp.c 2008-07-02 14:49:21.000000000 +0530
@@ -61,7 +62,7 @@ typedef int bool;
#define PERCENTAGE(x,total) (((x) * 100) / (total))
/* size of read/write buffer */
-#define BUFSIZE (10 * 1024)
+#define BUFSIZE (10 * 4096)
/* cmd-line flags */
#define FLAG_NONE 0x00
next reply other threads:[~2008-09-19 12:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 12:41 AYYANARPONNUSAMY GANGHEYAMOORTHY [this message]
2008-09-22 6:22 ` [PATCH] [MTD-UTILS] Add support for 4KB page flash devices Kyungmin Park
2008-09-22 9:19 ` Sergei Shtylyov
2008-09-23 11:25 ` apgmoorthy
2008-09-26 0:28 ` Kyungmin Park
2008-09-26 4:48 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33142758.53091221828088797.JavaMail.weblogic@epml16 \
--to=moorthy.apg@samsung.com \
--cc=David.Woodhouse@intel.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.