<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/env/fw_env.c, branch v2018.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=v2018.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/env/fw_env.c?h=v2018.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2017-11-30T03:30:50Z</updated>
<entry>
<title>tools: env: Add support for direct read/write UBI volumes</title>
<updated>2017-11-30T03:30:50Z</updated>
<author>
<name>S. Lockwood-Childs</name>
<email>sjl@vctlabs.com</email>
</author>
<published>2017-11-15T07:01:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=34255b92e6e68941ab1134299faa86acc5a1abc8'/>
<id>urn:sha1:34255b92e6e68941ab1134299faa86acc5a1abc8</id>
<content type='text'>
Up to now we were able to read/write environment data from/to UBI
volumes only indirectly by gluebi driver. This driver creates NAND MTD
on top of UBI volumes, which is quite a workaroung for this use case.

Add support for direct read/write UBI volumes in order to not use
obsolete gluebi driver.

Forward-ported from this patch:
http://patchwork.ozlabs.org/patch/619305/

Original patch:
Signed-off-by: Marcin Niestroj &lt;m.niestroj@grinn-global.com&gt;

Forward port:
Signed-off-by: S. Lockwood-Childs &lt;sjl@vctlabs.com&gt;
</content>
</entry>
<entry>
<title>env: Remove CONFIG_ENV_AES support</title>
<updated>2017-11-21T12:43:31Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2017-11-14T13:39:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c6831c74a9e9dbedc351de94d23d35188ae1a39b'/>
<id>urn:sha1:c6831c74a9e9dbedc351de94d23d35188ae1a39b</id>
<content type='text'>
This support has been deprecated since v2017.09 due to security issues.
We now remove this support.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>env: Fix out of tree building of tools-all</title>
<updated>2017-09-05T19:59:47Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2017-09-05T18:01:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2d3229bea240a26516e70257e26757d0ec0d98f1'/>
<id>urn:sha1:2d3229bea240a26516e70257e26757d0ec0d98f1</id>
<content type='text'>
With the move of environment code from common/ to env/ a number of
changes needed to be made to various make targets.  We missed updating
some of the files required for out of tree builds of the tools.  Correct
the 'environ' target to know that we need to work under tools/env/ still
(not tools/environ/) and then update the wrappers in env_attr.c and
env_flags.c to point to the new correct file.

Reported-by: Peter Robinson &lt;pbrobinson@gmail.com&gt;
Tested-by: Peter Robinson &lt;pbrobinson@gmail.com&gt;
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>fix: fw_env: Prevent writing error message on special files, which don't support fsync</title>
<updated>2017-09-03T19:30:31Z</updated>
<author>
<name>Lukasz Majewski</name>
<email>lukma@denx.de</email>
</author>
<published>2017-08-27T11:46:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=40fe89c6e83791f1f9cd079d7d6b51598c4a5925'/>
<id>urn:sha1:40fe89c6e83791f1f9cd079d7d6b51598c4a5925</id>
<content type='text'>
According to fsync specification [1] some special files (e.g., a pipe, FIFO,
or socket) don't support synchronization and return either EROFS or EINVAL.

On the linux side the sys_fsync -&gt; do_fsync() checks if the requested file
has f_op-&gt;fsync defined. If not it returns EINVAL [2].

This commit prevents writing error messages for files (devices), which
do not support fsync().

[1] - http://man7.org/linux/man-pages/man2/fsync.2.html
[2] - http://elixir.free-electrons.com/linux/v4.13-rc6/source/fs/sync.c#L183

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Acked-by: Michael Heimpold &lt;mhei@heimpold.de&gt;
</content>
</entry>
<entry>
<title>env: Rename setenv() to env_set()</title>
<updated>2017-08-16T12:22:18Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2017-08-03T18:22:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=382bee57f19b4454e2015bc19a010bc2d0ab9337'/>
<id>urn:sha1:382bee57f19b4454e2015bc19a010bc2d0ab9337</id>
<content type='text'>
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.

Suggested-by: Wolfgang Denk &lt;wd@denx.de&gt;
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tools/fw_env: use fsync to ensure that data is physically stored</title>
<updated>2017-07-22T19:36:16Z</updated>
<author>
<name>Michael Heimpold</name>
<email>mhei@heimpold.de</email>
</author>
<published>2013-05-20T19:34:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7e99e14d4ba2533a07adc3d97e06cadc41d12908'/>
<id>urn:sha1:7e99e14d4ba2533a07adc3d97e06cadc41d12908</id>
<content type='text'>
Closing a file descriptor does not guarantee that the data has been
successfully saved to disk, as the kernel might defer the write.

Signed-off-by: Michael Heimpold &lt;mhei@heimpold.de&gt;
</content>
</entry>
<entry>
<title>tools/env: avoid memory leak in fw_setenv</title>
<updated>2017-04-18T14:29:22Z</updated>
<author>
<name>xypron.glpk@gmx.de</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2017-04-15T11:05:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ddc6a9de057e0fd0b46ba21d16a50a8d24351ef6'/>
<id>urn:sha1:ddc6a9de057e0fd0b46ba21d16a50a8d24351ef6</id>
<content type='text'>
If realloc fails we should release the old buffer.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>env: fix memory leak in fw_env routines</title>
<updated>2017-04-12T17:28:29Z</updated>
<author>
<name>Stefano Babic</name>
<email>sbabic@denx.de</email>
</author>
<published>2017-04-05T16:08:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=33f0086cb74628080bb4bcb565b25c8ea5299d79'/>
<id>urn:sha1:33f0086cb74628080bb4bcb565b25c8ea5299d79</id>
<content type='text'>
fw_env_open allocates buffers to store the environment, but these
buffers are never freed. This becomes quite nasty using the fw_ tools as
library, because each access to the environment (even just reading a
variable) generates a memory leak equal to the size of the environment.

Fix this renaming fw_env_close() as fw_env_flush(), because the function
really flushes the environment from RAM to storage, and add a
fw_env_close function to free the allocated resources.

Signed-off-by: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>env: split fw_env.h in public and private parts</title>
<updated>2017-04-12T17:28:28Z</updated>
<author>
<name>Stefano Babic</name>
<email>sbabic@denx.de</email>
</author>
<published>2017-04-05T16:08:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9d80b49a671c9922931adcd823aab0ed319a42d1'/>
<id>urn:sha1:9d80b49a671c9922931adcd823aab0ed319a42d1</id>
<content type='text'>
Move U-Boot private data into a separate file. This
lets export fw_env.h to be used by external programs
that want to change the environment using the library
built in tools/env.

Signed-off-by: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>tools/env: fix environment alignment tests for block devices</title>
<updated>2016-11-28T20:10:36Z</updated>
<author>
<name>Max Krummenacher</name>
<email>max.oss.09@gmail.com</email>
</author>
<published>2016-11-19T12:58:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=333ee16d042076669b36328dc06765a78c0676eb'/>
<id>urn:sha1:333ee16d042076669b36328dc06765a78c0676eb</id>
<content type='text'>
commit 183923d3e412500bdc597d1745e2fb6f7f679ec7 enforces that the
environment must start at an erase block boundary.

For block devices the sample fw_env.config does not mandate a erase block size
for block devices. A missing setting defaults to the full env size.

Depending on the environment location the alignment check now errors out for
perfectly legal settings.

Fix this by defaulting to the standard blocksize of 0x200 for environments
stored in a block device.
That keeps the fw_env.config files for block devices working even with that
new check.

Signed-off-by: Max Krummenacher &lt;max.krummenacher@toradex.com&gt;
</content>
</entry>
</feed>
