summaryrefslogtreecommitdiff
path: root/ubi-utils/src
AgeCommit message (Collapse)Author
2007-12-23ubi-utils: be backward-compatibleArtem Bityutskiy
Since control device is not supported by UBI in mainline kernels, we should not panic if it is absent. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-22ubi-utils: some renamesArtem Bityutskiy
Since there is often confusion what "eb" is - physical or logical eraseblock. Fix libubi and change "eb" to "leb". Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-22ubi-utils: add ubiupdateArtem Bityutskiy
Add an 'ubiupdate' utility which is basically a changed and cleaned-up version of ubiupdatevol. It is also consistent with other ubi tools. ubiupdatevol should go away, because it has features which should not be present in tools for end users. If one needs debugging capabilities, he should create a separate program. So, I do not delete ubiupdatevol, but it will be moved somwthere later. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-22ubi-utils: fixes and cleanupsArtem Bityutskiy
This patch fixes a libubi bug and does some random minor cleanups. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-22ubi-utils: introduce ubinfo utilityArtem Bityutskiy
Add new handy UBI utility which prints various type of UBI information. This commit also includes a lot of fixes and cleanups in libubi, and other utilities. It was quite complex to separate this all out and I figured that nobody anyway would really need this, and decided to save my time for more useful things. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-20ubi-tools: fix and cleanup ubirmvolArtem Bityutskiy
Plus some more ubimkvol clean-ups Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-20ubi-utils: add -S option to ubimkvolArtem Bityutskiy
Plus some additional clean-ups. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-20ubi-utils: clean-up and fix ubimkvolArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-17ubi-utils: add udevsettle hackArtem Bityutskiy
Add udevsettle call to libubi which is not compiled in by default. We need this for UBI testing. Also, add one more TODO note Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-11-24ubi-utils: nand2bin had ECC calculation problemsFrank Haverkamp
Fixed a problem when ECC was checked. The correction was not properly done by subpage. Added more output for the moment to be able to figure out more potential problems. Added testcase: bin2nand2bin.sh and biterror inject program inject_biterror.pl Interface o ECC correction disabled by default. Switch to turn it explicitly on. The user must specify what he wants to be done. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-11-24ubi-utils: unubi add physical erase block number for analysisFrank Haverkamp
The number is usefull to analyze cards with broken flash content. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-11-24ubi-utils: various fixes in unubiFrank Haverkamp
The extraction of data from blocks used for dynamic volumes was totally broken. The data size was calculated wrong. This fix is not perfect, the alignment is still ignored. The parameter "header-size" is very misleading. It does not reflect the vid hdr offset properly. I assume therefor that it only works for the layout I am using where the vid hdr is at the _end_ of the 1st NAND page (2048). I added the generation of a textfile with information about the blocks which are going into the internal graph representation. Instead of a graph I think that a simple array will simplify the code very much. The array must than be sorted properly to cope with older and newer block-copies but that should not be a problem. discussed the tool with my coleage Andreas Arnez and we found that it might be a good idea to replace it even with a perl program for the same purpose since that would offer the flexibility to change it on the fly when needed. The tool is mainly used for crash analysis so it could be an advantage to change it without needing a C-compiler. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-11-24ubi-utils: Update and bugfix unubiFrank Haverkamp
Drake Dawsett had done some changes to our unubi which where not yet published. I hereby send his latest code and integrated the parameter handling which was changed in our version. When reviewing this very huge patch we need to ensure that possible changes of others are not reversed. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-10-03ubi-utils: migrate to new libubiAlexander Schmidt
This patchset migrates the remaining tools (pddcustomize, ubimirror and pfiflash) to the new libubi. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-09-26ubi-utils: Nand2bin add more information when bad blocks occurFrank Haverkamp
When bad blocks occur more debug information is needed. To identify the bad blocks the blocksize is required. The split block mode was added to generate files per block. In split mode the bad block markers are analyzed and a summary is printed at the end. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-09-26ubi-utils: Fixup oob data generationFrank Haverkamp
The filename for the OOB data was wrongly assigned. OOB data could therefore not be dumped. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2007-08-29ubi-utils: remove useless build informationArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-08-29ubi-utils: get rid of compile warningsArtem Bityutskiy
Just silly hacks. Also remove udevsettle() invocation from UBI library. If it must be called, it is not library's business anyway. Wa added it to make scripts which use ubimkvol utility run, so it is the only caller that really needs this. So just move the cruft to the utility. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-08-29ubi-utils: do not interfer with system namespaceArtem Bityutskiy
Rename __unused to ubi_unused to avoid clashes with system namespace Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-08-13ubi-utils: add -m option to ubimkvolZoltan Sogor
Creates the volume with maximum available size Signed-off-by: Zoltan Sogor <weth@inf.u-szeged.hu> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@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-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 libubi for latest UBIAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.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-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-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>