<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/ubi-utils, branch v1.5.0</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v1.5.0</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.5.0'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2012-02-14T09:00:13+00:00</updated>
<entry>
<title>mtdinfo: correct grammar on error message</title>
<updated>2012-02-14T09:00:13+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2012-02-09T18:13:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=b989a29c2c1159867e03356d49a2903431899159'/>
<id>urn:sha1:b989a29c2c1159867e03356d49a2903431899159</id>
<content type='text'>
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>mtdinfo: fix `--all' for non-consecutive device numbers</title>
<updated>2012-02-02T11:25:14+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2012-01-27T18:30:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=457c9fe94be95bffaced33029d3ca2986e8179c1'/>
<id>urn:sha1:457c9fe94be95bffaced33029d3ca2986e8179c1</id>
<content type='text'>
When we have assigned non-consecutive device numbers to our MTD devices,
then we run `mtdinfo --all', we get errors once mtdinfo tries to process
the devices in the "hole". For instance, suppose that at boot time, we have
one MTD (/dev/mtd0) then perform a sequence like the following:

 # modprobe mtdram
 # modprobe nandsim
 # rmmod mtdram

Then at this point, we have should have devices 0 and 2 without 1. Then:

 # mtdinfo --all
 ...
 mtdinfo: error!: mtd1 does not correspond to any existing MTD device

We add a check to first see if device is present, then continue to the next
ID if it doesn't exist.

Reported-by: Brian Foster &lt;brian.foster@maxim-ic.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>ubinfo: fix `--all' for non-consecutive device numbers</title>
<updated>2012-01-27T14:55:24+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2012-01-26T07:31:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=fb3281d740b4d222746e5e366732d414038c951e'/>
<id>urn:sha1:fb3281d740b4d222746e5e366732d414038c951e</id>
<content type='text'>
When we have assigned non-consecutive device numbers to our UBI devices,
then we run `ubinfo --all', we get errors once ubinfo tries to process the
devices in the "hole". For instance, suppose there are two UBI devices,
/dev/ubi0 and /dev/ubi10; then, ubinfo will fail trying to open /dev/ubi1
with:

  ubinfo: error!: cannot get information about UBI device 1
         error 2 (No such file or directory)

This patch adds a check to first see if device is present, then continue
to the next ID if it doesn't exist.

Reported-by: Brian Foster &lt;brian.foster@maxim-ic.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>libubi: make `ubi_dev_present()' a library function</title>
<updated>2012-01-27T14:55:24+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2012-01-26T07:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=780ebf0db71429b508ac64b3133f8e4901f64733'/>
<id>urn:sha1:780ebf0db71429b508ac64b3133f8e4901f64733</id>
<content type='text'>
We will use this function in ubinfo.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<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>
</feed>
