Re: [PATCH v5 17/20] spl: nor: add lzma decompression support for legacy image

2020-02-12 Thread Simon Goldschmidt
On Wed, Feb 12, 2020 at 10:46 AM Weijie Gao wrote: > > This patch adds support for decompressing LZMA compressed u-boot payload in > legacy uImage format. > > Using this patch together with u-boot-lzma.img is useful for NOR flashes as > they can reduce the size and load time of u-boot payload. > >

Re: [PATCH v4 17/20] spl: nor: add lzma decompression support for legacy image

2020-02-12 Thread Stefan
Hi Simon, On 13.02.20 08:40, Simon Goldschmidt wrote: Sorry if it seems I ignored this mail yesterday, I just found it now :) On Wed, Feb 12, 2020 at 10:05 AM Stefan Roese wrote: On 12.02.20 09:57, Weijie Gao wrote: And more general: why do we need to code this in every loader? I think i

Re: [PATCH v5 00/20] Refactor the architecture parts of mt7628

2020-02-12 Thread Simon Goldschmidt
On Wed, Feb 12, 2020 at 10:43 AM Weijie Gao wrote: > > This patch series are divided into two parts: > > The main part is to rewrite the whole architecture code of mt7628: > * Lock parts of the d-cache for initial stack so the rest of the code can > be reimplemented in C. > * Memory controller &

Re: [PATCH v4 17/20] spl: nor: add lzma decompression support for legacy image

2020-02-12 Thread Simon Goldschmidt
On Thu, Feb 13, 2020 at 3:53 AM Weijie Gao wrote: > > On Wed, 2020-02-12 at 11:18 +0100, Simon Goldschmidt wrote: > > On Wed, Feb 12, 2020 at 9:57 AM Weijie Gao wrote: > > > > > > On Wed, 2020-02-12 at 09:22 +0100, Simon Goldschmidt wrote: > > > > On Wed, Feb 12, 2020 at 8:49 AM Weijie Gao > >

Re: [PATCH v4 17/20] spl: nor: add lzma decompression support for legacy image

2020-02-12 Thread Simon Goldschmidt
Sorry if it seems I ignored this mail yesterday, I just found it now :) On Wed, Feb 12, 2020 at 10:05 AM Stefan Roese wrote: > > On 12.02.20 09:57, Weijie Gao wrote: > > > > >> And more general: why do we need to code this in every loader? I think it > >> would > >> be preferrable to have the l

Re: [PATCH] lib: Improve _parse_integer_fixup_radix base 16 detection

2020-02-12 Thread Michal Simek
pá 7. 2. 2020 v 13:07 odesílatel Michal Simek napsal: > > Base autodetection is failing for this case: > if test 257 -gt 3ae; then echo first; else echo second; fi > > It is because base for 3ae is recognized by _parse_integer_fixup_radix() as > 10. The patch is checking all chars to make sure tha

[PATCH] ram: rockchip: Fix Kconfig dependency for RAM_ROCKCHIP_DEBUG

2020-02-12 Thread Michal Simek
There is no reason to show RAM_ROCKCHIP_DEBUG entry in other .config files as I see it for Xilinx ZynqMP. \# CONFIG_U_QE is not set \# CONFIG_RAM is not set CONFIG_RAM_ROCKCHIP_DEBUG=y Add missing dependency on RAM_ROCKCHIP driver. Signed-off-by: Michal Simek --- drivers/ram/rockchip/Kconfig

Re: [PATCH v5] Add support for SoM "VoCore2".

2020-02-12 Thread Stefan
On 12.02.20 16:30, Mauro Condarelli wrote: Small patch series to add support for VoCore/VoCore2 board. VoCore is open hardware and runs OpenWrt/LEDE. It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. It will help you to make a smart house, study embedded system or even make the tini

Re: [PATCH] net: phy: dp83867: Do not check sgmii if rgmii is already used

2020-02-12 Thread Michal Simek
On 12. 02. 20 21:24, Grygorii Strashko wrote: > > > On 11/02/2020 10:11, Michal Simek wrote: >> On 10. 02. 20 13:07, Grygorii Strashko wrote: >>> >>> >>> On 07/02/2020 13:31, Michal Simek wrote: There is no reason to check sgmii branch again when it is clear that phy interface is r

[PATCH v3] mips: cmd: go: Flush cache before jumping to app/image

2020-02-12 Thread Stefan Roese
It has been noticed on MT7628/88 platforms, that booting the RAM image does not work reliably. Sometimes it works and sometimes not. Debugging showed that this "might" be a cache related issue as very strange errors occurred (e.g. output corrupted etc). This patch adds a cache flush for the comple

Re: [U-Boot] Sharing a hardware lab

2020-02-12 Thread Heiko Schocher
Hello Simon, Am 12.02.2020 um 18:14 schrieb Simon Glass: Hi Heiko, On Wed, 12 Feb 2020 at 01:50, Heiko Schocher wrote: Hello Simon, Am 05.02.2020 um 15:10 schrieb Simon Glass: Hi Tom, On Wed, 4 Dec 2019 at 15:30, Tom Rini wrote: On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass wro

[PATCH] ARM: uniphier: add sdscript, sdboot, sdupdate environment variables

2020-02-12 Thread Masahiro Yamada
Add handy macros: - sdscript: source boot.scr in the file system of the SD media - sdboot : boot the kernel using the images in the file system of the SD media - sdscript: update the boot firmware in the SD media (in raw block sectors) Signed-off-by: Masahiro Ya

Re: [PATCH v4 17/20] spl: nor: add lzma decompression support for legacy image

2020-02-12 Thread Weijie Gao
On Wed, 2020-02-12 at 11:18 +0100, Simon Goldschmidt wrote: > On Wed, Feb 12, 2020 at 9:57 AM Weijie Gao wrote: > > > > On Wed, 2020-02-12 at 09:22 +0100, Simon Goldschmidt wrote: > > > On Wed, Feb 12, 2020 at 8:49 AM Weijie Gao > > > wrote: > > > > > > > > This patch adds support for decompress

Re: [PATCH v5] Add support for SoM "VoCore2".

2020-02-12 Thread Weijie Gao
On Wed, 2020-02-12 at 16:30 +0100, Mauro Condarelli wrote: > Small patch series to add support for VoCore/VoCore2 board. > > VoCore is open hardware and runs OpenWrt/LEDE. > It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. > It will help you to make a smart house, study embedded syst

[PATCH] travis: Switch over to using LLVM-10

2020-02-12 Thread Tom Rini
At this point LLVM-7 is rather old. Switch over to LLVM-10 to enable some amount of CI coverage with newer compilers. Signed-off-by: Tom Rini --- .travis.yml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 44e539038acd..3ad07e9e6412 1

Re: [PATCH 19/21] console: Add a function to read a line of the output / eof

2020-02-12 Thread Tom Rini
On Wed, Feb 12, 2020 at 12:24:16PM -0500, Tom Rini wrote: > On Wed, Feb 12, 2020 at 06:14:49PM +0100, Heinrich Schuchardt wrote: > > On 2/5/20 6:55 PM, s...@google.com wrote: > > > When recording the console output for testing it is useful to be able to > > > read the output a line at a time to che

Re: [PATCH 1/2] moveconfig: replace unsafe eval with asteval

2020-02-12 Thread Heinrich Schuchardt
On 2/12/20 8:46 PM, Markus Klotzbuecher wrote: Commit b237d358b "moveconfig: expand simple expressions" added support for expanding expressions in configs, but used the unsafe python built-in "eval". This patch fixes this by replacing eval with the asteval module. Signed-off-by: Markus Klotzbuec

Re: [PATCH v5] Add support for SoM "VoCore2".

2020-02-12 Thread Mauro Condarelli
Thanks Daniel, On 2/12/20 5:58 PM, Daniel Schwierzeck wrote: > On Wed, Feb 12, 2020 at 4:30 PM Mauro Condarelli wrote: >> Small patch series to add support for VoCore/VoCore2 board. >> >> VoCore is open hardware and runs OpenWrt/LEDE. >> It has WIFI, USB, UART, 20+ GPIOs but is only one inch squa

Re: [PATCH] net: phy: dp83867: Do not check sgmii if rgmii is already used

2020-02-12 Thread Grygorii Strashko
On 11/02/2020 10:11, Michal Simek wrote: On 10. 02. 20 13:07, Grygorii Strashko wrote: On 07/02/2020 13:31, Michal Simek wrote: There is no reason to check sgmii branch again when it is clear that phy interface is rgmii. Signed-off-by: Michal Simek ---   drivers/net/phy/dp83867.c | 4 +

[PATCH 2/2] moveconfig: convert ps.stderr to string

2020-02-12 Thread Markus Klotzbuecher
Printing the error message in verbose mode fails, since python3 doesn't implicitely convert bytes to strings. Signed-off-by: Markus Klotzbuecher Cc: Simon Glass Cc: Tom Rini Cc: Masahiro Yamada --- tools/moveconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/m

[PATCH 1/2] moveconfig: replace unsafe eval with asteval

2020-02-12 Thread Markus Klotzbuecher
Commit b237d358b "moveconfig: expand simple expressions" added support for expanding expressions in configs, but used the unsafe python built-in "eval". This patch fixes this by replacing eval with the asteval module. Signed-off-by: Markus Klotzbuecher Cc: Heinrich Schuchardt Cc: Heiko Schocher

[PATCH 0/2] moveconfig fixes

2020-02-12 Thread Markus Klotzbuecher
Two fixes to moveconfig: the first addresses a potential security issue reported by Heinrich Schuchardt caused by using the Python built-in eval to expand CONFIG_ value expressions. Running moveconfig on a maliciously prepared CONFIG could lead to execution of arbitrary Python code. The second is a

[U-Boot] Please pull ARC changes for v2020.04-rc2

2020-02-12 Thread Alexey Brodkin
Hi Tom, The following changes since commit 26d4d77035d20364afc08c3098581a638b4edda8: Revert "gitlab: Disable SDL when building sandbox" (2020-02-12 08:05:54 -0500) are available in the Git repository at: g...@gitlab.denx.de:u-boot/custodians/u-boot-arc.git tags/arc-fixes-for-2020.04-rc2 f

Re: [PATCH v2] mx6slevk: Convert to DM_ETH

2020-02-12 Thread Fabio Estevam
Hi Pedro, On Wed, Feb 12, 2020 at 3:55 PM Pedro Jardim wrote: > > This fixes the following warning: > > = WARNING == > This board does not use CONFIG_DM_ETH (Driver Model > for Ethernet drivers). Please update the board to use > CONFIG_DM_ETH before the v20

[PATCH v2] mx6slevk: Convert to DM_ETH

2020-02-12 Thread Pedro Jardim
This fixes the following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal.

RE: [PATCH V3] ARM: dts: stm32: Add DH Electronics DHCOM SoM and PDK2 board

2020-02-12 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: lundi 27 janvier 2020 11:13 > > Hi Marek, > > > From: Marek Vasut > > Sent: vendredi 24 janvier 2020 18:39 > > > > Add support for DH Electronics DHCOM SoM and PDK2 rev. 400 carrier board. > > This is an SoM with STM32MP15xx and an evaluation kit. The basebo

Re: [U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2020-02-12 Thread Dalon L Westergreen
I am reading through this thread, and want to point out that it is not that the FPGA bridge need be actively used in the fpga, but rather that this port be configured in the FPGA configuration. This is an important distinction, ecery FPGA design that instantiates the HPS does configure the F2S Bri

[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 define

[RESEND PATCH 05/10] sandbox: support the change of env location

2020-02-12 Thread Patrick Delaunay
Add support of environment location with a new sandbox command 'env_loc'. When the user change the environment location with the command 'env_loc ' the env is reinitialized and saved; the GD_FLG_ENV_DEFAULT flag is also updated. When the user set the same env location, the environment is re-loade

[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 change

[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 @@ -144

[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 --- env/e

[RESEND PATCH 10/10] test: sandbox: add test for erase command

2020-02-12 Thread Patrick Delaunay
Add test for the erase command tested on ENV in EXT4. Signed-off-by: Patrick Delaunay --- configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_spl_defconfig | 1 + test/py/tests/test_env.py

[RESEND PATCH 08/10] env: ext4: introduce new function env_ext4_save_buffer

2020-02-12 Thread Patrick Delaunay
Split the function env_ext4_save to prepare the erase support Signed-off-by: Patrick Delaunay --- env/ext4.c | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/env/ext4.c b/env/ext4.c index aa77261649..49ed06659f 100644 --- a/env/ext4.c +++ b/e

[RESEND PATCH 04/10] sandbox: activate env in ext4 support

2020-02-12 Thread Patrick Delaunay
The default environment is still used with "ENVL_NOWHERE" indicated by the weak function env_get_location() and activated by CONFIG_ENV_IS_NOWHERE. Signed-off-by: Patrick Delaunay --- board/sandbox/sandbox.c| 12 configs/sandbox64_defconfig| 4 configs/san

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

2020-02-12 Thread Patrick Delaunay
Hi, [RESEND] with correct serie title (sorry) 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 san

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

2020-02-12 Thread Patrick Delaunay
Add the absolute path to the default value of CONFIG_ENV_EXT4_FILE = "/uboot.env". This patch avoid the error : Saving Environment to EXT4... File System is consistent Please supply Absolute path Signed-off-by: Patrick Delaunay --- For information, it is the value used today by all the boar

[RESEND PATCH 06/10] test: environment in ext4

2020-02-12 Thread Patrick Delaunay
Add basic test to persistent environment in ext4: save and load in host ext4 file 'uboot.env'. On first execution a empty EXT4 file system is created in persistent data dir: env.ext4.img. Signed-off-by: Patrick Delaunay --- test/py/tests/test_env.py | 87 +++

[PATCH 04/10] arm: stm32mp: bsec: add permanent lock support in bsec driver

2020-02-12 Thread Patrick Delaunay
Add BSEC lock access (read / write) at 0xC000 offset of misc driver. The write access only available for Trusted boot mode, based on new SMC STM32_SMC_WRLOCK_OTP. With the fuse command, the permanent lock status is accessed with 0x1000 offset (0xC000 - 0x800 for OTP sense/program d

[PATCH 10/10] arm: stm32mp: fdt: update kernel device tree according the part number

2020-02-12 Thread Patrick Delaunay
Update the kernel device tree for STM32MP15x product lines according the used soc and its part number, when CONFIG_OF_SYSTEM_SETUP is activated: - STM32MP15XA hasn't Crypto (cryp1/2) - STM32M151 and STM32M153 hasn't 3D GPU and DSI host - STM32M151 hasn't CAN FD and has single A7 For example: FDT:

[PATCH 03/10] arm: stm32mp: bsec: remove unneeded test

2020-02-12 Thread Patrick Delaunay
Remove the test offs < 0 , as offs is unsigned. This patch solves the warnings when compiling with W=1 on stm32mp1 board: In function ‘stm32mp_bsec_read’: arch/arm/mach-stm32mp/bsec.c:368:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] 368 | if (offs < 0 || (

[PATCH 08/10] board: stm32mp1: display reference only for STMicroelectronics board

2020-02-12 Thread Patrick Delaunay
Display the reference MB found in OTP49 only for STMicroelectronics boards when CONFIG_CMD_STBOARD is activated. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/board/st/stm32m

[PATCH 05/10] board: stm32mp1: stboard: lock the OTP after programming

2020-02-12 Thread Patrick Delaunay
Lock the OTP used for board identification for the ST boards after programming. Signed-off-by: Patrick Delaunay --- board/st/common/cmd_stboard.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard

[PATCH 09/10] arm: stm32mp: add function get_soc_name

2020-02-12 Thread Patrick Delaunay
Add a function get_soc_name to get a string with the full name of the SOC "STM32MP15xxx Rev.x" Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 14 +++--- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 4 2 files changed, 15 insertions(+), 3 d

[PATCH 06/10] arm: stm32mp: improve the error message for smc

2020-02-12 Thread Patrick Delaunay
Add the SMC code and operation for trace on errors. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h b/arch/arm/mach-stm32mp/include/ma

[PATCH 01/10] board: stm32mp1: update command stboard on misc_write result

2020-02-12 Thread Patrick Delaunay
Update management of misc_write, which now return length of data after the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered") Signed-off-by: Patrick Delaunay --- board/st/common/cmd_stboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 00/10] stm32mp1: board and SOC identifications

2020-02-12 Thread Patrick Delaunay
Hi, Few patches for board and SOC identifications on STM32MP15x - update command stboard for STMicroelectronics board identification (MB with OTP 59) - update kernel device tree with SOC part number Regards Patrick Patrick Delaunay (10): board: stm32mp1: update command stboard on mi

[PATCH 07/10] board: stm32mp1: add finished good in board identifier OTP

2020-02-12 Thread Patrick Delaunay
Update the command stboard to support the coding of OTP 59 with finished good: bit [31:16] (hex) => MB bit [15:12] (dec) => Variant CPN (115) bit [11:8] (dec) => Revision board (index with A = 1, Z = 26) bit [7:4] (dec) => Variant FG : finished good (NEW) bit [3:0] (dec) => BOM (01, .

[PATCH 02/10] board: stm32mp1: read OTP in command stboard

2020-02-12 Thread Patrick Delaunay
Read the value directly from the OTP and no more of the shadows to avoid the need of reboot after stboard command to have correct value. Signed-off-by: Patrick Delaunay --- board/st/common/cmd_stboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/st/common/cmd_stbo

[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 change

[PATCH 08/10] env: ext4: introduce new function env_ext4_save_buffer

2020-02-12 Thread Patrick Delaunay
Split the function env_ext4_save to prepare the erase support Signed-off-by: Patrick Delaunay --- env/ext4.c | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/env/ext4.c b/env/ext4.c index aa77261649..49ed06659f 100644 --- a/env/ext4.c +++ b/e

[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 @@ -144

[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 --- env/e

[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 define

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

2020-02-12 Thread Patrick Delaunay
Add the absolute path to the default value of CONFIG_ENV_EXT4_FILE = "/uboot.env". This patch avoid the error : Saving Environment to EXT4... File System is consistent Please supply Absolute path Signed-off-by: Patrick Delaunay --- For information, it is the value used today by all the boar

[PATCH 04/10] sandbox: activate env in ext4 support

2020-02-12 Thread Patrick Delaunay
The default environment is still used with "ENVL_NOWHERE" indicated by the weak function env_get_location() and activated by CONFIG_ENV_IS_NOWHERE. Signed-off-by: Patrick Delaunay --- board/sandbox/sandbox.c| 12 configs/sandbox64_defconfig| 4 configs/san

[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

[PATCH 10/10] test: sandbox: add test for erase command

2020-02-12 Thread Patrick Delaunay
Add test for the erase command tested on ENV in EXT4. Signed-off-by: Patrick Delaunay --- configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_spl_defconfig | 1 + test/py/tests/test_env.py

[PATCH 06/10] test: environment in ext4

2020-02-12 Thread Patrick Delaunay
Add basic test to persistent environment in ext4: save and load in host ext4 file 'uboot.env'. On first execution a empty EXT4 file system is created in persistent data dir: env.ext4.img. Signed-off-by: Patrick Delaunay --- test/py/tests/test_env.py | 87 +++

[PATCH 05/10] sandbox: support the change of env location

2020-02-12 Thread Patrick Delaunay
Add support of environment location with a new sandbox command 'env_loc'. When the user change the environment location with the command 'env_loc ' the env is reinitialized and saved; the GD_FLG_ENV_DEFAULT flag is also updated. When the user set the same env location, the environment is re-loade

[PATCH v2 1/1] test: log functions with CONFIG_LOG=n

2020-02-12 Thread Heinrich Schuchardt
If CONFIG_LOG=n, we still expect output for log_err(), log_warning(), log_notice(), log_info() and in case of DEBUG=1 also for log_debug(). Provide unit tests verifying this. The tests depend on: CONFIG_CONSOLE_RECORD=y CONFIG_LOG=n CONFIG_UT_LOG=y It may be necessary to

Re: FYI: Please pull u-boot-dm

2020-02-12 Thread Stephen Warren
On 2/11/20 5:29 PM, Tom Rini wrote: On Tue, Feb 11, 2020 at 05:15:39PM -0700, Stephen Warren wrote: On 2/11/20 3:06 PM, Tom Rini wrote: On Tue, Feb 11, 2020 at 03:02:12PM -0700, Stephen Warren wrote: On 2/11/20 11:27 AM, Tom Rini wrote: On Tue, Feb 11, 2020 at 11:20:36AM -0700, Simon Glass wr

Re: [BUG] binman: Add a library to access binman entries

2020-02-12 Thread Frank Wunderlich
Hi Why not just disable binman_fdt (or not default y)? Your way sounds more complex. As i do not understand it and see no benefit for this board, i would leave it disabled. This leave time for a thoughtful solution Maybe mtk knows a better way... Sunxi sounds wrong because board is not with all

[PATCH] mx6slevk: Convert to DM_ETH

2020-02-12 Thread Pedro Jardim
This fixes the following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal.

[PATCH 3/3 v2] ARC: nsim_hs38: Add support of Virtio NET & BLK

2020-02-12 Thread Alexey Brodkin
Given now nsim_hs38 configuration is usable on QEMU and in QEMU we have Virtio working perfectly fine the next logical step is to add support of supported & known to work net & bkl to this config. Signed-off-by: Alexey Brodkin --- Changes v1 -> v2: * Instead of adding IRQ parent it might be mu

[PATCH 1/3 v2] ARC: nSIM: switch from ARC UART to DW UART

2020-02-12 Thread Alexey Brodkin
Since v2019.06 DesingWare nSIM supports DesignWare UART simulation and so we may switch from pretty unusual ARC UART to much more standard DesignWare UART (which in case of U-Boot is just an ordinary 16650 UART). This among other things makes built dinaries compatible with our other platforms to n

[PATCH 2/3 v2] ARC: nsim_{700|700be|hs38be}_defconfigs: Disable networking

2020-02-12 Thread Alexey Brodkin
We don't have yet any brc700 or big-enadian platforms with networking support to run this particular configuration. Whenever QEMU for ARC supports arc700 or big-endian targets we may revisit this one. Signed-off-by: Alexey Brodkin --- No changes v1 -> v2. configs/nsim_700_defconfig| 1 +

Re: [PATCH 19/21] console: Add a function to read a line of the output / eof

2020-02-12 Thread Tom Rini
On Wed, Feb 12, 2020 at 06:14:49PM +0100, Heinrich Schuchardt wrote: > On 2/5/20 6:55 PM, s...@google.com wrote: > > When recording the console output for testing it is useful to be able to > > read the output a line at a time to check that the output is correct. Also > > we need to check that we g

[PATCH v2 1/1] common/console.c: discard volatile

2020-02-12 Thread Heinrich Schuchardt
Avoid errors of like common/console.c: In function ‘console_record_reset’: common/console.c:615:16: error: passing argument 1 of ‘membuff_purge’ discards ‘volatile’ qualifier from pointer target type [-Werror=discarded-qualifiers] 615 | membuff_purge(&gd->console_out); |^~

Re: [PATCH 19/21] console: Add a function to read a line of the output / eof

2020-02-12 Thread Heinrich Schuchardt
On 2/5/20 6:55 PM, s...@google.com wrote: When recording the console output for testing it is useful to be able to read the output a line at a time to check that the output is correct. Also we need to check that we get to the end of the output. Add a console function to return the next line and

Re: [PATCH v4 1/2] menu: Add a function to set the default by matching the item data

2020-02-12 Thread Simon Glass
On Wed, 12 Feb 2020 at 03:37, Schrempf Frieder wrote: > > From: Frieder Schrempf > > In order to make it possible to auto select a default entry by > matching the data of the menu entries by an external matching > function, we add some helpers and expose the > menu_set_default_by_item_data_match(

Re: [U-Boot] Sharing a hardware lab

2020-02-12 Thread Simon Glass
Hi Heiko, On Wed, 12 Feb 2020 at 01:50, Heiko Schocher wrote: > > Hello Simon, > > Am 05.02.2020 um 15:10 schrieb Simon Glass: > > Hi Tom, > > > > On Wed, 4 Dec 2019 at 15:30, Tom Rini wrote: > >> > >> On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass wrote: > >> > >>> Hi Tom, > >>> > >>> I

Re: [PATCH v5 16/20] tools: binman: add etype file for u-boot-lzma-img

2020-02-12 Thread Simon Glass
On Wed, 12 Feb 2020 at 02:43, Weijie Gao wrote: > > This patch adds etype u-boot-lzma-img for binman. README.entries is also > updated. > > Reviewed-by: Stefan Roese > Signed-off-by: Weijie Gao > --- > Changes since v3: add a test to make sure 100% code coverage > --- > tools/binman/README.entr

Re: dm, serial: problem with using ns16550 driver before relocation on mpc83xx

2020-02-12 Thread Simon Glass
Hi Heiko, On Tue, 11 Feb 2020 at 23:37, Heiko Schocher wrote: > > Hello Mario, Simon, > > Am 10.02.2020 um 07:16 schrieb Mario Six: > > Hi Heiko, > > > > On Fri, Feb 7, 2020 at 6:53 AM Heiko Schocher wrote: > >> > >> Hi Simon, > >> > >> removed Dirk from cc and added Mario Six > >> > >> @Mario:

Re: [PATCH v4 2/2] pxe: Get default selection from board type if label matches

2020-02-12 Thread Simon Glass
On Wed, 12 Feb 2020 at 03:37, Schrempf Frieder wrote: > > From: Frieder Schrempf > > In order to auto-select an option from the pxe boot menu, that > matches the detected board, we check the board model string in the > devicetree and set the default menu selection, if it matches the > label of th

Re: [BUG] binman: Add a library to access binman entries

2020-02-12 Thread Simon Glass
Hi Frank, On Wed, 12 Feb 2020 at 04:50, Frank Wunderlich wrote: > > Am 12. Februar 2020 00:03:18 MEZ schrieb Simon Glass : > >Hi Frank, > > > >Sorry for the delay. Stephen hit this also. > > Hi Simon, > good that my mail was not lost > > >> > >> this line [1] (in my case) breaks the init-chain: >

Re: [PATCH 00/33] sandbox: Move to SDL2

2020-02-12 Thread Simon Glass
Hi Wolfgang, On Wed, 12 Feb 2020 at 05:07, Wolfgang Denk wrote: > > Dear Simon, > > In message <20200112190624.79077-1-...@chromium.org> you wrote: > > This series handles moving sandbox to the latest version of SDL, SDL2. It > > provides a few more features, better performance and has been aroun

Re: [PATCH 10/33] mtd: Rename free() to rfree()

2020-02-12 Thread Simon Glass
Hi Masahiro, On Wed, 12 Feb 2020 at 06:14, Masahiro Yamada wrote: > > On Mon, Jan 13, 2020 at 4:08 AM Simon Glass wrote: > > > > This function name conflicts with our desire to #define free() to > > something else on sandbox. Since it deals with resources, rename it to > > rfree(). > > > > Signe

Re: [PATCH v5] Add support for SoM "VoCore2".

2020-02-12 Thread Daniel Schwierzeck
On Wed, Feb 12, 2020 at 4:30 PM Mauro Condarelli wrote: > > Small patch series to add support for VoCore/VoCore2 board. > > VoCore is open hardware and runs OpenWrt/LEDE. > It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. > It will help you to make a smart house, study embedded syste

i.MX8QXP MEK does not boot

2020-02-12 Thread Fabio Estevam
Hi Peng, i.MX8QXP MEK board is not booting for me on 2020.04-rc2. I am using the ATF, imx-firmware and imx-sc-firmware as stated at board/freescale/imx8qxp_mek/README Any ideas? Thanks

Re: [ANN] New PGP key for Tom Rini

2020-02-12 Thread Tom Rini
On Wed, Feb 12, 2020 at 11:08:50AM -0500, Tom Rini wrote: > Hey all, > > I see that I've let my current PGP key expire without creating a new > one, once again. I've updated my previous key to expire 6 months from > today. I've also created a new key that expires in 2 years with the ID > of 1A3

[ANN] New PGP key for Tom Rini

2020-02-12 Thread Tom Rini
Hey all, I see that I've let my current PGP key expire without creating a new one, once again. I've updated my previous key to expire 6 months from today. I've also created a new key that expires in 2 years with the ID of 1A3C7F70E08FAB1707809BBF147C39FF9634B72C and have signed it with my old ke

Re: [PATCH] mips: cmd: go: Flush cache before jumping to app/image

2020-02-12 Thread Daniel Schwierzeck
On Wed, Feb 12, 2020 at 3:26 PM Stefan Roese wrote: > > It has been noticed on MT7628/88 platforms, that booting the RAM image > does not work reliably. Sometimes it works and sometimes not. Debugging > showed that this "might" be a cache related issue as very strange > errors occurred (e.g. outpu

Re: [ADMIN] Change of Mailing List configuration

2020-02-12 Thread Tom Rini
On Wed, Feb 12, 2020 at 04:39:12PM +0100, Wolfgang Denk wrote: > Hi all, > > the disappearing entries from the Cc: list of posting have not only > caused some people to miss postings they would otherwise have read, > but they are apparently also the reason for a growing number of > DMARC related

Re: [PATCH v5 6/6] doc: board: add rockchip subfolder

2020-02-12 Thread Oleksandr Suvorov
On Wed, Feb 12, 2020 at 5:15 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > This fixes a warning when invoking make htmldocs: > checking consistency... > doc/board/rockchip/index.rst: WARNING: document isn't included in any toctree > > Signed-off-by: Igor Opaniuk > Reviewed-by: Heinrich Schuc

Re: [PATCH v5 3/6] doc: board: apalis-imx8: convert readme to reST

2020-02-12 Thread Oleksandr Suvorov
On Wed, Feb 12, 2020 at 5:15 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Convert README to reStructuredText format. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > board/toradex/apalis-imx8/README | 66 - > doc/board/toradex/apalix-imx8

Re: [PATCH v5 2/6] doc: board: verdin-imx8mm: convert readme to reST

2020-02-12 Thread Oleksandr Suvorov
On Wed, Feb 12, 2020 at 5:15 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Convert README to reStructuredText format. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > board/toradex/verdin-imx8mm/README | 88 -- > doc/board/toradex/index.rst

Re: [PATCH v5 1/6] doc: board: toradex: add colibri_imx7.rst

2020-02-12 Thread Oleksandr Suvorov
On Wed, Feb 12, 2020 at 5:15 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > - add initial index for toradex boards reST documentation > - add initial colibri_imx7.rst doc file which provides all needed > information for obtaining a workable image ready for flashing > for both eMMC/NAND version

[ADMIN] Change of Mailing List configuration

2020-02-12 Thread Wolfgang Denk
Hi all, the disappearing entries from the Cc: list of posting have not only caused some people to miss postings they would otherwise have read, but they are apparently also the reason for a growing number of DMARC related bounces. Therefore we decided not to waitany longer and have upgraded mailm

[PATCH v5] Add support for SoM "VoCore2".

2020-02-12 Thread Mauro Condarelli
Small patch series to add support for VoCore/VoCore2 board. VoCore is open hardware and runs OpenWrt/LEDE. It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. It will help you to make a smart house, study embedded system or even make the tiniest router in the world. Details about this

[PATCH v5 5/6] toradex: MAINTAINERS: entries for new reST docs

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk Add entries for the newly created documentation files in reST format. Signed-off-by: Igor Opaniuk --- board/toradex/apalis-imx8/MAINTAINERS | 1 + board/toradex/colibri-imx8x/MAINTAINERS | 1 + board/toradex/colibri_imx7/MAINTAINERS | 1 + board/toradex/verdin-imx8mm/MAI

[PATCH v5 6/6] doc: board: add rockchip subfolder

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk This fixes a warning when invoking make htmldocs: checking consistency... doc/board/rockchip/index.rst: WARNING: document isn't included in any toctree Signed-off-by: Igor Opaniuk Reviewed-by: Heinrich Schuchardt --- doc/board/index.rst | 1 + 1 file changed, 1 insertion(+

[PATCH v5 4/6] doc: board: colibri-imx8x: convert readme to reST

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk Convert README to reStructuredText format. Signed-off-by: Igor Opaniuk --- board/toradex/colibri-imx8x/README | 66 --- doc/board/toradex/colibri-imx8x.rst | 82 + doc/board/toradex/index.rst | 1 + 3 files changed,

[PATCH v5 0/6] doc: board: toradex reST documentation

2020-02-12 Thread Igor Opaniuk
This patch-series adds/converts existing README files for Toradex modules to reStructureFormat. To verify please run: $ make htmldocs v5: - Fixed markup for headers [Bin Meng] - Applied R-b tag for colibri_imx7.rst [Bin Beng] v4: - Removed blank lines from EOF in some readme files [Heinrich Schu

[PATCH v5 1/6] doc: board: toradex: add colibri_imx7.rst

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk - add initial index for toradex boards reST documentation - add initial colibri_imx7.rst doc file which provides all needed information for obtaining a workable image ready for flashing for both eMMC/NAND versions of Colibri iMX7. Reviewed-by: Bin Meng Signed-off-by: Igor Opa

[PATCH v5 3/6] doc: board: apalis-imx8: convert readme to reST

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk Convert README to reStructuredText format. Signed-off-by: Igor Opaniuk --- board/toradex/apalis-imx8/README | 66 - doc/board/toradex/apalix-imx8.rst | 82 +++ doc/board/toradex/index.rst | 1 + 3 files changed, 83

[PATCH v5 2/6] doc: board: verdin-imx8mm: convert readme to reST

2020-02-12 Thread Igor Opaniuk
From: Igor Opaniuk Convert README to reStructuredText format. Signed-off-by: Igor Opaniuk --- board/toradex/verdin-imx8mm/README | 88 -- doc/board/toradex/index.rst | 1 + doc/board/toradex/verdin-imx8mm.rst | 112 3 files changed,

Re: [PATCH] mips: cmd: go: Flush cache before jumping to app/image

2020-02-12 Thread Mauro Condarelli
Tested on VoCore2 board. RAM loading seems to work flawlessly. Tested-by: Mauro Condarelli Regards Mauro On 2/12/20 3:26 PM, Stefan Roese wrote: > It has been noticed on MT7628/88 platforms, that booting the RAM image > does not work reliably. Sometimes it works and sometimes not. Debugging >

Re: [PATCH v4 1/6] doc: board: toradex: add colibri_imx7.rst

2020-02-12 Thread Igor Opaniuk
Hi Bin, On Wed, Feb 12, 2020 at 4:47 PM Bin Meng wrote: > > On Wed, Feb 12, 2020 at 10:40 PM Igor Opaniuk wrote: > > > > From: Igor Opaniuk > > > > - add initial index for toradex boards reST documentation > > - add initial colibri_imx7.rst doc file which provides all needed > > information for

Re: [PATCH v3 1/5] doc: board: colibri_imx7: add readme.rst

2020-02-12 Thread Igor Opaniuk
Hi Heinrich, On Tue, Feb 11, 2020 at 11:32 PM Heinrich Schuchardt wrote: > > On 2/11/20 8:56 PM, Igor Opaniuk wrote: > > Heinrich, > > > > On Tue, Feb 11, 2020 at 9:37 PM Igor Opaniuk wrote: > >> > >> Hi Heinrich, > >> > >> On Tue, Feb 11, 2020 at 7:04 PM Heinrich Schuchardt > >> wrote: > >>>

  1   2   >