Re: [PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin

2022-12-28 Thread Heiko Schocher
Hello Pali, On 28.12.22 19:18, Pali Rohár wrote: > U-Boot build system builds final U-Boot binary for socrates board in custom > file u-boot-socrates.bin (instead of standard u-boot.bin). Output target > file u-boot-socrates.bin is generated by binman as defined in board binman > config file arch/

[PATCH] efi_loader: avoid adding variables twice

2022-12-28 Thread Ilias Apalodimas
When the efi subsystem starts we restore variables that are both in a file or stored into the .efi_runtime section of U-Boot. However once a variable gets created or changed the preseeded entries will end up in the file. As a consequence on the next boot we will end up adding identical variable e

Re: [PATCH v1 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2022-12-28 Thread yanhong wang
On 2022/12/28 19:42, Bin Meng wrote: > On Wed, Dec 28, 2022 at 2:39 PM yanhong wang > wrote: >> >> >> >> On 2022/12/26 21:54, Bin Meng wrote: >> > On Mon, Dec 26, 2022 at 3:32 PM yanhong wang >> > wrote: >> >> >> >> >> >> >> >> On 2022/12/22 17:22, Bin Meng wrote: >> >> > On Mon, Dec 12, 2022

Re: Bug#1012269: u-boot-exynos on Odroid XU4 searches for exynos5422-smdk5420xu4.dtb instead of exynos5422-odroidxu4.dtb

2022-12-28 Thread Vagrant Cascadian
On 2022-12-25, Jochen Sprickerhof wrote: > * Vagrant Cascadian [2022-11-04 14:22]: >>On 2022-06-02, Jochen Sprickerhof wrote: >>> with the latest u-boot-exynos in unstable it tries to load >>> exynos5422-smdk5420xu4.dtb whereas linux-image-5.17.0-3-armmp only >>> contains exynos5422-odroidxu4.dtb.

[PATCH 3/3] powerpc/mpc85xx: Unset CONFIG_SPL_TARGET="u-boot-with-spl.bin"

2022-12-28 Thread Pali Rohár
CONFIG_SPL_TARGET should specify additional SPL make target. But u-boot-with-spl.bin is final U-Boot binary, not SPL binary in some custom format. Moreover u-boot-with-spl.bin is already set in CONFIG_BUILD_TARGET, so make will build it by default. Signed-off-by: Pali Rohár --- configs/P1010RDB-

[PATCH 2/3] powerpc/mpc85xx: Set default CONFIG_BUILD_TARGET

2022-12-28 Thread Pali Rohár
Final U-Boot binary for mpc85xx boards which use SPL and are not PBL-based based is u-boot-with-spl.bin. PBL is not used only on boards with e500v1 and e500v2 cores. Apparently CONFIG_E500 is set not only for e500 cores, but also for all other mpc85xx cores e500mc, e5500 and e5600. So do not use CO

[PATCH 1/3] arm: mvebu: Fix default CONFIG_BUILD_TARGET

2022-12-28 Thread Pali Rohár
u-boot-with-spl.kwb is built only for SPL enabled 32-bit armada boards. u-boot.kwb is built for 32-bit armada and kirkwood boards but only for non-SPL targets. So replace CONFIG_ARCH_MVEBU by CONFIG_ARMADA_32BIT (it implies CONFIG_ARCH_MVEBU) for u-boot-with-spl.kwb. And add additional CONFIG_ARM

Re: [PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin

2022-12-28 Thread Pali Rohár
On Wednesday 28 December 2022 19:11:34 Tom Rini wrote: > On Wed, Dec 28, 2022 at 07:18:39PM +0100, Pali Rohár wrote: > > U-Boot build system builds final U-Boot binary for socrates board in custom > > file u-boot-socrates.bin (instead of standard u-boot.bin). Output target > > file u-boot-socrates.

Possible bug in BTRFS w/ Duplication

2022-12-28 Thread Sam Winchenbach
Hello, Hello, I have hit the following situation when trying to load files from a BTRFS partition with duplication enabled. In the first example I read a 16KiB file - __btrfs_map_block() changes the length to something larger than the file being read. This works fine, as length is later clampe

Re: [PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin

2022-12-28 Thread Tom Rini
On Wed, Dec 28, 2022 at 07:18:39PM +0100, Pali Rohár wrote: > U-Boot build system builds final U-Boot binary for socrates board in custom > file u-boot-socrates.bin (instead of standard u-boot.bin). Output target > file u-boot-socrates.bin is generated by binman as defined in board binman > config

[PATCH 2/2] test: compression: use ut_assert for errors

2022-12-28 Thread Brandon Maier
Use the ut_assert macros for more useful error messages. Signed-off-by: Brandon Maier --- test/compression.c | 56 +- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/test/compression.c b/test/compression.c index 6c2a43fbed7..ba98d21802c

[PATCH 1/2] test: compression: check with trailing garbage in input

2022-12-28 Thread Brandon Maier
The Linux kernel appends 4 bytes to the end of compressed kernel Images containing the uncompressed image size. They are used to make self-decompressing Images easier. However for archs that don't support self-decompression, like ARM64, U-Boot must be able to decompress the image with the garbage d

[PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2022-12-28 Thread Pali Rohár
U-Boot build process currently always produces broken u-boot-dtb.bin binary for PowerPC mpc85xx architecture on boards which needs mpc85xx reset vector. For these boards this (intermediate) binary is not used as input for any other Makefile target on this architecture, so there is no real problem w

[PATCH u-boot 1/2] powerpc/mpc85xx: socrates: Rename u-boot-socrates.bin to u-boot.bin

2022-12-28 Thread Pali Rohár
U-Boot build process for socrates board produces final U-Boot binary in file u-boot-socrates.bin (by binman) And as a bonus it produces two unusable broken binaries u-boot-dtb.bin and u-boot.bin (by Makefile). So do not build broken u-boot-dtb.bin and u-boot.bin binaries and rename board specific

[PATCH u-boot] powerpc/mpc85xx: socrates: Re-enable building u-boot-socrates.bin

2022-12-28 Thread Pali Rohár
U-Boot build system builds final U-Boot binary for socrates board in custom file u-boot-socrates.bin (instead of standard u-boot.bin). Output target file u-boot-socrates.bin is generated by binman as defined in board binman config file arch/powerpc/dts/socrates-u-boot.dtsi. But binman was disabled

Broken socrates board (Was: Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d)

2022-12-28 Thread Pali Rohár
On Wednesday 28 December 2022 17:50:43 Pali Rohár wrote: > And back to this issue... > > On Tuesday 02 August 2022 11:13:38 Pali Rohár wrote: > > Hello Tom! > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. >

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-12-28 Thread Tom Rini
On Wed, Dec 28, 2022 at 05:50:43PM +0100, Pali Rohár wrote: > And back to this issue... > > On Tuesday 02 August 2022 11:13:38 Pali Rohár wrote: > > Hello Tom! > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-12-28 Thread Pali Rohár
And back to this issue... On Tuesday 02 August 2022 11:13:38 Pali Rohár wrote: > Hello Tom! > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. > > If you look at P1020RDB-PD_defconfig file change in this commit the

[PATCH] PowerPC: Rework PBL location choice

2022-12-28 Thread Tom Rini
When converting CONFIG_SDCARD and CONFIG_SPIFLASH to Kconfig, one set of uses wasn't converted correctly. Allow for the case where platforms don't rely on "PBL" to boot but instead use other mechanisms. See the link below for more details. Link: https://lore.kernel.org/all/20220802091338.f4g45ldhc

[PATCH 2/2] cmd: net: wget: fix Kconfig dependency

2022-12-28 Thread Michael Walle
The wget command uses TCP, but fails to select PROT_TCP in Kconfig. Instead it selects the non-existing symbol TCP. Fix the typo. Signed-off-by: Michael Walle --- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index d93731f2af..b2d759871

[PATCH 1/2] net: wget: fix implicit declaration

2022-12-28 Thread Michael Walle
The compiler complains about the missing declaration of print_size(): net/wget.c:415:3: warning: implicit declaration of function ‘print_size’ [-Wimplicit-function-declaration] Fix it. Signed-off-by: Michael Walle --- net/wget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wget.c b/

Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2

2022-12-28 Thread Pali Rohár
On Friday 23 December 2022 22:39:00 Pali Rohár wrote: > On Friday 23 December 2022 14:18:32 Tom Rini wrote: > > On Fri, Dec 23, 2022 at 08:10:14PM +0100, Pali Rohár wrote: > > > On Thursday 22 December 2022 13:22:50 Tom Rini wrote: > > > > On Thu, Dec 22, 2022 at 06:56:40PM +0100, Pali Rohár wrote:

[PATCH 3/3] net: ftmac100: add mii read and write callbacks

2022-12-28 Thread Sergei Antonov
Register mii_bus with read and write callbacks tp allow the 'mii' command to work. Use a timeout of 10 ms to wait for the R/W operations to complete. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 103 + drivers/net/ftmac100.h | 9 2 fil

[PATCH 2/3] net: ftmac100: simplify priv->iobase casting

2022-12-28 Thread Sergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in order to cast once on assignment and remove casting in a number of other places. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/ne

[PATCH 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2022-12-28 Thread Sergei Antonov
So it will be named similarly to the related ftgmac100 driver. The old name 'nds32_mac' is not referred to anywhere in U-Boot. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac10

Re: [PATCH v1 01/17] riscv: cpu: jh7110: Add support for jh7110 SoC

2022-12-28 Thread Bin Meng
On Wed, Dec 28, 2022 at 2:39 PM yanhong wang wrote: > > > > On 2022/12/26 21:54, Bin Meng wrote: > > On Mon, Dec 26, 2022 at 3:32 PM yanhong wang > > wrote: > >> > >> > >> > >> On 2022/12/22 17:22, Bin Meng wrote: > >> > On Mon, Dec 12, 2022 at 10:51 AM Yanhong Wang > >> > wrote: > >> >> > >> >>