aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2007-08-03Increment mkfs.jffs2 version numberv1.1.0Josh Boyer
Several change have gone into mkfs.jffs2 since we switch from CVS, but the version number never got incremented. Bump the version number up so people can distinguish between older and newer versions. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-08-03Remove $Id:$ tagsJosh Boyer
The $Id:$ tags are left over from the old CVS repository. Several files have since been changed, and they generally have little value in a git repo so they should be removed. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
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>