Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-31 Thread Eugen.Hristev
On 8/31/22 5:19 PM, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Aug 31, 2022 at 3:31 PM wrote: >> >> On 8/31/22 4:14 PM, Michael Nazzareno Trimarchi wrote: >>> Hi >>> >>> On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar >>> wrote: Enable the EBI and NAND flash

[PATCH] HSD #2205749969: board: altera: Add fitImage to support S10 secure boot for both U-Boot and kernel

2022-08-31 Thread Jit Loon Lim
From: "Ooi, Joyce" FitImage files are added to load Linux kernel image and U-boot image for Stratix10 Secure Boot. Signed-off-by: Ooi, Joyce Signed-off-by: Jit Loon Lim --- .../stratix10-socdk/its/kernel-sign.its | 51 +++ .../altera/stratix10-socdk/its/uboot-sign.its |

Re: [PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-31 Thread Stefan Roese
Hi Simon, On 31.08.22 19:44, Simon Glass wrote: It is needed because bootstage is called before driver model is ready. In fact it can be used to time driver model things. I see, makes sense. This brings up my next questions though, why isn't CONFIG_TIMER_EARLY enough in this case? AFAICT

[PATCH] arm: socfpga: stratix10: Enable CONFIG_FPGA_INTEL_PR

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Enable Intel FPGA Partial Reconfiguration driver by default for Stratix10. Signed-off-by: Chee Hong Ang --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig

[PATCH] driver: fpga: Adding Freeze Bridge for PR console support

2022-08-31 Thread Jit Loon Lim
From: Chin Liang See Adding Partial Reconfiguration (pr) command at U-Boot console. The pr command will control the Freeze Controller which will freeze and unfreeze the Partial Reconfiguration region. The pr command also support multiple Partial Reconfiguration region by specifying the region

Re: [PATCH v2 28/32] cpu: add basic cpu driver for MediaTek ARM chips

2022-08-31 Thread Weijie Gao
On Wed, 2022-08-31 at 07:46 -0600, Simon Glass wrote: > Hi Weijie, > > On Wed, 31 Aug 2022 at 05:08, Weijie Gao > wrote: > > > > Add basic CPU driver used to retrieve CPU model information. > > > > Signed-off-by: Weijie Gao > > --- > > v2 changes: new > > --- > > drivers/cpu/Makefile |

Re: [PATCH v2 3/7] binman: btool: mkimage: use Bintool.version

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:39, Quentin Schulz wrote: > > From: Quentin Schulz > > Bintool.version already contains everything required to get the version > out of mkimage binary so let's not override it with its own > implementation. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >

Re: [PATCH 08/17] net: ipv6: Add implementation of main IPv6 functions

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:02, Viacheslav Mitrofanov wrote: > > Functions that were exposed in "net: ipv6: Add IPv6 basic primitives" > had only empty implementations and were exposed as API for futher > patches. This patch add implementation of these functions. Main > functions

Re: [PATCH 04/17] net: ipv6: Add Neighbor Discovery Protocol (NDP)

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:01, Viacheslav Mitrofanov wrote: > > Implement basic of NDP. It doesn't include such things as Router > Solicitation, Router Advertisement and Redirect. It just has Neighbor > Solicitation and Neighbor Advertisement. Only these two features are used > in

Re: [PATCH v2 00/17] IPv6 support

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:00, Viacheslav Mitrofanov wrote: > > This patch set adds basic IPv6 support to U-boot. > It is based on Chris's Packham patches > (https://lists.denx.de/pipermail/u-boot/2017-January/279366.html) > Chris's patches were taken as base. There were efforts to

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Simon Glass
Hi Tony, On Wed, 31 Aug 2022 at 19:39, Tony Dinh wrote: > > Hi Stefan, > > On Wed, Aug 31, 2022 at 2:53 PM Tony Dinh wrote: > > > > Hi Stefan, > > > > On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > > > > > Hi Stefan, > > > > > > On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > >

Re: [PATCH v2 7/7] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:40, Quentin Schulz wrote: > > From: Quentin Schulz > > Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and > redirecting the output. This is fixed in Debian for about a decade > already in >

Re: [PATCH v2 6/7] binman: btool: futility: use Bintool.version

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:40, Quentin Schulz wrote: > > From: Quentin Schulz > > Bintool.version can now be passed the binary argument to return the > version text, so there's no need to override it in futility anymore. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >

Re: [PATCH v2 5/7] binman: btool: fiptool: use Bintool.version

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:40, Quentin Schulz wrote: > > From: Quentin Schulz > > Bintool.version can now be passed the binary argument to return the > version text, so there's no need to override it in fiptool anymore. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >

Re: [PATCH v2 4/7] binman: bintool: parametrize parameter to pass to binary for returning version

2022-08-31 Thread Simon Glass
Hi Quentin, Fix spelling for parametrize On Wed, 31 Aug 2022 at 11:39, Quentin Schulz wrote: > > From: Quentin Schulz > > The code to check the version is very similar between binaries, the most > likely only needed variables are the regex to find the version (already > supported) and the

Re: [PATCH v2 2/7] binman: btool: lz4: use Bintool.version

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:39, Quentin Schulz wrote: > > From: Quentin Schulz > > Bintool.version already contains everything required to get the version > out of lz4 binary so let's not override it with its own implementation. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >

Re: [PATCH v2 1/7] binman: bintool: move version check implementation into bintool class

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 11:39, Quentin Schulz wrote: > > From: Quentin Schulz > > Version checking has nothing specific to compression/decompression tools > so let's move it to the Bintool class. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > > tools/binman/bintool.py | 46

Re: [PATCH 12/17] test: dm: eth: Add string_to_ip6 test

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:02, Viacheslav Mitrofanov wrote: > > Add a test to check convertation from char* to struct in6_addr. > Use in sandbox > > Signed-off-by: Viacheslav Mitrofanov > --- > test/dm/eth.c | 48 > 1 file changed, 48

Re: [PATCH 17/17] test/py: add a ping6 test

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:04, Viacheslav Mitrofanov wrote: > > Add a simple ICMPv6 echo request test > > Signed-off-by: Viacheslav Mitrofanov > --- > test/py/tests/test_net.py | 15 +++ > 1 file changed, 15 insertions(+) Reviewed-by: Simon Glass > > diff --git

Re: [PATCH 14/17] test: dm: eth: Add ip6_addr_in_subnet test

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:03, Viacheslav Mitrofanov wrote: > > Add a test if two address are in the same subnet. Use in sandbox > > Signed-off-by: Viacheslav Mitrofanov > --- > test/dm/eth.c | 25 + > 1 file changed, 25 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH 16/17] test: dm: eth: Add ip6_make_lladdr test

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:03, Viacheslav Mitrofanov wrote: > > Add a test that checks generated Link Local Address. Use in sandbox > > Signed-off-by: Viacheslav Mitrofanov > --- > test/dm/eth.c | 18 ++ > 1 file changed, 18 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH 15/17] test: dm: eth: Add ip6_make_snma test

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:03, Viacheslav Mitrofanov wrote: > > Add a test that checks generated Solicited Node Multicast Address from our > ipv6 address. Use in sandbox > > Signed-off-by: Viacheslav Mitrofanov > --- > test/dm/eth.c | 20 > 1 file changed, 20 insertions(+) >

Re: [PATCH 13/17] test: dm: eth: Add csum_ipv6_magic test

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:03, Viacheslav Mitrofanov wrote: > > Test checksum computation. csum_ipv6_magic() uses in upper layer > protocols as TCP/UDP/ICMPv6/etc to calculate payload checksum. > > Signed-off-by: Viacheslav Mitrofanov > --- > test/dm/eth.c | 29

Re: [PATCH 05/17] net: ipv6: Add string_to_ip6 converter

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:01, Viacheslav Mitrofanov wrote: > > This functions is used as a converter from IPv6 address string notation > to struct ip6_addr that is used everywhere in IPv6 implementation. For > example it is used to parse and convert IPv6 address from tftpboot >

Re: [PATCH 11/17] net: ping6: Add ping6 command

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:02, Viacheslav Mitrofanov wrote: > > Implement ping6 command to ping hosts using IPv6. It works the same way as > an ordinary ping command. There is no ICMP request so it is not possible > to ping our host. This patch adds options in Kconfig and Makefile to > build ping6

Re: [PATCH 10/17] net: tftp: Add IPv6 support for tftpboot

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:02, Viacheslav Mitrofanov wrote: > > The command tftpboot uses IPv4 by default. Add the possibility to use IPv6 > instead. If an address in the command is an IPv6 address it will use IPv6 > to boot or if there is a suffix -ipv6 in the end of the command

Re: [PATCH 07/17] net: ipv6: Add ip6addr, gatewayip6, serverip6 variables callbacks

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:01, Viacheslav Mitrofanov wrote: > > Implement actions on ip6addr, gatewayip6, serverip6 varaibles. > on_ip6addr - convert IPv6 string addr to struct ip6_addr > on_gatewayip6 - convert IPv6 string addr to struct ip6_addr > on_serverip6 - convert IPv6

Re: [PATCH v3 1/2] Makefile: Allow LTO to be disabled for a build

2022-08-31 Thread Simon Glass
Hi Tom, On Wed, 3 Aug 2022 at 12:13, Simon Glass wrote: > > LTO (Link-Time Optimisation) is an very useful feature which can > significantly reduce the size of U-Boot binaries. So far it has been > made available for selected ARM boards and sandbox. > > However, incremental builds are much

Re: [PATCH 06/17] net: ipv6: Enable IPv6 typeconversion specifier

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:01, Viacheslav Mitrofanov wrote: > > Add the possibility to recognize IPv6 address in print function. > To output IPv6 address use %pI6 specifier. > > Signed-off-by: Viacheslav Mitrofanov > --- > lib/vsprintf.c | 11 +-- > 1 file changed, 5

Re: [PATCH 03/17] net: ipv6: Add callbacks declarations to get access to IPv6 variables

2022-08-31 Thread Simon Glass
On Tue, 30 Aug 2022 at 07:00, Viacheslav Mitrofanov wrote: > > Set up callbacks for main IPv6 variables ip6add, serverip6, gatewayip6 > and set options to them in flag file. These variables are often set up by > users. > > Signed-off-by: Viacheslav Mitrofanov > --- > include/env_callback.h | 10

Re: [PATCH 01/17] net: ipv6: Add IPv6 basic primitives

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:00, Viacheslav Mitrofanov wrote: > > This patch is a collection of basic primitives that are prerequisite for > further IPv6 implementation. > > There are structures definition such as IPv6 header, UDP header > (for TFTP), ICMPv6 header. There are

Re: [PATCH 02/17] net: ipv6: Add IPv6 build options

2022-08-31 Thread Simon Glass
Hi Viacheslav, On Tue, 30 Aug 2022 at 07:01, Viacheslav Mitrofanov wrote: > > Add options to Makefile and Kconfig file to build IPv6 > > Signed-off-by: Viacheslav Mitrofanov > --- > net/Kconfig | 4 > net/Makefile | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/net/Kconfig

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 2:53 PM Tony Dinh wrote: > > Hi Stefan, > > On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > > > Hi Stefan, > > > > On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > > > > > Hi Tony, > > > > > > On 31.08.22 08:30, Tony Dinh wrote: > > > > Hi

Re: [PATCH v2 31/32] tools: mtk_image: add support for nand headers used by newer chips

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:26PM +0800, Weijie Gao wrote: > This patch adds more nand headers in two new types: > 1. HSM header, used for spi-nand thru SNFI interface > 2. SPIM header, used for spi-nand thru spi-mem interface > > The original nand header is renamed to AP header. Tested ARM

Re: [PATCH v2 30/32] tools: mtk_image: split the code of generating NAND header into a new file

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:24PM +0800, Weijie Gao wrote: > The predefined NAND headers take too much spaces in the mtk_image.c. > Moving them into a new file can significantly improve the readability of > both mtk_image.c and the new mtk_nand_headers.c. > > This is a preparation for adding

Re: [PATCH v2 29/32] tools: mtk_image: split gfh header verification into a new function

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:22PM +0800, Weijie Gao wrote: > The verification code of gfh header for NAND and non-NAND are identical. > It's better to define a individual function to reduce redundancy. Tested ARM Trusted Firmware-A bl2 images generated for Bananapi R64 (MT7622; eMMC, SDMMC,

Re: [PATCH v2 28/32] cpu: add basic cpu driver for MediaTek ARM chips

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:20PM +0800, Weijie Gao wrote: > Add basic CPU driver used to retrieve CPU model information. > Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > Signed-off-by: Weijie Gao > --- > v2 changes: new > --- > drivers/cpu/Makefile | 1 + >

Re: [PATCH v2 26/32] clk: mediatek: add clock driver support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:13PM +0800, Weijie Gao wrote: > This patch adds clock driver support for MediaTek MT7986 SoC Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Reviewed-by: Sean Anderson > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 changes:

Re: [PATCH v2 25/32] clk: mediatek: add CLK_XTAL support for clock driver

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:11PM +0800, Weijie Gao wrote: > This adds the CLK_XTAL macro/flag to allow modeling clocks which are > directly connected to the xtal clock. Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Signed-off-by: Weijie Gao > --- > v2 changes: > Fix

Re: [PATCH v2 24/32] clk: mediatek: add infrasys clock mux support

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:09PM +0800, Weijie Gao wrote: > This patch adds infrasys clock mux support for mediatek clock drivers. Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 changes: > Fix the if

Re: [PATCH v2 23/32] clk: mediatek: add support to configure clock driver parent

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:05:06PM +0800, Weijie Gao wrote: > This patch adds support for a clock node to configure its parent clock > where possible. Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 changes:

Re: [PATCH v2 22/32] clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clock

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:59PM +0800, Weijie Gao wrote: > The mtk clock framework in u-boot uses array index for searching clock > parent (kernel uses strings for search), so we need to specify a special > clock with ID=0 for CLK_XTAL in u-boot. > > In the mt7622/mt7629 clock tree, the clocks

Re: [PATCH v2 21/32] pinctrl: mediatek: add pinctrl driver for MT7986 SoC

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:57PM +0800, Weijie Gao wrote: > This patch adds pinctrl and gpio support for MT7986 SoC > Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 changes: none > --- >

Re: [PATCH v2 16/32] spi: add support for MediaTek spi-mem controller

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:45PM +0800, Weijie Gao wrote: > This patch adds support for spi-mem controller found on newer MediaTek SoCs > This controller supports Single/Dual/Quad SPI mode. Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Reviewed-by: Simon Glass >

Re: [PATCH v2 15/32] watchdog: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:42PM +0800, Weijie Gao wrote: > Add watchdog support for MediaTek MT7986 SoC Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 changes: none > --- > drivers/watchdog/mtk_wdt.c | 1 +

Re: [PATCH v2 14/32] timer: mtk: add support for MediaTek MT7981/MT7986 SoCs

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:40PM +0800, Weijie Gao wrote: > This patch add general-purpose timer support for MediaTek MT7981/MT7986. > These two SoCs uses a newer version of timer with its register definition > slightly changed. > Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle

Re: [PATCH v2 11/32] arm: dts: mt7622: force high-speed mode for uart

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:34PM +0800, Weijie Gao wrote: > The input clock for uart is too slow (25MHz) which introduces frequent data > error on both receiving and transmitting even if the baudrate is 115200. > > Using high-speed can significantly solve this issue. Tested on Bananapi BPi-R64

Re: [PATCH v2 10/32] serial: mtk: add support for using dynamic baud clock souce

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:32PM +0800, Weijie Gao wrote: > The baud clock on some platform may change due to assigned-clock-parent > set in DT. In current flow the baud clock is only retrieved during probe > stage. If the parent of the source clock changes after probe stage, the > setbrg will

Re: [PATCH v2 09/32] net: mediatek: add support for MediaTek MT7981/MT7986

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:29PM +0800, Weijie Gao wrote: > This patch adds support for MediaTek MT7981 and MT7986. Both chips uses > PDMA v2. > Tested on Bananapi BPi-R2 (MT7623), Bananapi BPi-R64 (MT7623) and Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle > Reviewed-by: Ramon Fried

Re: [PATCH v2 08/32] net: mediatek: add support for PDMA v2

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:27PM +0800, Weijie Gao wrote: > This patch adds support for PDMA v2 hardware. The PDMA v2 has extended the > DMA descriptor to 8-words, and some of its fields have changed comparing > to the v1 hardware. Tested on Bananapi BPi-R2 (MT7623), Bananapi BPi-R64 (MT7623)

Re: [PATCH v2 07/32] net: mediatek: stop using bitfileds for DMA descriptors

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:23PM +0800, Weijie Gao wrote: > This patch is a preparation for adding a new version of PDMA of which the > DMA descriptor fields has changed. Using bitfields will result in a complex > modification. Convert bitfields to u32 units can solve this problem easily.

Re: [PATCH v2 06/32] net: mediatek: use a struct to cover variations of all SoCs

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:19PM +0800, Weijie Gao wrote: > Using a single soc id to control different initialization and TX/RX flow > for all SoCs is not extensible if more hardware variations are added in > the future. > > This patch introduces a struct to replace the original mtk_soc to

Re: [PATCH v2 05/32] mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:12PM +0800, Weijie Gao wrote: > Add eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs > Both chips support SDXC and eMMC 4.5. MT7986A supports eMMC 5.1. > Tested on Bananapi BPi-R3 (MT7986A) with both eMMC and SDMMC. Tested-by: Daniel Golle > Reviewed-by:

Re: [PATCH v2 01/32] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:00:17PM +0800, Weijie Gao wrote: > This patch adds basic support for MediaTek MT7986 SoC. > This include the file that will initialize the SoC after boot and its > device tree. > > Signed-off-by: Weijie Gao Tested on Bananapi BPi-R3 (MT7986A). Tested-by: Daniel Golle

Re: [PATCH] arm: smh: Fix uninitialized parameters with newer GCCs

2022-08-31 Thread Tom Rini
On Tue, Aug 30, 2022 at 04:32:27PM -0400, Sean Anderson wrote: > Newer versions of GCC won't initialize parts of structures which don't > appear to be used. This results in uninitialized semihosting parameters > passed via R1. Fix this by marking the inline assembly as clobbering > memory. > >

Re: [PATCH v2] tools: mkimage: fix build with recent LibreSSL

2022-08-31 Thread Tom Rini
On Mon, Aug 29, 2022 at 01:34:01PM +0200, Mark Kettenis wrote: > LibreSSL 3.5.0 and later (also shipped as part of OpenBSD 7.1 and > and later) have an opaque RSA object and do provide the > RSA_get0_* functions that OpenSSL provides. > > Fixes: 2ecc354b8e46 ("tools: mkimage: fix build with

Re: [PATCH] bootm: Fix upper bound of FDT overlap checks

2022-08-31 Thread Tom Rini
On Sat, Aug 27, 2022 at 02:48:10PM +0200, Pali Rohár wrote: > FTD blob can be put immediately after the OS image. > So use strict inequality for start address check. > > Fixes: fbde7589ce30 ("common: bootm: add checks to verify if ramdisk / > fdtimage overlaps OS image") > Signed-off-by: Pali

Re: [PATCH v4 2/2] image-fit: don't set compression if it can't be read

2022-08-31 Thread Tom Rini
On Sat, Aug 27, 2022 at 04:17:28AM +0100, Daniel Golle wrote: > fit_image_get_comp() should not set value -1 in case it can't read > the compression node. Instead, leave the value untouched in that case > as it can be absent and a default value previously defined by the > caller of

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-31 Thread Tom Rini
On Sat, Aug 27, 2022 at 04:14:42AM +0100, Daniel Golle wrote: > Change variable name 'imape_comp' to the supposedly intended name > 'image_comp'. > > Signed-off-by: Daniel Golle > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/2] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-08-31 Thread Tom Rini
On Fri, Aug 26, 2022 at 11:15:56PM +0200, Marek Vasut wrote: > This reinstates fix from commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409 > without the changes unrelated to the actual fix. Avoid the underflow by > setting only nbytes and linebytes as unsigned integers. > > Signed-off-by: Marek

Re: [PATCH 1/2] Revert "i2c: fix stack buffer overflow vulnerability in i2c md command"

2022-08-31 Thread Tom Rini
On Fri, Aug 26, 2022 at 11:15:55PM +0200, Marek Vasut wrote: > This reverts commit 8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409. > > The commit is largely wrong and breaks most of i2c command functionality. > The problem described in the aforementioned commit commit message is valid, > however the

Re: [PATCH] corenet_ds.h: Remove

2022-08-31 Thread Tom Rini
On Fri, Aug 26, 2022 at 10:53:36AM -0400, Tom Rini wrote: > This was missed when removing the platform. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] spl: ahci: Fix dependency for SPL_AHCI_PCI

2022-08-31 Thread Tom Rini
On Thu, Aug 25, 2022 at 08:03:51PM +0300, Oleksandr Suvorov wrote: > The option SPL_SATA_SUPPORT is renamed to SPL_SATA. Fix the option > name. > > Fixes: 73059529b20 ("ata: ahci-pci: Add new option CONFIG_SPL_AHCI_PCI") > Signed-off-by: Oleksandr Suvorov > Acked-by: Pali Rohár Applied to

Re: [PATCH v2] fs: fix comment typo

2022-08-31 Thread Tom Rini
On Thu, Aug 25, 2022 at 12:12:01PM +, Roger Knecht wrote: > Fix typo in include/fs.h > > Reviewed-by: Simon Glass > Signed-off-by: Roger Knecht Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] kbuild: add KBUILD_HOSTLDFLAGS to cmd_host-csingle

2022-08-31 Thread Tom Rini
On Wed, Aug 24, 2022 at 10:37:23AM +0200, Heiko Thiery wrote: > When compiling executables from a single.c file, the linker is also > invoked. Pass the flags like the other linker commands. > > cherry-pick kbuild change from Linux: > > 63185b46cdb3 (kbuild: use HOSTLDFLAGS for single .c

Re: [PATCH] board: ti: common: board_detect: Fix EEPROM read quirk

2022-08-31 Thread Tom Rini
On Tue, Aug 23, 2022 at 07:05:34PM +0300, Matwey V. Kornilov wrote: > There are three different kinds of EEPROM possibly present on boards. > 1. 1byte address. For those we should avoid 2byte address in order > not to rewrite the data. Second byte of the address can potentially > be

Re: [PATCH] gitlab-ci: Update comment about the Dockerfile

2022-08-31 Thread Tom Rini
On Tue, Aug 23, 2022 at 04:18:26PM +1000, Joel Stanley wrote: > It's found in the u-boot tree now. > > Signed-off-by: Joel Stanley Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] common/console.c: prevent pre-console buffer contents from being added to itself

2022-08-31 Thread Tom Rini
On Tue, May 03, 2022 at 03:13:27PM +0200, Rasmus Villemoes wrote: > I do not have any non-serial output devices, so a > print_pre_console_buffer(PRE_CONSOLE_FLUSHPOINT2_EVERYTHING_BUT_SERIAL) > does nothing for me. > > However, I was manually inspected the pre-console buffer using md.b, > and I

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > Hi Stefan, > > On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > > > Hi Tony, > > > > On 31.08.22 08:30, Tony Dinh wrote: > > > Hi Stefan, > > > > > > On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: > > >> > > >> Hi

Re: [PATCH v2 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 13:13, Heinrich Schuchardt wrote: > > Check the that the hash length is shorter than the message length. This > avoids: > > ./tools/../lib/rsa/rsa-verify.c:275:11: warning: > ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] > 275 | db[0] &= 0xff

[PATCH v2 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Heinrich Schuchardt
Check the that the hash length is shorter than the message length. This avoids: ./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized [-Wmaybe-uninitialized] 275 | db[0] &= 0xff >> leftmost_bits; Signed-off-by: Heinrich Schuchardt --- v2:

Re: [PATCH 1/1] lib: rsa: fix padding_pss_verify

2022-08-31 Thread Heinrich Schuchardt
On 8/31/22 15:46, Simon Glass wrote: Hi Heinrich, On Wed, 31 Aug 2022 at 03:32, Heinrich Schuchardt wrote: Check the that the hash length is shorter than the message length. This avoids: ./tools/../lib/rsa/rsa-verify.c:275:11: warning: ‘*db’ may be used uninitialized

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-31 Thread Simon Glass
Hi Quentin, On Wed, 31 Aug 2022 at 10:39, Quentin Schulz wrote: > > Hi Simon, > > On 8/31/22 15:46, Simon Glass wrote: > > Hi Quentin, > > > > On Wed, 31 Aug 2022 at 03:25, Quentin Schulz > > wrote: > >> > >> Hi Simon, > >> > >> On 8/31/22 05:15, Simon Glass wrote: > >>> Hi Quentin, > >>> > >>>

Re: [PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 09:55, Quentin Schulz wrote: > > From: Quentin Schulz > > The binary is looked on the system by the suffix of the packer class. > This means binman was looking for btool_gzip on the system and not gzip. > > Therefore, let's pass "gzip" as the name so that it can be found

Re: [PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-31 Thread Simon Glass
Hi Michal, On Wed, 31 Aug 2022 at 01:39, Michal Suchánek wrote: > > Hello, > > On Tue, Aug 30, 2022 at 09:15:12PM -0600, Simon Glass wrote: > > Hi Michal, > > > > On Tue, 30 Aug 2022 at 10:48, Michal Suchánek wrote: > > > > > > On Tue, Aug 30, 2022 at 09:56:52AM -0600, Simon Glass wrote: > > >

Re: [PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-31 Thread Simon Glass
Hi Stefan, On Tue, 30 Aug 2022 at 23:57, Stefan Roese wrote: > > Hi Simon, > > On 30.08.22 17:56, Simon Glass wrote: > > Hi Stefan, > > > > On Tue, 30 Aug 2022 at 06:08, Stefan Roese wrote: > >> > >> Adding Simon to Cc... > >> > >> On 30.08.22 14:00, Michael Walle wrote: > >>> Am 2022-08-30

[PATCH v2 7/7] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in https://git.launchpad.net/ubuntu/+source/bzip2/tree/debian/patches/20-legacy.patch?h=ubuntu/jammy and in bzip2 1.1.x (no release

[PATCH v2 6/7] binman: btool: futility: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version can now be passed the binary argument to return the version text, so there's no need to override it in futility anymore. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/futility.py | 13 + 1 file changed, 1 insertion(+), 12

[PATCH v2 5/7] binman: btool: fiptool: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version can now be passed the binary argument to return the version text, so there's no need to override it in fiptool anymore. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/fiptool.py | 11 +-- 1 file changed, 1 insertion(+), 10

[PATCH v2 4/7] binman: bintool: parametrize parameter to pass to binary for returning version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz The code to check the version is very similar between binaries, the most likely only needed variables are the regex to find the version (already supported) and the parameter to pass to the binary so that it prints this version (e.g. --version, -V or similar). Let's make it

[PATCH v2 3/7] binman: btool: mkimage: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of mkimage binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/mkimage.py | 14 +- 1 file changed, 1

[PATCH v2 2/7] binman: btool: lz4: use Bintool.version

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Bintool.version already contains everything required to get the version out of lz4 binary so let's not override it with its own implementation. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/btool/lz4.py | 14 +- 1 file changed, 1 insertion(+),

[PATCH v2 1/7] binman: bintool: move version check implementation into bintool class

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Version checking has nothing specific to compression/decompression tools so let's move it to the Bintool class. Signed-off-by: Quentin Schulz --- added in v2 tools/binman/bintool.py | 46 ++--- 1 file changed, 20 insertions(+), 26

[PATCH v3] powerpc: Add support for CZ.NIC Turris 1.x routers

2022-08-31 Thread Pali Rohár
CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open source routers, they have dual-core PowerPC Freescale P2020 CPU and are based on reference Freescale P2020RDB-PC-A board design. Hardware design is fully open source, all firmware and hardware design files are available at Turris project

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-31 Thread Quentin Schulz
Hi Simon, On 8/31/22 15:46, Simon Glass wrote: Hi Quentin, On Wed, 31 Aug 2022 at 03:25, Quentin Schulz wrote: Hi Simon, On 8/31/22 05:15, Simon Glass wrote: Hi Quentin, On Tue, 30 Aug 2022 at 11:54, Quentin Schulz wrote: Hi Simon, On 8/30/22 17:56, Simon Glass wrote: Hi Quentin,

[PATCH] binman: btool: gzip: fix packer name so that binary can be found

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz The binary is looked on the system by the suffix of the packer class. This means binman was looking for btool_gzip on the system and not gzip. Therefore, let's pass "gzip" as the name so that it can be found and used. Fixes: 0f369d79925a ("binman: Add gzip bintool")

[PATCH 1/1] efi_loader: ensure all block devices are probed

2022-08-31 Thread Heinrich Schuchardt
Only probed block devices are available in the UEFI sub-system. Multiple block devices may be involved in the boot process. So we have to make sure that all block devices are probed. Another reason is that we store UEFI variables on the ESP which may be on any block device. On the sandbox before

[PATCH 2/3] configs: socfpga: Specify new linker script specific to SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Specify new linker script for SoC64 SPL to ensure SPL is reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_defconfig| 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff

[PATCH 1/3] arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Add a new .data section for preserving the original state of the .data section of SoC64 SPL. This new .data section is required to make SPL reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/u-boot-spl-soc64.lds

[PATCH 3/3] arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang When the system boot from cold reset, SPL will copy its .data section into this backup section to keep an original copy of .data section. When the system has been warm reset, SPL will reload the original .data section from this backup section to restore the original state of

[PATCH 0/3] *** SUBJECT HERE ***

2022-08-31 Thread Jit Loon Lim
*** BLURB HERE *** Chee Hong Ang (3): arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL configs: socfpga: Specify new linker script specific to SoC64 SPL arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > Hi Tony, > > On 31.08.22 08:30, Tony Dinh wrote: > > Hi Stefan, > > > > On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: > >> > >> Hi Tony, > >> > >> On 31.08.22 07:02, Stefan Roese wrote: > >>> Hi Tony, > >>> > >>> On

Re: [PATCH] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Stefan Herbrechtsmeier
Hi Quentin, Am 31.08.2022 um 16:32 schrieb Quentin Schulz: From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in

Re: imx_bootaux lto issue

2022-08-31 Thread Tom Rini
On Thu, Aug 18, 2022 at 04:19:52PM +, Marcel Ziswiler wrote: > Hi there > > If one enables both CONFIG_IMX_BOOTAUX and CONFIG_LTO (e.g. just adding the > later to the verdin- > imx8mp_defconfig) one gets the following build failure: > > arch/arm/mach-imx/imx_bootaux.c:24:31: warning: type

[PATCH] binman: bintool: bzip2: fix version function on non-Debian-based systems

2022-08-31 Thread Quentin Schulz
From: Quentin Schulz Upstream bzip2 1.0.x actually is stuck when running bzip2 -V and redirecting the output. This is fixed in Debian for about a decade already in https://git.launchpad.net/ubuntu/+source/bzip2/tree/debian/patches/20-legacy.patch?h=ubuntu/jammy and in bzip2 1.1.x (no release

Re: [PATCH v2 8/9] ARM: dts: at91: sam9x60ek: Enable NAND support

2022-08-31 Thread Michael Nazzareno Trimarchi
Hi On Wed, Aug 31, 2022 at 3:31 PM wrote: > > On 8/31/22 4:14 PM, Michael Nazzareno Trimarchi wrote: > > Hi > > > > On Mon, Aug 29, 2022 at 8:20 AM Balamanikandan Gunasundar > > wrote: > >> > >> Enable the EBI and NAND flash controller. Define the pinctrl and > >> partition table > >> > >>

Re: binman warning/failure when blobs are missing

2022-08-31 Thread Tom Rini
On Mon, Aug 15, 2022 at 11:37:57AM -0600, Simon Glass wrote: > Hi Tom, > > On Sat, 13 Aug 2022 at 06:36, Tom Rini wrote: > > > > On Fri, Aug 12, 2022 at 08:21:05PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 12 Aug 2022 at 10:11, Tom Rini wrote: > > > > > > > > On Fri, Aug 12,

Re: [PATCH v2 2/6] console: Implement flush() function

2022-08-31 Thread Tom Rini
On Wed, Aug 31, 2022 at 07:46:58AM -0600, Simon Glass wrote: > Hi Pali, > > On Wed, 31 Aug 2022 at 03:13, Pali Rohár wrote: > > > > On Thursday 25 August 2022 09:08:18 Simon Glass wrote: > > > Hi Pali, > > > > > > On Thu, 25 Aug 2022 at 08:20, Pali Rohár wrote: > > > > > > > > On Friday 12

Re: [PATCH v2 02/32] arm: mediatek: add support for MediaTek MT7981 SoC

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:00, Weijie Gao wrote: > > This patch adds basic support for MediaTek MT7981 SoC. > This include the file that will initialize the SoC after boot and its > device tree. > > Signed-off-by: Weijie Gao > --- > v2 changes: > Sort include lines > Add reference link for

Re: [PATCH] net: enetc: Fix use after free issue in fsl_enetc.c

2022-08-31 Thread Simon Glass
On Wed, 31 Aug 2022 at 05:20, Siarhei Yasinski wrote: > > If ethernet connected to SFP, like this: > > _port0 { > phy-connection-type = "sgmii"; > sfp = <>; > managed = "in-band-status"; > status = "okay"; > }; > > Then enetc_config_phy returns

  1   2   >