[PATCH v2] board: lx2160a: Correct board fixup for PCIe nodes

2020-02-12 Thread Vikas Singh
Update "board_fix_fdt" with correct counter value "i". This will fix the issue while fetching the "reg_names" resource from fdt after fixup. Signed-off-by: Vikas Singh --- Notes: V2 Add correct subject and remove the '.' from it board/freescale/lx2160a/lx2160a.c | 1 + 1 file

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

2020-02-12 Thread Schrempf Frieder
On 12.02.20 11: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() function.

[PATCH v2] imx: imx8qm: enable relocation of fdt and initrd

2020-02-12 Thread Oliver Graute
Set CONFIG_SYS_BOOTMAPSZ to the amount of memory available which is needed to relocate the kernel, device tree and initrd. Remove 'fdt_high' and 'initrd_high' environment variables from default environment which prevents relocation of FDT and initrd. Signed-off-by: Oliver Graute Cc: Stefano

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

2020-02-12 Thread Simon Goldschmidt
On Wed, Feb 12, 2020 at 8:49 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. > >

[PATCH v4 13/20] mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

2020-02-12 Thread Weijie Gao
u_boot_list is not only used by DM, but also by some SPL image load methods such as spl_nor.c. This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image loaders can be correctly built into u-boot SPL without DM

Re: [U-Boot] Sharing a hardware lab

2020-02-12 Thread Heiko Schocher
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 have been meaning to have a crack at setting up a little hardware lab for a while. I made some progress

[PATCH v5 01/20] mips: add support to restore exception vector base before booting linux

2020-02-12 Thread Weijie Gao
In U-Boot the exception vector base will be moved to top of memory, to be used to display register dump when exception occurs. But some old linux kernel does not honor the base set in CP0_EBASE. A modified exception vector base will cause kernel crash. This patch adds an option to enable reset

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

2020-02-12 Thread Weijie Gao
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 & DDR initialization have been fully written to support

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

2020-02-12 Thread Frank Wunderlich
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: >> >> return log_msg_ret("binman node", -EINVAL); >> >> the binman_init [2] is added

[PATCH] 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 occured (output corrupted etc). This patch adds a cache flush for the complete

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

2020-02-12 Thread Schrempf Frieder
On 06.02.20 18:46, Simon Glass wrote: > Hi Schrempf, > > On Thu, 6 Feb 2020 at 02:09, 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

Re: [PATCH v4 18/20] mips: mtmips: add SPL support

2020-02-12 Thread Weijie Gao
On Wed, 2020-02-12 at 08:55 +0100, Stefan Roese wrote: > Hi Weijie, > > On 12.02.20 08:49, Weijie Gao wrote: > > This patch adds SPL support for mtmips platform. The lowlevel architecture > > is split into SPL and the rest parts are built into a memory loadable > > u-boot image. Optional SPL_DM

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

2020-02-12 Thread Weijie Gao
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.entries | 15

[PATCH v5 13/20] mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

2020-02-12 Thread Weijie Gao
u_boot_list is not only used by DM, but also by some SPL image load methods such as spl_nor.c. This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image loaders can be correctly built into u-boot SPL without DM

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

2020-02-12 Thread Weijie Gao
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. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao ---

[PATCH v5 19/20] mips: mtmips: enable SPL for all boards

2020-02-12 Thread Weijie Gao
This patch enables SPL for all mtmips boards. And also remove defconfig files which are intend to build ram bootable u-boot files. SPL_DM and OF_CONTROL are enabled for both boards. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: add CONFIG_SPL_PAD_TO=0 to make sure

[PATCH v5 18/20] mips: mtmips: add SPL support

2020-02-12 Thread Weijie Gao
This patch adds SPL support for mtmips platform. The lowlevel architecture is split into SPL and the rest parts are built into a memory loadable u-boot image. Optional SPL_DM and OF_CONTROL are also supported. The increment of size is very small (< 10 KiB) if SPL_DM and OF_CONTROL are not enabled

[PATCH v5 15/20] Makefile: add support to generate LZMA compressed u-boot image

2020-02-12 Thread Weijie Gao
This patch adds support for generating LZMA compressed u-boot image. The compressed image can be used for SPL to reduce the size of the u-boot binary. Reviewed-by: Stefan Roese Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v3: none ---

[PATCH v5 20/20] mips: mtmips: add support for mt7628-rfb

2020-02-12 Thread Weijie Gao
This patch adds support for mt7628 reference board. SPL_DM and DT are not enabled for SPL to save about 17KiB for u-boot-spl.bin. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: add CONFIG_SPL_PAD_TO=0 to make sure no padding added --- arch/mips/dts/Makefile

Re: dm: core: Board failing to boot since commit 82de42fa1468 (parent data/probe)

2020-02-12 Thread Bin Meng
Hi Wolfgang, On Wed, Feb 12, 2020 at 1:14 AM Simon Glass wrote: > > +Bin > > Hi Wolfgang, > > On Tue, 11 Feb 2020 at 06:59, Wolfgang Wallner > wrote: > > > > Hello Simon, > > > > Since commit 82de42fa1468 ("dm: core: Allocate parent data separate from > > probing parent") I have trouble booting

[PATCH] ARC: rework setting of ARC CPU specific compiler options

2020-02-12 Thread Eugeniy Paltsev
It's a very rare if at all existing occasion when ARC CPU template is used as is w/o any changes - in the end it's a beauty and competitive advantage of ARC cores to be tailored for a particular use-case - and so it doesn't make a lot of sense to offer template-based "-mcpu" selection. Given for

[PATCH] arm: baltos: switch to driver model for the net and mdio driver

2020-02-12 Thread yegorslists
From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- configs/am335x_baltos_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am335x_baltos_defconfig b/configs/am335x_baltos_defconfig index 63f0da9cb0..2781d49daf 100644 --- a/configs/am335x_baltos_defconfig +++

Re: [PATCH] RFC: nvedit: support doing one (extra) expansion of the value in "env set"

2020-02-12 Thread Wolfgang Denk
Dear Rasmus, In message <2e076ba8-6ffe-66dc-ecb9-ebb62e47f...@prevas.dk> you wrote: > > >> Well, there _are_ other ways... > > > > Please do tell. How can I avoid code duplication and access a variable > > whose name I generate by string concatenation/variable interpolation? > > Btw., I also

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

2020-02-12 Thread Stefan
Hi Mauro, On 12.02.20 10:23, Mauro Condarelli wrote: Hi Stefan, Hi Daniel, On 2/12/20 7:39 AM, Stefan wrote: Hi Mauro, Hi Daniel, On 11.02.20 19:05, Mauro Condarelli wrote: ===8<--- What *does NOT* work is loading RAM version or, to be more precise: It works IF (and only if) you load the

[PATCH v8 2/9] arm: k3: Add support for loading non linux remote cores

2020-02-12 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keerthy

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 09:22 +0100, Simon Goldschmidt wrote: > On Wed, Feb 12, 2020 at 8:49 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

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

2020-02-12 Thread Mauro Condarelli
Hi Stefan, Hi Daniel, On 2/12/20 7:39 AM, Stefan wrote: > Hi Mauro, > Hi Daniel, > > On 11.02.20 19:05, Mauro Condarelli wrote: >> ===8<--- >> >> What *does NOT* work is loading RAM version or, to be more precise: >> It works IF (and only if) you load the same code already running. >> I *think*

[PATCH v8 5/9] arm: dts: k3-j721e-r5-u-boot: Add fs_loader node

2020-02-12 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 15 +++ 1 file changed, 15 insertions(+) create mode 100644

[PATCH v4 03/20] mips: add an option to support initialize SRAM for initial stack

2020-02-12 Thread Weijie Gao
Currently CONFIG_MIPS_INIT_STACK_IN_SRAM assumes the memory space for the initial stack can be used directly. However on some platform the SRAM needs initialization, e.g. lock cache. This patch adds an option to allow a new function mips_sram_init() being called before setup_stack_gd.

[PATCH v4 12/20] mips: enable support for appending dtb to spl binary

2020-02-12 Thread Weijie Gao
If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also enabled, the dtb will be appended to the u-boot-spl.bin. When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end. However

[PATCH v4 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-02-12 Thread Weijie Gao
This patch rewrites the mtmips architecture with the following changes: 1. Move MT7628 soc parts into a subfolder. 2. Lock parts of D-Cache as temporary stack. 3. Reimplement DDR initialization in C language. 4. Reimplement DDR calibration in a clear logic. 5. Add full support for auto size

[PATCH v4 05/20] sysreset: add reset controller based reboot driver

2020-02-12 Thread Weijie Gao
Some chips provide their sysreset function in reset controller, which is normally a bit written to 1 to perform the sysreset. This patch adds a new sysreset driver to take advantage of it. Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v3:

[PATCH v4 08/20] mips: add a mtmips-specific field to architecture-specific global data

2020-02-12 Thread Weijie Gao
SoCs of mtmips can use different CPU frequencies depending on the HW/SW configurations. For example mt7628 uses 580MHz clock if the input xtal frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot the CPU uses the xtal frequency directly. So hardcoding the timer frequency

[PATCH v4 11/20] dts: mtmips: add alternative pinmux node for uart2

2020-02-12 Thread Weijie Gao
This patch adds a new pinmux for UART2, which shares the pins with SPIS. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: none --- arch/mips/dts/mt7628a.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi

[PATCH v4 04/20] mips: start.S: avoid overwriting outside gd when clearing global data in stack

2020-02-12 Thread Weijie Gao
When setting up initial stack, global data will also be put in the stack, and being cleared. The assembler instructions for clearing gd is as follows: movet0, k0 1: PTR_S zero, 0(t0) blt t0, t1, 1b PTR_ADDIU t0, PTRSIZE t0 is the start address of gd,

[PATCH v5 10/20] mips: mtmips: rewrite lowlevel codes of mt7628

2020-02-12 Thread Weijie Gao
This patch rewrites the mtmips architecture with the following changes: 1. Move MT7628 soc parts into a subfolder. 2. Lock parts of D-Cache as temporary stack. 3. Reimplement DDR initialization in C language. 4. Reimplement DDR calibration in a clear logic. 5. Add full support for auto size

[PATCH v5 09/20] mips: add a option to support not reserving malloc space on initial stack

2020-02-12 Thread Weijie Gao
The initial stack on some platforms is too small to hold a large malloc space. This patch adds a option to allow these platforms not reserving the malloc space on initial stack. These platforms should set the malloc base after DRAM is usable. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao

[PATCH v5 07/20] configs: enable CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards

2020-02-12 Thread Weijie Gao
This patch enables CONFIG_RESTORE_EXCEPTION_VECTOR_BASE for all mtmips boards. Reviewed-by: Stefan Roese Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v3: none --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 +

[PATCH v5 12/20] mips: enable support for appending dtb to spl binary

2020-02-12 Thread Weijie Gao
If CONFIG_SPL_OF_CONTROL is enabled for SPL and CONFIG_OF_SEPARATE is also enabled, the dtb will be appended to the u-boot-spl.bin. When calling dm_init_and_scan() in SPL, fdtdec_setup() will try to locate dtb at the end of u-boot-spl.bin, by referencing to _image_binary_end. However

[PATCH v5 11/20] dts: mtmips: add alternative pinmux node for uart2

2020-02-12 Thread Weijie Gao
This patch adds a new pinmux for UART2, which shares the pins with SPIS. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: none --- arch/mips/dts/mt7628a.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi

[PATCH v5 14/20] lib: enable lzma decompression support for SPL build

2020-02-12 Thread Weijie Gao
This patch enables LZMA decompression support for SPL build Reviewed-by: Stefan Roese Reviewed-by: Tom Rini Signed-off-by: Weijie Gao --- Changes since v3: none --- lib/Kconfig | 5 + lib/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index

[PATCH v5 05/20] sysreset: add reset controller based reboot driver

2020-02-12 Thread Weijie Gao
Some chips provide their sysreset function in reset controller, which is normally a bit written to 1 to perform the sysreset. This patch adds a new sysreset driver to take advantage of it. Reviewed-by: Daniel Schwierzeck Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- Changes since v3:

[PATCH v5 08/20] mips: add a mtmips-specific field to architecture-specific global data

2020-02-12 Thread Weijie Gao
SoCs of mtmips can use different CPU frequencies depending on the HW/SW configurations. For example mt7628 uses 580MHz clock if the input xtal frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot the CPU uses the xtal frequency directly. So hardcoding the timer frequency

[PATCH v5 03/20] mips: add an option to support initialize SRAM for initial stack

2020-02-12 Thread Weijie Gao
Currently CONFIG_MIPS_INIT_STACK_IN_SRAM assumes the memory space for the initial stack can be used directly. However on some platform the SRAM needs initialization, e.g. lock cache. This patch adds an option to allow a new function mips_sram_init() being called before setup_stack_gd.

[PATCH v5 06/20] mips: mtmips: make use of sysreset-resetctrl for mt7628 soc

2020-02-12 Thread Weijie Gao
This patch replaces sysreset-syscon with sysreset-resetctrl for mt7628 soc. Reviewed-by: Stefan Roese Reviewed-by: Daniel Schwierzeck Signed-off-by: Weijie Gao --- Changes since v3: none --- arch/mips/dts/mt7628a.dtsi | 10 +- arch/mips/mach-mtmips/Kconfig

[PATCH v5 04/20] mips: start.S: avoid overwriting outside gd when clearing global data in stack

2020-02-12 Thread Weijie Gao
When setting up initial stack, global data will also be put in the stack, and being cleared. The assembler instructions for clearing gd is as follows: movet0, k0 1: PTR_S zero, 0(t0) blt t0, t1, 1b PTR_ADDIU t0, PTRSIZE t0 is the start address of gd,

[PATCH v5 02/20] mips: mtmips: add predefined i-cache/d-cache size and linesize

2020-02-12 Thread Weijie Gao
Both mt7620 and mt7628 has the same cache configuration. There is no need to use CONFIG_SYS_CACHE_SIZE_AUTO to probe it at runtime. Add them into Kconfig to reduce some code size. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: none --- arch/mips/mach-mtmips/Kconfig

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

2020-02-12 Thread Wolfgang Denk
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 around for > long enough that it is present in distributions in the last several

[PATCH v8 3/9] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-02-12 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v8 0/9] Add support for loading main_r5fss0_core0

2020-02-12 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v8: * Dropped patch to set_env_default in the env/nowhere driver. That was causing memory over run issues on sandbox defconfig with simple_alloc. Instead

[PATCH v8 1/9] lib: elf: Move the generic elf loading/validating functions to lib

2020-02-12 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. While at it remove the duplicate static version of load_elf_image_phdr under arch/arm/mach-imx/imx_bootaux.c. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt

[PATCH v8 9/9] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-02-12 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig

[PATCH v8 7/9] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-02-12 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5..fc73a9c932 100644 ---

[PATCH v8 6/9] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-02-12 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi| 12 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 2 ++ 2 files changed, 14 insertions(+) diff --git

[PATCH v8 4/9] armv7R: K3: Add support for jumping to firmware

2020-02-12 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla

[PATCH v8 8/9] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-02-12 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2

[PATCH v4 02/20] mips: mtmips: add predefined i-cache/d-cache size and linesize

2020-02-12 Thread Weijie Gao
Both mt7620 and mt7628 has the same cache configuration. There is no need to use CONFIG_SYS_CACHE_SIZE_AUTO to probe it at runtime. Add them into Kconfig to reduce some code size. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- Changes since v3: none --- arch/mips/mach-mtmips/Kconfig

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

2020-02-12 Thread Simon Goldschmidt
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 decompressing LZMA compressed u-boot payload > > > in > > > legacy uImage format. > > >

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

2020-02-12 Thread Schrempf Frieder
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() function. Signed-off-by: Frieder Schrempf --- Changes in v4: *

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

2020-02-12 Thread Schrempf Frieder
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 the menu entry and there is no default selection already set. This

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

2020-02-12 Thread Schrempf Frieder
On 06.02.20 18:46, Simon Glass wrote: > Hi Schrempf, > > On Thu, 6 Feb 2020 at 02:09, 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

Re: [PATCH] RFC: nvedit: support doing one (extra) expansion of the value in "env set"

2020-02-12 Thread Wolfgang Denk
Dear Rasmus, In message you wrote: > > > HUSH does not support arrays anyway... > > Of course not, but they can be emulated by having variables foo0, foo1, > foo2 and programmatically accessing the variable foo$index, if only > there's a way to do that... In a sense, my BOOT_A_LEFT/BOOT_B_LEFT

Re: [PATCH] ARM: keystone2: enable initrd fixup for LPAE addressing

2020-02-12 Thread Tom Rini
On Wed, Feb 12, 2020 at 09:37:46AM +0530, Lokesh Vutla wrote: > Hi Tom, > > On 11/02/20 8:31 PM, Tom Rini wrote: > > On Tue, Feb 11, 2020 at 09:25:52AM +0530, Lokesh Vutla wrote: > > > >> From: Tero Kristo > >> > >> Keystone2 u-boot loads the initrd image into non-LPAE addressed memory > >> but

[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

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

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

2020-02-12 Thread Mauro Condarelli
Hi Stefan, On 2/12/20 2:22 PM, Stefan wrote: > Hi Mauro, > > On 12.02.20 14:09, Mauro Condarelli wrote: >> Hi Daniel, >> Hi Stefan, >> >> I'll test this ASAP, but, in the meantime, please have a look at the >> strange (and perhaps related) code in arch/mips/mach-mtmips/cpu.c > > You are most

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

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.

[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

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

2020-02-12 Thread Mauro Condarelli
Hi Daniel, Hi Stefan, I'll test this ASAP, but, in the meantime, please have a look at the strange (and perhaps related) code in arch/mips/mach-mtmips/cpu.c Regards Mauro On 2/12/20 2:00 PM, Daniel Schwierzeck wrote: > On Wed, Feb 12, 2020 at 1:21 PM Stefan Roese wrote: >> It has been noticed

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

2020-02-12 Thread Stefan
Hi Daniel, On 12.02.20 13:48, Daniel Schwierzeck wrote: Daniel, perhaps a dumb question, but is the MIPS U-Boot code position independant? from your tests I can only conclude that RAM loading doesn't work at all. If you see it "working" than you simply junp to the old copy which the SPL

[PATCH v4 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

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

[PATCH v3 4/7] stm32mp1: use the command env info in env_check

2020-02-12 Thread Patrick Delaunay
Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q" to automatically save the environment on first boot. This patch allows to remove the env_default variable. Signed-off-by: Patrick Delaunay --- Changes in v3: None Changes in v2: - activate CMD_NVEDIT_INFO in sandbox (new

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

2020-02-12 Thread Stefan
Hi Mauro, On 12.02.20 14:50, Mauro Condarelli wrote: Hi Stefan, On 2/12/20 2:22 PM, Stefan wrote: Hi Mauro, On 12.02.20 14:09, Mauro Condarelli wrote: Hi Daniel, Hi Stefan, I'll test this ASAP, but, in the meantime, please have a look at the strange (and perhaps related) code in

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

[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

[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

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

[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

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

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

2020-02-12 Thread Daniel Schwierzeck
On Wed, Feb 12, 2020 at 1:21 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 occured (output

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

2020-02-12 Thread Masahiro Yamada
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(). > > Signed-off-by: Simon Glass I noticed this commit was merged recently. Now 'free' is

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: > >>>

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

2020-02-12 Thread Bin Meng
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 obtaining a workable image ready for flashing > for both eMMC/NAND

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

[PATCH v3 3/7] cmd: env: check real location for env info command

2020-02-12 Thread Patrick Delaunay
Check the current ENV location, dynamically provided by the weak function env_get_location to be sure that the environment can be persistent. The compilation flag ENV_IS_IN_DEVICE is not enough when the board dynamically select the available storage location (according boot device for example).

[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) To avoid

[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 v3 5/7] stm32mp1: configs: activate CMD_ERASEENV

2020-02-12 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 --- Changes in v3: None Changes in v2: None configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1

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

2020-02-12 Thread Patrick Delaunay
The "env info" can be use for test with -d and -p parameter, in scripting case the output of the command is not needed. This patch allows to deactivate this output with a new option "-q". For example, we can save the environment if default environment is used and persistent storage is managed

[PATCH v3 6/7] configs: sandbox: Enable sub command 'env info'

2020-02-12 Thread Patrick Delaunay
Enable support for sub command 'env info' in sandbox with CONFIG_CMD_NVEDIT_INFO. This is aimed primarily at adding unit test. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - activate env info command in sandbox (new)

[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 storage target") test

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

2020-02-12 Thread Stefan
Hi Daniel, On 12.02.20 14:00, Daniel Schwierzeck wrote: On Wed, Feb 12, 2020 at 1:21 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

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

2020-02-12 Thread Stefan
Hi Mauro, On 12.02.20 14:09, Mauro Condarelli wrote: Hi Daniel, Hi Stefan, I'll test this ASAP, but, in the meantime, please have a look at the strange (and perhaps related) code in arch/mips/mach-mtmips/cpu.c You are most likely referring to the code in last_stage_init() that also deals

[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

  1   2   >