| #
5a94b264 |
| 09-Nov-2021 |
Joseph Chen <chenjh@rock-chips.com> |
env: add env fragment support
It's a way to partly update env by user.
configure: - CONFIG_ENVF - CONFIG_ENVF_LIST - CONFIG_ENV_SIZE
Tool example: ./tools/mkenvimage -s 0x8000 -p 0x0 -o e
env: add env fragment support
It's a way to partly update env by user.
configure: - CONFIG_ENVF - CONFIG_ENVF_LIST - CONFIG_ENV_SIZE
Tool example: ./tools/mkenvimage -s 0x8000 -p 0x0 -o envf.bin envf.txt
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ie141f9ae9d91228c206f6d770d07ed6a54497b35
show more ...
|
| #
c785a9da |
| 06-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
cmd: nvedit: add env_update_extract_subset() API
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I383a320c5975b9e54b34c1da11738c15130fc581
|
| #
851a5b11 |
| 07-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
cmd: nvedit: use calloc() instread of malloc()
Clear buffer before strxxx() to avoid dirty characters.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7173d70dbedbf58d4b87fef75b2e3bc
cmd: nvedit: use calloc() instread of malloc()
Clear buffer before strxxx() to avoid dirty characters.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7173d70dbedbf58d4b87fef75b2e3bccea73a21c
show more ...
|
| #
279f1ed4 |
| 17-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
cmd: nvedit: don't use fixed buffer size
Using calloc() is more flexsible.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0c18b66be731b10e968a03976a15589e91ada757
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
f988e295 |
| 10-Sep-2019 |
Joseph Chen <chenjh@rock-chips.com> |
cmd: nvedit: add "env update ..." sub command
It supports to add/append/replace variable(s).
Change-Id: I1219e67e3dc778a634689516503e311d0577f35d Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
2ba7147f |
| 08-Apr-2019 |
Joseph Chen <chenjh@rock-chips.com> |
env: add a common env driver for block device
The driver implementation refers to env/mmc.c, the storage media binding to block layer can use it(Nand/Nor Flash...).
Support configure: - CONFIG_ENV
env: add a common env driver for block device
The driver implementation refers to env/mmc.c, the storage media binding to block layer can use it(Nand/Nor Flash...).
Support configure: - CONFIG_ENV_OFFSET - CONFIG_ENV_SIZE - CONFIG_ENV_OFFSET_REDUND (optional) - CONFIG_ENV_SIZE_REDUND (optional) - CONFIG_SYS_MMC_ENV_PART (optional)
Change-Id: Ibb16f0dd7af1331f454784968fbdc9002f4b769c Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
c0b4a82d |
| 10-Jan-2019 |
Joseph Chen <chenjh@rock-chips.com> |
cmd: nvedit: add "0x" prefix for hex value
Change-Id: Idab53a89d363a9fae6bf3aa98c99f9ba246e5ff9 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
f81a9e78 |
| 08-Aug-2018 |
Joseph Chen <chenjh@rock-chips.com> |
env: fix env_exist/append/update() words match issue
solve some words match mistakes due to strstr().
Change-Id: I79ca9bc9ed1e9aeb5472e158650890023afa3da3 Signed-off-by: Joseph Chen <chenjh@rock-ch
env: fix env_exist/append/update() words match issue
solve some words match mistakes due to strstr().
Change-Id: I79ca9bc9ed1e9aeb5472e158650890023afa3da3 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
00129fb3 |
| 04-Jul-2018 |
Joseph Chen <chenjh@rock-chips.com> |
env: add env_update_filter()
provide ignore option to filter unused key words from a list of new string which is ready to be appended.
Change-Id: I82d61ee21ec658e73549de42ad94ed259582cb7a Signed-of
env: add env_update_filter()
provide ignore option to filter unused key words from a list of new string which is ready to be appended.
Change-Id: I82d61ee21ec658e73549de42ad94ed259582cb7a Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
3c9ee701 |
| 31-Jan-2018 |
Joseph Chen <chenjh@rock-chips.com> |
env: add env_delete()
Change-Id: I3a94942b1670e641c8558c64dabca0155e53e2ea Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
046a9310 |
| 27-Jan-2018 |
Joseph Chen <chenjh@rock-chips.com> |
env: add env_exist()
Change-Id: I153c700ff45a678832b72031787531efadcdb47b Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
526c692b |
| 16-Jan-2018 |
Joseph Chen <chenjh@rock-chips.com> |
env: add more debug message for env_update() and env_append()
Change-Id: I0d798d91f2bc132accac882ccfeec76d2f6a747e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
9a544e36 |
| 10-Oct-2017 |
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> |
UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Last user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
Change-Id: Ie6cec28e4daf26b669f3f35db02642
UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH
Last user of this option went away in commit:
fdc7718999 ("board: usb_a9263: Update to support DT and DM")
Change-Id: Ie6cec28e4daf26b669f3f35db026427bdb47a5b6 Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 7b7341d7f3ee915c89a7f8ab7054e39872057d90)
show more ...
|
| #
017aad04 |
| 07-Oct-2017 |
Tom Rini <trini@konsulko.com> |
UPSTREAM: cmd/gpt.c, cmd/nvedit.c, tools/fit_image.c: Rework recent fixes for Coverity
The recent changes to these files did not completely fix the previous issues, or introduced different (minor) i
UPSTREAM: cmd/gpt.c, cmd/nvedit.c, tools/fit_image.c: Rework recent fixes for Coverity
The recent changes to these files did not completely fix the previous issues, or introduced different (minor) issues. In cmd/gpt.c we need to dereference str_disk_guid to be sure that malloc worked. In cmd/nvedit.c we need to be careful that we can also fit in that leading space when adding to the string. And in tools/fit_image.c we need to re-work the error handling slightly in fit_import_data() so that we only call munmap() once. We have two error paths here, one where we have an fd to close and one where we do not. Adjust labels to match this.
Change-Id: I66fafd0ed8d1c290a7773bba5ece8d11bfc15b50 Reported-by: Coverity (CID: 167366, 167367, 167370) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit bf52fcdef4aac242b5e6b6b9827acf6d69ce1951)
show more ...
|
| #
bc846a8c |
| 26-Sep-2017 |
Tom Rini <trini@konsulko.com> |
UPSTREAM: cmd/nvedit.c: Update input handling to cover overflow cases
When we have multiple messages provided, we need to be sure that we do not exceed the length of our 'message' buffer. In the fo
UPSTREAM: cmd/nvedit.c: Update input handling to cover overflow cases
When we have multiple messages provided, we need to be sure that we do not exceed the length of our 'message' buffer. In the for loop, make sure that pos is not larger than message. Only copy in at most however much of the message buffer remains. Finally, if we have not reached the end of the message buffer, put in a space and NULL, and if we have, ensure the buffer is now NULL termined.
Change-Id: I0c4f88803f8525eb6ef0207a6b7fdbec2b43e9ff Reported-by: Coverity (CID: 165116) Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit c667723ffb50b00585b729ee0da7b0e8c93ffa13)
show more ...
|
| #
90aa625c |
| 16-Sep-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h:
# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it difficult to fully sync BUILD_BUG macros with Linux. (Notice Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)
Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
// <smpl> @@@@ -error +pr_err (...) // </smpl>
Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Re-run Coccinelle] Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
show more ...
|
| #
533c9f30 |
| 19-Oct-2017 |
Joseph Chen <chenjh@rock-chips.com> |
env: set env_update() parameter 'varvalue' as 'const char *'
Change-Id: I1591fd507363545af5f56a83e0932c317ae7b915 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
64c74e0b |
| 27-Sep-2017 |
Joseph Chen <chenjh@rock-chips.com> |
env: add env_update()
This add/append/replace the sub value of an environment variable.
Change-Id: I0fcda0a1c631013eb9458a04a09546ba1c643db3 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
bfebc8c9 |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()
We are now using an env_ prefix for environment functions. Rename these for consistency. Also add function comments in common.h.
Suggested-b
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()
We are now using an env_ prefix for environment functions. Rename these 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 ...
|
| #
00caae6d |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename getenv/_f() to env_get()
We are now using an env_ prefix for environment functions. Rename these two functions for consistency. Also add function comments in common.h.
Quite a few place
env: Rename getenv/_f() to env_get()
We are now using an env_ prefix for environment functions. Rename these two functions for consistency. Also add function comments in common.h.
Quite a few places use getenv() in a condition context, provoking a warning from checkpatch. These are fixed up in this patch also.
Suggested-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
018f5303 |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Rename common functions related to setenv()
We are now using an env_ prefix for environment functions. Rename these commonly used functions, for consistency. Also add function comments in commo
env: Rename common functions related to setenv()
We are now using an env_ prefix for environment functions. Rename these commonly used functions, 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 ...
|
| #
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 ...
|
| #
01510091 |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one implementation of saveenv().
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: W
env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one implementation of saveenv().
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Denk <wd@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
ac358beb |
| 03-Aug-2017 |
Simon Glass <sjg@chromium.org> |
env: Drop the env_name_spec global
Add a name to the driver and use that instead of the global variable declared by each driver.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini
env: Drop the env_name_spec global
Add a name to the driver and use that instead of the global variable declared by each driver.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|