| #
382bee57 |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename setenv() to env_set()
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 <wd
env: Rename setenv() to env_set()
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 <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
33f0086c |
| 05-Apr-2017 |
Stefano Babic <sbabic@denx.de> |
env: fix memory leak in fw_env routines
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 ea
env: fix memory leak in fw_env routines
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 <sbabic@denx.de>
show more ...
|
| #
00c234f3 |
| 05-Apr-2017 |
Stefano Babic <sbabic@denx.de> |
env: add a version number to check API
Changes in the environment library are difficult to tracked by programs using the library. Add simply an API version number that must be increased each time wh
env: add a version number to check API
Changes in the environment library are difficult to tracked by programs using the library. Add simply an API version number that must be increased each time when the API is changed.
This can be detected and a program can work with different versions of the library.
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| #
9d80b49a |
| 05-Apr-2017 |
Stefano Babic <sbabic@denx.de> |
env: split fw_env.h in public and private parts
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
env: split fw_env.h in public and private parts
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 <sbabic@denx.de>
show more ...
|
| #
b80c0b99 |
| 05-Apr-2017 |
Stefano Babic <sbabic@denx.de> |
Rename aes.h to uboot_aes.h
aes.h is a too generic name if this file can be exported and used by a program. Rename it to avoid any conflicts with other files (for example, from openSSL).
Signed-off
Rename aes.h to uboot_aes.h
aes.h is a too generic name if this file can be exported and used by a program. Rename it to avoid any conflicts with other files (for example, from openSSL).
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| #
d40dbfb7 |
| 26-Sep-2016 |
B, Ravi <ravibabu@ti.com> |
env: tool: add command line option to input lockfile path
The default lockname is set to /var/lock. This limits the usage of this application where OS uses different lockfile location parameter. For
env: tool: add command line option to input lockfile path
The default lockname is set to /var/lock. This limits the usage of this application where OS uses different lockfile location parameter. For example, In case of android, the default lock path location is /data. Hence by providing the command line option to input lockfile path will be useful to reuse the tool across multiple operating system.
usage: ./fw_printenv -l <lockfile path>
Signed-off-by: Ravi Babu <ravibabu@ti.com>
show more ...
|
| #
fd4e3280 |
| 16-Jul-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script
there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a
tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script
there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a single binary containing multiple tools (busybox like) - file access like: open/read/write/close above functions are implemented on top of these. applications can use those to modify several variables without creating a temporary batch script file tested with "./scripts/kernel-doc -html -v tools/env/fw_env.h"
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| #
dc557e9a |
| 18-Jun-2016 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
|
| #
81974f44 |
| 05-Apr-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: no global variable sharing between application and library
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
|
| #
cedb341e |
| 19-Apr-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: fw_printenv pass value_only as argument
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
|
| #
c3a23e8b |
| 19-Apr-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: remove 'extern' from function prototype in fw_env.h
checkpatch complains about in succeding patch. Prefer to fix all declarations in a dedicated patch.
Signed-off-by: Andreas Fenkart <an
tools/env: remove 'extern' from function prototype in fw_env.h
checkpatch complains about in succeding patch. Prefer to fix all declarations in a dedicated patch.
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| #
371ee137 |
| 09-Dec-2015 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools: env: parse aes key / suppress flag into argument struct
disabled original parsing, but not yet removed since the argument indexing needs to be fixed
Signed-off-by: Andreas Fenkart <andreas.f
tools: env: parse aes key / suppress flag into argument struct
disabled original parsing, but not yet removed since the argument indexing needs to be fixed
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| #
07ce9440 |
| 09-Dec-2015 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools: env: introduce setenv/printenv argument structs
goal is to use getopt for all argument parsing instead of adhoc parsing in fw_getenv/fw_setenv functions
Signed-off-by: Andreas Fenkart <andre
tools: env: introduce setenv/printenv argument structs
goal is to use getopt for all argument parsing instead of adhoc parsing in fw_getenv/fw_setenv functions
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| #
1254ff97 |
| 10-Jul-2015 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
|
| #
6f43ba70 |
| 07-Jul-2015 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
|
| #
0b367380 |
| 17-Jun-2015 |
Peter Robinson <pbrobinson@gmail.com> |
tools/env/fw_env.h: Correct include order
When building tools-only (or env) we need to be sure that we do use <linux/kconfig.h> and do not use <generated/autoconf.h>. This will fix problems such as
tools/env/fw_env.h: Correct include order
When building tools-only (or env) we need to be sure that we do use <linux/kconfig.h> and do not use <generated/autoconf.h>. This will fix problems such as running 'make defconfig' or 'make sandbox_config' and then 'make tools-only'.
Based on the responses below to the thread add linux/kconfig.h higher in the includes and drop the now unneeded autoconf.h lower down to ensure the default environment is included correctly
http://lists.denx.de/pipermail/u-boot/2015-June/216849.html
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
show more ...
|
| #
1bfb9222 |
| 14-Apr-2015 |
Max Krummenacher <max.krummenacher@toradex.com> |
fw_env.h: include autoconf.h
Without this, when CONFIG_ENV_VARS_UBOOT_CONFIG is active we get a compile time error when doing 'make env'. In file included from tools/env/fw_env.c:117:0: include/env_
fw_env.h: include autoconf.h
Without this, when CONFIG_ENV_VARS_UBOOT_CONFIG is active we get a compile time error when doing 'make env'. In file included from tools/env/fw_env.c:117:0: include/env_default.h:110:11: error: expected ‘}’ before ‘CONFIG_SYS_ARCH’
When building U-Boot this is included indirectly by the compiler switch -include /home/trdx/git.toradex.com/u-boot-2014.10-toradex/include/linux/kconfig.h
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
show more ...
|
| #
3765b3e7 |
| 07-Oct-2013 |
Wolfgang Denk <wd@denx.de> |
Coding Style cleanup: remove trailing white space
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
| #
326ea986 |
| 31-Jul-2013 |
Stefano Babic <sbabic@denx.de> |
Merge git://git.denx.de/u-boot-arm
Conflicts: board/freescale/mx6qsabrelite/Makefile board/freescale/mx6qsabrelite/mx6qsabrelite.c include/configs/mx6qsabrelite.h
Signed-off-by: Stefano Babic <s
Merge git://git.denx.de/u-boot-arm
Conflicts: board/freescale/mx6qsabrelite/Makefile board/freescale/mx6qsabrelite/mx6qsabrelite.c include/configs/mx6qsabrelite.h
Signed-off-by: Stefano Babic <sbabic@denx.de>
show more ...
|
| #
8b485ba1 |
| 25-Jul-2013 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into u-boot-arm/master
|
| #
1a459660 |
| 08-Jul-2013 |
Wolfgang Denk <wd@denx.de> |
Add GPL-2.0+ SPDX-License-Identifier to source files
Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
|
| #
e3c52f2b |
| 20-Dec-2012 |
Tom Rini <trini@ti.com> |
Revert "fw_env: fix building w/out a config.h"
I had missed Joe's NAK on this patch, so...
This reverts commit 92ace272d06cec1d7f1533bb9edf914fb5845fba.
Signed-off-by: Tom Rini <trini@ti.com>
|
| #
92ace272 |
| 10-Nov-2012 |
Mike Frysinger <vapier@gentoo.org> |
fw_env: fix building w/out a config.h
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
|
| #
497f2053 |
| 03-Oct-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
tools/env: Use a board-specific default env
Originally added in aa701b94336b358798d676eef12a7b90bdac23f5
Before this patch, there was a hard-coded env that was used as default if the env in flash i
tools/env: Use a board-specific default env
Originally added in aa701b94336b358798d676eef12a7b90bdac23f5
Before this patch, there was a hard-coded env that was used as default if the env in flash is detected as invalid. Now this tool (compiled for a given board) will share the default env with the u-boot for the board.
Fix include of config.h
Need to define "TEXT_BASE" when building the fw_env tool so that the default env will be correct for environments which use it.
Define __ASSEMBLY__ when calling #include <config.h> so that we only get #defines (all we're interested in).
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| #
9cbfee6d |
| 05-Jan-2012 |
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> |
fw_env.h: fix comment
made description according to implementation (where the config file is the default).
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
|