Re: [PATCH v2] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT

2021-01-19 Thread Michal Simek
po 18. 1. 2021 v 9:11 odesílatel Michal Simek napsal: > > CONFIG_SYS_REDUNDAND_ENVIRONMENT is changing in env_internal.h how u-boot > works with variables. struct environment_s has one byte flags property > which also affects ENV_SIZE macro. > > I have reached the case where CONFIG_ENV_IS_NOWHERE

Re: [PATCH 2/2] xilinx: common: Do not touch CONFIG_XILINX_OF_BOARD_DTB_ADDR in SPL

2021-01-19 Thread Michal Simek
po 11. 1. 2021 v 14:01 odesílatel Michal Simek napsal: > > This hook is used in full U-Boot that's why there is no reason to touch > this location from SPL. The hook was introduced for QEMU usage but none is > really running SPL on QEMU that's why it shouldn't break any usecase. > >

Re: [PATCH 1/2] xilinx: common: Change macro handling in board_fdt_blob_setup()

2021-01-19 Thread Michal Simek
po 11. 1. 2021 v 14:01 odesílatel Michal Simek napsal: > > Remove ifdef logic which is handled by preprocessor and move it link time > optimization to get full compile code coverage. > > Signed-off-by: Michal Simek > --- > > board/xilinx/common/board.c | 36

Re: [PATCH] xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes

2021-01-19 Thread Michal Simek
po 11. 1. 2021 v 13:48 odesílatel Michal Simek napsal: > > For systems which has both sdhci controllers enable it is worth to export > bootseq number for variables. Then the variable can be used in custom > scripts to tune logic for OS. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH] mmc: xenon_sdhci: Remove duplicated macros

2021-01-19 Thread Michal Simek
út 5. 1. 2021 v 14:30 odesílatel Michal Simek napsal: > > There is no need to define the same macros in drivers. > All macros have been added by commit 17a42abb40dd ("mmc: Define timing > macro's"). > > Signed-off-by: Michal Simek > --- > > drivers/mmc/xenon_sdhci.c | 12 > 1 file

Re: [PATCH 1/2] video: seps525: Align driver with latest treewide changes

2021-01-19 Thread Michal Simek
čt 7. 1. 2021 v 14:26 odesílatel Michal Simek napsal: > > Some structures/functions have been renamed which are not reflected in this > driver. > Commit 8a8d24bdf174 ("dm: treewide: Rename ..._platdata variables to just > ..._plat"), commit c69cda25c9b5 ("dm: treewide: Rename dev_get_platdata() >

Re: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs

2021-01-19 Thread Michal Simek
čt 7. 1. 2021 v 14:26 odesílatel Michal Simek napsal: > > Enable this driver to get build and probe for our platform. > > Signed-off-by: Michal Simek > --- > > configs/xilinx_zynqmp_virt_defconfig | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Michal Simek
Hi, On 1/19/21 7:54 PM, Simon Glass wrote: > Hi, > > Thank you for attending! > > Full notes at [1] > > Tuesday 19 January 2021 > > Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean > Anderson, Simon Glass, Walter Lozano > > Notes: > [all] Introductions > [all] Timing of

[PATCH v3 2/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. Signed-off-by: Heinrich Schuchardt --- v3: Adjust distro boot to reflect possible non-support of boot manager

[PATCH v3 1/2] efi_loader: move load options to new module

2021-01-19 Thread Heinrich Schuchardt
Move all load options related functions to a new module. So that they can be compiled independently. Signed-off-by: Heinrich Schuchardt --- v3: no change v2: move stuff from patch 2 to patch 1 correct copyright notice --- lib/efi_loader/Makefile | 1 +

[PATCH v3 0/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. v3: Adjust distro boot to reflect possible non-support of boot manager v2: Some stuff belonging into the

Re: [PATCH v2 16/21] sunxi: Add H616 FEL support

2021-01-19 Thread Samuel Holland
On 1/11/21 2:11 PM, Jernej Skrabec wrote: > H616 uses different address for reset. Add it. > > Signed-off-by: Jernej Skrabec > --- > arch/arm/cpu/armv8/fel_utils.S | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv8/fel_utils.S

Re: [PATCH v2 2/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Am 19. Januar 2021 23:51:46 MEZ schrieb Michael Walle : >Hi, > >Am 2021-01-19 18:09, schrieb Heinrich Schuchardt: >> Some boards are very tight on the binary size. Booting via UEFI is >> possible >> without using the boot manager. >> >> Provide a configuration option to make the boot manager

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Bin Meng
On Wed, Jan 20, 2021 at 2:54 AM Simon Glass wrote: > > Hi, > > Thank you for attending! > > Full notes at [1] > > Tuesday 19 January 2021 > > Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean > Anderson, Simon Glass, Walter Lozano > > Notes: > [all] Introductions > [all] Timing

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Alex Sadovsky
Hi Simon, I think I should add my $0.02 here. > We already IRC a lot. This is partly about getting to know each other. > What is the benefit of jitsi? I believe I am permitted to use it, Jitsi is a free and lightweight solution: it's free/open-source and there's also a free public server (more

Re: [PATCH] Makefile: Do not call useless command 'true'

2021-01-19 Thread Simon Glass
On Tue, 19 Jan 2021 at 11:39, Pali Rohár wrote: > > On Tuesday 19 January 2021 11:06:12 Simon Glass wrote: > > Hi Pali, > > > > On Fri, 15 Jan 2021 at 17:21, Pali Rohár wrote: > > > > > > Hello! Could you please review this patch? > > > > > > On Wednesday 04 November 2020 15:33:44 Pali Rohár

Re: [PATCH] common: Kconfig.boot: Add FIT_PRINT config option

2021-01-19 Thread Simon Glass
Hi Ravik, On Tue, 19 Jan 2021 at 14:26, Ravik Hasija wrote: > > Config allows to disable printing contents of fitImage to optimize boottime. > > Signed-off-by: Ravik Hasija > --- > common/Kconfig.boot | 6 ++ > common/image-fit.c | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) >

Re: CRASH caused by: [PATCH 06/10] setexpr: Add some tests for buffer overflow and backref

2021-01-19 Thread Simon Glass
Hi Tom, Heinrich, On Tue, 19 Jan 2021 at 12:45, Tom Rini wrote: > > On Tue, Jan 19, 2021 at 11:06:18AM -0700, Simon Glass wrote: > > Hi Heinrich, > > > > On Sun, 17 Jan 2021 at 15:52, Heinrich Schuchardt > > wrote: > > > > > > On 11/1/20 10:15 PM, Simon Glass wrote: > > > > Add tests to check

Re: [PATCH 3/3] efi_loader: setting boot device

2021-01-19 Thread Simon Glass
Hi Heinrich, On Tue, 19 Jan 2021 at 11:43, Heinrich Schuchardt wrote: > > On 1/19/21 7:06 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt > > wrote: > >> > >> Up to now the bootefi command used the last file loaded to determine the > >> boot

Re: [PATCH 1/5] net: Introduce DSA class for Ethernet switches

2021-01-19 Thread Simon Glass
Hi Tom, On Tue, 19 Jan 2021 at 14:00, Tom Rini wrote: > > On Tue, Jan 19, 2021 at 11:06:10AM -0700, Simon Glass wrote: > > Hi Claudiu, > > > > On Fri, 15 Jan 2021 at 09:47, Claudiu Manoil wrote: > > > > > > >-Original Message- > > > >From: Simon Glass > > > >Sent: Thursday, January 14,

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Simon Glass
Hi Marek, On Tue, 19 Jan 2021 at 13:27, Marek Vasut wrote: > > On 1/19/21 7:54 PM, Simon Glass wrote: > > Hi, > > Hi, > > > Thank you for attending! > > > > Full notes at [1] > > > > Tuesday 19 January 2021 > > > > Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean > >

Re: [PATCH v2 2/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Michael Walle
Hi, Am 2021-01-19 18:09, schrieb Heinrich Schuchardt: Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. include/config_distro_bootcmd.h needs to be updated too, no?

Re: [PATCH v2 3/5] drivers: net: Add Felix DSA switch driver

2021-01-19 Thread Michael Walle
Hi Claudiu, Am 2021-01-19 18:01, schrieb Claudiu Manoil: From: Alex Marginean This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4

[PATCH] common: Kconfig.boot: Add FIT_PRINT config option

2021-01-19 Thread Ravik Hasija
Config allows to disable printing contents of fitImage to optimize boottime. Signed-off-by: Ravik Hasija --- common/Kconfig.boot | 6 ++ common/image-fit.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index

Re: [PATCH 1/5] net: Introduce DSA class for Ethernet switches

2021-01-19 Thread Tom Rini
On Tue, Jan 19, 2021 at 11:06:10AM -0700, Simon Glass wrote: > Hi Claudiu, > > On Fri, 15 Jan 2021 at 09:47, Claudiu Manoil wrote: > > > > >-Original Message- > > >From: Simon Glass > > >Sent: Thursday, January 14, 2021 5:42 PM > > >To: Claudiu Manoil > > >Cc: Joe Hershberger ; Bin

Re: IMX8MM SD UHS support

2021-01-19 Thread Adam Ford
On Tue, Jan 19, 2021 at 2:47 PM ZHIZHIKIN Andrey wrote: > > Hello Tim, > > > -Original Message- > > From: Tim Harvey > > Sent: Tuesday, January 19, 2021 6:32 PM > > To: ZHIZHIKIN Andrey > > Cc: haibo.c...@nxp.com; Adam Ford ; Fabio Estevam > > ; Peng Fan ; u-boot > b...@lists.denx.de>;

RE: IMX8MM SD UHS support

2021-01-19 Thread ZHIZHIKIN Andrey
Hello Tim, > -Original Message- > From: Tim Harvey > Sent: Tuesday, January 19, 2021 6:32 PM > To: ZHIZHIKIN Andrey > Cc: haibo.c...@nxp.com; Adam Ford ; Fabio Estevam > ; Peng Fan ; u-boot b...@lists.denx.de>; Stefano Babic ; Jaehoon Chung > > Subject: Re: IMX8MM SD UHS support > >

Re: [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet

2021-01-19 Thread Tom Rini
On Tue, Jan 19, 2021 at 03:01:38PM -0500, Tom Rini wrote: > On Fri, Jan 08, 2021 at 10:53:05AM +0800, David Wu wrote: > > > dev_read_alias_seq() used uc_drv->name compared to alias > > stem string, Ethernet's alias stem uses "ethernet", which > > does not match the eth-uclass driver name "eth",

Re: Contributor meeting notes 19-Jan-21

2021-01-19 Thread Marek Vasut
On 1/19/21 7:54 PM, Simon Glass wrote: Hi, Hi, Thank you for attending! Full notes at [1] Tuesday 19 January 2021 Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean Anderson, Simon Glass, Walter Lozano Notes: [all] Introductions [all] Timing of call - Current time is

Re: [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet

2021-01-19 Thread Tom Rini
On Fri, Jan 08, 2021 at 10:53:05AM +0800, David Wu wrote: > dev_read_alias_seq() used uc_drv->name compared to alias > stem string, Ethernet's alias stem uses "ethernet", which > does not match the eth-uclass driver name "eth", can not > get the correct index of ethernet alias namer. So it seems

Re: [PATCH V3] net: dwc_eth_qos: Pad descriptors to cacheline size

2021-01-19 Thread Tom Rini
On Thu, Jan 07, 2021 at 11:12:16AM +0100, Marek Vasut wrote: > The DWMAC4 IP has the possibility to skip up to 7 AXI bus width size words > after the descriptor. Use this to pad the descriptors to cacheline size and > remove the need for noncached memory altogether. Moreover, this lets Tegra >

Re: [PATCH] net: ks8851: Reset internal RXFC count on bad packet

2021-01-19 Thread Tom Rini
On Wed, Jan 06, 2021 at 03:16:01PM +0100, Marek Vasut wrote: > A sporadic condition occurs when the "bad packet" error is triggered > repeatedly, which results in "bad packet" messages scrolling on the > console during transfer. To avoid triggering this, reset the internal > RXFC count on the

Re: [PATCH v3 2/2] net: Use NDRNG device in srand_mac()

2021-01-19 Thread Tom Rini
On Fri, Dec 18, 2020 at 10:28:04AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > When calling srand_mac we use a weak seed dependent on the > mac address. If present, use a RNG device instead to incerase entropy. > > Signed-off-by: Matthias Brugger > Reviewed-by: Torsten

Re: [PATCH] net: tftp: Fix incorrect tftp_next_ack on no OACK

2021-01-19 Thread Tom Rini
On Fri, Nov 27, 2020 at 09:45:56PM +, Harm Berntsen wrote: > When the tftp server did not send any OACK, the tftp_next_ack variable > was not set to the correct value . As the server was transmitting > blocks we generated a lot of 'Received unexpected block: $n, expected > $n+1' error

Re: [PATCH v3 1/2] lib: uuid: use RNG device if present

2021-01-19 Thread Tom Rini
On Fri, Dec 18, 2020 at 10:28:03AM +0100, matthias@kernel.org wrote: > From: Matthias Brugger > > When calculating a random UUID we use a weak seed. > Use a RNG device if present to increase entropy. > > Signed-off-by: Matthias Brugger > Reviewed-by: Torsten Duwe Applied to

Re: [v2019.04-aspeed, v1 1/1] net: ftgmac100: Read and retain MAC address

2021-01-19 Thread Tom Rini
On Thu, Dec 10, 2020 at 06:11:09PM -0500, Hongwei Zhang wrote: > Read and retain MAC address across flash and QEMU support. > > Signed-off-by: Hongwei Zhang Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] net: eth_legacy - fix build CMD_PCAP

2021-01-19 Thread Tom Rini
On Fri, Dec 04, 2020 at 08:59:58PM +0100, Jorge Ramirez-Ortiz wrote: > Fix typo which would cause a build error. > > Fixes: 3eaac6307df ("net: introduce packet capture support") > > Signed-off-by: Jorge Ramirez-Ortiz Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH] net: Do not respond to ICMP_ECHO_REQUEST if we do not have an IP address

2021-01-19 Thread Tom Rini
On Sat, Nov 14, 2020 at 10:12:47PM -0500, David Rivshin wrote: > From: David Rivshin > > While doing DHCP the interface IP is set to 0.0.0.0. This causes the > check in net.c on dst_ip to be effectively skipped, and all IP datagrams > are accepted up the IP stack. In the case of an

Re: [PATCH] net: eth-uclass: avoid running start() twice without stop()

2021-01-19 Thread Tom Rini
On Wed, Nov 04, 2020 at 02:45:14PM +0100, Matthias Schiffer wrote: > Running the start() handler twice without a stop() inbetween completely > breaks communication for some ethernet drivers like fec_mxc. > > eth_halt() is called before each eth_init(). Due to the switch to > eth_is_active() in

Re: [PATCH] net: e1000: implement eth_write_hwaddr for DM_ETH

2021-01-19 Thread Tom Rini
On Wed, Nov 04, 2020 at 05:26:01PM +0100, Sebastian Reichel wrote: > From: Ian Ray > > Implement programming MAC address to the hardware also for device model > configuration. > > Fixes: b565b18a294f ("board: ge: bx50v3: Enable DM for PCI and ethernet") > Signed-off-by: Ian Ray >

Re: CRASH caused by: [PATCH 06/10] setexpr: Add some tests for buffer overflow and backref

2021-01-19 Thread Tom Rini
On Tue, Jan 19, 2021 at 11:06:18AM -0700, Simon Glass wrote: > Hi Heinrich, > > On Sun, 17 Jan 2021 at 15:52, Heinrich Schuchardt wrote: > > > > On 11/1/20 10:15 PM, Simon Glass wrote: > > > Add tests to check for buffer overflow using simple replacement as well > > > as back references. At

Re: [PATCH v2] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT

2021-01-19 Thread Tom Rini
On Mon, Jan 18, 2021 at 09:11:26AM +0100, Michal Simek wrote: > CONFIG_SYS_REDUNDAND_ENVIRONMENT is changing in env_internal.h how u-boot > works with variables. struct environment_s has one byte flags property > which also affects ENV_SIZE macro. > > I have reached the case where

Re: [NXP-IMX] please pull nxp-imx-2021-1-16

2021-01-19 Thread Tom Rini
On Sat, Jan 16, 2021 at 07:18:17AM +, Peng Fan wrote: > Hi Stefano, > > Please pull nxp-imx-2021-1-16 > --- > nandbcb update/fix > sync i.MX8M dts from Linux kernel > add i.MX8MN LPDDR4 evk board > eth support for i.MX8MP evk > ddr fix for i.MX8M >

[PATCH 1/1] cmd: add more implementation IDs to sbi command

2021-01-19 Thread Heinrich Schuchardt
Additional SBI implementation IDs have been added to the upcoming next version of the SBI specification. https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc Signed-off-by: Heinrich Schuchardt --- cmd/riscv/sbi.c | 37 + 1 file changed, 21

[PATCH] test: test_ofplatdata: Mark as sandbox specific

2021-01-19 Thread Tom Rini
This test checks for output specific to the sandbox device tree, mark it as sandbox specific. Signed-off-by: Tom Rini --- test/py/tests/test_ofplatdata.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/tests/test_ofplatdata.py b/test/py/tests/test_ofplatdata.py index

Re: CRASH caused by: [PATCH 06/10] setexpr: Add some tests for buffer overflow and backref

2021-01-19 Thread Heinrich Schuchardt
On 1/19/21 7:06 PM, Simon Glass wrote: Hi Heinrich, On Sun, 17 Jan 2021 at 15:52, Heinrich Schuchardt wrote: On 11/1/20 10:15 PM, Simon Glass wrote: Add tests to check for buffer overflow using simple replacement as well as back references. At present these don't fully pass. Signed-off-by:

Contributor meeting notes 19-Jan-21

2021-01-19 Thread Simon Glass
Hi, Thank you for attending! Full notes at [1] Tuesday 19 January 2021 Present: Daniel Schwierzeck, Heinrich Schuchardt, Michal Simek, Sean Anderson, Simon Glass, Walter Lozano Notes: [all] Introductions [all] Timing of call - Current time is the best across US, Europe, India. But not any

Re: [PATCH 3/3] efi_loader: setting boot device

2021-01-19 Thread Heinrich Schuchardt
On 1/19/21 7:06 PM, Simon Glass wrote: Hi Heinrich, On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt wrote: Up to now the bootefi command used the last file loaded to determine the boot partition. This has led to errors when the fdt had been loaded from another partition after the EFI

Re: [PATCH] Makefile: Do not call useless command 'true'

2021-01-19 Thread Pali Rohár
On Tuesday 19 January 2021 11:06:12 Simon Glass wrote: > Hi Pali, > > On Fri, 15 Jan 2021 at 17:21, Pali Rohár wrote: > > > > Hello! Could you please review this patch? > > > > On Wednesday 04 November 2020 15:33:44 Pali Rohár wrote: > > > Macro 'cmd_objcopy_uboot' currently does not work with

[PATCH 1/1] doc: document sbi command

2021-01-19 Thread Heinrich Schuchardt
Add a man-page for the sbi command. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + doc/usage/index.rst | 1 + doc/usage/sbi.rst | 49 + 3 files changed, 51 insertions(+) create mode 100644 doc/usage/sbi.rst diff --git

Re: [linux-sunxi] [PATCH] sunxi: Properly check for SATAPWR and MACPWR

2021-01-19 Thread Jernej Škrabec
Dne torek, 19. januar 2021 ob 02:05:20 CET je Andre Przywara napisal(a): > The #ifdef CONFIG_xxxPWR conditionals were not working as expected, as > string Kconfig symbols are always "defined" from the preprocessor's > perspective. This lead to unnecessary calls to the GPIO routines, but > also

Issue Booting on NanoPC-T4

2021-01-19 Thread Travis Whitton
Hello, I'm running into problems trying to get the official upstream nanopc-t4-rk3399_defconfig to work on my NanoPC-T4. I'm building u-boot on Ubuntu/Focal (docker container) as follows: # cd /root # apt-get update # apt-get install build-essential flex bison gcc-aarch64-linux-gnu git

Re: [PATCH 2/3] test: inconsistent string tests

2021-01-19 Thread Simon Glass
On Sun, 17 Jan 2021 at 16:22, Heinrich Schuchardt wrote: > > Excluding ut str in test/cmd_ut.c but compiling test/str_ut.c results in > failure of the Python test invoking the C unit tests as observed on > sipeed_riscv_smode_defconfig: > > FAILED test/py/tests/test_ut.py::test_ut[ut_str_upper] >

Re: [PATCH 1/3] test: inconsistent bootm tests

2021-01-19 Thread Simon Glass
On Sun, 17 Jan 2021 at 16:22, Heinrich Schuchardt wrote: > > Excluding ut bootm in test/cmd_ut.c but compiling test/bootm.c results in > failure of the Python test invoking the C unit tests as observed on > sipeed_riscv_smode_defconfig: > > FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_nop] >

Re: [PATCH] Makefile: Do not call useless command 'true'

2021-01-19 Thread Simon Glass
Hi Pali, On Fri, 15 Jan 2021 at 17:21, Pali Rohár wrote: > > Hello! Could you please review this patch? > > On Wednesday 04 November 2020 15:33:44 Pali Rohár wrote: > > Macro 'cmd_objcopy_uboot' currently does not work with passed empty command > > expanded from 'cmd_static_rela' and therefore

Re: [PATCH 3/3] doc: move test/py/README.md to HTML documentation

2021-01-19 Thread Simon Glass
On Mon, 18 Jan 2021 at 12:29, Heinrich Schuchardt wrote: > > Convert test/py/README.md to restructured text and add it to the generated > HTML documentation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/index.rst | 1 + > doc/develop/py_testing.rst | 426

Re: [PATCH] dm: uclass: allow phandle < -1 with u32 type

2021-01-19 Thread Simon Glass
Hi Jianqun, On Thu, 14 Jan 2021 at 19:21, Jianqun Xu wrote: > > First, uclass try to get device node phandle by calling > dev_read_u32_default, which always return the third argument def, the > function codes as following: > > ofnode_read_u32_default(ofnode, *propname, u32 def) >

Re: [PATCH 3/3] efi_loader: setting boot device

2021-01-19 Thread Simon Glass
Hi Heinrich, On Tue, 12 Jan 2021 at 12:58, Heinrich Schuchardt wrote: > > Up to now the bootefi command used the last file loaded to determine the > boot partition. This has led to errors when the fdt had been loaded from > another partition after the EFI binary. > > Before setting the boot

Re: [PATCH 1/3] doc: structure doc/develop/index.rst

2021-01-19 Thread Simon Glass
On Mon, 18 Jan 2021 at 12:29, Heinrich Schuchardt wrote: > > Provide sub-chapters for 'Develop U-Boot' > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/index.rst | 22 +++--- > 1 file changed, 19 insertions(+), 3 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH 1/5] net: Introduce DSA class for Ethernet switches

2021-01-19 Thread Simon Glass
Hi Claudiu, On Fri, 15 Jan 2021 at 09:47, Claudiu Manoil wrote: > > >-Original Message- > >From: Simon Glass > >Sent: Thursday, January 14, 2021 5:42 PM > >To: Claudiu Manoil > >Cc: Joe Hershberger ; Bin Meng > >; Michael Walle ; U-Boot Mailing > >List ; Vladimir Oltean ; > >Alexandru

Re: [PATCH 2/3] doc: move test/README to HTML documentation

2021-01-19 Thread Simon Glass
On Mon, 18 Jan 2021 at 12:24, Heinrich Schuchardt wrote: > > Move test/README to the 'Develop U-Boot' chapter of the HTML documentation. > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/index.rst | 1 + > doc/develop/testing.rst | 96 + >

Re: CRASH caused by: [PATCH 06/10] setexpr: Add some tests for buffer overflow and backref

2021-01-19 Thread Simon Glass
Hi Heinrich, On Sun, 17 Jan 2021 at 15:52, Heinrich Schuchardt wrote: > > On 11/1/20 10:15 PM, Simon Glass wrote: > > Add tests to check for buffer overflow using simple replacement as well > > as back references. At present these don't fully pass. > > > > Signed-off-by: Simon Glass > > --- > >

Re: [PATCH v2 2/2] pci: Add Rockchip dwc based PCIe controller driver

2021-01-19 Thread Simon Glass
On Fri, 15 Jan 2021 at 03:01, Shawn Lin wrote: > > Add Rockchip dwc based PCIe controller driver for rk356x platform. > Driver support Gen3 by operating as a Root complex. > > Signed-off-by: Shawn Lin > > --- > > Changes in v2: > - reorder the header file > - add more comment > - use

Re: [RFC PATCH] common: board_f: add print_archinfo to display arch information

2021-01-19 Thread Simon Glass
Hi Jaehoon, On Sun, 17 Jan 2021 at 15:10, Jaehoon Chung wrote: > > Hi Tom, > > On 1/16/21 3:11 AM, Tom Rini wrote: > > On Fri, Jan 15, 2021 at 01:46:54PM +0900, Jaehoon Chung wrote: > > > >> Current U-boot doesn't display a message about which architecture is > >> used. So Developer is difficult

Re: [PATCH 2/2] pci: Add Rockchip dwc based PCIe controller driver【请注意,邮件由s...@google.com代发】

2021-01-19 Thread Simon Glass
Hi Shawn, On Fri, 15 Jan 2021 at 02:15, Shawn Lin wrote: > > Hi Simon > > Thanks you for reviewing it. > > 在 2021/1/14 23:42, Simon Glass 写道: > > Hi Shawn, > > > > On Thu, 14 Jan 2021 at 01:15, Shawn Lin wrote: > >> > > 8<-- > > >> + > >> +static int rockchip_pcie_init_port(struct

Re: [PATCH v2 1/1] efi_selftest: provide initrddump test tool

2021-01-19 Thread Ilias Apalodimas
On Tue, Jan 19, 2021 at 06:47:27PM +0100, Heinrich Schuchardt wrote: > Provide an UEFI application to save the initial RAM disk provided by U-Boot > via the Load File2 protocol. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > add a load command display CRC32 and length of initrd > ---

[PATCH v2 1/1] efi_selftest: provide initrddump test tool

2021-01-19 Thread Heinrich Schuchardt
Provide an UEFI application to save the initial RAM disk provided by U-Boot via the Load File2 protocol. Signed-off-by: Heinrich Schuchardt --- v2: add a load command display CRC32 and length of initrd --- lib/efi_selftest/Makefile | 6 +

Re: IMX8MM SD UHS support

2021-01-19 Thread Tim Harvey
On Mon, Jan 18, 2021 at 11:38 AM ZHIZHIKIN Andrey wrote: > > Hello Tim, > > Sorry it took me quite some time to get this sorted out, but I believe I was > able to identify an offending commit that is preventing the USDHC to switch > to higher speed modes. > > It is in fact b5874b552f ("mmc:

[PATCH 1/1] efi_selftest: use CRLF as line endings in dtbdump

2021-01-19 Thread Heinrich Schuchardt
EFI applications must use CR LF as line endings. Provide a print() function to reduce code size. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/dtbdump.c | 94 +- 1 file changed, 52 insertions(+), 42 deletions(-) diff --git

[PATCH v2 2/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. Signed-off-by: Heinrich Schuchardt --- v2: move stuff from patch 2 to patch 1 --- cmd/bootefi.c | 13

[PATCH v2 1/2] efi_loader: move load options to new module

2021-01-19 Thread Heinrich Schuchardt
Move all load options related functions to a new module. So that they can be compiled independently. Signed-off-by: Heinrich Schuchardt --- v2: move stuff from patch 2 to patch 1 correct copyright notice --- lib/efi_loader/Makefile | 1 + lib/efi_loader/efi_bootmgr.c

[PATCH v2 0/2] efi_loader: make the UEFI boot manager configurable

2021-01-19 Thread Heinrich Schuchardt
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. v2: Some stuff belonging into the first patch were in the second patch Correct copyright notice in

[PATCH v2 4/5] arm: dts: ls1028a: Add Ethernet switch node and dependencies

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean The definition follows the DSA binding in kernel and describes the switch, its ports and PHYs. The switch node has the same structure as in Linux and this patch enables it (and relevant ports) for the LS1028A RDB board. ENETC PF6 is the 2nd Eth controller linked to the

[PATCH v2 3/5] drivers: net: Add Felix DSA switch driver

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean This driver is used for the Ethernet switch integrated into LS1028A NXP. Felix on LS1028A has 4 front panel ports and two internal ports, I/O to/from the switch is done through an ENETC Ethernet interface. The 4 front panel ports are available as Ethernet interfaces and can

[PATCH v2 5/5] configs: ls1028a: Enable the Ethernet switch driver in defconfig

2021-01-19 Thread Claudiu Manoil
From: Alex Marginean The switch driver for LS1028A Ethernet switch is now compiled in for both LS1028A boards. Signed-off-by: Alex Marginean Signed-off-by: Claudiu Manoil --- v2: none configs/ls1028aqds_tfa_SECURE_BOOT_defconfig | 2 ++ configs/ls1028aqds_tfa_defconfig | 2 ++

[PATCH v2 1/5] net: Introduce DSA class for Ethernet switches

2021-01-19 Thread Claudiu Manoil
DSA stands for Distributed Switch Architecture and it covers switches that are connected to the CPU through an Ethernet link and generally use frame tags to pass information about the source/destination ports to/from CPU. Front panel ports are presented as regular ethernet devices in U-Boot and

[PATCH v2 2/5] sandbox: Add a DSA sandbox driver and unit test

2021-01-19 Thread Claudiu Manoil
The DSA sandbox driver is used for unit testing the DSA class code. It implements a simple 2 port switch plus 1 CPU port, and uses a very simple tag to identify the ports. The DSA sandbox device is connected via CPU port to a regular Ethernet sandbox device, called 'dsa-test-eth, managed by the

[PATCH v2 0/5] Introduce DSA Ethernet switch class and Felix driver

2021-01-19 Thread Claudiu Manoil
DSA stands for Distributed Switch Architecture and it is a subsystem introduced in the Linux kernel to support switches that: - have an Ethernet link up to the CPU - use some form of tagging to identify the source/destination port for Rx/Tx - may be cascaded in tree-like structures. DSA is

Re: [PATCH 0/2] Raspberry Pi 4 PCIe handover

2021-01-19 Thread Peter Robinson
On Thu, Jan 14, 2021 at 3:49 PM Nicolas Saenz Julienne wrote: > > It's important for u-boot to properly reset RPi4's PCIe controller in > order for Linux to run the board's USB firmware load rountines. For the series: Tested-by: Peter Robinson > --- > > Nicolas Saenz Julienne (2): > usb:

Re: [PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_mox: enable setexpr command in defconfig

2021-01-19 Thread Stefan Roese
On 19.01.21 15:49, Marek Behún wrote: Enable setexpr command in defconfig for Turris MOX. We have found that this is sometimes useful in U-Boot scripts and there is enough space in NOR memory on MOX. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan ---

Re: [PATCH 3/3] PowerPC: keymile: Add support for kmcent2 board

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: Add basic support for the Hitachi Power Grids kmcent2 board, based on the NXP QorIQ T1040 SoC. Signed-off-by: Valentin Longchamp Signed-off-by: Rainer Boschung Signed-off-by: Niel Fourie Cc: Holger Brunck Cc: Heiko Schocher Cc: Priyanka Jain

[PATCH v3 5/5] net: macb: take into account all RGMII interface types

2021-01-19 Thread Claudiu Beznea
Take into account all RGMII interface types. Depending on it the RGMII PHY's timings are setup. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index f71331827ca0..6e26467700a5

[PATCH v3 4/5] net: macb: add support for sama7g5 emac

2021-01-19 Thread Claudiu Beznea
Add support for SAMA7G5 EMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index e87ffd9be3ed..f71331827ca0 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1482,12 +1482,21

[PATCH v3 3/5] net: macb: add support for sama7g5 gmac

2021-01-19 Thread Claudiu Beznea
Add support for SAMA7G5 GMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 80ed58d4b908..e87ffd9be3ed 100644 --- a/drivers/net/macb.c +++

[PATCH v3 0/5] add support for sama7g5 ethernet interfaces

2021-01-19 Thread Claudiu Beznea
Hi, This series add support for SAMA7G5 ethernet interfaces: one gigabit interface and one 10/100Mbps interface. Thank you, Claudiu Beznea Changes in v3: - get rid of patch 1/6 from v2 as it was already integrated from patch series at [1] - rebase on top of current master branch Changes in

[PATCH v3 2/5] net: macb: check clk_set_rate return value to be negative

2021-01-19 Thread Claudiu Beznea
clk_set_rate() returns the set rate in case of success and a negative number in case of failure. Consider failure only the negative numbers. Fixes: 3ef6de157 ("dm: net: macb: Implement link speed change callback") Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 2 +- 1 file changed,

[PATCH v3 1/5] net: macb: add user io config data structure

2021-01-19 Thread Claudiu Beznea
Different implementation of USER IO register needs different mapping for bit fields of this register. Add implementation for this and, since clken is part of USER IO and it needs to be activated based on per SoC capabilities, add caps in macb_config where clken specific information needs to be

Re: [PATCH 2/3] keymile: common: Fix pram variable radix

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: In set_km_env() the pram variable was set to an hexadecimal value, while initr_mem() expects an unsigned decimal. Set the pram variable to an unsigned decimal instead. Signed-off-by: Niel Fourie Cc: Holger Brunck Cc: Heiko Schocher Cc: Priyanka

Re: [PATCH 1/3] PowerPC: dts: Pulled in kmcent2 dts files from Linux 5.10

2021-01-19 Thread Stefan Roese
Hi Niel, On 08.01.21 11:53, Niel Fourie wrote: Pulled in the kmcent2.dts and all its dependents from Linux 5.10, commit 2c85ebc57b3e upstream. Replaced the license text with SPDX License Identifiers. I assume that you did not change the license itself (e.g. change MIT to GPL etc) but only

Re: [PATCH] sunxi: don't define MACPWR and SATAPWR to empty strings

2021-01-19 Thread Peter Robinson
On Tue, Jan 19, 2021 at 1:05 AM Andre Przywara wrote: > > On 18/01/2021 00:18, Peter Robinson wrote: > > Hi Peter, > > > There's checks in board/sunxi/board.c if either MACPWR or SATAPWR are > > defined and they are defined by default to a empty string which means > > on vast majority of

Re: [PATCH] sunxi: Properly check for SATAPWR and MACPWR

2021-01-19 Thread Peter Robinson
On Tue, Jan 19, 2021 at 1:06 AM Andre Przywara wrote: > > The #ifdef CONFIG_xxxPWR conditionals were not working as expected, as > string Kconfig symbols are always "defined" from the preprocessor's > perspective. This lead to unnecessary calls to the GPIO routines, but > also always added a half

[PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_mox: enable setexpr command in defconfig

2021-01-19 Thread Marek Behún
Enable setexpr command in defconfig for Turris MOX. We have found that this is sometimes useful in U-Boot scripts and there is enough space in NOR memory on MOX. Signed-off-by: Marek Behún --- configs/turris_mox_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH u-boot-marvell v2 1/2] arm: mvebu: turris_mox: enable wdt command in defconfig

2021-01-19 Thread Marek Behún
Enable wdt command in defconfig for Turris MOX. This is useful when doing debugging. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_mox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index

[PATCH v5 1/2] arm: dts: add imx8mm-cl-iot-gate dts file

2021-01-19 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Kirill Kapranov Signed-off-by: Uri Mashiach Signed-off-by: Valentin Raevsky Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peter Robinson --- v2: Rename iot-gate-imx8 -> imx8mm-cl-iot-gate v4: Re-sent for

[PATCH v5 0/2] arm: imx8m: add support for Compulab iot-gate-imx8 (imx8mm-cl-iot-gate)

2021-01-19 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" *** BLURB HERE *** Add initial support for Compulab iot-gate-imx8 board (imx8mm-cl-iot-gate). The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mm-cl-iot-gate dts file arm: imx8m: add

arm: rk3399: add support nanopi r4s

2021-01-19 Thread alex tian
>From e4f4c74b1f0e2bb7205a7b083fab6faf0b65c1ba Mon Sep 17 00:00:00 2001 From: Xiaobo Tian Date: Sat, 26 Dec 2020 00:13:37 +0800 Subject: [PATCH] arm: rk3399: add support nanopi r4s Signed-off-by: Xiaobo Tian --- arch/arm/dts/Makefile | 1 +

Re: [PATCH 2/2] dts: mt7622: use accurate clock source fot mtk_timer

2021-01-19 Thread Tom Rini
On Tue, Jan 12, 2021 at 01:44:11PM +0800, Weijie Gao wrote: > The input system clock for mt7622 timer is 10MHz and can be retrieved > through the clk driver. > > Signed-off-by: Weijie Gao Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-19 Thread Tom Rini
On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > The timer being used by this driver may have already been used by first > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > what this driver is going to use. > > This may cause issues, such as inaccurate timer

Re: [PATCH v2 1/1] pinctrl: mediatek: correct error handling

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 09:18:26PM +0100, Heinrich Schuchardt wrote: > If no GPIO controller is found, the return value should not depend on a > random value on the stack. Initialize variable ret. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > Acked-by:

Re: [PATCH] mtd: remove drivers/mtd/mw_eeprom.c

2021-01-19 Thread Tom Rini
On Sun, Dec 27, 2020 at 11:54:23AM +0100, Heinrich Schuchardt wrote: > drivers/mtd/mw_eeprom.c contains code that never worked. mw_eeprom_write() > and mw_eeprom_read() have incorrect loop conditions: > > while (len <= 2) { > > CONFIG_MW_EEPROM is not set anywhere. So let's simply drop

  1   2   >