Fix possible compilation issue in env ext4 support when
CONFIG_CMD_SAVEENV is not activated.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/env/ext4.c b/env/ext4.c
index e3bbf4a4e0..aa77261649 100644
--- a/env/ext4.c
+++ b/env/ext4.c
Fix possible compilation issue in env ext4 support when
CONFIG_CMD_SAVEENV is not activated.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/env/ext4.c b/env/ext4.c
index e3bbf4a4e0..aa77261649 100644
--- a/env/ext4.c
+++ b/env/ext4.c
Hi Joe,
It is a resend of previous serie [1] after rebase.
This serie provides several corrections on ENV suport in MMC partition.
No code modification on this RESEND, tested on STM32MP157C-EV1.
[1] http://patchwork.ozlabs.org/project/uboot/list/?series=165325
Regards
Patrick
Patrick
Add trace in env save to indicate any errors to end user and avoid
silent output when the command 'env save' is not executed.
Signed-off-by: Patrick Delaunay
---
env/env.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/env/env.c b/env/env.c
index dcc25c030b
Remove space in ENV backend name for SPI Flash (SF)
to avoid issue with env select command.
Signed-off-by: Patrick Delaunay
---
Changes in v3:
- new
env/sf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/sf.c b/env/sf.c
index 02ed846fc7..515ffd4f1d 100644
--- a/env
Add the ops .load for nowhere ENV backend to load the
default environment.
This ops is needed for the command 'env load'
Signed-off-by: Patrick Delaunay
---
Changes in v3:
- new: add ?load ops in nowhere
env/nowhere.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/env
Remove space in ENV backend name for SPI Flash (SF)
to avoid issue with env select command.
Signed-off-by: Patrick Delaunay
---
(no changes since v3)
Changes in v3:
- new
env/sf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/sf.c b/env/sf.c
index 3e524f2947
Hi,
V3 of the serie [1].
In this serie, I add sandbox test with CONFIG_ENV_IS_NOWHERE
activated with EXT4 location: load, save and erase.
To test this feature, I add 2 new commands to change the
ENV location:
- env select [target]
- env load
This serie depends on previous env test introduced
Hello Stefan,
Signifacance of CONFIG_EXTRA_ENV_UNLOCK:
This env variable is read by the cfi driver to unlock all flash sectors.
This is necessary because the Parallel NOR flash connected on the spear
boards, M28W64, has all its sectors in locked state at reset and these
have to be unlocked
are different, depending of thea ctivated CONFIG_ENV_IS_ options.
Signed-off-by: Patrick Delaunay
---
env/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/env.c b/env/env.c
index dcc25c030b..49545a8d9c 100644
--- a/env/env.c
+++ b/env/env.c
@@ -103,7 +103,7 @@ static void
Dear Wolfgang,
> From: Wolfgang Denk
> Sent: mercredi 1 avril 2020 13:26
>
> Dear Patrick Delaunay,
>
> In message <20200331160456.26254-1-patrick.delau...@st.com> you wrote:
> > Imply CONFIG_VERSION_VARIABLE for stm32mp1 target and test U-Boot
> > ver
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
Changes in v2:
- use CONFIG_IS_ENABLED to set .erase
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
(no changes since v2)
Changes in v2:
- use
Add the ops .load for nowhere ENV backend to load the
default environment.
This ops is needed for the command 'env load'
Signed-off-by: Patrick Delaunay
---
Changes in v4:
- don't use env_import in SPL to avoid to increase its size
as it is only required for 'env load' command
Changes in v3
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
(no changes since v2)
Changes in v2:
- use
Hi Patrice,
> From: Patrice CHOTARD
> Sent: lundi 3 février 2020 15:11
>
> For stm32f4, f7 and h7 boards, reserve:
> - 4MB for kernel
> - 64KB for fdt, boot script, pxefile
> - the remaining memory for ramdisk
>
> Signed-off-by: Patrice Chotard
> ---
Reviewed-by: Patrick Delaunay
Hi,
> From: Patrice CHOTARD
> Sent: lundi 3 février 2020 15:11
>
> For stm32f4, f7 and h7 boards, reserve:
> - 4MB for kernel
> - 64KB for fdt, boot script, pxefile
> - the remaining memory for ramdisk
>
> Signed-off-by: Patrice Chotard
> ---
Applied to u-boot-stm32/master, thanks!
Hi,
> From: Patrick DELAUNAY
> Sent: jeudi 15 octobre 2020 14:32
>
> Activate CONFIG_CMD_IMPORTENV to accept the command "env import".
> This command is useful in script to include some variable.
>
> Signed-off-by: Patrick Delaunay
> ---
>
>
Hi,
> From: Patrick DELAUNAY
> Sent: jeudi 15 octobre 2020 14:32
>
> Activate CONFIG_CMD_EXPORTENV to accept the command "env export".
>
> Signed-off-by: Patrick Delaunay
> ---
>
> configs/stm32mp15_basic_defconfig | 1 -
> configs/stm32mp15_trust
his target is selected in the weak function env_get_location.
And "env save" as be not be executed (default environment is used).
And with quiet option, the test the environment if is persistent (result of
"env -p -q" is 0)
or using default ("env -d -q" res
in sandbox; I add a new command "env_loc" to change this
ENV location.
This serie depends on previous env test introduced in:
"cmd: env: add option for quiet output on env info"
http://patchwork.ozlabs.org/project/uboot/list/?series=158105
To be able to test invalid file (
env: ext4: add test for env in ext4
Hi,
In this serie, I add sandbox test with CONFIG_ENV_IS_NOWHERE
activated with other location: at least one CONFIG_ENV_IS_IN_...
is defined and ENV_IS_IN_DEVICE is automatically defined.
To test this feature, I activate and test ENV_IS_IN_EXT4
in sandbox; I
Hi,
> From: Patrick DELAUNAY
> Sent: vendredi 14 juin 2019 13:06
>
> Move 2 ENV configuration flags in board Kconfig
> - CONFIG_ENV_SECT_SIZE
> - CONFIG_ENV_OFFSET
>
> Signed-off-by: Patrick Delaunay
> ---
>
> board/st/stm32mp1/Kconfig | 6 ++
Hi,
It is a V3 for
"cmd: env: add option for quiet output on env info"
http://patchwork.ozlabs.org/project/uboot/list/?series=157728
I also add pytest for command env info.
Test for ENV_IS_IN_DEVICE will be included in future serie
(I will activate ENV_IS_IN_EXT4 support in sandbox)
Hi,
It is a V2 after Wolfgang and Simon remarks for
"cmd: env: add option for quiet output on env info"
http://patchwork.ozlabs.org/project/uboot/list/?series=155122
I also add pytest for command env info.
Test for ENV_IS_IN_DEVICE will be include in future serie
(I wil
ENV_IS_IN_EXT4
in sandbox; I add a new command "env_loc" to change this
ENV location.
This serie depends on previous env test introduced in [2]
"cmd: env: add option for quiet output on env info"
To be able to test invalid file (bad CRC), I also add the support of
the command &quo
Activate the command env erase to reset the environment with the command:
> env erase
it is simpler than:
> env default -a
> env save
Signed-off-by: Patrick Delaunay
---
configs/stm32mp15_basic_defconfig | 1 +
configs/stm32mp15_trusted_defconfig | 1 +
2 files changed, 2 i
On Wednesday 07 March 2012 13:03:59 Amit Virdi wrote:
From: Vipin KUMAR vipin.ku...@st.com
This patch modifies the default environment variables as:
1. Default bootargs:
- console=ttyAMA0,115200
- For environment present in NOR flash
root=/dev/mtdblock3
- For environment present
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Signed-off-by: Patrick Delaunay
---
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Signed-off-by: Patrick Delaunay
---
gs/stm32mp1.h
> > +++ b/include/configs/stm32mp1.h
> > @@ -222,9 +222,14 @@
> > "splashimage=0xc430\0" \
> > "ramdisk_addr_r=0xc440\0" \
> > "altbootcmd=run bootcmd\0" \
> > - "env_default=1\0" \
> > - "e
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Signed-off-by: Patrick De
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Reviewed-by: Tom Rini
Sign
Add a missing initialization of gd->env_valid in env_ext4_load
as it is already done in some other env device.
Set gd->env_valid = ENV_VALID in env_ext4_save() and env_ext4_load().
This patch allows to have a correct information in 'env info' command.
Reviewed-by: Tom Rini
Sign
Solve compilation issue when cli_simple.o is used in SPL
and CONFIG_SPL_ENV_SUPPORT is not defined.
env/built-in.o:(.data.env_htab+0xc): undefined reference to `env_flags_validate'
u-boot/scripts/Makefile.spl:384: recipe for target 'spl/u-boot-spl' failed
make[2]: *** [spl/u-boot-spl] Error 1
u
NV_SUPPORT and CONFIG_TPL_ENV_SUPPORT).
This patch solves the regression introduced by
commit 7d4776545b0f ("env: solve compilation error
in SPL"); change_ok was always NULL in U-Boot.
Signed-off-by: Patrick Delaunay
---
Changes in v3: None
Changes in v2: None
env/common.c | 6 --
1 file changed
NV_SUPPORT and CONFIG_TPL_ENV_SUPPORT).
This patch solves the regression introduced by
commit 7d4776545b0f ("env: solve compilation error
in SPL"); change_ok was always NULL in U-Boot.
Signed-off-by: Patrick Delaunay
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
env/common.c | 6 ++
Don't return error with ret=-ENOENT when the optional ops drv->init
is absent but only if env_driver_lookup don't found driver.
This patch correct an issue for the code
if (!env_init())
env_load()
When only ext4 is supported (CONFIG_ENV_IS_IN_EXT4),
as the backend env/ext4.c doesn't def
Don't return error with ret=-ENOENT when the optional ops drv->init
is absent but only if env_driver_lookup don't found driver.
This patch correct an issue for the code
if (!env_init())
env_load()
When only ext4 is supported (CONFIG_ENV_IS_IN_EXT4),
as the backend env/ext4.c doesn't def
Don't return error with ret=-ENOENT when the optional ops drv->init
is absent but only if env_driver_lookup doesn't found driver.
This patch correct an issue for the code
if (!env_init())
env_load()
When only ext4 is supported (CONFIG_ENV_IS_IN_EXT4),
as the backend env/ext4.c does
Use the define ENV_IS_IN_DEVICE to test if one the
CONFIG_ENV_IS_IN_... is defined and correct the detection of
persistent storage support in the command "env info"
if CONFIG_ENV_IS_NOWHERE is activated.
Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with
other storag
Hi,
It is a V5 for [1] serie.
I add the -q option for 'env info' command and I also add pytest
for this command.
Test for ENV_IS_IN_DEVICE is included in separate serie [2]
(I will activate ENV_IS_IN_EXT4 support in sandbox)
To avoid compilation warning, I add prototype for
env_get_location
Hi,
It is a V5 for [1] serie.
RESEND without "stm32mp1: use the command env info -q in env_check"
sent in separate serie [4].
I add the -q option for 'env info' command and I also add pytest
for this command.
Test for ENV_IS_IN_DEVICE is included in separate serie [2]
(I wil
Hi,
It is a V4 for [1] serie.
I add the -q option for 'env info' command and I also add pytest
for this command.
Test for ENV_IS_IN_DEVICE is included in separate serie [2]
(I will activate ENV_IS_IN_EXT4 support in sandbox)
To avoid compilation warning, I add prototype for
env_get_location
Dear Vipin KUMAR,
In message 1279084204-3263-28-git-send-email-vipin.ku...@st.com you wrote:
From: Vipin KUMAR vipin.ku...@st.com
Ethernet/UHC issue workaround which resets the SoC has an unexpected effect
while using uboot as flashing utils firmware. So, excluding the changes for
uboot
Allow U-Boot to get default environment for some boot mode
(USB for example), and to select storage location when it is
booting from flash device;
ENVL_NOWHERE is present in env_locations with other one.
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrice Chotard
---
env/Kconfig | 18
Allow U-Boot to get default environment for some boot mode
(USB for example), and to select storage location when it is
booting from flash device;
ENVL_NOWHERE is present in env_locations with other one.
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrice Chotard
---
env/Kconfig | 18
ot;/uboot.env"
stm32mp15_trusted_defconfig:50:CONFIG_ENV_EXT4_FILE="/uboot.env"
env/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/Kconfig b/env/Kconfig
index 0d6f559b39..8059749701 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -467,7 +467,7 @@ config ENV_EXT
ot;/uboot.env"
stm32mp15_trusted_defconfig:50:CONFIG_ENV_EXT4_FILE="/uboot.env"
env/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/Kconfig b/env/Kconfig
index 0d6f559b39..8059749701 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -467,7 +467,7 @@ config ENV_EXT
of
> > persistent storage support in the command "env info"
> > if CONFIG_ENV_IS_NOWHERE is activated.
> >
> > Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with other
> > storage target") test CONFIG_ENV_IS_NOWHERE is not enough; see also
> > comm
nv(), erase_env() and read_env().
>
> In these function, blk_start = offset / mmc->read_bl_len
> or /write_bl_len so this offset is not a multiple of blksz.
>
> Signed-off-by: Patrick Delaunay
> ---
>
> env/mmc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
&
Activate the new option -q in command "env info"
to avoid unnecessary trace during boot.
Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
---
Hi,
This patch was previous included in V3 serie 158105.
This patch have dependency with serie 184539 for -q option
and with se
Hi Patrick
On 6/15/20 4:42 PM, Patrick Delaunay wrote:
> Activate the new option -q in command "env info"
> to avoid unnecessary trace during boot.
>
> Hi,
>
> This patch was previous included in V3 serie 158105.
>
> This patch have dependency with serie 183
day by all the boards:
dragonboard820c_defconfig:29:CONFIG_ENV_EXT4_FILE="/uboot.env"
hikey960_defconfig:25:CONFIG_ENV_EXT4_FILE="/uboot.env"
stm32mp15_basic_defconfig:64:CONFIG_ENV_EXT4_FILE="/uboot.env"
stm32mp15_trusted_defconfig:50:CONFIG_ENV_EXT4_FILE="/uboot.env&quo
Hi Stephen,
> From: Stephen Warren
> Sent: lundi 22 juin 2020 20:51
>
> On 6/19/20 6:03 AM, Patrick Delaunay wrote:
> > Add a pytest for testing the env info sub-command:
> >
> > test_env_info: test command with several option that can be executed
> > on rea
new function env_select() without
updating gd->env_load_prio.
Signed-off-by: Patrick Delaunay
---
Changes in v3:
- new
env/env.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/env/env.c b/env/env.c
index dcc25c030b..181aaa222c 100644
--- a/env/env.c
+++ b/env
The ops driver load becomes mandatory in struct env_drive,
change the comment for this ops and remove unnecessary test.
Signed-off-by: Patrick Delaunay
---
Changes in v3:
- new: load operation becomes mandatory
env/env.c | 3 ---
include/env_internal.h | 3 +--
2 files changed, 1
FILE="/uboot.env"
(no changes since v1)
env/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/Kconfig b/env/Kconfig
index ca7fef682b..9dad1cf8c1 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -469,7 +469,7 @@ config ENV_EXT4_DEVICE_AND_PART
config ENV_EXT4
Activate the new option -q in command "env info"
to avoid unnecessary trace during boot.
Hi,
This patch was previous included in V3 serie 158105.
This patch have dependency with serie 183438 for -q otpion
and with serie 183387 for stm32mp1 env_check update.
END
Signed-off-by: Patric
def CONFIG_SYS_RELOC_GD_ENV_ADDR
/*
* Relocate the early env_addr pointer unless we know it is not inside
* the binary. Some systems need this and for the rest, it doesn't hurt.
*/
gd->env_addr += gd->reloc_off;
#endif
...
env/Kconfig | 2 +-
1 fil
The ops driver load becomes mandatory in struct env_drive,
change the comment for this ops and remove unnecessary test.
Signed-off-by: Patrick Delaunay
---
(no changes since v3)
Changes in v3:
- new: load operation becomes mandatory
env/env.c | 3 ---
include/env_internal.h | 3
new function env_select() without
updating gd->env_load_prio.
Signed-off-by: Patrick Delaunay
---
(no changes since v3)
Changes in v3:
- new
env/env.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/env/env.c b/env/env.c
index 2e64346438..bcc68c6bce 100644
---
FILE="/uboot.env"
(no changes since v1)
env/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/Kconfig b/env/Kconfig
index 5784136674..445e1ad341 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -473,7 +473,7 @@ config ENV_EXT4_DEVICE_AND_PART
config ENV_EXT4
On 7/2/20 6:48 PM, Patrick Delaunay wrote:
> Activate the new option -q in command "env info"
> to avoid unnecessary trace during boot.
>
> Signed-off-by: Patrick Delaunay
> Reviewed-by: Patrice Chotard
> ---
> Hi,
>
> This patch was previous included in
On Tue, Mar 20, 2018 at 10:54:53AM +0100, Patrick Delaunay wrote:
> SPL copy BootRom boot mode information
> in TAMP register 21.
>
> This TAMP register information is used
> after relocation to set 2 env variables
> - boot_device
> - boot_instance
>
> Sign
Hi,
> From: Patrick DELAUNAY
> Sent: vendredi 5 juillet 2019 17:20
>
> For boot from flash, check presence of default environment to force save env.
>
> Signed-off-by: Patrick Delaunay
> ---
>
> Changes in v2: None
>
> include/configs/stm32mp1.h | 4 +++
This series fixes:
- issue when silent property is updated in saved environment
- issue regarding console flush when silent property is removed from
saved environment
Patrick Delaunay (2):
console: update silent tag after env load
console: execute flush on uart when silent is removed
This series:
- standardizes the fdt_addr, scriptaddr and pxefile_addr
across all STM32 MCU's board.
- remove fdt_high and initrd_high from board environment
Patrice Chotard (2):
board: stm32: fix extra env setings addresses
board: stm32: remove fdt_high and fdt_highinitrd_high
by: Marek Vasut
> Reviewed-by: Tom Rini
I'm deferring this version for
http://patchwork.ozlabs.org/project/uboot/patch/20200728095128.2363-6-patrick.delau...@st.com/
which address the problem of this change bringing in more code in SPL
otherwise.
--
Tom
signature.asc
Description: PGP signature
Hi Jakob,
> From: U-Boot On Behalf Of Jakob Riepler
> Sent: lundi 27 juillet 2020 14:18
>
> Overriding the environment location is not necessary as the defconfig for the
> relevant boards only enable SPI flash and nowhere sources which are in the
> same
> order per default but having this
Add a pytest for testing the env info sub-command:
test_env_info: test command with several option
test_env_info_quiet: test the result of the sub-command with quiet option,
'-q' as used for support in shell test; for example:
if env info -p -d -q; then env save; fi
Signed-off-by: Patrick
Add a pytest for testing the env info sub-command:
test_env_info: test command with several option
test_env_info_test: test the result of the sub-commandi with quiet option,
'-q' as used for support in shell test; for example:
if env info -p -d -q; then env save; fi
Signed-off-by: Patrick
Dear Wolfgang,
> From: Uboot-stm32 On
> Behalf Of Wolfgang Denk
>
> Dear Patrick,
>
> In message <8607d1778bcd4035807908e4a3a90...@sfhdag6node3.st.com>
> you wrote:
> >
> > To simplify the test:
> >
> > env_check = " if env info -p -d -q;
Use the define ENV_IS_IN_DEVICE to test if one the
CONFIG_ENV_IS_IN_... is defined and correct the detection of
persistent storage support in the command "env info"
if CONFIG_ENV_IS_NOWHERE is activated.
Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with
other storag
Use the define ENV_IS_IN_DEVICE to test if one the
CONFIG_ENV_IS_IN_... is defined and correct the detection of
persistent storage support in the command "env info"
if CONFIG_ENV_IS_NOWHERE is activated.
Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with
other storag
Hi,
> From: Simon Glass
> Sent: jeudi 30 janvier 2020 03:18
>
> On Fri, 24 Jan 2020 at 05:34, Patrick Delaunay
> wrote:
> >
> > The "env info" can be use for test with -d and -p parameter, in
> > scripting case the output of the command is not need
Hi Stephen
> From: Stephen Warren
> Sent: lundi 10 février 2020 21:25
>
> On 2/10/20 10:01 AM, Patrick Delaunay wrote:
> > Add a pytest for testing the env info sub-command:
> >
> > test_env_info: test command with several option
> >
> > test_env_info
Use the define ENV_IS_IN_DEVICE to test if one the
CONFIG_ENV_IS_IN_... is defined and correct the detection of
persistent storage support in the command "env info"
if CONFIG_ENV_IS_NOWHERE is activated.
Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with
other storag
/stm32mp1.h
index 6c74b4b..94485a1 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -149,7 +149,8 @@
" then env set env_default 0;env save;fi\0" \
STM32MP_BOOTCMD \
STM32MP_MTDPARTS \
- BOOTENV
+ BOOTENV \
+ "boo
/include/configs/stm32mp1.h
index 6c74b4b..94485a1 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -149,7 +149,8 @@
" then env set env_default 0;env save;fi\0" \
STM32MP_BOOTCMD \
STM32MP_MTDPARTS \
- BOOTENV
+
Allow to disable console with environment variable 'silent':
> env set silent 1; env save
Signed-off-by: Patrick Delaunay
---
arch/arm/mach-stm32mp/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
index 9dc3c4d..e5f0
Hi,
This serie moves the remaining CONFIG_ENV_ flags
for the the stm32m1 arch or board in Kconfig.
No impact for other target, checked by
tools/buildman/buildman -D rockchip sunxi zynq versal arc stm32mp
Patrick Delaunay (2):
env: Move CONFIG_ENV_UBI_VOLUME_REDUND in Kconfig
stm32mp1
In case of DT boot, don't read default speed and mode for SPI from
CONFIG_*, instead read from DT node.
Signed-off-by: Patrick Delaunay
---
env/Kconfig | 4 ++--
env/sf.c| 5 -
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/env/Kconfig b/env/Kconfig
index 9011109
Add support of environment location with the new env command:
'env select' and 'env load'
The ENV backend is selected by priority order
- 0 = "nowhere" (default at boot)
- 1 = "EXT4"
To test EXT4 env support, this backend is selected by name:
> env select EXT4
Signed-o
Add support of environment location with the new env command:
'env select' and 'env load'
The ENV backend is selected by priority order
- 0 = "nowhere" (default at boot)
- 1 = "EXT4"
To test EXT4 env support, this backend is selected by name:
> env select EXT4
Signed-o
oad
To be able to test invalid file (bad CRC), I also add the support of
the command "env erase" for EXT4 env location.
[1] http://patchwork.ozlabs.org/project/uboot/list/?series=185725
[2]
http://patchwork.ozlabs.org/project/uboot/patch/20200625075958.9868-6-patrick.delau...@st.com/
Reg
flash
- [PATCH 0/3] stv0991: spi env configs related board changes
Rgds,
Vikas
On 17 June 2015 at 03:04, Vikas MANOCHA vikas.mano...@st.com wrote:
Thanks Jagan.
-Original Message-
From: Jagan Teki [mailto:jt...@openedev.com]
Sent: Tuesday, June 16, 2015 3:50 AM
To: Vikas
Hi,
> From: Wolfgang Denk
> Sent: vendredi 24 janvier 2020 14:20
>
> Dear Patrick,
>
> In message <20200124124142.392-1-patrick.delau...@st.com> you wrote:
> >
> > +/* allows to set ext4 interface */
> > +const char *env_ext4_get_intf(void);
&g
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 24 +++-
1 file
Add support of opts erase for env in ext4,
this opts is used by command 'env erase'.
This command only fill the env file (CONFIG_ENV_EXT4_FILE)
with 0, the CRC and the saved environment becomes invalid.
Signed-off-by: Patrick Delaunay
---
env/ext4.c | 24 +++-
1 file
- "env_check=if test $env_default -eq 1;"\
- " then env set env_default 0;env save;fi\0" \
+ "env_check=" \
+ "env exists env_ver || env set env_ver ${ver};" \
+ "if env
222,14 @@
> "splashimage=0xc430\0" \
> "ramdisk_addr_r=0xc440\0" \
> "altbootcmd=run bootcmd\0" \
> - "env_default=1\0" \
> - "env_check=if test $env_default -eq 1;"\
> - " then env set
For boot from flash, check presence of default environment to force
save env.
Signed-off-by: Patrick Delaunay
---
include/configs/stm32mp1.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index 1d385e0..6c74b4b 100644
For boot from flash, check presence of default environment to force
save env.
Signed-off-by: Patrick Delaunay
---
Changes in v2: None
include/configs/stm32mp1.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index 1d385e0
Hi Patrick
On 6/15/20 11:25 AM, Patrick Delaunay wrote:
> Activate the command env erase to reset the environment with the command:
>> env erase
> it is simpler than:
>> env default -a
>> env save
> Signed-off-by: Patrick Delaunay
> ---
>
> configs/stm32mp1
> >
> > In the test, I assume that at least CONFIG_ENV_IS_ is activated
> > (for persistent storage) and if this target is selected in the weak function
> env_get_location.
> > And "env save" as be not be executed (default environment is used).
> >
> &
-ALL += $(obj)u-boot.img
+ALL-y += $(obj)u-boot.img
# Environment variables in NAND
ifeq ($(ENV),NAND)
diff --git a/board/spear/spear310/config.mk b/board/spear/spear310/config.mk
index 2b59c39..f8a6bdb 100644
--- a/board/spear/spear310/config.mk
+++ b/board/spear/spear310/config.mk
From: Vipin KUMAR vipin.ku...@st.com
This patch modifies the default environment variables as:
1. Default bootargs:
- console=ttyAMA0,115200
- For environment present in NOR flash
root=/dev/mtdblock3
- For environment present in NAND flash
root=/dev/mtdblock7
- Removes mem= option
2
From: Vipin KUMAR vipin.ku...@st.com
This patch modifies the default environment variables as:
1. Default bootargs:
- console=ttyAMA0,115200
- For environment present in NOR flash
root=/dev/mtdblock3
- For environment present in NAND flash
root=/dev/mtdblock7
- Removes mem= option
2
From: Vipin KUMAR vipin.ku...@st.com
This patch modifies the default environment variables as:
1. Default bootargs:
- console=ttyAMA0,115200
- For environment present in NOR flash
root=/dev/mtdblock3
- For environment present in NAND flash
root=/dev/mtdblock7
- Removes mem= option
2
1 - 100 of 441 matches
Mail list logo