<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/env/fw_env.c, branch v2014.04</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=v2014.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/env/fw_env.c?h=v2014.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2014-03-12T21:04:29Z</updated>
<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>
<entry>
<title>env: Add support for UBI environment</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:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2b74433f365fa677a60431a80e524b5d8d04e995'/>
<id>urn:sha1:2b74433f365fa677a60431a80e524b5d8d04e995</id>
<content type='text'>
UBI is a better place for the environment on NAND devices because it
handles wear-leveling and bad blocks.

Gluebi is needed in Linux to access the env as an MTD partition.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>env: Allow accessing non-mtd devices</title>
<updated>2013-03-11T21:05:04Z</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2013-02-10T01:02:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f1932b78505aa52fc29e5862ed8588a6f1bbe3ec'/>
<id>urn:sha1:f1932b78505aa52fc29e5862ed8588a6f1bbe3ec</id>
<content type='text'>
In certain cases, memory device is present as flat file or block device (via
mmc or mtdblock layer). Do not attempt MTD operations against it.

Signed-off-by: Lubomir Rintel &lt;lkundrak@v3.sk&gt;
</content>
</entry>
<entry>
<title>fw_env: fix type of len</title>
<updated>2012-12-19T22:51:57Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2012-11-10T19:47:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3779c8e319bd5e3fb32c3036cc0d3a658f920fa3'/>
<id>urn:sha1:3779c8e319bd5e3fb32c3036cc0d3a658f920fa3</id>
<content type='text'>
This variable is assigned by a size_t, and is printed that way, but is
incorrectly declared as an int.  Which means we get warnings:
fw_env.c: In function 'fw_setenv':
fw_env.c:409:5: warning: format '%zu' expects argument of type 'size_t',
	but argument 3 has type 'int' [-Wformat]

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>env: Handle write-once ethaddr and serial# generically</title>
<updated>2012-12-13T18:46:57Z</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-12-12T04:16:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1d6cd0a3f69b549a3fc7e735a045279e7a14947e'/>
<id>urn:sha1:1d6cd0a3f69b549a3fc7e735a045279e7a14947e</id>
<content type='text'>
Use the variable access flags to implement the protection for ethaddr
and serial# instead of hard-coding them.

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