summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-08-03Disable LZO compression by defaultJosh Boyer
When the recent LZO compression support went into mtd-utils recently, it was enabled by default. This means that mkfs.jffs2 will default to creating images with lzo compression as the default. Older kernels cannot decompress such images, so lzo should be disabled by default. The patch below fixes this. To enable lzo compression from now on, simply pass '-X lzo' as an option to mkfs.jffs2. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-07-23Use lzo2 librariesJosh Boyer
Switch to using the more common lzo2 libraries for LZO compression. They should still work with the lzo1x interfaces. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-07-23Add favourlzo compression modeRichard Purdie
Add a favourlzo compression mode to mtd-utils This allows lzo compression to be used in the cases where the compression ratio isn't quite as good zlib. This can make sense in certain use cases because LZO decompression is much faster than zlib. Signed-off-by: Richard Purdie <rpurdie@openedhand.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-07-23Add lzo support to mtd-utilsRichard Purdie
Add LZO support to mtd-utils to generate LZO compressed jffs2 images Unlike the kernel version, the standard lzo userspace library is used along with lzo1x_999_compress rather than the lzo1x_1_compress version since better compression ratios can be obtained (at no significant cost to decompression time). Signed-off-by: Richard Purdie <rpurdie@openedhand.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-07-18Add more information to integrity test error messageAdrian Hunter
When the integrity test encounters a file that does not contain the expected data, it lists the data that it expected to find in terms of writes to the file. Now the test also displays a list of "raw" writes that includes writes that have been truncated away, or completely overwritten by other writes. The test also now displays the pid because it is used as the initial random seed. Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-07-18Correct integrity test calculations of free spaceAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-07-18Amend tests not to insist that file system type is JFFS2Adrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-07-10UBI-utils: add compare featureAlexander Schmidt
This is a new feature for pfiflash, called "--compare". It allows the user to simulate a pfiflash session without actually changing the flash content. If the flash content is equal to the data in the pfif file, pfiflash returns zero. A positive value is returned when the flash content differs from the pfi file, which indicates that an update is necessary. This feature is useful when a controller mounts an NFS share during boot and has to determine if a pfi file stored on this share contains a code update. Modified PDD values are also registered by the compare feature. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
2007-06-29UBI-Utils: ubimirror discards returncodeAlexander Schmidt
Ubimirror compares volumes before they are mirrored, but discards the result of the comparison and alway copies volumes. I've tested this code with equal and unequal volumes and it seems to work fine now. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
2007-06-28UBI-Utils: Cleanup of libubimirrorAlexander Schmidt
libubimirror has several odd intendations and spacing errors. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
2007-06-18UBI: fix testsArtem Bityutskiy
This patch fixes UBI tests and adds udev problems solution description. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-05-04Merge branch 'ubi'Artem Bityutskiy
2007-03-29UBI-Utils: Add Artem's test programsAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Add a run_all.sh scriptAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Convert to new ubi libraryAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Rename old ubi libraryAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Updated scripts for latest UBIAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Updated libubi for latest UBIAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-29UBI-Utils: Updated headers for latest UBIAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2007-03-15Add fs-tests from Adrian HunterAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-03-15MTD-Utils: fix handling of ioctl return value in nand-utilsFrank Haverkamp
Older kernel do not implement the MTDFILEMODE ioctl. In this case nandwrite and nanddump should have used MEMGETOOBSEL in combination with MEMSETOOBSEL. Unfortunately the return value of the unsucessfull ioctl is not -ENOTTY, but -1 and errno contains ENOTTY. This change fixes this issue. I have not tested all cornercases. Would be good if someone could do more careful testing than I did, or maybe reviewing is sufficient in this case. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-03-15Update header file to latest MTD ABI and fix mtd_debug to work properlyJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-03-14UBI Tools - problem with multiple ubi devices.Alexander Schmidt
Fix problem with multiple ubi devices Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-21UBI-Utils: Increment version of pfiflashFrank Haverkamp
Incrementing the version number was forgotten in the previous patch. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-21UBI Utils: pfiflash did not erase block before writing to itAlexander Schmidt
Pfiflash should erase raw flash regions before overwriting them and check for bad blocks in case of NAND flash. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-21UBI Utils: Fix uninitialized written parameterFrank Haverkamp
The variable written was not properly initialized. That causes the -j option to fail. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-12Fix several issues when compiling for 64bit systemsJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-09Add feature removal schedule fileJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-02-08[MTD] Utils: Add 1KB page & 32 bytes spare NANDKyungmin Park
Some OneNAND chips use this spec. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-01-26[PATCH] UBI Utils: Fix syntax description for ubiupdatevolTimo Lindhorst
Fix the syntax description in the help and usage messages for ubiupdatevol. Signed-off-by: Timo Lindhorst <lindhors@linux.vnet.ibm.com>
2006-12-20[MTD] UBI Utils: Update testscriptsFrank Haverkamp
2006-12-12[PATCH] Minor ubi utils cleanupsJosh Boyer
Remove getopt extern declarations Minor whitespace cleanups Remove incorrect program names that snuck in during getopt rewrite Change comments to match reality Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[MTD] UBI Utils: Tools should have individual version numbersFrank Haverkamp
The tools had a mixture of different version numbers. This is changed now. The internal change to move to remove glibc dependencies should be reflected by an increase of the version number, so that we can react if trouble is seen with the new code. Singed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[MTD] UBI Utils: Fix pfiflashFrank Haverkamp
Various little fixes including some whitespace fixups. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[MTD] UBI Utils: Fix wrong handling of table containing stringsFrank Haverkamp
2006-12-11[MTD] UBI Utils: Fix ubiupdatevol argument parsingFrank Haverkamp
The file containing the data needs to be added as argument. The support got lost when removing the argp parsing. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 13/13] Include stdlib.h for mallocJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 12/13] Convert unubi to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 11/13] Convert ubiupdatevol to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 10/13] Convert ubirmvol to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 9/13] Convert ubimkvol to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 8/13] Convert ubimirror to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 7/13] Convert ubigen to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 6/13] Convert pfiflash to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 5/13] Convert pfi2bin to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 4/13] Convert pddcustomize to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 3/13] Convert nand2bin to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 2/13] Convert mkbootenv to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-11[PATCH 1/13] Convert bin2nand to use getopt option parsingJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
2006-12-06[PATCH] Try 2: Remove bogus copyright statementJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com> Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>