<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/ubi-utils, branch v1.4.7</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.7</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.4.7'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2011-11-18T21:53:11+00:00</updated>
<entry>
<title>Merge branch 'brian'</title>
<updated>2011-11-18T21:53:11+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@intel.com</email>
</author>
<published>2011-11-18T21:53:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=f8aa6922dde02835ba97e84be41f387cdd38ec7d'/>
<id>urn:sha1:f8aa6922dde02835ba97e84be41f387cdd38ec7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mtdinfo: provide info when used without arguments</title>
<updated>2011-11-17T22:22:11+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-11-16T20:03:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=97bb4aa681f4df5e784c1f8a8db049a95a0d65c6'/>
<id>urn:sha1:97bb4aa681f4df5e784c1f8a8db049a95a0d65c6</id>
<content type='text'>
If the user specifies neither a MTD argument nor the `-a' flag, we print
a cryptic message; i.e.,

    # mtdinfo
    libmtd: error!: cannot get information about "(null)"
            error 14 (Bad address)
    mtdinfo: error!: cannot get information about MTD device "(null)"
             error 14 (Bad address)

This is a regression; previously, mtdinfo would give some short info
about number of devices, etc. when used without arguments. To fix this,
we revert commit d53c03b0989f8354a7e4dbb947a150fc7fe3f6d1 and call
print_general_info() when no device is specified.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: handle write errors correctly</title>
<updated>2011-09-19T04:52:49+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>artem.bityutskiy@intel.com</email>
</author>
<published>2011-09-11T10:52:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=d9cbf6a5b3e6d535eed2e9b28257562ba9e2a515'/>
<id>urn:sha1:d9cbf6a5b3e6d535eed2e9b28257562ba9e2a515</id>
<content type='text'>
This issue was reported and analyzed by
Anton Olofsson &lt;anol.martinsson@gmail.com&gt;:

when ubiformat encounters a write error while flashing the UBI image (which may
come from a file of from stdout), it correctly marks the faulty eraseblock as
bad and skips it. However, it also incorrectly drops the data buffer which was
supposed to be written, and reads next block of data.

This patch fixes this issue - in case of a write error, we preserve the current
data and write it to the next eraseblock, instead of dropping it.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>libmtd: modify `mtd_write' to cover OOB writes</title>
<updated>2011-09-11T13:11:41+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-31T20:00:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=cd42aea270e84884e6bbac845414568f0febbedf'/>
<id>urn:sha1:cd42aea270e84884e6bbac845414568f0febbedf</id>
<content type='text'>
To support the MEMWRITE ioctl, we will need a different sort of libmtd
interface for writing to flash. We will expand mtd_write to include more
functionality; for now, we just change the function definition and
description as we begin to add the actual functionality.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs/ubinize: increase PEB size limit to 2MiB</title>
<updated>2011-08-20T04:07:37+00:00</updated>
<author>
<name>Viktar Palstsiuk</name>
<email>viktar.palstsiuk@promwad.com</email>
</author>
<published>2011-08-20T04:07:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=92ed6c0bf6f6793395cdeec5a61ac2059b005056'/>
<id>urn:sha1:92ed6c0bf6f6793395cdeec5a61ac2059b005056</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: consolidate help as display_help()</title>
<updated>2011-08-16T14:14:14+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-15T20:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=d2432457a5469804c33f3f71c5d1a5f722a9295f'/>
<id>urn:sha1:d2432457a5469804c33f3f71c5d1a5f722a9295f</id>
<content type='text'>
The help message for mtdinfo is unnecessarily disjointed. It is split
into three strings which reuse the PROGRAM_NAME string inefficiently and
don't have a consistent style.

This fixup should provide a cleaner look with aligned columns and
easier-to-read source code.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: fixup "example usage" help section</title>
<updated>2011-08-16T14:14:02+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-09T21:36:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=e7b50d4366c6b72241aa0c0c2472103305ee0ed5'/>
<id>urn:sha1:e7b50d4366c6b72241aa0c0c2472103305ee0ed5</id>
<content type='text'>
Line up columns better so that everything is more readable.

Remove "Example 1" since `mtdinfo' does not print information when not
given any arguments.

Remove "...UBI layout information" from description of Example 4, since
Example 4 (now 3) doesn't include the `-u' flag.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: restructure help message</title>
<updated>2011-08-16T14:14:01+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-09T21:36:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3ebad2f6f7e19b47dea5048a1e3d97a12d0479e5'/>
<id>urn:sha1:3ebad2f6f7e19b47dea5048a1e3d97a12d0479e5</id>
<content type='text'>
We weren't very consistent in how we listed our options in the mtdinfo
help string (listing short options, long options, or both). Plus, not all
options are inter-operable, so we should distinguish this somewhat.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: refactor code to remove "args.all" dependency</title>
<updated>2011-08-16T14:12:38+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-09T21:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=d53c03b0989f8354a7e4dbb947a150fc7fe3f6d1'/>
<id>urn:sha1:d53c03b0989f8354a7e4dbb947a150fc7fe3f6d1</id>
<content type='text'>
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: don't open NULL pointer when getting region_info with `-a'</title>
<updated>2011-08-16T14:12:17+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2011-08-09T21:36:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=8faa32ae07b0fce0636f6e57d9dd4a93db0ebc13'/>
<id>urn:sha1:8faa32ae07b0fce0636f6e57d9dd4a93db0ebc13</id>
<content type='text'>
This "fixes" a regression found in:
  commit 266061ebd5d72391f0a0e831b018e8fc7fea68a1
  mtdinfo: add regioninfo/eraseblock map display

On certain flash (NOR flash that have eraseblock region info),
`mtdinfo -a' tries to open the MTD node file, for use with the ioctl
MEMGETREGIONINFO; however, we didn't supply a device node path to
`mtdinfo -a', so it's using NULL, resulting in errors like:

  mtdinfo: error!: couldn't open MTD dev: (null)
           error 14 (Bad address)

For now, we can just skip dumping region_info with the `-a' flag. If we
find a better way to do this (e.g., export via sysfs, find device nodes
via automatic routines, etc.), then we can kill the workaround and this
FIXME should be removed.

The regression was first reported at:

  http://lists.infradead.org/pipermail/linux-mtd/2011-July/037232.html

The result of recent changes is that we cannot get region_info for devices
via the `--all' option. We add a note in the help message warning that
mtdinfo may find more info when given a device patch, e.g., /dev/mtdX.

Reported-by: Brian Foster &lt;brian.foster@maxim-ic.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@intel.com&gt;
</content>
</entry>
</feed>
