[RESEND PATCH 07/10] env: ext4: fix possible compilation issue

2020-02-12 Thread Patrick Delaunay
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

[PATCH 07/10] env: ext4: fix possible compilation issue

2020-02-12 Thread Patrick Delaunay
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

[RESEND PATCH 0/3] env: mmc: allow support of mmc_get_env_dev with OF_CONTROL

2020-06-15 Thread Patrick Delaunay
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

[PATCH] env: add failing trace in env_save

2020-06-24 Thread Patrick Delaunay
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

[PATCH v3 03/14] env: sf: avoid space in backend name

2020-06-25 Thread Patrick Delaunay
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

[PATCH v3 05/14] env: nowhere: add .load ops

2020-06-25 Thread Patrick Delaunay
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

[PATCH v4 03/14] env: sf: avoid space in backend name

2020-07-28 Thread Patrick Delaunay
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

[PATCH v3 00/14] env: ext4: corrections and add test for env in ext4

2020-06-25 Thread Patrick Delaunay
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

Re: [U-Boot] [PATCH 10/25] SPEAr: Change the default environment variables

2012-03-12 Thread Amit Virdi
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

[PATCH] env: correct overflow check of env_has_init size

2020-06-24 Thread Patrick Delaunay
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

RE: [PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-04-07 Thread Patrick DELAUNAY
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

[PATCH v2 8/9] env: ext4: add support of command env erase

2020-06-16 Thread Patrick Delaunay
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

[PATCH v3 13/14] env: ext4: add support of command env erase

2020-06-25 Thread Patrick Delaunay
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

[PATCH v4 05/14] env: nowhere: add .load ops

2020-07-28 Thread Patrick Delaunay
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

[PATCH v4 13/14] env: ext4: add support of command env erase

2020-07-28 Thread Patrick Delaunay
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

RE: [PATCH v1 1/2] board: stm32: fix extra env setings addresses

2020-02-13 Thread Patrick DELAUNAY
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

RE: [PATCH v1 1/2] board: stm32: fix extra env setings addresses

2020-02-14 Thread 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!

RE: [PATCH 1/2] configs: stm32mp15: activate CMD_IMPORTENV

2020-10-21 Thread Patrick DELAUNAY
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 > --- > >

RE: [PATCH 2/2] configs: stm32mp15: activate CMD_EXPORTENV

2020-10-21 Thread 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

RE: [PATCH v4 4/4] test: env: add test for env info sub-command

2020-06-16 Thread Patrick DELAUNAY
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

[RESEND PATCH 00/10] env: ext4: add test for env in ext4

2020-02-12 Thread Patrick Delaunay
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 (

[PATCH 00/10]

2020-02-12 Thread Patrick Delaunay
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

Re: [U-Boot] [PATCH 2/2] stm32mp1: move CONFIG_ENV in Kconfig

2019-07-12 Thread Patrick DELAUNAY
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 ++

[PATCH v3 0/7] cmd: env: add option for quiet output on env info

2020-02-12 Thread Patrick Delaunay
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)

[PATCH v2 0/7] cmd: env: add option for quiet output on env info

2020-02-10 Thread Patrick Delaunay
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

[PATCH v2 0/9] env: ext4: corrections and add test for env in ext4

2020-06-16 Thread Patrick Delaunay
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

[PATCH] stm32mp1: configs: activate CMD_ERASEENV

2020-06-15 Thread Patrick Delaunay
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

Re: [U-Boot] [PATCH 10/25] SPEAr: Change the default environment variables

2012-03-07 Thread Stefan Roese
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

[RESEND PATCH 02/10] env: ext4: set gd->env_valid

2020-02-12 Thread 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 ---

[PATCH 02/10] env: ext4: set gd->env_valid

2020-02-12 Thread 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 ---

RE: [PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-04-07 Thread 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

[PATCH v2 2/9] env: ext4: set gd->env_valid

2020-06-16 Thread 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 De

[PATCH v3 02/14] env: ext4: set gd->env_valid

2020-06-25 Thread 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. Reviewed-by: Tom Rini Sign

[PATCH v4 02/14] env: ext4: set gd->env_valid

2020-07-28 Thread 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. Reviewed-by: Tom Rini Sign

[U-Boot] [PATCH 14/16] env: solve compilation error in SPL

2019-04-18 Thread Patrick Delaunay
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

[U-Boot] [PATCH v3 1/3] env: correct the check of env_flags_validate presence

2019-09-18 Thread Patrick Delaunay
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

[U-Boot] [PATCH v4 1/3] env: correct the check of env_flags_validate presence

2019-10-03 Thread Patrick Delaunay
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 ++

[RESEND PATCH 03/10] env: correctly handle result in env_init

2020-02-12 Thread Patrick Delaunay
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

[PATCH 03/10] env: correctly handle result in env_init

2020-02-12 Thread Patrick Delaunay
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

[PATCH v2 3/9] env: correctly handle result in env_init

2020-06-16 Thread Patrick Delaunay
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

[PATCH 1/2] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-06-15 Thread Patrick Delaunay
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

[PATCH v5 0/5] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
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

[RESEND PATCH v5 0/4] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
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

[PATCH v4 0/4] cmd: env: add option for quiet output on env info

2020-06-15 Thread Patrick Delaunay
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

Re: [U-Boot] [PATCH 27/28] SPEAr : Ethernet issue workaround is not needed when uboot is acting as flashing

2010-07-15 Thread Wolfgang Denk
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

[U-Boot] [PATCH 06/14] env: allow ENV_IS_NOWHERE with other storage target

2019-05-10 Thread Patrice Chotard
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

[U-Boot] [PATCH 05/13] env: allow ENV_IS_NOWHERE with other storage target

2019-05-10 Thread Patrice Chotard
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

[RESEND PATCH 01/10] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-02-12 Thread Patrick Delaunay
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

[PATCH 01/10] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-02-12 Thread Patrick Delaunay
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

RE: [PATCH 2/5] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-02-10 Thread Patrick DELAUNAY
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

Re: [Uboot-stm32] [PATCH 2/3] env: mmc: correct the offset returned by mmc_offset_try_partition

2020-04-17 Thread Patrice CHOTARD
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(-) &

[PATCH v2] stm32mp1: use the command env info -q in env_check

2020-07-02 Thread Patrick Delaunay
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

Re: [Uboot-stm32] [PATCH] stm32mp1: use the command env info -q in env_check

2020-07-02 Thread Patrice CHOTARD
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

[PATCH v2 1/9] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-06-16 Thread Patrick Delaunay
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

RE: [RESEND PATCH v5 4/4] test: env: add test for env info sub-command

2020-06-23 Thread Patrick DELAUNAY
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

[PATCH v3 04/14] env: correctly handle env_load_prio

2020-06-25 Thread Patrick Delaunay
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

[PATCH v3 06/14] env: the ops driver load becomes mandatory in struct env_driver

2020-06-25 Thread Patrick Delaunay
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

[PATCH v3 01/14] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-06-25 Thread Patrick Delaunay
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

[PATCH] stm32mp1: use the command env info -q in env_check

2020-06-15 Thread Patrick Delaunay
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

[PATCH] env: Kconfig: cosmetics: update comment for SYS_RELOC_GD_ENV_ADDR

2020-06-10 Thread Patrick Delaunay
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

[PATCH v4 06/14] env: the ops driver load becomes mandatory in struct env_driver

2020-07-28 Thread Patrick Delaunay
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

[PATCH v4 04/14] env: correctly handle env_load_prio

2020-07-28 Thread Patrick Delaunay
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 ---

[PATCH v4 01/14] env: add absolute path at CONFIG_ENV_EXT4_FILE

2020-07-28 Thread Patrick Delaunay
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

Re: [Uboot-stm32] [PATCH v2] stm32mp1: use the command env info -q in env_check

2020-07-28 Thread Patrice CHOTARD
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

Re: [U-Boot] [U-Boot,3/4] stm32mp1: get boot mode from BootRom

2018-04-07 Thread Tom Rini
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

Re: [U-Boot] [PATCH v2 14/16] stm32mp1: add check for presence of environment in boot device

2019-07-12 Thread Patrick DELAUNAY
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 +++

[U-Boot] [PATCH 0/2] Silent console fixes

2019-08-02 Thread Patrice Chotard
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

[PATCH v1 0/2] Update board environment for STM32 MCU's boards

2020-02-03 Thread Patrice Chotard
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

Re: [PATCH V2 5/7] env: nowhere: Implement .load callback

2020-07-31 Thread Tom Rini
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

RE: [PATCH] [dh stm32mp1] remove env location override

2020-07-28 Thread Patrick DELAUNAY
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

[PATCH v3 7/7] test: env: add test for env info sub-command

2020-02-12 Thread Patrick Delaunay
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

[PATCH v2 7/7] test: env: add test for env info sub-command

2020-02-10 Thread Patrick Delaunay
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

RE: [Uboot-stm32] [PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-04-08 Thread Patrick DELAUNAY
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;

[PATCH v3 2/7] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-02-12 Thread Patrick Delaunay
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

[PATCH 2/5] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-01-24 Thread Patrick Delaunay
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

RE: [PATCH 1/5] cmd: env: add option for quiet output on env info

2020-01-31 Thread Patrick DELAUNAY
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

RE: [PATCH v2 7/7] test: env: add test for env info sub-command

2020-02-11 Thread Patrick DELAUNAY
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

[PATCH v2 2/7] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-02-10 Thread Patrick Delaunay
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

[U-Boot] [PATCH 15/16] stm32mp1: force boot_net_usb_start

2019-06-21 Thread Patrick Delaunay
/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

[U-Boot] [PATCH v2 15/16] stm32mp1: force boot_net_usb_start

2019-07-05 Thread Patrick Delaunay
/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 +

[U-Boot] [PATCH 14/48] stm32mp1: configs: activate CONFIG_SILENT_CONSOLE

2019-07-30 Thread Patrick Delaunay
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

[U-Boot] [PATCH 0/2] stm32mp1: move CONFIG_ENV in Kconfig

2019-06-14 Thread Patrick Delaunay
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

[U-Boot] [PATCH 6/7] env: Read default speed and mode values from DT

2018-12-10 Thread Patrick Delaunay
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

[PATCH v3 10/14] configs: sandbox: activate command env select and env load

2020-06-25 Thread Patrick Delaunay
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

[PATCH v4 10/14] configs: sandbox: activate command env select and env load

2020-07-28 Thread Patrick Delaunay
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

[PATCH v4 00/14] env: ext4: corrections and add test for env in ext4

2020-07-28 Thread Patrick Delaunay
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

Re: [U-Boot] [PATCH 0/3] stv0991: spi env configs related board changes

2015-06-24 Thread Vikas MANOCHA
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

RE: [PATCH] env: add prototypes for weak function

2020-01-27 Thread Patrick DELAUNAY
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

[RESEND PATCH 09/10] env: ext4: add support of command env erase

2020-02-12 Thread Patrick Delaunay
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

[PATCH 09/10] env: ext4: add support of command env erase

2020-02-12 Thread Patrick Delaunay
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

[PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-03-31 Thread Patrick Delaunay
- "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

Re: [PATCH 04/16] arm: stm32mp: detect U-Boot version used to save environment

2020-04-01 Thread Patrice CHOTARD
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

[U-Boot] [PATCH 14/16] stm32mp1: add check for presence of environment in boot device

2019-06-21 Thread Patrick Delaunay
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

[U-Boot] [PATCH v2 14/16] stm32mp1: add check for presence of environment in boot device

2019-07-05 Thread Patrick Delaunay
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

Re: [Uboot-stm32] [PATCH] stm32mp1: configs: activate CMD_ERASEENV

2020-07-02 Thread Patrice CHOTARD
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

RE: [PATCH v4 4/4] test: env: add test for env info sub-command

2020-06-18 Thread Patrick DELAUNAY
> > > > 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). > > > &

Re: [U-Boot] [PATCH v3 1/9] Use ALL-y style instead of ifeq blocks for better readability

2011-07-18 Thread Vipin Kumar
-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

[U-Boot] [PATCH V2 RESEND 10/24] SPEAr: Change the default environment variables

2012-05-07 Thread Amit Virdi
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

[U-Boot] [PATCH 10/25] SPEAr: Change the default environment variables

2012-03-07 Thread Amit Virdi
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

[U-Boot] [PATCH V2 10/24] SPEAr: Change the default environment variables

2012-03-30 Thread Amit Virdi
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   2   3   4   5   >