[PATCH 2/2] configs: j721e_evm_a72_defconfig: Switch to bootstd

2023-11-27 Thread Neha Malcom Francis
Switch to using bootstd. Note that with this change, we will stop using distro_bootcmd and instead depend entirely on bootflow method of starting the system up. Also config_distro_bootcmd.h header file that is no longer needed in j721s2_evm.h. Signed-off-by: Neha Malcom Francis ---

[PATCH 1/2] board: ti: j721s2: j721s2.env: Add explicit boot_targets

2023-11-27 Thread Neha Malcom Francis
Add explicit boot_targets to indicate the specific boot sequence to follow. Signed-off-by: Neha Malcom Francis --- board/ti/j721s2/j721s2.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/ti/j721s2/j721s2.env b/board/ti/j721s2/j721s2.env index 64e3d9da85..e76cafe9ae 100644 ---

[PATCH 0/2] board: ti: j721s2: Switch to standard boot

2023-11-27 Thread Neha Malcom Francis
This series switches J721S2 to standard boot flow. Boot logs: https://gist.github.com/nehamalcom/127019254d49057b5d342f66841bfd3c Neha Malcom Francis (2): board: ti: j721s2: j721s2.env: Add explicit boot_targets configs: j721e_evm_a72_defconfig: Switch to bootstd board/ti/j721s2/j721s2.env

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-11-27 Thread Maxim Uvarov
On Tue, 28 Nov 2023 at 03:20, Soeren Moch wrote: > On 27.11.23 14:11, Tom Rini wrote: > > On Mon, Nov 27, 2023 at 06:57:09PM +0600, Maxim Uvarov wrote: > > > >> Increase allowed binary size to fit lwip code. > >> > >> Signed-off-by: Maxim Uvarov > >> --- > >> configs/tbs2910_defconfig | 2 +-

[PATCH v2] timer: starfive: Add Starfive timer support

2023-11-27 Thread Kuan Lim Lee
Add timer driver in Starfive SoC. It is an timer that outside of CPU core and inside Starfive SoC. Signed-off-by: Kuan Lim Lee Signed-off-by: Wei Liang Lim Changes for v2: - correct driver name, comment, variable --- drivers/timer/Kconfig | 7 +++ drivers/timer/Makefile | 1

[PATCH v2] mmc: sdhci-cadence: Add support for Cadence sdmmc v6

2023-11-27 Thread Kuan Lim Lee
Cadence SDMMC v6 controller has a lot of changes on initialize compared to v4 controller. PHY is needed by v6 controller. Signed-off-by: Kuan Lim Lee Co-developed-by: Alex Soo Signed-off-by: Wei Liang Lim --- Changes in v2 - Rename file sdhci-cadence6-phy.c to sdhci-cadence6.c - Remove

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Stephen Graf
I did some digging into the orangepi SDK and it sort of looks like the zero3 is set up for dram_clk = 792. I use their image as a fallback and it has been stable (built linux kernel and set up debian rootfs). from https://github.com/orangepi-xunlong/orangepi-build.git

Please pull u-boot-samsung master

2023-11-27 Thread Minkyu Kang
Dear Tom, The following changes since commit 17e9db18f17b6cad278694d4a61df95e96bdf4f5: Merge tag 'doc-2024-01-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi (2023-11-11 09:22:54 -0500) are available in the git repository at:

Re: [PATCH v2 2/2] configs: Remove unneeded SYS_CONFIG_NAME from a*y17lte defconfigs

2023-11-27 Thread Minkyu Kang
Hi! 2023년 11월 10일 (금) 05:13, Sam Protsenko 님이 작성: > As correct default SYS_CONFIG_NAME value is now set in > board/samsung/axy17lte/Kconfig (in commit "board: samsung: Fix > SYS_CONFIG_NAME configs in axy17lte Kconfig"), the SYS_CONFIG_NAME > option can be safely removed from all a*y17lte

Re: [PATCH v2 1/2] board: samsung: Fix SYS_CONFIG_NAME configs in axy17lte Kconfig

2023-11-27 Thread Minkyu Kang
Hi! 2023년 11월 22일 (수) 02:38, Sam Protsenko 님이 작성: > Hi Tom, Minkyu, > > On Thu, Nov 9, 2023 at 2:13 PM Sam Protsenko > wrote: > > > > There is a couple of issues related to SYS_CONFIG_NAME config in > > axy17lte Kconfig. > > > > 1. The global SYS_CONFIG_NAME in axy17lte Kconfig overrides > >

Re: [PATCH] serial: s5p: Use dev_read_addr_ptr() to get base address

2023-11-27 Thread Minkyu Kang
Hi! 2023년 11월 8일 (수) 14:04, Simon Glass 님이 작성: > On Tue, 7 Nov 2023 at 13:13, Sam Protsenko > wrote: > > > > As the address read from device tree is being cast to a pointer, it's > > better to use dev_read_addr_ptr() API for getting that address. The more > > detailed explanation can be found

Re: [PATCH 0/4] serial: s5p: Cleanups

2023-11-27 Thread Minkyu Kang
Hi! 2023년 11월 22일 (수) 02:40, Sam Protsenko 님이 작성: > On Tue, Nov 7, 2023 at 1:06 PM Sam Protsenko > wrote: > > > > A small collection of cleanup patches for serial_s5p.c driver. Should > > induce no functional changes. > > > > Sam Protsenko (4): > > serial: s5p: Remove common.h inclusion > >

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Stephen Graf
I got the initial defconfig that I started testing with from: https://gist.github.com/iuncuim/2150b7a5317700314393665260ca628e which has CONFIG_DRAM_CLK=792. Just a few hours ago, when I was testing without this parameter, my system misbehaved and refused to reboot. The file system was

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Andre Przywara
On Mon, 27 Nov 2023 14:31:19 -0800 Stephen Graf wrote: Hi, > Since the last test I rebuilt u-boot without the > "CONFIG_DRAM_CLK=792" in the defconfig and got the wrong DRAM size > problem (showing 2G instead of 1G). I had to do a power down/up to see this. > Are you planning to add this

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Andre Przywara
On Mon, 27 Nov 2023 12:21:44 -0800 Stephen Graf wrote: Hi Stephen! > Yes I forgot about the zBIT patch. With this patch also included I built > and retested u-boot loaded from SPI flash. The two warning/error > messages disappeared and the flash worked properly and booted from a USB >

Re: [PATCH 1/1] i2c: Bugfix in i2c_get_chip_by_phandle()

2023-11-27 Thread Tom Rini
On Fri, 24 Nov 2023 15:04:01 +0100, Philip Oberfichtner wrote: > The "i2cbcdev" sneaked in when implementing this function for the > bootcounter use case. Obviously the intention was to use prop_name > instead. > > Fixes: b483552773 (i2c: Implement i2c_get_chip_by_phandle()) > > > [...]

Re: [PATCH 1/1] pico-imx7d: add baseboard SD card boot detect

2023-11-27 Thread Szőke Kálmán Benjamin
It was absolutely conform, i supressed the potentional warning. Once again i say, i will not remove it, if you do not liket it you can remoce as a maintainer. My patch is ready and final. Let's do something to improve i.MX family as a maintainer. I am realy sad to see in last 2-3 years there

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Stephen Graf
Since the last test I rebuilt u-boot without the "CONFIG_DRAM_CLK=792" in the defconfig and got the wrong DRAM size problem (showing 2G instead of 1G). I had to do a power down/up to see this. Are you planning to add this parameter to your patch? U-Boot 2024.01-rc3-00012-g1fcf078f54-dirty (Nov

Re: [PATCH v2 0/9] ufs: Add a PCI UFS controller support

2023-11-27 Thread Tom Rini
On Wed, 11 Oct 2023 21:15:43 +0800, Bin Meng wrote: > This adds a PCI UFS controller support and enables the support on > QEMU RISC-V for testing. > > Requiring QEMU v8.2+. > > This series is avaiable at u-boot-x86/ufs for testing. > > [...] Applied to u-boot/next, thanks! -- Tom

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-11-27 Thread Soeren Moch
On 27.11.23 14:11, Tom Rini wrote: On Mon, Nov 27, 2023 at 06:57:09PM +0600, Maxim Uvarov wrote: Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/tbs2910_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] pico-imx7d: add baseboard SD card boot detect

2023-11-27 Thread Fabio Estevam
On Mon, Nov 27, 2023 at 4:55 PM Szőke Kálmán Benjamin wrote: > > Unused function parameters should be removed > https://rules.sonarsource.com/c/tag/based-on-misra/RSPEC-1172/ >From this same URL: "Exceptions There are some cases when you want to have an unused parameter (usually because the

Re: [PATCH 3/3] sunxi: H616: Add OrangePi Zero 3 board support

2023-11-27 Thread Stephen Graf
Yes I forgot about the zBIT patch. With this patch also included I built and retested u-boot loaded from SPI flash. The two warning/error messages disappeared and the flash worked properly and booted from a USB device. There was one message that I did not understand: "Loading Environment

Re: [PATCH 1/1] pico-imx7d: add baseboard SD card boot detect

2023-11-27 Thread Szőke Kálmán Benjamin
Unused function parameters should be removedhttps://rules.sonarsource.com/c/tag/based-on-misra/RSPEC-1172/Quaility means the full SW has no any functions with unused paramteres. Unfortunatelly it seems u-boot and kernel source code are not best, it is time to improve it. You can see, i did it,

[PATCH v2 18/18] bloblist: Load the bloblist from the previous loader

2023-11-27 Thread Raymond Mao
During bloblist initialization, when CONFIG_OF_BOARD is defined, invoke the platform custom function to load the bloblist via boot arguments from the previous loader. If the bloblist exists, copy it into the fixed bloblist memory region. Signed-off-by: Raymond Mao --- Changes in v2 - New patch

[PATCH v2 17/18] qemu-arm: Get bloblist from boot arguments

2023-11-27 Thread Raymond Mao
Add platform custom function to get bloblist from boot arguments. Check whether boot arguments aligns with the register conventions defined in FW Handoff spec v0.9. Add bloblist related options into qemu default config. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for

[PATCH v2 16/18] bloblist: Align bloblist used_size and total_size to spec

2023-11-27 Thread Raymond Mao
Align used_size and total_size of the bloblist header to the definition of the FW Handoff spec v0.9. Update the related bloblist APIs and UT testcases. Signed-off-by: Raymond Mao --- Changes in v2 - New patch file created for v2. common/bloblist.c | 86

[PATCH v2 15/18] fdt: Allow the devicetree to come from a bloblist

2023-11-27 Thread Raymond Mao
From: Simon Glass Standard passage provides for a bloblist to be passed from one firmware phase to the next. That can be used to pass the devicetree along as well. If CONFIG_OF_BOARD is defined, a board custom routine will provide a bloblist or a specified memory address to retrieve the

[PATCH v2 14/18] bloblist: Update documentation and header comment

2023-11-27 Thread Raymond Mao
From: Simon Glass Align the documentation with the v0.9 spec. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- doc/develop/bloblist.rst | 4 +++- include/bloblist.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/develop/bloblist.rst

[PATCH v2 13/18] bloblist: Add alignment to bloblist_new()

2023-11-27 Thread Raymond Mao
From: Simon Glass Allow the alignment to be specified when creating a bloblist. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 5 +++-- include/bloblist.h | 3 ++- test/bloblist.c| 40 ++-- 3 files changed, 27

[PATCH v2 12/18] bloblist: Reduce bloblist header size

2023-11-27 Thread Raymond Mao
From: Simon Glass The v0.9 spec provides for a 16-byte header with fewer fields. Update the implementation to match this. This also adds an alignment field. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- include/bloblist.h | 26 +- test/bloblist.c| 6

[PATCH v2 11/18] bloblist: Reduce blob-header size

2023-11-27 Thread Raymond Mao
From: Simon Glass The v0.9 spec provides for an 8-byte header for each blob, with fewer fields. The blob start address should be aligned to the alignment specified by the bloblist header. Update the implementation to match this. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao

[PATCH v2 10/18] bloblist: Handle alignment with a void entry

2023-11-27 Thread Raymond Mao
From: Simon Glass Rather than setting the alignment using the header size, add an entirely new entry to cover the gap left by the alignment. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 23 +++ 1 file changed, 19 insertions(+), 4

[PATCH v2 09/18] bloblist: Checksum the entire bloblist

2023-11-27 Thread Raymond Mao
From: Simon Glass Spec v0.9 specifies that the entire bloblist area is checksummed, including unused portions. Update the code to follow this. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 9 + test/bloblist.c | 10 -- 2 files changed, 9

[PATCH v2 08/18] bloblist: Change the checksum algorithm

2023-11-27 Thread Raymond Mao
From: Simon Glass Use a sinple 8-bit checksum for bloblist, as specified by the spec version 0.9 Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 14 -- include/bloblist.h | 5 ++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git

[PATCH v2 07/18] bloblist: Drop the spare values

2023-11-27 Thread Raymond Mao
From: Simon Glass There are no spare values in spec v0.9 so drop them. For now they are still present in the headers, with an underscore, so that tests continue to pass. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 1 - include/bloblist.h | 6 ++

[PATCH v2 06/18] bloblist: Drop the flags value

2023-11-27 Thread Raymond Mao
From: Simon Glass There is no flags value in spec v0.9 so drop it. For now it is still present in the header, with an underscore, so that tests continue to pass. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 5 ++--- include/bloblist.h | 6 ++

[PATCH v2 05/18] bloblist: Access record hdr_size and tag via a function

2023-11-27 Thread Raymond Mao
From: Simon Glass These values currently use a simple field. With spec v0.9 they have moved to a packed format. Convert most accesses to use functions, so this change can be accomodated. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao --- common/bloblist.c | 38

[PATCH v2 04/18] bloblist: Set version to 1

2023-11-27 Thread Raymond Mao
From: Simon Glass The new bloblist for v0.9 has version 1 so update this value. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao --- Changes in v2 - Update the bloblist alignment to align to FW handoff spec v0.9. include/bloblist.h | 2 +- 1 file changed,

[PATCH v2 03/18] bloblist: Change the magic value

2023-11-27 Thread Raymond Mao
From: Simon Glass This uses a new value with spec v0.9 so change it. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao --- Changes in v2 - Update the bloblist alignment to align to FW handoff spec v0.9. include/bloblist.h | 2 +- 1 file changed, 1

[PATCH v2 02/18] bloblist: Adjust API to align in powers of 2

2023-11-27 Thread Raymond Mao
From: Simon Glass The updated bloblist structure stores the alignment as a power-of-two value in its structures. Adjust the API to use this, to avoid needing to calling ilog2(). Drop a stale comment while we are here. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by:

[PATCH v2 01/18] bloblist: Update the tag numbering

2023-11-27 Thread Raymond Mao
From: Simon Glass Align bloblist tags with the FW handoff spec v0.9. The most common ones are from 0. TF related ones are from 0x100. All non-standard ones from 0xfff000. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao --- Changes in v2 - Align bloblist

[PATCH v2 00/18] Support Firmware Handoff spec via bloblist

2023-11-27 Thread Raymond Mao
Major changes: Update bloblist to align to Firmware Handoff spec v0.9 (https://github.com/FirmwareHandoff/firmware_handoff). Implement Qemu-Arm platform custom functions to retrieve the bloblist (aka. Transfer List) from previous loader via boot arguments when CONFIG_OF_BOARD option is enabled.

[PATCH] arm: dts: imx8mp-venice-gw72xx: add TPM device

2023-11-27 Thread Tim Harvey
Add the TPM device found on the GW72xx revision F PCB. This hangs off of SPI2, uses gpio1_10 as a CS and gpio1_11 as RST#. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw72xx-2x-u-boot.dtsi | 9 + arch/arm/dts/imx8mp-venice-gw72xx.dtsi | 9 - 2 files

[PATCH] arm: dts: imx8mm-venice-gw72xx: add TPM device

2023-11-27 Thread Tim Harvey
Add the TPM device found on the GW72xx revision F PCB. This hangs off of SPI2, uses gpio1_10 as a CS and gpio1_11 as RST#. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mm-venice-gw72xx-0x-u-boot.dtsi | 7 +++ arch/arm/dts/imx8mm-venice-gw72xx.dtsi | 10 +- 2 files

Re: [PATCH] rockchip: rk3328: Set efuse auto mode and timing control

2023-11-27 Thread Jonas Karlman
Hi Quentin, On 2023-11-27 19:42, Quentin Schulz wrote: > Hi Jonas, > > > From: U-Boot on behalf of Jonas Karlman > > Sent: 26 November 2023 20:46 > To: Kever Yang; Simon Glass; Philipp Tomsich > Cc: Jonas Karlman; u-boot@lists.denx.de > Subject:

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:43PM +0600, Maxim Uvarov wrote: > Hello, > > Please find updated version of lwip patches. Changes are in the > changelog bellow. > > Thank you, > Maxim. > > changelog: > v11: - v11 is mosly respin of v10 patches with CI error fixes. On a RPi 3: U-Boot>

Re: [PATCH] rockchip: rk3328: Set efuse auto mode and timing control

2023-11-27 Thread Quentin Schulz
Hi Jonas, From: U-Boot on behalf of Jonas Karlman Sent: 26 November 2023 20:46 To: Kever Yang; Simon Glass; Philipp Tomsich Cc: Jonas Karlman; u-boot@lists.denx.de Subject: [PATCH] rockchip: rk3328: Set efuse auto mode and timing control Reading from

Re: [PATHv11 00/43] net/lwip: add lwip library for the network stack

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:43PM +0600, Maxim Uvarov wrote: > Hello, > > Please find updated version of lwip patches. Changes are in the > changelog bellow. > > Thank you, > Maxim. > > changelog: > v11: - v11 is mosly respin of v10 patches with CI error fixes. >                 Gitlab

Re: [PATHv11 22/43] bcm_ns3: fix overlap define with lwip

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:05PM +0600, Maxim Uvarov wrote: > Rename declaration to not overlap with lwip. > > aarch64: + bcm_ns3 > +In file included from net/lwip/lwip-external/src/include/lwip/etharp.h:53, > + from net/lwip/lwip-external/src/core/init.c:55: >

Re: [PATHv11 21/43] mach-socfpga: do not overlap defines with lwip

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:04PM +0600, Maxim Uvarov wrote: > Fix compilation issue with overlapping lwip and march defines. > > Signed-off-by: Maxim Uvarov > --- > arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 -- > arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9

Re: [PATHv11 20/43] driver/net/rtl8139: remove debug print

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:03PM +0600, Maxim Uvarov wrote: > debug print delays reset of the driver. Finally I see > bunch of "rx error " errors in the screen. CI can > not handle many prints. While network works fine there > > Reproduced with: > make CROSS_COMPILE=sh2-linux-

Re: [PATHv11 10/43] net/lwip: implement lwIP port to U-Boot

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:53PM +0600, Maxim Uvarov wrote: > Implement port of lwIP stack to the U-Boot. lwIP is well known full IP stack > which provides wide functionality, various examples, API closer to linux > userland. > Rich debug printing and possibility to run lwIP apps under linux

[PATCH v2 2/2] arm: s5p4418: fix relocation of vectors

2023-11-27 Thread Stefan Bosch
The header (NSIH) used for the s5p4418-SoC is not loaded into RAM by the 2nd-bootloader, see boot0.h. Therefore, use an adapted version of relocate_vectors which relocates the vectors after the header (at _start) instead of the 'dummy'-vectors at the start of the header (at __image_copy_start).

[PATCH v2 1/2] common: board_f: change calculation of gd->mon_len to fix s5p4418 reloc

2023-11-27 Thread Stefan Bosch
ARM and MICROBLAZE: Change calculation of monitor length (gd->mon_len) to fix relocation at boards with s5p4418-SoC. At s5p4418, _start is after the header (NSIH) therefore the monitor length has to be calculated using __image_copy_start instead of _start in order the whole monitor code is

[PATCH v2 0/2] arm: s5p4418: fix relocation

2023-11-27 Thread Stefan Bosch
Fix relocation of u-boot for s5p4418-SoC. I.e. use __image_copy_start instead of _start to calculate the monitor length. Furthermore use an adapted version of relocate_vectors for the s5p4418-SoC. Background: The header (NSIH) used by the 2nd-bootloader (included at the begin of u-boot.bin) is

Re: [PATHv11 04/43] net/lwip: implement dns cmd

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:47PM +0600, Maxim Uvarov wrote: > U-Boot recently got support for an alternative network stack using LWIP. > Replace dns command with the LWIP variant while keeping the output and > error messages identical. > > Signed-off-by: Maxim Uvarov [snip] > diff --git

Re: [PATHv11 18/43] net/smc911x: fix return from smc911x_send

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:01PM +0600, Maxim Uvarov wrote: > return value of smc911x_send is ignored, but on sucesseful > send we need return 0 and or error -ETIMEOUT, not opposite. > > Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATHv11 17/43] net: sandbox: fix NULL pointer derefences

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:00PM +0600, Maxim Uvarov wrote: > Add additional checks for NULL pointers. > > Signed-off-by: Maxim Uvarov > --- > drivers/net/sandbox.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c > index

Re: [PATHv11 15/43] test_efi_loader.py: use $filesize var

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:58PM +0600, Maxim Uvarov wrote: > bootefi code relays in internal variable then to filesize environment. > lwip tftp do not update this variable. For not I update test to provide > correct size. > > Signed-off-by: Maxim Uvarov This is a lwip problem then, loading

Re: [PATHv11 39/43] Makefile: add dtbs to clean

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:22PM +0600, Maxim Uvarov wrote: > CI test checks that generated dtb has to be cleaned up. > > Signed-off-by: Maxim Uvarov > --- > Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index

Re: [PATHv11 01/43] submodule: add lwIP as git submodule

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:56:44PM +0600, Maxim Uvarov wrote: > add external lwIP library as a git submodule. > Use STABLE-2_2_0_RELEASE tag. > > Signed-off-by: Maxim Uvarov And just for the record, we'll re-visit submodule/subtree/whatever later on, this (and the final parts for CI to be

Re: [PATCH 1/2 v2] smbios: Simplify reporting of unknown values

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 07:10:57PM +0200, Ilias Apalodimas wrote: > If a value is not valid during the DT or SYSINFO parsing, we explicitly > set that to "Unknown Product" and "Unknown" for the product and > manufacturer respectively. It's cleaner if we move the checks insisde >

Re: efi: Set Variable Runtime implementation

2023-11-27 Thread Shantur Rathore
+ Simon as he seems to have done a lot of work in the driver model. On Mon, Nov 27, 2023 at 10:12 AM Shantur Rathore wrote: > > Hi Ilias, > > On Mon, Nov 27, 2023 at 7:16 AM Ilias Apalodimas > wrote: > > > > Hi Shantur > > > > On Sun, 26 Nov 2023 at 12:33, Shantur Rathore wrote: > > > > > > Hi

[PATCH 2/2 v2] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-11-27 Thread Ilias Apalodimas
In order to fill in the SMBIOS tables U-Boot currently relies on a "u-boot,sysinfo-smbios" compatible node. This is fine for the boards that already include such nodes. However with some recent EFI changes, the majority of boards can boot up distros, which usually rely on things like dmidecode

[PATCH 1/2 v2] smbios: Simplify reporting of unknown values

2023-11-27 Thread Ilias Apalodimas
If a value is not valid during the DT or SYSINFO parsing, we explicitly set that to "Unknown Product" and "Unknown" for the product and manufacturer respectively. It's cleaner if we move the checks insisde smbios_add_string() and always report "Unknown" regardless of the missing field.

[PATCH 0/2 v2] Provide a fallback to smbios tables

2023-11-27 Thread Ilias Apalodimas
Hi, Tom asked me to clean up and resend [0]. I've made some adjustments -- The DT nodes are tokenized and a single string is used. The DT node 'model' is used to fill the SMBIOS 'Product Name' and 'compatible' is used for 'Manufacturer'. The reason is explained in patch#2 but the tl;dr is that

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 03:52:50PM +, Peter Robinson wrote: > On Mon, Nov 27, 2023 at 3:32 PM Maxim Uvarov wrote: > > > > > > > > On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: > >> > >> On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: > >> > On Mon, 27 Nov 2023 at 19:08, Tom

Re: [PATHv11 28/43] configs/turris_omnia_defconfig: enable LTO

2023-11-27 Thread marek . behun
On 2023-11-27 06:57, Maxim Uvarov wrote: Decrease allowed binary size to fit lwip code. u-boot-with-spl.kwb exceeds file size limit: limit: 0xf6000 bytes actual: 0xf8600 bytes excess: 0x2600 bytes Signed-off-by: Maxim Uvarov --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Peter Robinson
On Mon, Nov 27, 2023 at 3:32 PM Maxim Uvarov wrote: > > > > On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: >> >> On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: >> > On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: >> > >> > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov

Re: [PATCH 2/3] arm: mach-k3: Remove non-cached memory map areas

2023-11-27 Thread Nishanth Menon
On 23:04-20231123, Vignesh Raghavendra wrote: > > > On 11/23/2023 10:52 PM, Andrew Davis wrote: > > @@ -219,16 +177,9 @@ struct mm_region am62_mem_map[] = { > > }, { > > .virt = 0x8000UL, > > .phys = 0x8000UL, > > - .size = 0x1E78UL, > > -

Re: [PATCH v2 3/3] env: ti: j721s2.env: Remove the processors that are in lockstep

2023-11-27 Thread Nishanth Menon
On 15:59-20231127, Manorit Chawdhry wrote: > Linux 6.7-rc1 DT have the main R5s in lockstep configuration, since > U-boot is using the Linux DT files. > > Remove the processors that will be booted in lockstep configuration. > > Signed-off-by: Manorit Chawdhry > --- > bo

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 09:31:54PM +0600, Maxim Uvarov wrote: > On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: > > > On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: > > > On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > > > > > > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
On Mon, 27 Nov 2023 at 20:08, Tom Rini wrote: > On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: > > On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > > > > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > > > > > Increase allowed binary size to fit lwip code. >

Re: [PATCH] mtd: nand: omap_gpmc: Fix NAND in SPL for AM335x

2023-11-27 Thread Michael Nazzareno Trimarchi
Hi dario On Mon, Nov 27, 2023 at 3:00 PM Leto, Enrico wrote: > > Hi, > > Works on my draco thuban AM335x based boards booting from NAND with ECC BCH8 > code. > > Tested-by: Enrico Leto > > Thanks > > > > -Original Message- > > From: Michael Nazzareno Trimarchi > > Sent: Saturday,

Re: Licensing discrepancies or ambiguities

2023-11-27 Thread Tom Rini
On Sat, Nov 25, 2023 at 02:39:53PM -0800, Vagrant Cascadian wrote: > On 2023-11-21, Tom Rini wrote: > > On Tue, Nov 21, 2023 at 11:10:57AM -0800, Vagrant Cascadian wrote: > > > >> I've been reviewing the copyright and license information for Das U-Boot > >> in preparation for uploading to Debian,

Re: [PATCH] boards: Disable NET on platforms without NETDEVICES

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 02:05:35PM +, Peter Robinson wrote: > On Mon, Nov 27, 2023 at 1:06 PM Tom Rini wrote: > > > > On Mon, Nov 27, 2023 at 5:45 AM Winker Matthias (HC-CW/ENG-PJM) > > wrote: > > > > > > Hello Tom, > > > > > > Just to be sure. In the past we had NET enabled such that the

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 08:06:23PM +0600, Maxim Uvarov wrote: > On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > > > Increase allowed binary size to fit lwip code. > > > > > > Signed-off-by: Maxim Uvarov > > > --- > > >

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Peter Robinson
On Mon, Nov 27, 2023 at 1:08 PM Tom Rini wrote: > > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > Increase allowed binary size to fit lwip code. > > > > Signed-off-by: Maxim Uvarov > > --- > > configs/am335x_evm_defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > >

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
On Mon, 27 Nov 2023 at 19:08, Tom Rini wrote: > On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > > > Increase allowed binary size to fit lwip code. > > > > Signed-off-by: Maxim Uvarov > > --- > > configs/am335x_evm_defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff

Re: [PATCH] boards: Disable NET on platforms without NETDEVICES

2023-11-27 Thread Peter Robinson
On Mon, Nov 27, 2023 at 1:06 PM Tom Rini wrote: > > On Mon, Nov 27, 2023 at 5:45 AM Winker Matthias (HC-CW/ENG-PJM) > wrote: > > > > Hello Tom, > > > > Just to be sure. In the past we had NET enabled such that the fused MAC is > > taken over, although we don’t use NET CMD. > > With your

RE: [PATCH] mtd: nand: omap_gpmc: Fix NAND in SPL for AM335x

2023-11-27 Thread Leto, Enrico
Hi, Works on my draco thuban AM335x based boards booting from NAND with ECC BCH8 code. Tested-by: Enrico Leto Thanks > -Original Message- > From: Michael Nazzareno Trimarchi > Sent: Saturday, November 25, 2023 2:07 PM > To: Roger Quadros > Cc: dario.binac...@amarulasolutions.com;

Re: [PATCH] mtd: nand: omap_gpmc: Fix NAND in SPL for AM335x

2023-11-27 Thread Heiko Schocher
Hello Roger, On 25.11.23 12:16, Roger Quadros wrote: > AM335x uses a special driver "am335x_spl_bch.c" as SPL > NAND loader. This driver expects 1 sector at a time ECC > and doesn't work well with multi-sector ECC that was implemented in > commit 04fcd2587321 ("mtd: rawnand: omap_gpmc: Fix

Re: [PATHv11 24/43] lwip: omap3: rename mem_init

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:07PM +0600, Maxim Uvarov wrote: > Rename mem_init to solve following compilation error. > +arm-linux-gnueabi-ld.bfd: net/lwip/lwip-external/src/core/mem.o: in > function `mem_init': > +net/lwip/lwip-external/src/core/mem.c:162: multiple definition > of

Re: [PATHv11 26/43] configs/tbs2910_defconfig inc limit

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:09PM +0600, Maxim Uvarov wrote: > Increase allowed binary size to fit lwip code. > > Signed-off-by: Maxim Uvarov > --- > configs/tbs2910_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configs/tbs2910_defconfig

Re: [PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Tom Rini
On Mon, Nov 27, 2023 at 06:57:16PM +0600, Maxim Uvarov wrote: > Increase allowed binary size to fit lwip code. > > Signed-off-by: Maxim Uvarov > --- > configs/am335x_evm_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/am335x_evm_defconfig

[PATHv11 43/43] .gitlab-ci.yml: change ownership of the git files

2023-11-27 Thread Maxim Uvarov
Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. Make the ower of git the same as current user. Signed-off-by: Maxim Uvarov --- .gitlab-ci.yml | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

[PATHv11 42/43] configs/linkit-smart-7688_defconfig: increase board limit

2023-11-27 Thread Maxim Uvarov
Increase current board limit to fit new IP stack. mips: + linkit-smart-7688 +u-boot.img exceeds file size limit: + limit: 0x87000 bytes + actual: 0x87184 bytes + excess: 0x184 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1

[PATHv11 41/43] mach-mtmips: inc SPL size limit

2023-11-27 Thread Maxim Uvarov
Increase board limit on 0x200 to fit new IP stack. Signed-off-by: Maxim Uvarov --- arch/mips/mach-mtmips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mach-mtmips/Kconfig b/arch/mips/mach-mtmips/Kconfig index 15b2792e61..2f07e3a491 100644 ---

[PATHv11 40/43] .azure-pipelines: init submodules

2023-11-27 Thread Maxim Uvarov
Azure CI does make testconfig then passes U-Boot sources to docker image. Inside docker image owner of U-Boot files is different, so user doesn't have permissions to update submodules. In this case we can do init before we run test docker image. Signed-off-by: Maxim Uvarov ---

[PATHv11 39/43] Makefile: add dtbs to clean

2023-11-27 Thread Maxim Uvarov
CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 769111bf09..2fc04450c6 100644 --- a/Makefile +++ b/Makefile @@ -2172,7 +2172,8 @@ CLEAN_FILES +=

[PATHv11 38/43] configs/qemu-x86_64_defconfig: increase ROM size

2023-11-27 Thread Maxim Uvarov
When lwIP compiled with debug info enabled U-Boot size overlaps with SPL. Make more room for it. binman: Node '/binman/rom/u-boot-spl-with-ucode-ptr': Offset 0xfffd8000 (4294803456) overlaps with previous entry '/binman/rom/u-boot-dtb' ending at 0xfffd8a40 (4294806080) ImagePosOffset

[PATHv11 37/43] configs/rcar3_ulcb_defconfig: increase size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. u-boot.img exceeds file size limit: limit: 0x10 bytes actual: 0x106c41 bytes excess: 0x6c41 bytes Signed-off-by: Maxim Uvarov --- configs/rcar3_ulcb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATHv11 36/43] configs/gardena-smart-gateway-mt7688_defconfig: increase size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. limit: 0xa bytes actual: 0xa0f54 bytes excess: 0xf54 bytes Signed-off-by: Maxim Uvarov --- configs/gardena-smart-gateway-mt7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATHv11 35/43] configs/linkit-smart-7688_defconfig: increse size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. limit: 0x8 bytes actual: 0x84c58 bytes excess: 0x4c58 bytes Signed-off-by: Maxim Uvarov --- configs/linkit-smart-7688_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/linkit-smart-7688_defconfig

[PATHv11 34/43] configs/bk4r1_defconfig: inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/bk4r1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig index 95f0c30cde..30ab54a849 100644 --- a/configs/bk4r1_defconfig +++

[PATHv11 33/43] configs/am335x_evm_defconfig: inc SPL size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index f048e60f7f..9fd608bd76 100644 --- a/configs/am335x_evm_defconfig +++

[PATHv11 32/43] configs/lsxhl_defconfig: LTO + size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lsxhl_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig index d729bcb530..066f8b16b3 100644 --- a/configs/lsxhl_defconfig +++

[PATHv11 31/43] configs/lschlv2_defconfig: enable LTO and inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/lschlv2_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index d7c77f8a88..7e0c70c6ea 100644 ---

[PATHv11 29/43] configs/am335x_boneblack_vboot_defconfig: enable LTO and increase SPL size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/am335x_boneblack_vboot_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/configs/am335x_boneblack_vboot_defconfig index 531703010a..4f06ed1b76 100644

[PATHv11 30/43] configs/sheevaplug_defconfig: enable LTO and inc size

2023-11-27 Thread Maxim Uvarov
Increase allowed binary size to fit lwip code. Signed-off-by: Maxim Uvarov --- configs/sheevaplug_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/sheevaplug_defconfig b/configs/sheevaplug_defconfig index 2e4901b840..c0b256f3b0 100644 ---

  1   2   >