]> www.infradead.org Git - mtd-utils.git/log
mtd-utils.git
16 years agoubi-utils: use 'stat(2)' instead of 'lstat(2)'
Enrico Scholz [Mon, 25 Aug 2008 09:21:48 +0000 (11:21 +0200)]
ubi-utils: use 'stat(2)' instead of 'lstat(2)'

The UBI tools refuse to work with symlinks like
'/dev/ubi/bootloader -> ../ubi0_2' because they use 'lstat(2)' and get
information about the symlink but not about the device.  This is
unwanted and fixed by this patch.

This patch renames 'struct stat stat' variables to 'st' to avoid
compilation errors.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agomtd-utils: add support for 4k pages.
Thomas Gleixner [Wed, 20 Aug 2008 10:32:14 +0000 (12:32 +0200)]
mtd-utils: add support for 4k pages.

Add support for 4K pages in nanddump & nandwrite.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agomkfs.ubifs: remove debugging leftovers from Makefile
Artem Bityutskiy [Thu, 21 Aug 2008 08:57:37 +0000 (11:57 +0300)]
mkfs.ubifs: remove debugging leftovers from Makefile

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agouse $(MAKE) rather than make
Mike Frysinger [Wed, 20 Aug 2008 17:52:05 +0000 (13:52 -0400)]
use $(MAKE) rather than make

If you execute straight `make`, this prevents the active make env from
being passed on to sub children.  This prevents parallel building as well
as build flag passing.

I also dropped the recursive make in ubi-utils/Makefile for the all target
as this causes problems when building in parallel.  All of the targets
that we actually care about are handled by the $(NTARGETS) target anyways.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agomkfs.ubifs: set CFLAGS/LDLIBS properly
Mike Frysinger [Wed, 20 Aug 2008 17:57:09 +0000 (13:57 -0400)]
mkfs.ubifs: set CFLAGS/LDLIBS properly

CFLAGS should only be set as a default instead of overriding the user's
choices.  LDLIBS is for adding libraries, not LDFLAGS.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agomtd-utils: enable parallel build process
Sebastian Siewior [Wed, 20 Aug 2008 19:50:18 +0000 (21:50 +0200)]
mtd-utils: enable parallel build process

-j 2 build was not possible without this patch.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
16 years agomkfs.ubifs: set program version as 1.0
Artem Bityutskiy [Tue, 19 Aug 2008 10:21:47 +0000 (13:21 +0300)]
mkfs.ubifs: set program version as 1.0

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agoAdd mkfs.ubifs
Artem Bityutskiy [Tue, 19 Aug 2008 10:18:07 +0000 (13:18 +0300)]
Add mkfs.ubifs

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agofs-tests: allow for symlink name too long in integrity test
Adrian Hunter [Tue, 12 Aug 2008 11:08:14 +0000 (14:08 +0300)]
fs-tests: allow for symlink name too long in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agofs-tests: fix max file name length in integrity test
Adrian Hunter [Tue, 12 Aug 2008 11:08:11 +0000 (14:08 +0300)]
fs-tests: fix max file name length in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
16 years agofs-tests: fix symlink bug in integrity test
Adrian Hunter [Tue, 12 Aug 2008 11:08:06 +0000 (14:08 +0300)]
fs-tests: fix symlink bug in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubinize: fix static volumes generation
Artem Bityutskiy [Mon, 28 Jul 2008 09:52:24 +0000 (12:52 +0300)]
ubinize: fix static volumes generation

When static volumes is generated, the 'used_ebs' field of VID
header has to be calculated based on image file size, not on
the volume size. Fix this.

This patch also improves error reporting a little and re-arrages
the code so that all the validation is done in 'read_section()'

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tests: fix run script
Artem Bityutskiy [Mon, 14 Jul 2008 09:59:26 +0000 (12:59 +0300)]
ubi-tests: fix run script

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tests: fix makefile
Artem Bityutskiy [Mon, 14 Jul 2008 09:51:07 +0000 (12:51 +0300)]
ubi-tests: fix makefile

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agouninize: add more ini-file validation
Artem Bityutskiy [Tue, 8 Jul 2008 12:26:42 +0000 (15:26 +0300)]
uninize: add more ini-file validation

Check that volume names and IDs are unique

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubinize: validate number of sections
Artem Bityutskiy [Tue, 8 Jul 2008 11:06:35 +0000 (14:06 +0300)]
ubinize: validate number of sections

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoMakefile: Add Optional ZLIB and LZO CPPFLAGS and LDFLAGS
Grant Erickson [Wed, 18 Jun 2008 14:35:39 +0000 (07:35 -0700)]
Makefile: Add Optional ZLIB and LZO CPPFLAGS and LDFLAGS

This adds support for allowing the specification of unique CPPFLAGS and
LDFLAGS for both LZO and ZLIB. In addition, it allows for independently
specifying both PREFIX and EXEC_PREFIX.

The former is useful in some cross-compilation environments where the
LZO and ZLIB versions being built against are not those installed in the
standard locations.

The latter is useful when installing mtd-utils in a multi-architecture
installation area.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
17 years agoubiupdatevol: minor tweak v1.2.0
Artem Bityutskiy [Fri, 27 Jun 2008 16:21:28 +0000 (19:21 +0300)]
ubiupdatevol: minor tweak

Undo my weird change which slipped accidentally to the commit.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubiupdate: support reading from stdio
Hamish Moffatt [Fri, 27 Jun 2008 16:13:10 +0000 (19:13 +0300)]
ubiupdate: support reading from stdio

1. Adds -s/--size switch;
2. Allows the image file to be specified as '-', meaning stdin; if used,
the size must be specified.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubiformat: reverse question about vid offset change
Bernard Blackham [Wed, 25 Jun 2008 13:17:24 +0000 (21:17 +0800)]
ubiformat: reverse question about vid offset change

Users can pass the -O option to ubiformat to override the VID header
offset on the command-line. If for some reason, the new offset does
not match what is on flash, ubiformat currently prompts the user if
they'd rather use the *old* offsets.  This means that calling
ubiformat with --yes will not do what was requested on the
command-line.

This patch reverses the question so --yes is actually useful for
running in batch-mode.

Signed-off-by: Bernard Blackham <bernard@largestprime.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agomkfs.jffs2: Add Support for Symlinks to Device Table
Grant Erickson [Fri, 13 Jun 2008 15:46:37 +0000 (01:46 +1000)]
mkfs.jffs2: Add Support for Symlinks to Device Table

Added support for symbolic links to the grammar of the device table file
such that links that already exist in the root working directory may
have their permissions and ownership changed. Creating symbolic links
anew is still unsupported.

Added a note to this effect in the manual reference page.

Print out the type character when encountering an unsupported file type
(e.g. symbolic links when created anew).

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Josh Boyer <jwboyer@vader.jdub.homelinux.org>
17 years agomkfs.jffs2: Remove Incorrect Find Optimization
Grant Erickson [Fri, 13 Jun 2008 15:46:29 +0000 (01:46 +1000)]
mkfs.jffs2: Remove Incorrect Find Optimization

Remove performance optimization in find_filesystem_entry that prevented
the successful simultaneous use of --root and --devtable where the
latter is only used to fix-up permissions and ownership and to create
device nodes.

As it stood, the performance optimization prevented a successful find
where directory recursion was required or where the file being searched
for had any mode permission bits set.

See http://lists.infradead.org/pipermail/linux-mtd/2008-June/021997.html
for additional information.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Josh Boyer <jwboyer@vader.jdub.homelinux.org>
17 years agorespect CFLAGS/CPPFLAGS from build environment
Mike Frysinger [Wed, 11 Jun 2008 21:49:08 +0000 (07:49 +1000)]
respect CFLAGS/CPPFLAGS from build environment

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
17 years agofs-tests: fix rename bug in integrity test
Adrian Hunter [Tue, 17 Jun 2008 10:54:23 +0000 (13:54 +0300)]
fs-tests: fix rename bug in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: add symlinks to integrity test
Adrian Hunter [Thu, 12 Jun 2008 07:57:29 +0000 (10:57 +0300)]
fs-tests: add symlinks to integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: check link count in integrity test
Adrian Hunter [Wed, 11 Jun 2008 12:34:00 +0000 (15:34 +0300)]
fs-tests: check link count in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: add rename to integrity test
Adrian Hunter [Wed, 11 Jun 2008 12:32:52 +0000 (15:32 +0300)]
fs-tests: add rename to integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: add linking/unlinking to integrity test
Adrian Hunter [Wed, 11 Jun 2008 07:41:11 +0000 (10:41 +0300)]
fs-tests: add linking/unlinking to integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: make integrity test shrink faster
Adrian Hunter [Fri, 6 Jun 2008 10:41:51 +0000 (13:41 +0300)]
fs-tests: make integrity test shrink faster

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: add mmapping to integrity test for ubifs
Adrian Hunter [Fri, 6 Jun 2008 07:23:18 +0000 (10:23 +0300)]
fs-tests: add mmapping to integrity test for ubifs

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: preserve mount options when mounting again
Adrian Hunter [Thu, 5 Jun 2008 11:11:29 +0000 (14:11 +0300)]
fs-tests: preserve mount options when mounting again

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: stop integrity test looping forever
Adrian Hunter [Thu, 5 Jun 2008 11:00:11 +0000 (14:00 +0300)]
fs-tests: stop integrity test looping forever

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: fix bug in integrity test
Adrian Hunter [Tue, 13 Nov 2007 10:38:00 +0000 (12:38 +0200)]
fs-tests: fix bug in integrity test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: add simple performance test
Adrian Hunter [Tue, 6 Nov 2007 11:08:12 +0000 (13:08 +0200)]
fs-tests: add simple performance test

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: make integrity test record truncations
Adrian Hunter [Mon, 29 Oct 2007 12:45:37 +0000 (14:45 +0200)]
fs-tests: make integrity test record truncations

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: make integrity test shrink better
Adrian Hunter [Mon, 22 Oct 2007 11:06:07 +0000 (14:06 +0300)]
fs-tests: make integrity test shrink better

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agofs-tests: allow for ENOSPC in test fwrite00
Adrian Hunter [Mon, 8 Oct 2007 14:43:16 +0000 (17:43 +0300)]
fs-tests: allow for ENOSPC in test fwrite00

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
17 years agoubi-tests: fix compilation
Artem Bityutskiy [Wed, 4 Jun 2008 16:23:52 +0000 (19:23 +0300)]
ubi-tests: fix compilation

libubi_open interface was changed, but the tests were not
amended. Fix this.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix typo in ubiformat
Artem Bityutskiy [Thu, 29 May 2008 10:05:36 +0000 (13:05 +0300)]
ubi-utils: fix typo in ubiformat

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoFix recv_image build harder
David Woodhouse [Thu, 22 May 2008 11:44:14 +0000 (12:44 +0100)]
Fix recv_image build harder

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoubi-utils: remove unnecessary ubinize warning
Artem Bityutskiy [Fri, 16 May 2008 08:53:42 +0000 (11:53 +0300)]
ubi-utils: remove unnecessary ubinize warning

... and fix help message.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: add ubiformat to Makefile
Artem Bityutskiy [Fri, 16 May 2008 08:08:30 +0000 (11:08 +0300)]
ubi-utils: add ubiformat to Makefile

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fixe ubiupdatevol
Artem Bityutskiy [Tue, 13 May 2008 11:28:45 +0000 (14:28 +0300)]
ubi-utils: fixe ubiupdatevol

-t option does not require image file.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix long options
Artem Bityutskiy [Wed, 23 Apr 2008 15:21:03 +0000 (18:21 +0300)]
ubi-utils: fix long options

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: make sure only one volume is auto-resize
Artem Bityutskiy [Wed, 23 Apr 2008 15:13:04 +0000 (18:13 +0300)]
ubi-utils: make sure only one volume is auto-resize

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: improve input parameters checks
Artem Bityutskiy [Wed, 23 Apr 2008 15:05:05 +0000 (18:05 +0300)]
ubi-utils: improve input parameters checks

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agomtd-utils: fix input parameter checks
Artem Bityutskiy [Wed, 23 Apr 2008 10:48:09 +0000 (13:48 +0300)]
mtd-utils: fix input parameter checks

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix percent output in ubiformat
Artem Bityutskiy [Mon, 21 Apr 2008 16:13:58 +0000 (19:13 +0300)]
ubi-utils: fix percent output in ubiformat

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix the output print
Artem Bityutskiy [Mon, 21 Apr 2008 15:09:17 +0000 (18:09 +0300)]
ubi-utils: fix the output print

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: improve input parameters checks
Artem Bityutskiy [Sun, 20 Apr 2008 10:22:34 +0000 (13:22 +0300)]
ubi-utils: improve input parameters checks

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: add ubiformat
Artem Bityutskiy [Sun, 20 Apr 2008 09:35:32 +0000 (12:35 +0300)]
ubi-utils: add ubiformat

A new utility to erase MTD devices and flash UBI images, while
preserving erase counters

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: add libscan
Artem Bityutskiy [Sun, 20 Apr 2008 09:34:32 +0000 (12:34 +0300)]
ubi-utils: add libscan

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>
17 years agoubi-utils: add libmtd
Artem Bityutskiy [Sun, 20 Apr 2008 09:33:32 +0000 (12:33 +0300)]
ubi-utils: add libmtd

Just collection of functions to make it easier to work with MTD devices.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: various clean-ups and preparations
Artem Bityutskiy [Sun, 20 Apr 2008 15:14:37 +0000 (18:14 +0300)]
ubi-utils: various clean-ups and preparations

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>
17 years agoubi-utils: use common.h in libubi
Artem Bityutskiy [Thu, 17 Apr 2008 13:43:20 +0000 (16:43 +0300)]
ubi-utils: use common.h in libubi

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agomkfs.jffs2.c: fix issue with crashing when using lzo compression
Siarhei Siamashka [Thu, 17 Apr 2008 13:32:28 +0000 (16:32 +0300)]
mkfs.jffs2.c: fix issue with crashing when using lzo compression

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agocompr_lzo.c: allocate enough memory for lzo compressor.
Riku Voipio [Fri, 11 Apr 2008 09:33:37 +0000 (12:33 +0300)]
compr_lzo.c: allocate enough memory for lzo compressor.

This is the same bug as in kernel, pointed out the LZO author
(Markus Oberhumer):

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f2a11b158a24301e9158e9c873fa88e5eb775486

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoUse LSB locations for manpages
Riku Voipio [Fri, 11 Apr 2008 09:27:38 +0000 (12:27 +0300)]
Use LSB locations for manpages

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>
17 years agoTeach libubi_open not to prirnt error message
Artem Bityutskiy [Thu, 17 Apr 2008 12:53:35 +0000 (15:53 +0300)]
Teach libubi_open not to prirnt error message

... when it is expected that UBI is not necessarily present

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubinize: correctly calculate VID offset when min I/O unit is 1
Artem Bityutskiy [Wed, 16 Apr 2008 17:47:13 +0000 (20:47 +0300)]
ubinize: correctly calculate VID offset when min I/O unit is 1

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix a typo
Artem Bityutskiy [Mon, 7 Apr 2008 19:19:01 +0000 (22:19 +0300)]
ubi-utils: fix a typo
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix printing typos
Artem Bityutskiy [Wed, 2 Apr 2008 08:04:51 +0000 (11:04 +0300)]
ubi-utils: fix printing typos

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: fix wrong variable printout
Zoltan Sogor [Thu, 27 Mar 2008 11:26:49 +0000 (12:26 +0100)]
ubi-utils: fix wrong variable printout

Signed-off-by: Zoltan Sogor <weth@inf.u-szeged.hu>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: don't use argp.h
Hamish Moffatt [Wed, 26 Mar 2008 05:17:59 +0000 (16:17 +1100)]
ubi-utils: don't use argp.h

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>
17 years agoFix recv_image compilation with new glibc
David Woodhouse [Sat, 23 Feb 2008 13:28:36 +0000 (22:28 +0900)]
Fix recv_image compilation with new glibc

struct ip_mreq is hidden behind __USE_MISC now

17 years agoubi-utils: fix compilation warnings in eb_chain.c when using gcc 4.2.3
Otavio Salvador [Sat, 23 Feb 2008 13:25:39 +0000 (10:25 -0300)]
ubi-utils: fix compilation warnings in eb_chain.c when using gcc 4.2.3

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
17 years agoubi-utils: fix compilation warnings in unubi_analyze.c when using gcc 4.2.3
Otavio Salvador [Sat, 23 Feb 2008 13:23:29 +0000 (10:23 -0300)]
ubi-utils: fix compilation warnings in unubi_analyze.c when using gcc 4.2.3

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
17 years agoubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3
Otavio Salvador [Sat, 23 Feb 2008 13:17:51 +0000 (10:17 -0300)]
ubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
17 years agoubi-utils: pddcustomize fixup update volume
Frank Haverkamp [Fri, 22 Feb 2008 11:37:26 +0000 (13:37 +0200)]
ubi-utils: pddcustomize fixup update volume

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>
17 years agoubi-utils: Fixup Makefile for new version of the tools
Frank Haverkamp [Thu, 21 Feb 2008 14:00:13 +0000 (16:00 +0200)]
ubi-utils: Fixup Makefile for new version of the tools

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>
17 years agoubi-tools: sanify old and new tools a bit
Artem Bityutskiy [Wed, 20 Feb 2008 16:00:42 +0000 (18:00 +0200)]
ubi-tools: sanify old and new tools a bit

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>
17 years agoubi-nize: fix output messages
Artem Bityutskiy [Tue, 19 Feb 2008 16:07:02 +0000 (18:07 +0200)]
ubi-nize: fix output messages

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>
17 years agoRemove redundant tests
Artem Bityutskiy [Tue, 19 Feb 2008 15:17:44 +0000 (17:17 +0200)]
Remove redundant tests

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>
17 years agoRevert ubi-tools changes
Artem Bityutskiy [Tue, 19 Feb 2008 12:54:17 +0000 (14:54 +0200)]
Revert ubi-tools changes

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>
17 years agoFix error message printing
Artem Bityutskiy [Sat, 16 Feb 2008 13:06:31 +0000 (15:06 +0200)]
Fix error message printing

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>
17 years agoubinize: bugfix in parsing image size string
Artem Bityutskiy [Sat, 16 Feb 2008 13:03:55 +0000 (15:03 +0200)]
ubinize: bugfix in parsing image size string

This is a copy-paste problem: copied, but forgot to change
the argument.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoAdd load_nandsim.sh script
Artem Bityutskiy [Fri, 8 Feb 2008 10:10:54 +0000 (12:10 +0200)]
Add load_nandsim.sh script

This script makes it easier to load nandsim and emulate a NAND flash
of specified geometry

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tools: improve printing macros
Artem Bityutskiy [Wed, 6 Feb 2008 16:59:15 +0000 (18:59 +0200)]
ubi-tools: improve printing macros

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubimkvol: slightly amend printing
Artem Bityutskiy [Wed, 6 Feb 2008 14:23:00 +0000 (16:23 +0200)]
ubimkvol: slightly amend printing

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agomtd_debug: support new flags
Artem Bityutskiy [Mon, 4 Feb 2008 15:32:01 +0000 (17:32 +0200)]
mtd_debug: support new flags

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agolibubi: fix sysfs direntries scanning
Artem Bityutskiy [Fri, 1 Feb 2008 10:40:28 +0000 (12:40 +0200)]
libubi: fix sysfs direntries scanning

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tools: fix ubinize
Adrian Hunter [Thu, 31 Jan 2008 15:21:57 +0000 (17:21 +0200)]
ubi-tools: fix ubinize

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>
17 years agoubi-utils: use mtd_swab.h
Artem Bityutskiy [Fri, 25 Jan 2008 15:54:50 +0000 (17:54 +0200)]
ubi-utils: use mtd_swab.h

Do not relay on asm/byteorder and use mtd_swab.h instead

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agolibubi: fix comment
Artem Bityutskiy [Fri, 25 Jan 2008 14:50:15 +0000 (16:50 +0200)]
libubi: fix comment

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agolibubi: support atomic LEB change ioctl
Artem Bityutskiy [Fri, 25 Jan 2008 14:43:07 +0000 (16:43 +0200)]
libubi: support atomic LEB change ioctl

And add testing for this feature.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tests: stylistic amendments
Artem Bityutskiy [Fri, 25 Jan 2008 12:33:58 +0000 (14:33 +0200)]
ubi-tests: stylistic amendments

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tests: improve io_update
Artem Bityutskiy [Fri, 25 Jan 2008 12:18:41 +0000 (14:18 +0200)]
ubi-tests: improve io_update

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: use macros not hardcoded constants
Artem Bityutskiy [Fri, 25 Jan 2008 09:32:40 +0000 (11:32 +0200)]
ubi-utils: use macros not hardcoded constants

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: remove unneeded include
Artem Bityutskiy [Fri, 25 Jan 2008 09:27:06 +0000 (11:27 +0200)]
ubi-utils: remove unneeded include

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-tools: fix compilation problems
Artem Bityutskiy [Fri, 25 Jan 2008 09:22:00 +0000 (11:22 +0200)]
ubi-tools: fix compilation problems

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>
17 years agoubi-tools: fix Makefile
Artem Bityutskiy [Fri, 25 Jan 2008 09:04:08 +0000 (11:04 +0200)]
ubi-tools: fix Makefile

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubinize: remove dead code
Artem Bityutskiy [Thu, 24 Jan 2008 11:21:37 +0000 (13:21 +0200)]
ubinize: remove dead code

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubinize: add autoresize flag support
Artem Bityutskiy [Thu, 24 Jan 2008 11:17:24 +0000 (13:17 +0200)]
ubinize: add autoresize flag support

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: check image file size in ubinize
Artem Bityutskiy [Thu, 24 Jan 2008 10:00:02 +0000 (12:00 +0200)]
ubi-utils: check image file size in ubinize

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: add ubinize documentation
Artem Bityutskiy [Thu, 24 Jan 2008 09:52:41 +0000 (11:52 +0200)]
ubi-utils: add ubinize documentation

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: return old tools
Artem Bityutskiy [Wed, 23 Jan 2008 17:42:44 +0000 (19:42 +0200)]
ubi-utils: return old tools

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: remove all old tools
Artem Bityutskiy [Wed, 23 Jan 2008 17:34:52 +0000 (19:34 +0200)]
ubi-utils: remove all old tools

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>
17 years agoubi-utils: massive changes
Artem Bityutskiy [Tue, 22 Jan 2008 14:02:52 +0000 (16:02 +0200)]
ubi-utils: massive changes

This commit basically removes most of the old ubi utilities
as they are barely maintainamble.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: save more files
Artem Bityutskiy [Tue, 22 Jan 2008 14:00:54 +0000 (16:00 +0200)]
ubi-utils: save more files

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
17 years agoubi-utils: save original files in sort-me-out
Artem Bityutskiy [Mon, 21 Jan 2008 09:20:21 +0000 (11:20 +0200)]
ubi-utils: save original files in sort-me-out

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>