<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/env/fw_env.c, branch v2015.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/env/fw_env.c?h=v2015.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/env/fw_env.c?h=v2015.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2014-11-07T21:27:07Z</updated>
<entry>
<title>tools/env: Fix environment size and CRC on 64-bit hosts</title>
<updated>2014-11-07T21:27:07Z</updated>
<author>
<name>Dominic Sacré</name>
<email>dominic.sacre@gmx.de</email>
</author>
<published>2014-11-04T23:30:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ea19527c209b0d97b532a8dc5bf28f2cdd016888'/>
<id>urn:sha1:ea19527c209b0d97b532a8dc5bf28f2cdd016888</id>
<content type='text'>
On architectures where 'long' is 64 bit, the u-boot environment
as seen by the fw_env tools was missing 4 bytes.
This patch fixes getenvsize(), and thus also ensures that the
environment's CRC32 checksum is calculated correctly.

Signed-off-by: Dominic Sacré &lt;dominic.sacre@gmx.de&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Cc: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'u-boot/master'</title>
<updated>2014-05-09T09:50:14Z</updated>
<author>
<name>Albert ARIBAUD</name>
<email>albert.u.boot@aribaud.net</email>
</author>
<published>2014-05-09T08:47:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d2a3e911390f9fc4d8c0ee4b3c7fc75f4fd3fd19'/>
<id>urn:sha1:d2a3e911390f9fc4d8c0ee4b3c7fc75f4fd3fd19</id>
<content type='text'>
Conflicts:
	drivers/net/Makefile

(trivial merge)
</content>
</entry>
<entry>
<title>fw_env.c: Switch get_config to use '%ms' in sscanf</title>
<updated>2014-04-17T18:39:54Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@ti.com</email>
</author>
<published>2014-03-28T16:03:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=229695fee97abc7f4adad92eb8e036792c144bc6'/>
<id>urn:sha1:229695fee97abc7f4adad92eb8e036792c144bc6</id>
<content type='text'>
We currently limit ourself to 16 characters for the device name to read
the environment from.  This is insufficient for /dev/mmcblk0boot1 to
work for example.  Switch to '%ms' which gives us a dynamically
allocated buffer instead.  We're short lived enough to not bother
free()ing the buffer.

Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>env: Implement support for AES encryption into fw_* tools</title>
<updated>2014-03-21T20:44:08Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2014-03-05T18:59:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a8a752c084031905940129f8a6ba303925e0fac9'/>
<id>urn:sha1:a8a752c084031905940129f8a6ba303925e0fac9</id>
<content type='text'>
Implement support for encrypting/decrypting the environment block
into the tools/env/fw_* tools. The cipher used is AES 128 CBC and
the implementation depends solely on components internal to U-Boot.

To allow building against the internal AES library, the library did
need minor adjustments to not include U-Boot's headers which are not
wanted to be included and define missing types.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>fw_env: correct writes to devices with small erase blocks</title>
<updated>2014-03-12T21:04:29Z</updated>
<author>
<name>Dustin Byford</name>
<email>dustin@cumulusnetworks.com</email>
</author>
<published>2014-03-07T04:48:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4b774ff114201175ea9c05dfa12eef3ff1704753'/>
<id>urn:sha1:4b774ff114201175ea9c05dfa12eef3ff1704753</id>
<content type='text'>
Some NOR flash devices have a small erase block size.  For example, the
Micron N25Q512 can erase in 4K blocks.  These devices expose a bug in
fw_env.c where flash_write_buf() incorrectly calculates bytes written
and attempts to write past the environment sectors.  Luckily, a range
check prevents any real damage, but this does cause fw_setenv to fail
with an error.

This change corrects the write length calculation.

The bug was introduced with commit 56086921 from 2008 and only affects
configurations where the erase block size is smaller than the total
environment data size.

Signed-off-by: Dustin Byford &lt;dustin@cumulusnetworks.com&gt;
</content>
</entry>
<entry>
<title>fw_env: calculate default number of env sectors</title>
<updated>2014-03-12T21:04:28Z</updated>
<author>
<name>Dustin Byford</name>
<email>dustin@cumulusnetworks.com</email>
</author>
<published>2014-03-07T04:48:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=23869bf80b68af9ef1802b9e556f4fd0e9e57fe5'/>
<id>urn:sha1:23869bf80b68af9ef1802b9e556f4fd0e9e57fe5</id>
<content type='text'>
The assumed number of environment sectors (always 1) leads to an
incorrect top_of_range calculation in fw.env.c when a flash device has
an erase block size smaller than the environment data size (number of
environment sectors &gt; 1).

This change updates the default number of environment sectors to at
least cover the size of the environment.

Also corrected a false statement about the number of sectors column in
fw_env.config.

Signed-off-by: Dustin Byford &lt;dustin@cumulusnetworks.com&gt;
</content>
</entry>
<entry>
<title>fw_env: fix writing environment for mtd devices</title>
<updated>2013-09-06T17:09:08Z</updated>
<author>
<name>Oliver Metz</name>
<email>oliver@freetz.org</email>
</author>
<published>2013-08-29T22:56:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e387efbd6535724051364fd78469ef611165e489'/>
<id>urn:sha1:e387efbd6535724051364fd78469ef611165e489</id>
<content type='text'>
Signed-off-by: Oliver Metz &lt;oliver@freetz.org&gt;
Tested-by: Luka Perkov &lt;luka@openwrt.org&gt;
</content>
</entry>
<entry>
<title>fw_env: add redundant env support for MTD_ABSENT</title>
<updated>2013-09-06T17:09:08Z</updated>
<author>
<name>Oliver Metz</name>
<email>oliver@freetz.org</email>
</author>
<published>2013-08-29T22:56:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=23ef62d741911e75f23bfa500005bf08044be0a2'/>
<id>urn:sha1:23ef62d741911e75f23bfa500005bf08044be0a2</id>
<content type='text'>
Signed-off-by: Oliver Metz &lt;oliver@freetz.org&gt;
Tested-by: Luka Perkov &lt;luka@openwrt.org&gt;
</content>
</entry>
<entry>
<title>Add GPL-2.0+ SPDX-License-Identifier to source files</title>
<updated>2013-07-24T13:44:38Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2013-07-08T07:37:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1a4596601fd395f3afb8f82f3f840c5e00bdd57a'/>
<id>urn:sha1:1a4596601fd395f3afb8f82f3f840c5e00bdd57a</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>env: Add redundant env support to UBI env</title>
<updated>2013-04-11T19:52:55Z</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2013-04-08T10:32:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=785881f775252940185e10fbb2d5299c9ffa6bce'/>
<id>urn:sha1:785881f775252940185e10fbb2d5299c9ffa6bce</id>
<content type='text'>
Allow the user to specify two UBI volumes to use for the environment

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
</feed>
