summaryrefslogtreecommitdiff
path: root/package/nand
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-03-20 17:47:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-03-20 17:47:39 +0100
commit28bfc5688a1a016bef4a001a5bc2a7f7703b1f85 (patch)
treee80d4cd6d25c0f3dccf04f4431d55c0e785ec6a6 /package/nand
parent8c07d0bc07ca9cbe373cf41c80d8e10c401aba9e (diff)
allconfig fixes for lemote yeelong
Diffstat (limited to 'package/nand')
-rw-r--r--package/nand/Makefile1
-rw-r--r--package/nand/src/nand.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/package/nand/Makefile b/package/nand/Makefile
index 451e4c226..468029902 100644
--- a/package/nand/Makefile
+++ b/package/nand/Makefile
@@ -10,6 +10,7 @@ PKG_DESCR:= NAND utility
PKG_SECTION:= fs
PKG_DFLT_NAND:= y if ADK_TARGET_WITH_NAND
+PKG_CFLINE_NAND:= depends on ADK_TARGET_WITH_NAND
NO_DISTFILES:= 1
diff --git a/package/nand/src/nand.c b/package/nand/src/nand.c
index 225e866e2..9f3857caf 100644
--- a/package/nand/src/nand.c
+++ b/package/nand/src/nand.c
@@ -95,7 +95,7 @@ int nand_info(const char *nand) {
int fd, ret;
mtd_info_t nandinfo;
- struct nand_oobinfo oobinfo;
+ //struct nand_oobinfo oobinfo;
loff_t offset;
if ((fd = nand_open(nand, O_RDONLY)) < 0) {
@@ -133,6 +133,7 @@ int nand_info(const char *nand) {
}
}
+ /*
if (ioctl(fd, MEMGETOOBSEL, &oobinfo) != 0) {
fprintf(stderr, "Unable to get NAND oobinfo\n");
return 1;
@@ -141,6 +142,7 @@ int nand_info(const char *nand) {
if (oobinfo.useecc == MTD_NANDECC_AUTOPLACE) {
fprintf(stdout, "NAND device/driver supports autoplacement of OOB\n");
}
+ */
return 0;
}
@@ -263,6 +265,7 @@ int nand_write(const char *img, const char *nand, int quiet) {
}
// autoplace ECC ?
+ /*
if (autoplace && (old_oobinfo.useecc != MTD_NANDECC_AUTOPLACE)) {
if (ioctl (fd, MEMSETOOBSEL, &autoplace_oobinfo) != 0) {
@@ -272,6 +275,7 @@ int nand_write(const char *img, const char *nand, int quiet) {
}
oobinfochanged = 1;
}
+ */
}
oob.length = meminfo.oobsize;
@@ -462,6 +466,7 @@ closeall:
close(ifd);
restoreoob:
+ /*
if (oobinfochanged == 1) {
if (ioctl (fd, MEMSETOOBSEL, &old_oobinfo) != 0) {
perror ("MEMSETOOBSEL");
@@ -471,6 +476,7 @@ restoreoob:
}
close(fd);
+ /*
if ((ifd != STDIN_FILENO) && (imglen > 0)) {
perror ("Data was only partially written due to error\n");