summaryrefslogtreecommitdiff
path: root/ubi-utils
AgeCommit message (Collapse)Author
2008-04-20ubi-utils: add ubiformatArtem Bityutskiy
A new utility to erase MTD devices and flash UBI images, while preserving erase counters Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-20ubi-utils: add libscanArtem Bityutskiy
A library to scan MTD devices. For now it only reads EC header. Later it may be improved if needed. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-20ubi-utils: add libmtdArtem Bityutskiy
Just collection of functions to make it easier to work with MTD devices. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-20ubi-utils: various clean-ups and preparationsArtem Bityutskiy
This patch introduces many clean-ups, nicifications and preparations to the following ubiformat utility. There are also fixes. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-17ubi-utils: use common.h in libubiArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-17Use LSB locations for manpagesRiku Voipio
LSB says manpages belong to /usr/share/man, adjust makefile defaults accordingly. Signed-off-by: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-04-17Teach libubi_open not to prirnt error messageArtem Bityutskiy
... when it is expected that UBI is not necessarily present Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-16ubinize: correctly calculate VID offset when min I/O unit is 1Artem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-07ubi-utils: fix a typoArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-04-02ubi-utils: fix printing typosArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-03-27ubi-utils: fix wrong variable printoutZoltan Sogor
Signed-off-by: Zoltan Sogor <weth@inf.u-szeged.hu> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-03-27ubi-utils: don't use argp.hHamish Moffatt
Don't include argp.h as it's glibc-specific, and not used anyway. Signed-Off-By: Hamish Moffatt <hamish@cloud.net.au> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-23ubi-utils: fix compilation warnings in eb_chain.c when using gcc 4.2.3Otavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2008-02-23ubi-utils: fix compilation warnings in unubi_analyze.c when using gcc 4.2.3Otavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2008-02-23ubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3Otavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2008-02-22ubi-utils: pddcustomize fixup update volumeFrank Haverkamp
Somehow calling ubi_update_start was forgotten and caused the tool not to write but silently ignore the write. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2008-02-21ubi-utils: Fixup Makefile for new version of the toolsFrank Haverkamp
Because of defining targets which get never build calling make multiple times caused regeneration of the code. The fix creates proper .a files which prevent the rebuild since they exist after build. Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
2008-02-20ubi-tools: sanify old and new tools a bitArtem Bityutskiy
This commit adds compatible options to new ubimkvol, ubirmvol, and ubiupdatevol and deletes corresponding old utilities. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-19ubi-nize: fix output messagesArtem Bityutskiy
As reported by one of the users there is a missing white-space and unknown abbreviation in the output. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-19Remove redundant testsArtem Bityutskiy
Sorry for this mess in the history, but I hope this is the last ugly commit. I accidentally copies the tests from mtd-utils.git/tests/ubi-tests/ to here. Remove them. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-19Revert ubi-tools changesArtem Bityutskiy
Restore ubi tools to their "original" state, which means to the state they were before I stareted cleaning them up. Instead, create a "new-utils" subdirectory and move my work there. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-16Fix error message printingArtem Bityutskiy
Add missing "\n" to get rid of ugliness like: [dedekind@golum test]$ ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg ubinize error: cannot stat "/home/dedekind/git/ubifs.img" error 2 (No such file or directory)[dedekind@golum test]$ Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-16ubinize: bugfix in parsing image size stringArtem Bityutskiy
This is a copy-paste problem: copied, but forgot to change the argument. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-06ubi-tools: improve printing macrosArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-06ubimkvol: slightly amend printingArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-01libubi: fix sysfs direntries scanningArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-02-01ubi-tools: fix ubinizeAdrian Hunter
ubinize reserves 2 eraseblocks for the volume table at the start of the output file and then never seeked back to the start of the file. Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25ubi-utils: use mtd_swab.hArtem Bityutskiy
Do not relay on asm/byteorder and use mtd_swab.h instead Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25libubi: fix commentArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25libubi: support atomic LEB change ioctlArtem Bityutskiy
And add testing for this feature. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25ubi-utils: use macros not hardcoded constantsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25ubi-utils: remove unneeded includeArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-25ubi-tools: fix compilation problemsArtem Bityutskiy
It appears that older system do not expose __be32 and friends to userspace, so use uint32_t and friends. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-24ubinize: remove dead codeArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-24ubinize: add autoresize flag supportArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-24ubi-utils: check image file size in ubinizeArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-24ubi-utils: add ubinize documentationArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-23ubi-utils: return old toolsArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-23ubi-utils: remove all old toolsArtem Bityutskiy
Remove all old tools because I cannot maintain them and the original authors do not seem to have time for this. Some of the tools do not work properly, some are just vague and undocumented and seem to be oriented to the environment of the IBM guys. Nevertheless, I'll return the tool as is in the next commit, becouse they are still useful. This commit also adds a ubinize utility to generate UBI images. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-22ubi-utils: massive changesArtem Bityutskiy
This commit basically removes most of the old ubi utilities as they are barely maintainamble. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-22ubi-utils: save more filesArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-21ubi-utils: save original files in sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: tweak pfi2ubiArtem Bityutskiy
Make it not depend on pdd and pass flash-related parameters via command line instead. Make it look more like the other UBI utilities. It still needs some more work. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: save libubigenArtem Bityutskiy
I'm going to change libubigen so saving the old one in sort-me-out. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: move ecclayouts.h to sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: move more stuff to sort-me-outArtem Bityutskiy
Also remove error messages stuff from pfi2bin Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-01-18ubi-utils: move pddcustomize to sort-me-outArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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>