20 Feb, 2014
3 commits
-
fw_printenv is a program which mostly runs on the target Linux.
Before switching to Kbuild, we needed to set HOSTCC at the
command line like this:
make HOSTCC= envGoing forward we can cross compile it by specifying CROSS_COMPILE:
make CROSS_COMPILE= env
This looks more natural.Signed-off-by: Masahiro Yamada
Tested-by: Gerhard Sittig -
This commit merges commonly-used header include paths
to UBOOTINCLUDE and NOSTDINC_FLAGS variables, which are placed
at the top Makefile.Signed-off-by: Masahiro Yamada
-
Before this commit, makefiles under tools/ directory
were implemented with their own way.This commit refactors them by using "hostprogs-y" variable.
Several C sources have been added to wrap other C sources
to simplify Makefile.
For example, tools/crc32.c includes lib/crc32.cSigned-off-by: Masahiro Yamada
08 Nov, 2013
1 commit
-
In-tree build:
- Do not create a symbolic link
from include/asm to arch/${ARCH}/include/asm
- Add ${SRCTREE}/arch/arm/include into the header search pathOut-of-tree build:
- Do not create a directory ${OBJTREE}/include2
- Do not create a symbolic link
from ${OBJTREE}/include2/asm to ${SRCTREE}/arch/${ARCH}/include/asm
- Add ${SRCTREE}/arch/arm/include into the header search pathSigned-off-by: Masahiro Yamada
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
07 Sep, 2013
2 commits
-
Signed-off-by: Oliver Metz
Tested-by: Luka Perkov -
Signed-off-by: Oliver Metz
Tested-by: Luka Perkov
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
12 Apr, 2013
2 commits
-
Allow the user to specify two UBI volumes to use for the environment
Signed-off-by: Joe Hershberger
-
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
12 Mar, 2013
2 commits
-
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
-
Signed-off-by: Robert P. J. Day
20 Feb, 2013
1 commit
-
Fix a comment in the fw_env.config file, no functional change.
Signed-off-by: Robert P. J. Day
20 Dec, 2012
4 commits
-
I had missed Joe's NAK on this patch, so...
This reverts commit 92ace272d06cec1d7f1533bb9edf914fb5845fba.
Signed-off-by: Tom Rini
-
Signed-off-by: Mike Frysinger
Acked-by: Peter Korsgaard -
When using open(), the O_CREAT flag must be given a mode, otherwise it
uses random garbage from the stack. Also, it can fail to build:In file included from /usr/include/fcntl.h:290:0,
from fw_env_main.c:42:
In function 'open',
inlined from 'main' at fw_env_main.c:97:9:
/usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared
with attribute error: open with O_CREAT in second argument needs 3 argumentsSigned-off-by: Mike Frysinger
Acked-by: Joe Hershberger -
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
Acked-by: Joe Hershberger
14 Dec, 2012
3 commits
-
Use the variable access flags to implement the protection for ethaddr
and serial# instead of hard-coding them.Signed-off-by: Joe Hershberger
-
Add support for read-only, write-once, and change-default.
Signed-off-by: Joe Hershberger
-
Currently just validates variable types as decimal, hexidecimal,
boolean, ip address, and mac address. Call
env_acl_validate_setenv_params() from setenv() in fw_env.c.If the entry is not found in the env .flags, then look in the static
one. This allows the env to override the static definitions, but prevents
the need to have every definition in the environment distracting you.Need to build in _ctype for isdigit for Linux.
Signed-off-by: Joe Hershberger
20 Oct, 2012
1 commit
-
There used to be a huge structure duplicated 3 times in the source.
Signed-off-by: Joe Hershberger
Signed-off-by: Tom Rini
16 Oct, 2012
10 commits
-
Provide more information when using redundant environments
Consistently print debug info to stderrSigned-off-by: Joe Hershberger
-
Fix crash introduced by a073d63a36524453a817ab029fad5b188f46127e
when attempting to delete a variable.Signed-off-by: Joe Hershberger
-
This was introduced in:
8679d0ffdcc0beafea8e6942c0c67cf859afa18e -
COMMON: Use __stringify() instead of MK_STR()The header is now needed since common.h is not included in this tool.
Signed-off-by: Joe Hershberger
-
Add a mention of the lock file to the README for the fw_printenv tool.
Signed-off-by: Joe Hershberger
Reported-by: Luka Perkov -
If the pointer passed into envmatch() is NULL, return -1 instead of
crashing.Signed-off-by: Joe Hershberger
-
Use a lock file at /var/lock/fw_printenv.lock.
Avoids seriously confusing the MTD driver.Signed-off-by: Joe Hershberger
-
We will only call fw_getenv when the env has already been initialized.
Signed-off-by: Joe Hershberger
-
The length included the name length, and then it was subtracted back
out on each use. Now we don't include it in the first place. Also
realloc as we process arguments and eliminate memset. Use memcpy
instead of manually copying each byte.Signed-off-by: Joe Hershberger
-
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 so that we only
get #defines (all we're interested in).Signed-off-by: Joe Hershberger
-
Kill multiple occurances and redeclaration of MK_STR
in favor of __stringify().Signed-off-by: Marek Vasut
Cc: Wolfgang Denk
Signed-off-by: Tom Rini
19 Sep, 2012
1 commit
-
Commit 5e724ca did the same thing for env_common and env_embedded, but forgot
fw_env.Signed-off-by: Benoît Thébaudeau
Cc: Wolfgang Denk
22 Jun, 2012
1 commit
-
Signed-off-by: Loïc Minier
12 Feb, 2012
1 commit
-
made description according to implementation
(where the config file is the default).Signed-off-by: Frans Meulenbroeks
06 Jan, 2012
1 commit
-
This patch allows the U-Boot user space companion utility, fw_setenv,
to overwrite the 'ethaddr' key/value pair if the current value is set
to a per-board-configured default.This change allows 'fw_setenv' to match the behavior of 'setenv' /
'env set' on the U-Boot command line.Signed-off-by: Grant Erickson
Fixed excessive white space.
Signed-off-by: Wolfgang Denk
05 Jan, 2012
1 commit
-
The README file lists 4 defined that were not actually present in the .h
file but that were needed to get things working with settings compiled in.
They are
Added these to the .h file
(the values above are the ones from the README file)Signed-off-by: Frans Meulenbroeks
22 Nov, 2011
1 commit
-
Instead of linking the file into $(obj) tree use directly the source file.
This also prevents littered source tree if building not out-of-tree.Signed-off-by: Andreas Bießmann
Acked-by: Mike Frysinger
22 Oct, 2011
3 commits
-
Remove MK_STR from places that consume CONFIG_BOOTFILE to force all definitions to be string literals.
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Wolfgang Denk
Acked-by: Mike Frysinger -
Remove MK_STR from places that consume CONFIG_ROOTPATH to force all definitions to be string literals.
Signed-off-by: Joe Hershberger
Cc: Joe Hershberger
Cc: Wolfgang Denk
Acked-by: Mike Frysinger -
Patch fixes this issue:
fw_env.c: In function ‘fw_setenv’:
fw_env.c:492:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat]
fw_env.c: In function ‘flash_write_buf’:
fw_env.c:806:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ [-Wformat]Signed-off-by: Luka Perkov
Acked-by: Mike Frysinger