aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ubi-utils/Makefile14
-rw-r--r--ubi-utils/TODO8
-rw-r--r--ubi-utils/scripts/README14
-rw-r--r--ubi-utils/sort-me-out/Makefile (renamed from ubi-utils/scripts/Makefile)0
-rw-r--r--ubi-utils/sort-me-out/README41
-rw-r--r--ubi-utils/sort-me-out/bin2nand.c (renamed from ubi-utils/src/bin2nand.c)0
-rwxr-xr-x[-rw-r--r--]ubi-utils/sort-me-out/bin2nand2bin_test.sh (renamed from ubi-utils/scripts/bin2nand2bin_test.sh)0
-rw-r--r--ubi-utils/sort-me-out/f128_nand_sample.cfg (renamed from ubi-utils/scripts/f128_nand_sample.cfg)0
-rw-r--r--ubi-utils/sort-me-out/f64_nor_sample.cfg (renamed from ubi-utils/scripts/f64_nor_sample.cfg)0
-rwxr-xr-x[-rw-r--r--]ubi-utils/sort-me-out/inject_biterror.pl (renamed from ubi-utils/scripts/inject_biterror.pl)0
-rw-r--r--ubi-utils/sort-me-out/nand2bin.c (renamed from ubi-utils/src/nand2bin.c)0
-rw-r--r--ubi-utils/sort-me-out/nandcorr.c (renamed from ubi-utils/src/nandcorr.c)0
-rw-r--r--ubi-utils/sort-me-out/nandecc.c (renamed from ubi-utils/src/nandecc.c)0
-rw-r--r--ubi-utils/sort-me-out/nandecc.h (renamed from ubi-utils/src/nandecc.h)0
-rw-r--r--ubi-utils/sort-me-out/pdd.txt (renamed from ubi-utils/scripts/pdd.txt)0
-rwxr-xr-xubi-utils/sort-me-out/run_all.sh (renamed from ubi-utils/scripts/run_all.sh)0
-rw-r--r--ubi-utils/sort-me-out/test.cfg (renamed from ubi-utils/scripts/test.cfg)0
-rwxr-xr-xubi-utils/sort-me-out/ubi_test.sh (renamed from ubi-utils/scripts/ubi_test.sh)0
-rwxr-xr-xubi-utils/sort-me-out/ubi_tools_test.sh (renamed from ubi-utils/scripts/ubi_tools_test.sh)0
-rw-r--r--ubi-utils/sort-me-out/ubicrc32.pl (renamed from ubi-utils/scripts/ubicrc32.pl)0
-rw-r--r--ubi-utils/sort-me-out/unubi_test.sh (renamed from ubi-utils/scripts/unubi_test.sh)0
21 files changed, 45 insertions, 32 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index 68fe0fb..e425d6a 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -15,7 +15,7 @@ CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \
PERLPROGS = mkpfi ubicrc32.pl
TARGETS = ubiupdate ubimkvol ubirmvol pfiflash pddcustomize ubimirror \
- bin2nand nand2bin mkbootenv unubi pfi2bin ubicrc32 ubinfo \
+ mkbootenv unubi pfi2bin ubicrc32 ubinfo \
ubiattach ubidetach
vpath %.c ./src
@@ -55,6 +55,9 @@ ubimkvol: ubimkvol.o common.o libubi.o
ubirmvol: ubirmvol.o common.o libubi.o
$(CC) $(LDFLAGS) -o $@ $^
+ubicrc32: ubicrc32.o crc32.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
pddcustomize: pddcustomize.o error.o libubimirror.o bootenv.o hashmap.o \
libubi.o crc32.o
$(CC) $(LDFLAGS) -o $@ $^
@@ -67,12 +70,6 @@ ubimirror: ubimirror.o error.o libubimirror.o bootenv.o hashmap.o \
libubi.o crc32.o
$(CC) $(LDFLAGS) -o $@ $^
-nand2bin: nand2bin.o nandecc.o nandcorr.o
- $(CC) $(LDFLAGS) -o $@ $^
-
-bin2nand: bin2nand.o error.o nandecc.o
- $(CC) $(LDFLAGS) -o $@ $^
-
mkbootenv: mkbootenv.o bootenv.o hashmap.o error.o crc32.o
$(CC) $(LDFLAGS) -o $@ $^
@@ -83,9 +80,6 @@ pfi2bin: pfi2bin.o peb.o error.o list.o crc32.o libubigen.o bootenv.o \
hashmap.o reader.o pfi.o
$(CC) $(LDFLAGS) -o $@ $^
-ubicrc32: ubicrc32.o crc32.o
- $(CC) $(LDFLAGS) -o $@ $^
-
install: ${TARGETS}
mkdir -p ${DESTDIR}/${SBINDIR}
install -m0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/
diff --git a/ubi-utils/TODO b/ubi-utils/TODO
deleted file mode 100644
index 63a0767..0000000
--- a/ubi-utils/TODO
+++ /dev/null
@@ -1,8 +0,0 @@
-TODO
-====
-
- * The tests from the scripts/ directory should live in
- mtd-utils/tests/ubi-tests/ and it would be nice to have a short
- description of the tests
- * May we please split UBI-related stuff and pure NAND-related stuff and
- not to keep this all in one.
diff --git a/ubi-utils/scripts/README b/ubi-utils/scripts/README
deleted file mode 100644
index 01c7453..0000000
--- a/ubi-utils/scripts/README
+++ /dev/null
@@ -1,14 +0,0 @@
-README
-======
-
-This procedure creates a test pfi which should be flashed to our
-system with pfiflash. The testcase should read the data back and
-compare with the original.
-
-We should try not forget to run these tests before we release
-a new version of UBI.
-
-Frank
-
-Please guys, clean up this and move the tests to mtd-utils/tests/
-Artem.
diff --git a/ubi-utils/scripts/Makefile b/ubi-utils/sort-me-out/Makefile
index b8e3c96..b8e3c96 100644
--- a/ubi-utils/scripts/Makefile
+++ b/ubi-utils/sort-me-out/Makefile
diff --git a/ubi-utils/sort-me-out/README b/ubi-utils/sort-me-out/README
index 8ca9bdc..4018567 100644
--- a/ubi-utils/sort-me-out/README
+++ b/ubi-utils/sort-me-out/README
@@ -7,3 +7,44 @@ This directory contains various stuff that has to be cleaned up and sorted out.
* ubigen.c: this utility adds UBI headers to an image file, but does not
generate the volume table. It is probably useless, but one might find it
interesting, so we do not drop it so far and keep here.
+
+* bin2nand2bin_test.sh: tests nand2bin and bin2nand utilities. Should probably
+ go to some tests/tools-tests or something. the nand2bin and bin2nand
+ utilities themselves have nothing to do to UBI in general and should not sit
+ in ubi-utils. Should be moved somewhere like mtd-utils.git/nand-tools/
+
+* f64_nor_sample.cfg, f128_nand_sample.cfg: just exampe of configuration files
+ for the mkpfi utility. Not too useful without any documentation. Some pfi
+ configuration file format documentation has to be added to mkpfi man page and
+ these files should probably be added there.
+
+* pdd.txt: not sure what is it, this is probably something specific to the
+ setup which is used by IBM guys (Frank, Andreas, Josh). This is probably not
+ of general interest and should go away.
+
+* run_all.sh: runns "all" test.
+
+* ubicrc32.pl: probably redundand as we already have a C ubicrc32 utility.
+
+* ubi_test.sh: some UBI testing script, should go to
+ mtd-utils.git/tests/ubi-tests.
+
+* unubi_test.sh: tests the "unubi" utility, should go somewhere like
+ tests/tools-tests
+
+* inject_biterror.pl: injects a bit error to a binary image. Does not relate to
+ UBI and should go to mtd-utils.git/nand-tools/ or something
+
+* Makefile: previously was sitting at ubi-tools/scripts and prepared fake image
+ files for test scripts.
+
+* test.cfg: mkpfi configuration file for ubi_tools_test.sh
+
+* ubi_tools_test.sh: similar to unubi_test.sh
+
+* nand2bin.c, bin2nand.c: useful utilities which should go to
+ mtd-utils.git/nand-tools/
+
+* nandecc.c, nandecc.h: needed to compile nand2bin and bin2nand
+
+* nandcorr.c: seems to be unused
diff --git a/ubi-utils/src/bin2nand.c b/ubi-utils/sort-me-out/bin2nand.c
index 83f50cc..83f50cc 100644
--- a/ubi-utils/src/bin2nand.c
+++ b/ubi-utils/sort-me-out/bin2nand.c
diff --git a/ubi-utils/scripts/bin2nand2bin_test.sh b/ubi-utils/sort-me-out/bin2nand2bin_test.sh
index 51f048c..51f048c 100644..100755
--- a/ubi-utils/scripts/bin2nand2bin_test.sh
+++ b/ubi-utils/sort-me-out/bin2nand2bin_test.sh
diff --git a/ubi-utils/scripts/f128_nand_sample.cfg b/ubi-utils/sort-me-out/f128_nand_sample.cfg
index bb62600..bb62600 100644
--- a/ubi-utils/scripts/f128_nand_sample.cfg
+++ b/ubi-utils/sort-me-out/f128_nand_sample.cfg
diff --git a/ubi-utils/scripts/f64_nor_sample.cfg b/ubi-utils/sort-me-out/f64_nor_sample.cfg
index 889d4c2..889d4c2 100644
--- a/ubi-utils/scripts/f64_nor_sample.cfg
+++ b/ubi-utils/sort-me-out/f64_nor_sample.cfg
diff --git a/ubi-utils/scripts/inject_biterror.pl b/ubi-utils/sort-me-out/inject_biterror.pl
index b4a862a..b4a862a 100644..100755
--- a/ubi-utils/scripts/inject_biterror.pl
+++ b/ubi-utils/sort-me-out/inject_biterror.pl
diff --git a/ubi-utils/src/nand2bin.c b/ubi-utils/sort-me-out/nand2bin.c
index 8c95b27..8c95b27 100644
--- a/ubi-utils/src/nand2bin.c
+++ b/ubi-utils/sort-me-out/nand2bin.c
diff --git a/ubi-utils/src/nandcorr.c b/ubi-utils/sort-me-out/nandcorr.c
index caa07e2..caa07e2 100644
--- a/ubi-utils/src/nandcorr.c
+++ b/ubi-utils/sort-me-out/nandcorr.c
diff --git a/ubi-utils/src/nandecc.c b/ubi-utils/sort-me-out/nandecc.c
index 71660ef..71660ef 100644
--- a/ubi-utils/src/nandecc.c
+++ b/ubi-utils/sort-me-out/nandecc.c
diff --git a/ubi-utils/src/nandecc.h b/ubi-utils/sort-me-out/nandecc.h
index bcf1982..bcf1982 100644
--- a/ubi-utils/src/nandecc.h
+++ b/ubi-utils/sort-me-out/nandecc.h
diff --git a/ubi-utils/scripts/pdd.txt b/ubi-utils/sort-me-out/pdd.txt
index a3ad915..a3ad915 100644
--- a/ubi-utils/scripts/pdd.txt
+++ b/ubi-utils/sort-me-out/pdd.txt
diff --git a/ubi-utils/scripts/run_all.sh b/ubi-utils/sort-me-out/run_all.sh
index 040bcbd..040bcbd 100755
--- a/ubi-utils/scripts/run_all.sh
+++ b/ubi-utils/sort-me-out/run_all.sh
diff --git a/ubi-utils/scripts/test.cfg b/ubi-utils/sort-me-out/test.cfg
index 0b5ec48..0b5ec48 100644
--- a/ubi-utils/scripts/test.cfg
+++ b/ubi-utils/sort-me-out/test.cfg
diff --git a/ubi-utils/scripts/ubi_test.sh b/ubi-utils/sort-me-out/ubi_test.sh
index 73e4b19..73e4b19 100755
--- a/ubi-utils/scripts/ubi_test.sh
+++ b/ubi-utils/sort-me-out/ubi_test.sh
diff --git a/ubi-utils/scripts/ubi_tools_test.sh b/ubi-utils/sort-me-out/ubi_tools_test.sh
index 7f121f1..7f121f1 100755
--- a/ubi-utils/scripts/ubi_tools_test.sh
+++ b/ubi-utils/sort-me-out/ubi_tools_test.sh
diff --git a/ubi-utils/scripts/ubicrc32.pl b/ubi-utils/sort-me-out/ubicrc32.pl
index 92711cb..92711cb 100644
--- a/ubi-utils/scripts/ubicrc32.pl
+++ b/ubi-utils/sort-me-out/ubicrc32.pl
diff --git a/ubi-utils/scripts/unubi_test.sh b/ubi-utils/sort-me-out/unubi_test.sh
index 40dc2e2..40dc2e2 100644
--- a/ubi-utils/scripts/unubi_test.sh
+++ b/ubi-utils/sort-me-out/unubi_test.sh