summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2007-11-24ubi-utils: Test-case for unubiFrank Haverkamp
We have no good testcases for this kind of tool yet. Adding a 1st draft. 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-09-17fs-tests: fix bug in simple test_2Adrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-09-11Add test program orph.cAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-09-11Improve option handling in nandtest, add markbad and offset/length options.David Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-09-01Update usage information for serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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: add utils to make installArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-08-29ubi-utils: build utils from top dirArtem Bityutskiy
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-29Make optflags easier for distros to overrideDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-17Improve up recv_image error handlingDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-15Make redundancy amount easier to change in serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-15Improve stats and output in recv_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-15Double packet size for multicast imagesDavid Woodhouse
This halves the FEC decode time and doesn't seem to hurt the error rate much. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-15More timing measurementsDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Switch multicast distribution system to round-robin modeDavid Woodhouse
Send one packet from each eraseblock in turn, rather than all packets for one eraseblock together. This means that bursts of loss are evenly spread between blocks. It also makes the client side a bit more complex if you can't assume that there's anywhere except the flash to store its intermediate data. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Rearrange serve_image.c to allow for easily sending one packet per blockDavid Woodhouse
in round-robin fashion rather than full blocks one at a time. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Merge branch 'master' of git+ssh://git.infradead.org/srv/git/mtd-utilsDavid Woodhouse
2007-08-14Import FEC code from Luigi Rizzo's RMDPDavid Woodhouse
Paper: http://info.iet.unipi.it/~luigi/mccr6.ps.gz Code: http://info.iet.unipi.it/~luigi/rmdp980703.tgz Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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-08-11Fix timing calculations for serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-10Mark blocks bad on failed write; don't abort.David Woodhouse
2007-08-10Fine-tine the TX timing for serve_image.David Woodhouse
It just busy-waits until it's time to send the next packet now. Which sucks, but gives us good timing for debugging. Needs work (and actually if we have hrtimers we probably _can_ sleep and still have proper timing). Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Fix repeated warning about ECC correction, in nandtestDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Change multicast protocol to allow for a resending flagDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Add utilities for multicast send/receive of MTD images.David Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Add nand integrity testing utility.David Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-06Copy with write errors in nandwrite, add 'markbad' option too.David Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>