<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/ubi-utils/src, branch v1.3.1</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v1.3.1</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v1.3.1'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2010-01-15T17:12:24+00:00</updated>
<entry>
<title>ubiformat: boost version to 1.5</title>
<updated>2010-01-15T17:12:24+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2010-01-15T17:04:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a67747b7a314e685085b62e8239442ea54959dbc'/>
<id>urn:sha1:a67747b7a314e685085b62e8239442ea54959dbc</id>
<content type='text'>
We fixed the sequence numbers bug, which is quite serious.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: be consistent with sequence numbers</title>
<updated>2010-01-15T17:12:24+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2010-01-09T23:39:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=2caf2c6fda66f1f09502245229230743dc20295b'/>
<id>urn:sha1:2caf2c6fda66f1f09502245229230743dc20295b</id>
<content type='text'>
This commit fixes a stupid an nasty bug. When we flash an UBI image,
we do not change its sequence numbers. But when we format the rest
of the PEBs (beyond the flashed image), we use a random (or specified
via cmdline) sequence number. As a result, we have a broken flash
format and UBI refuses it, because half of it has one sequence number,
another half has a different one.

What we have to do instead, we have to substitute image's sequence
number with ours.

Reported-by: Jeff Angielski &lt;jeff@theptrgroup.com&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
Tested-by: Jeff Angielski &lt;jeff@theptrgroup.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: always initialize seq number</title>
<updated>2010-01-15T17:12:24+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2010-01-09T23:33:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=48d5de6f84325f2895ae66830d82ce23e827ff6e'/>
<id>urn:sha1:48d5de6f84325f2895ae66830d82ce23e827ff6e</id>
<content type='text'>
For some reasons sequence number was set to 0 in some case, which
is wrong.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: fix error message</title>
<updated>2009-12-09T14:42:59+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2009-12-09T14:42:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a4e502d99129da8ebba6d40b373a4422a175e9af'/>
<id>urn:sha1:a4e502d99129da8ebba6d40b373a4422a175e9af</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: check that min IO size is power of 2</title>
<updated>2009-12-09T14:31:41+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2009-12-09T14:31:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=34e28bf35f7cc7758f87e6a2b82adf6ca186afdb'/>
<id>urn:sha1:34e28bf35f7cc7758f87e6a2b82adf6ca186afdb</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat: fix --erase-counter handling</title>
<updated>2009-11-26T09:38:45+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2009-11-26T09:38:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=14da740cec46d151e813905e449e7ff21e85c01f'/>
<id>urn:sha1:14da740cec46d151e813905e449e7ff21e85c01f</id>
<content type='text'>
The --erase-counter option did not work and this was reproted by
Darwin Rambo &lt;drambo@broadcom.com&gt;

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubi-utils: add ubirsvol tool to resize UBI volumes</title>
<updated>2009-10-05T08:14:57+00:00</updated>
<author>
<name>Arnaud Mouiche</name>
<email>arnaud.mouiche@thomson.net</email>
</author>
<published>2009-10-01T09:31:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=f6055d453e196386f72b05d335c77791f1ab97a2'/>
<id>urn:sha1:f6055d453e196386f72b05d335c77791f1ab97a2</id>
<content type='text'>
This is nearly a copy/paste from ubirmvol.

Signed-off-by: Arnaud Mouiche &lt;arnaud.mouiche@thomson.net&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubinize/ubiformat: improve random number seeding</title>
<updated>2009-09-28T08:50:51+00:00</updated>
<author>
<name>Artem Bityutskiy</name>
<email>Artem.Bityutskiy@nokia.com</email>
</author>
<published>2009-09-28T08:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=75d97ca45b74eccc01b18f44040f946d9d5df9f5'/>
<id>urn:sha1:75d97ca45b74eccc01b18f44040f946d9d5df9f5</id>
<content type='text'>
Add current time to the PID to improve the pseudo-random number
generator seeding. Also, use 'rand()' instead of 'random()', because
'srand()' is for 'rand()'.

Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat/ubinize: Don't randomize 0xFFFFFFFF sequence number</title>
<updated>2009-09-28T08:19:14+00:00</updated>
<author>
<name>Michael Roth</name>
<email>mroth@nessie.de</email>
</author>
<published>2009-09-23T13:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=0e63a4c4f1ebc31f545835bd018174414928fc6f'/>
<id>urn:sha1:0e63a4c4f1ebc31f545835bd018174414928fc6f</id>
<content type='text'>
args.image_seq is of type uint32_t and was initialized to -1 which
becomes 0xFFFFFFFF in this case. Later the value -1 was used as a flag
that args.image_seq should be replaced with a randomized value.

With the option --image-seq (-Q) a user could provide any sequence
number at will.

But when the user provided sequence number was 0xFFFFFFFF this was
understood effectivly as -1 and got overridden by a randomized
sequence number.

So this patch change the programm flow to respect the principle of
least surprise and never use a randomized sequence number when the
user provide one at own will.

Signed-off-by: Michael Roth &lt;mroth@nessie.de&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
<entry>
<title>ubiformat/ubinize: fix more 64-bit image sequence number confusion</title>
<updated>2009-09-28T08:16:39+00:00</updated>
<author>
<name>Michael Roth</name>
<email>mroth@nessie.de</email>
</author>
<published>2009-09-23T13:01:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=145ee7ab6fc9c4ccb6f3497d5fb112ed6f696433'/>
<id>urn:sha1:145ee7ab6fc9c4ccb6f3497d5fb112ed6f696433</id>
<content type='text'>
The sequence number is only 32 bit as the strtoul() function.

Signed-off-by: Michael Roth &lt;mroth@nessie.de&gt;
Signed-off-by: Artem Bityutskiy &lt;Artem.Bityutskiy@nokia.com&gt;
</content>
</entry>
</feed>
