aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-01-18ubi-utils: move pfiflash to sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: move mkbootenv to sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: create control device node as wellArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: move various stuff to sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: tweak mkpfiArtem Bityutskiy
2008-01-18ubi-tools: move ubigen to sort-me-outArtem Bityutskiy
This tool is not really needed and is unused. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: tweak ubigenArtem Bityutskiy
Make ubigen consistent with other UBI utilities Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: minor amendmentsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-17ubi-utils: update headersArtem Bityutskiy
Update UBI headers which requires some renameing changes. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-16tests: move jittertest to tests directoryArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-16tests: move checkfs test to tests directoryArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-16ubi-utils: fix bytes outputArtem Bityutskiy
Fix incorrect output of ubinfo like "Amount of available logical eraseblocks: 00 bytes)" which should look like "Amount of available logical eraseblocks: 0 (0 bytes)" Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-16ubi-utils: fix spelling typo in help outputArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-15ubi-utils: libubi.a was always regenerated due to bug in MakefileFrank Haverkamp
The Makefile defined a target which was never produced. So libubi.a was regenerated regardless any dependencies. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2008-01-15ubi-utils: Remove obsolete code/dataFrank Haverkamp
Artem figured out that certain stuff is obsolete. He also sugested that we move the code from the perl directory into the scripts directory to reduce the number of directories. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2008-01-15ubi-utils: bin2nand, nand2bin add support of different ecc layoutsFrank Haverkamp
Both tools were lacking support of alternate ECC layouts. Only our intitial format was supported. With this change, it should be very easy to add more layouts in addtion to the already supported ones, which are: IBM (our format), and the MTD default layout. NAND OOB sizes of 512 and 2048 are currently supported. In contrast to the old version of bin2nand, the holes inbetween the ECC data is now not filled with 0x00 anymore but instead 0xff (like deleted flash) is used. This should not cause any difference. The testcase reflects the different layouts too. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2008-01-15ubi-utils: fix bug using readdirAdrian Hunter
Library functions never reset errno to zero, so if you want to use its value to check for errors then you must set it to zero before calling the library function (in this case readdir). Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-26ubi-utils: add ubiattach and ubidetachArtem Bityutskiy
Add 2 new utilities to attach and detach UBI devices. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-utils: move doc to sort-me-outArtem Bityutskiy
It is broken and have to be fixed Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-utils: few mor fixes and cleanupsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-utils: cleanup ubicrc32Artem Bityutskiy
Just few cleanups to make it consistent with other utilites. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-utils: move ubi_jffs2_test.sh to better placeArtem Bityutskiy
... to tests/ubi-tests/ Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-utils: move jffs2_test.shArtem Bityutskiy
Move this piece of code to sort-me-out/. See README. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-23ubi-tests: update to recent libubi changesArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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-20mkfs.jffs2: Set mkfs.jffs2 page size runtime instead of fixedRicard Wanderlof
This patch reads the default PAGE_SIZE from sysconf(), i.e. the system mkfs.jffs2 is running on, instead of just setting it to 4096 (which of course is valid for most systems but not all). This is useful if mkfs.jffs2 is running on the target system, e.g. to create a backup image during firmware upgrade, so that the page size does not have to be set explicitly using a command line parameter. The --pagesize option is supported just as before. If the user has not set the page size explicitly with --pagesize, and the system page size is anything other than 4096, warn the user that an unusual page size is being used, since this behavior is different from before. Signed-off-by Ricard Wanderlöf <ricardw@axis.com> . Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-12-20ubi-utils: move UBI tests to tests/ubi-tests/Artem Bityutskiy
Clean-up ubi-utils a little by moving tests to a proper place. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-20ubi-utils: add one more UBI testArtem Bityutskiy
Add rmvol test 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-12-15ubi-utils: clean-up UBI testsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-15ubi-utils: add more TODOsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-15ubi-utils: add a TODOArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-15ubi-utils: clean-up text filesArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-15ubi-utils: remove unused directoryArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-15ubi-utils: remove rubbishArtem Bityutskiy
This file makes zero sense nowadays. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-12-14mkfs.jffs2.c: use rbtrees for hardlink trackingDavid Woodhouse
I just couldn't live with myself. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-12-14mkfs.jffs2.c: detect hardlinksDavid Woodhouse
... with the stupidest possible algorithm for storing them and looking them up. Optimising that is simple enough, but left as an exercise for the user. This is userspace, after all. It's not as if I care. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-12-14mkfs.jffs2: use separate ino field in struct filesystem_entry for jffs2 ino#David Woodhouse
...because when we support hard links we'll want to preserve the original inode numbers... Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-11-26Remove mkfs.jffs from the makefile targets.Josh Boyer
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-11-26Remove mkfs.jffs utility. The filesystem support was removed in the kernelJosh Boyer
in 2.6.21. Signed-off-by: Josh Boyer <jwboyer@gmail.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>