<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/environment.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-01-17T21:16:31Z</updated>
<entry>
<title>env: fix allow to build multiple environments</title>
<updated>2019-01-17T21:16:31Z</updated>
<author>
<name>Rajesh Bhagat</name>
</author>
<published>2019-01-12T07:30:51Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=43d17c485fc2f710a8e3fa7bb8df320f67ac93fa'/>
<id>urn:sha1:43d17c485fc2f710a8e3fa7bb8df320f67ac93fa</id>
<content type='text'>
Patch fixes build error when enabling CONFIG_ENV_IS_IN_SPI_FLAS
and CONFIG_ENV_IS_IN_MMC at the same time mentioned issue in
below link:

Refer: https://lists.denx.de/pipermail/u-boot/2018-February/319565.html

build error when enabling CONFIG_ENV_IS_IN_SPI_FLASH and
CONFIG_ENV_IS_IN_MMC at the same time.

Signed-off-by: Rajesh Bhagat &lt;rajesh.bhagat@nxp.com&gt;
Reviewed-by: York Sun &lt;york.sun@nxp.com&gt;
</content>
</entry>
<entry>
<title>env: allow flash and nand env driver to compile together</title>
<updated>2018-12-04T21:07:13Z</updated>
<author>
<name>Rajesh Bhagat</name>
</author>
<published>2018-11-05T18:01:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=b6cba297affba968a8d8465655c71cb3ec8a9bde'/>
<id>urn:sha1:b6cba297affba968a8d8465655c71cb3ec8a9bde</id>
<content type='text'>
Define env_ptr as static in flash and nand env driver to
allow these to compile together.

Signed-off-by: Rajesh Bhagat &lt;rajesh.bhagat@nxp.com&gt;
Reviewed-by: York Sun &lt;york.sun@nxp.com&gt;
</content>
</entry>
<entry>
<title>env: common: accept flags on reset to default env</title>
<updated>2018-07-19T20:17:58Z</updated>
<author>
<name>Yaniv Levinsky</name>
</author>
<published>2018-06-24T16:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=c5d548a9f881b2268f1d81dab9cd329ae336607e'/>
<id>urn:sha1:c5d548a9f881b2268f1d81dab9cd329ae336607e</id>
<content type='text'>
The function set_default_env() sets the hashtable flags for import_r().
Formally set_default_env() doesn't accept flags from its callers. In
practice the caller can (un)set the H_INTERACTIVE flag, but it has to be
done using the first character of the function's string argument. Other
flags like H_FORCE can't be set by the caller.

Change the function to accept flags argument. The benefits are:
1. The caller will have to explicitly set the H_INTERACTIVE flag,
   instead of un-setting it using a special char in a string.
2. Add the ability to propagate flags from the caller to himport(),
   especially the H_FORCE flag from do_env_default() in nvedit.c that
   currently gets ignored for "env default -a -f" commands.
3. Flags and messages will not be coupled together. A caller will be
   able to set flags without passing a string and vice versa.

Please note:
The propagation of H_FORCE from do_env_default() does not introduce any
functional changes, because currently himport_r() is set to destroy the
old environment regardless if H_FORCE flag is set or not. More changes
are needed to utilize the propagation of H_FORCE.

Signed-off-by: Yaniv Levinsky &lt;yaniv.levinsky@compulab.co.il&gt;
Acked-by: Igor Grinberg &lt;grinberg@compulab.co.il&gt;
</content>
</entry>
<entry>
<title>cmd: nvedit: propagate envflag to set_default_vars</title>
<updated>2018-07-19T20:17:58Z</updated>
<author>
<name>Yaniv Levinsky</name>
</author>
<published>2018-06-24T16:16:55Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=477f8116d517798d4d6456d920d57ff2f46d4271'/>
<id>urn:sha1:477f8116d517798d4d6456d920d57ff2f46d4271</id>
<content type='text'>
The env_flag in do_env_default() doesn't get propagated and therefore
gets ignored by himport_r(). This breaks to ability to "forcibly" reset
variables to their default values using the environment command.

Scenario example of the problem:
	# setenv kernel uImage
	# setenv .flags kernel:so
	# env default -f kernel
	## Error: Can't overwrite "kernel"
	himport_r: can't insert "kernel=zImage" into hash table

Change the call path so it will pass the flag correctly.

Signed-off-by: Yaniv Levinsky &lt;yaniv.levinsky@compulab.co.il&gt;
Acked-by: Igor Grinberg &lt;grinberg@compulab.co.il&gt;
</content>
</entry>
<entry>
<title>u-boot: Fix several typos</title>
<updated>2018-06-13T11:49:13Z</updated>
<author>
<name>Shyam Saini</name>
</author>
<published>2018-06-07T14:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=919d25c9208d12a4fc3691972ad69ed4e40455ba'/>
<id>urn:sha1:919d25c9208d12a4fc3691972ad69ed4e40455ba</id>
<content type='text'>
's/environemnt/environment/' and
	's/Environemnt/Environment/'

Signed-off-by: Shyam Saini &lt;shyam@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>env: Relocate env drivers if manual reloc is required</title>
<updated>2018-04-16T22:45:35Z</updated>
<author>
<name>Siva Durga Prasad Paladugu</name>
</author>
<published>2018-04-13T05:57:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=7bcdf19572c8f64552233d04b309903b297d5b63'/>
<id>urn:sha1:7bcdf19572c8f64552233d04b309903b297d5b63</id>
<content type='text'>
Relocate env drivers if manual relocation is enabled. This
patch fixes the issue of u-boot hang incase if env is
present in any of the flash devices.

Signed-off-by: Siva Durga Prasad Paladugu &lt;sivadur@xilinx.com&gt;
Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>net: Move enetaddr env access code to env config instead of net config</title>
<updated>2018-04-09T03:00:58Z</updated>
<author>
<name>Alex Kiernan</name>
</author>
<published>2018-04-01T09:22:38Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=9925f1dbc38c0ef7220c6fca5968c708b8e48764'/>
<id>urn:sha1:9925f1dbc38c0ef7220c6fca5968c708b8e48764</id>
<content type='text'>
In order that we can use eth_env_* even when CONFIG_NET isn't set, move
these functions to environment code from net code.

This fixes failures such as:

  board/ti/am335x/built-in.o: In function `board_late_init':
  board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr'
  u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'

which caters for use cases such as:

commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment
variable")

when Ethernet is required in Linux, but not U-Boot.

Signed-off-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
</content>
</entry>
<entry>
<title>env: restore old env_get_char() behaviour</title>
<updated>2018-02-16T16:12:42Z</updated>
<author>
<name>Goldschmidt Simon</name>
</author>
<published>2018-02-09T20:23:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=b2cdef4861befb65e784c01ed71a48bfb811ab38'/>
<id>urn:sha1:b2cdef4861befb65e784c01ed71a48bfb811ab38</id>
<content type='text'>
With multiple environments, the 'get_char' callback for env
drivers does not really make sense any more because it is
only supported by two drivers (eeprom and nvram).

To restore single character loading for these drivers,
override 'env_get_char_spec'.

Signed-off-by: Simon Goldschmidt &lt;sgoldschmidt@de.pepperl-fuchs.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@bootlin.com&gt;
</content>
</entry>
<entry>
<title>env: Fix env_load_location</title>
<updated>2018-02-16T16:12:41Z</updated>
<author>
<name>York Sun</name>
</author>
<published>2018-02-07T22:17:11Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=e1caa5841e8a9bc0ee658bdacae0519fa28e1e6a'/>
<id>urn:sha1:e1caa5841e8a9bc0ee658bdacae0519fa28e1e6a</id>
<content type='text'>
Commit 7d714a24d725 ("env: Support multiple environments") added
static variable env_load_location. When saving environmental
variables, this variable is presumed to have the value set before.
In case the value was set before relocation and U-Boot runs from a
NOR flash, this variable wasn't writable. This causes failure when
saving the environment. To save this location, global data must be
used instead.

Signed-off-by: York Sun &lt;york.sun@nxp.com&gt;
CC: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
</content>
</entry>
</feed>
