Re: [PATCH v3 05/25] led: Drop LED_STATUS_BOARD_SPECIFIC

2024-12-06 Thread Peter Robinson
On Tue, 3 Dec 2024 at 19:48, Simon Glass wrote: > On Sat, 2 Nov 2024 at 18:35, Simon Glass wrote: > > > > This is not used by any board and there is a driver model version of > > LEDs. Drop it. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > cmd/legacy_led.c

Re: [PATCH v2 1/5] mbedtls: enable support of hkdf

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:08, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote: Ad

[PATCH] trace: proftool: dump-ftrace should write funcgraph times in ns not us

2024-12-06 Thread Jerome Forissier
When converting a U-Boot trace records file to ftrace function graph format for use by trace-cmd ('proftool -f funcgraph dump-ftrace'), the time associated to each function is incorrectly saved in microseconds instead of nanoseconds. Multuply the value by 1000 to fix the issue. With this change, t

Re: [PATCH] configs: am62x_evm_*: Fix USB DFU configuration

2024-12-06 Thread Siddharth Vadapalli
On Fri, Dec 06, 2024 at 11:44:38AM +0200, Roger Quadros wrote: > > > On 06/12/2024 11:17, Roger Quadros wrote: > > Hello Siddharth, > > > > On 06/12/2024 09:19, Siddharth Vadapalli wrote: [...] > >> 2. With the understanding that "dr_mode" doesn't have to be host/otg for > >> the compatible "s

[PATCH] trace: add support for "trace clear"

2024-12-06 Thread Jerome Forissier
Implement a "trace clear" command to delete the currently accumulated trace data. This comes handy when someone needs to trace a particular command. For example: => trace clear; dhcp; trace pause => trace stats => trace calls 0x0210 0x1000 => tftpput $profbase $profoffset 192.168.0

[PATCH] mbedtls: remove MBEDTLS_HAVE_TIME

2024-12-06 Thread Ilias Apalodimas
When MbedTLS TLS features were added MBEDTLS_HAVE_TIME was defined as part of enabling https:// support. However that pointed to the wrong function which could crash if it received a NULL pointer. Looking closer that function is not really needed, as it only seems to increase the RNG entropy by us

Re: [PATCH] mbedtls: remove MBEDTLS_HAVE_TIME

2024-12-06 Thread Heinrich Schuchardt
On 12/6/24 11:56, Ilias Apalodimas wrote: When MbedTLS TLS features were added MBEDTLS_HAVE_TIME was defined as part of enabling https:// support. However that pointed to the wrong function which could crash if it received a NULL pointer. Looking closer that function is not really needed, as it

Re: [PATCH v3 00/25] led: Remove old status-LED code

2024-12-06 Thread Peter Robinson
On Fri, 6 Dec 2024 at 00:01, Simon Glass wrote: > Hi Peter, > > On Thu, 5 Dec 2024 at 13:36, Peter Robinson wrote: > > > > > > > > On Tue, 3 Dec 2024 at 19:51, Simon Glass wrote: > >> > >> Hi Tom, > >> > >> On Tue, 3 Dec 2024 at 12:48, Tom Rini wrote: > >> > > >> > On Thu, Nov 07, 2024 at 07:3

Re: [PATCH] mbedtls: remove MBEDTLS_HAVE_TIME

2024-12-06 Thread Ilias Apalodimas
Thanks Heinrich On Fri, 6 Dec 2024 at 13:30, Heinrich Schuchardt wrote: > > On 12/6/24 11:56, Ilias Apalodimas wrote: > > When MbedTLS TLS features were added MBEDTLS_HAVE_TIME was defined as part > > of enabling https:// support. However that pointed to the wrong function > > which could crash i

[PATCH 1/1] net: disable MBEDTLS in SPL

2024-12-06 Thread Heinrich Schuchardt
Building SPL fails with MBEDTLS enabled. Currently we don't need it there. Signed-off-by: Heinrich Schuchardt --- include/u-boot/md5.h | 6 -- include/u-boot/sha1.h | 5 +++-- include/u-boot/sha256.h| 5 +++-- include/u-boot/sha512.h| 5 +++-- lib/Makefile

[PATCH] arm: qemu: fix update_info declaration

2024-12-06 Thread Vincent Stehlé
Add a missing comma in the update_info structure declaration. This fixes the following build error when building with EFI_RUNTIME_UPDATE_CAPSULE or EFI_CAPSULE_ON_DISK: board/emulation/qemu-arm/qemu-arm.c:52:9: error: request for member ‘images’ in something not a structure or union Fixes: cc

[PATCH 2/2] efi_loader: efi_net: let efi_net_set_dp properly update the device path

2024-12-06 Thread Adriano Cordova
This commit fixes an use after free introduced in Commit e55a4acb54 (" efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget"). The logic in efi_net_set_dp is reworked so that when the function is invoked it not only changes the value of the static variable net_dp (this is h

[PATCH 0/2] efi_loader: efi_net: Fix net_dp handling

2024-12-06 Thread Adriano Cordova
Fixes commit e55a4acb54e8 ("efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget") which generates an use after free, but first it is necessary to expose efi_reinstall_protocol_interfaces in efi_loader.h, which is done in a separated patch. Adriano Cordova (2): efi_loa

[PATCH 1/2] efi_loader: Expose efi_reinstall_protocol_interface in efi_loader.h

2024-12-06 Thread Adriano Cordova
Signed-off-by: Adriano Cordova --- include/efi_loader.h | 5 + lib/efi_loader/efi_boottime.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index 9afbec35eb..0d858c1e12 100644 --- a/include/efi_loader.h +++ b/include/

Re: [PATCH v2 2/4] net: phy: ksz90x1: Handle ksz9131 LED errata

2024-12-06 Thread Quentin Schulz
Hi Paul, On 12/5/24 7:58 PM, Paul Barker wrote: Hi Marek, Quentin, On 01/12/2024 18:57, Marek Vasut wrote: On 11/25/24 6:23 PM, Quentin Schulz wrote: [...] @@ -446,6 +474,10 @@ static int ksz9131_config(struct phy_device *phydev)   return ret;   } +    ret = ksz9131_led_er

Re: [PATCH v4 2/8] ram: k3-ddrss: Add k3_ddrss_ddr_bank_base_size_calc() to solve 'calculations restricted to 32 bits' issue

2024-12-06 Thread Wadim Egorov
Am 24.10.24 um 18:19 schrieb Bryan Brattlof: On October 24, 2024 thus sayeth Neha Malcom Francis: Hi Bryan On 23/10/24 20:09, Bryan Brattlof wrote: On October 21, 2024 thus sayeth Santhosh Kumar K: As R5 is a 32 bit processor, the RAM banks' base and size calculation is restricted to 32 bits,

Re: [PATCH] rockchip: rk3308-rock-s0: Fix SD-card boot on v1.1 hw revision

2024-12-06 Thread Quentin Schulz
Hi Jonas, On 12/3/24 10:47 PM, Jonas Karlman wrote: BootROM leave GPIO4_D6 configured as SDMMC_PWREN function and DW MMC driver set PWREN high in dwmci_init(). However, HW revision prior to v1.2 must pull GPIO4_D6 low to access sdmmc. For HW revision v1.2 the state of GPIO4_D6 has no impact. U

Re: [PATCH 1/6] ufs: core: include missing include/ufs.h

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Add missing ufs.h causing build warning on some symbols. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index f7d8c40c448c6865b7c04e03bab6f3f93a44a591..31c

Re: [PATCH] configs: am62x_evm_*: Fix USB DFU configuration

2024-12-06 Thread Siddharth Vadapalli
On Fri, Dec 06, 2024 at 11:17:28AM +0200, Roger Quadros wrote: > Hello Siddharth, > > On 06/12/2024 09:19, Siddharth Vadapalli wrote: [...] > > While this fixes the issue, I am wondering if the issue lies elsewhere. > > In U-Boot, the compatible "snps,dwc3" is associated with: > > drivers/usb/ho

Re: [PATCH 5/6] ufs: core: sync unipro.h with Linux v6.12

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Sync unipro.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Signed-off-by: Neil Armstrong --- Acked-

Re: [PATCH 4/6] ufs: core: move ufshci defines in a separate header

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Splitting the header will help synchronizing the defines again with Linux. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.h| 329 +- drivers/ufs/ufshci.h | 334

Re: [PATCH 2/6] ufs: core: mark unexported functions as static

2024-12-06 Thread Neil Armstrong
On 06/12/2024 08:55, Neha Malcom Francis wrote: On 20/11/24 14:52, Neil Armstrong wrote: Mark the remaining local functions as static to avoid build warnings. Signed-off-by: Neil Armstrong ---   drivers/ufs/ufs.c | 26 +-   1 file changed, 13 insertions(+), 13 deletions(

[PATCH] usb: xhci-dwc3: Bail out if "dr_mode" is "peripheral"

2024-12-06 Thread Siddharth Vadapalli
Since the compatible "snps,dwc3" can be specified in the device-tree for the Designware USB Controller configured for not only Host and OTG modes of operation, but also for Peripheral mode of operation, bail out if "dr_mode" is "peripheral". Signed-off-by: Siddharth Vadapalli --- Hello, This pa

Re: [PATCH] configs: am62x_evm_*: Fix USB DFU configuration

2024-12-06 Thread Roger Quadros
Hello Siddharth, On 06/12/2024 09:19, Siddharth Vadapalli wrote: > On Tue, Dec 03, 2024 at 10:40:29PM +0200, Roger Quadros wrote: > > Hello Roger, > >> CONFIG_USB_XHCI_DWC3 is not required for AM62x as the XHCI >> driver is registered through the dwc3-generic driver. >> >> CONFIG_USB_XHCI_DWC3 c

Re: [PATCH 3/6] ufs: core: cosmetic fixups

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Fixes some alignment warnings, missing comments on write barrier, missing parenthesis around macro parameters and a comment typo. No functional changes intended. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c| 16 ++-- drivers/uf

Re: [PATCH 2/6] ufs: core: mark unexported functions as static

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Mark the remaining local functions as static to avoid build warnings. Signed-off-by: Neil Armstrong --- drivers/ufs/ufs.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/

Re: [PATCH 6/6] ufs: core: sync ufshci.h with Linux v6.12

2024-12-06 Thread Neha Malcom Francis
On 20/11/24 14:52, Neil Armstrong wrote: Sync ufshci.h with the version found in the Linux v6.12 version commit adc218676eef ("Linux 6.12"). It adds new defines, and moves defines to the same place as the Linux header. No functional changes intended. Signed-off-by: Neil Armstrong --- Acked-

Re: [PATCH] configs: am62x_evm_*: Fix USB DFU configuration

2024-12-06 Thread Roger Quadros
On 06/12/2024 11:17, Roger Quadros wrote: > Hello Siddharth, > > On 06/12/2024 09:19, Siddharth Vadapalli wrote: >> On Tue, Dec 03, 2024 at 10:40:29PM +0200, Roger Quadros wrote: >> >> Hello Roger, >> >>> CONFIG_USB_XHCI_DWC3 is not required for AM62x as the XHCI >>> driver is registered throug

RE: [PATCH 1/6] Revert "spi: zynq_qspi: Add parallel memories support in QSPI driver"

2024-12-06 Thread Abbarapu, Venkatesh
> -Original Message- > From: Jon Humphreys > Sent: Friday, December 6, 2024 10:04 AM > To: Abbarapu, Venkatesh ; Marek Vasut > ; Simek, Michal ; u- > b...@lists.denx.de; Tom Rini > Cc: Andre Przywara ; Ashok Reddy Soma > ; Jagan Teki ; > Michael Walle ; Patrice Chotard > ; Patrick Dela

Re: [PATCH v2 2/5] lib: sha256: add feature sha256_hmac

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:11, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote: Add

Re: [PATCH v2 3/5] test: lib: add test for sha256_hamc

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:14, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, Typo  "sha256_hamc" in the subject line. thanks a lot, I wi

[PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Simon Glass
This series allows rpi to boot a compressed Ubuntu kernel with ~100MB ramdisk, by expanding the available space. It also tidies up some strange behaviour with the provided FDT, where a separate pointer is maintained to it, even though U-Boot has copied it and placed it in its own space. This avoid

[PATCH 2/3] fdt: Allow expanding the devicetree during relocation

2024-12-06 Thread Simon Glass
Some boards set fdt_high to -1 which means that the FDT is not relocated in boot_relocate_fdt(). A comment in that function says that we assume there is space after the existing fdt to use for padding, with the padding size set to CONFIG_SYS_FDT_PAD However, there is no guarantee that this space

[PATCH 1/3] rpi: Update environment to support booti and large initrd

2024-12-06 Thread Simon Glass
The existing values don't provide for decompressing an arm64 boot-image. Add those values and move things apart a bit so that a 50MB kernel can be accomodated. Signed-off-by: Simon Glass --- board/raspberrypi/rpi/rpi.env | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --g

Re: [Upstream] [PATCH v2 1/6] arm: imx8m: add OP-TEE node

2024-12-06 Thread Yannic Moog
Hi Adam, On Wed, 2024-11-13 at 07:06 +, Yannic Moog wrote: > On Mon, 2024-11-11 at 04:49 -0600, Adam Ford wrote: > > On Mon, Nov 11, 2024 at 1:48 AM Yannic Moog wrote: > > > > > > Hi, > > > > > > On Fri, 2024-11-08 at 10:05 -0800, Tim Harvey wrote: > > > > On Fri, Nov 8, 2024 at 5:49 AM Ada

[PATCH 3/3] rpi: Use the U-Boot control FDT for fdt_addr

2024-12-06 Thread Simon Glass
The fdt_addr variable is used in extlinux as a fallback devicetree if none is provided by the boot command. The existing mechanism uses the devicetree provided to U-Boot, but in its original, unrelocated position. For the rpi_4 I am using, this is at 2b35ef00 which is not a convenient place in mem

Re: [PATCH v2] board: rockchip: add Khadas Edge2 RK3588 board

2024-12-06 Thread Quentin Schulz
Hi Jacobe, On 12/4/24 10:45 AM, Jacobe Zang wrote: [You don't often get email from jacobe.z...@wesion.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas. There are tree variants dep

Re: [PATCH v2 4/5] lib: mbedtls: sha256: add support of key derivation

2024-12-06 Thread Philippe REYNES
Hi Raymond, Le 05/12/2024 à 18:18, Raymond Mao a écrit : *This Mail comes from Outside of SoftAtHome: *Do not answer, click links or open attachments unless you recognize the sender and know the content is safe.** Hi Philippe, On Wed, 4 Dec 2024 at 12:54, Philippe Reynes wrote: Add

Re: [PATCH 2/3] fdt: Allow expanding the devicetree during relocation

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 06:11:12AM -0700, Simon Glass wrote: [snip] > A comment in that function says that we assume there is space after the > existing fdt to use for padding, with the padding size set to > CONFIG_SYS_FDT_PAD > > However, there is no guarantee that this space is available. If us

Re: [PATCH v1 1/1] driver: clk: tegra: init basic clocks on probe

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 08:01:15AM +0200, Svyatoslav Ryhel wrote: > In case DM drivers probe earlier than board clock setup is done > init of basic clocks should be done in CAR driver probe as well. > Add it to avoid possible clock related problems. > > Signed-off-by: Svyatoslav Ryhel > --- > d

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 06:11:10AM -0700, Simon Glass wrote: > This series allows rpi to boot a compressed Ubuntu kernel with ~100MB > ramdisk, by expanding the available space. > > It also tidies up some strange behaviour with the provided FDT, where a > separate pointer is maintained to it, eve

Re: [PATCH v2 0/8] led: update LED boot/activity to new property implementation

2024-12-06 Thread Tom Rini
On Sun, 10 Nov 2024 12:50:19 +0100, Christian Marangi wrote: > This series is split in 2 part. > > While adapting the LED boot and activity code to the new property > accepted by Rob in dt-schema repository, a big BUG was discovered. > > The reason wasn't clear at start and took me some days to

[PATCH v3 00/10] SMBIOS improvements

2024-12-06 Thread Raymond Mao
Motivations for changes: Current SMBIOS library and command-line tool is not fully matching with the requirements: 1. Missing support for other mandatory types (#7, #9, #16, #17, #19). 2. Only a few platforms support SMBIOS node from the device tree. 3. Values of some fields are hardcoded in the li

[PATCH V6 2/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP

2024-12-06 Thread Christoph Niedermaier
The new i.MX8M Plus DHCOM rev.200 is populated with M24C32-D EEPROM that contains an additional write-lockable page called ID page, which is populated with a structure containing ethernet MAC addresses, DH item number and DH serial number. Because the write-lockable page is not present on rev.100

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Simon Glass
Hi Tom, On Fri, 6 Dec 2024 at 12:41, Tom Rini wrote: > > On Fri, Dec 06, 2024 at 12:17:49PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 6 Dec 2024 at 07:08, Tom Rini wrote: > > > > > > On Fri, Dec 06, 2024 at 06:11:10AM -0700, Simon Glass wrote: > > > > > > > This series allows rpi to

Re: [PATCH v2 3/8] sysinfo: Add sysinfo driver and data structure for smbios

2024-12-06 Thread Simon Glass
Hi Raymond, On Fri, 6 Dec 2024 at 08:54, Raymond Mao wrote: > > Hi Simon, > > On Fri, 6 Dec 2024 at 10:31, Simon Glass wrote: >> >> Hi Raymond, >> >> On Thu, 5 Dec 2024 at 10:28, Raymond Mao wrote: >> > >> > Hi Simon, >> > >> > On Mon, 28 Oct 2024 at 13:04, Simon Glass wrote: >> >> >> >> Hi Ra

Re: Applying patches to mainline (Was: Re: [PATCH v2 0/7] efi_loader: Add support for logging to a buffer)

2024-12-06 Thread Simon Glass
Hi Tom, On Fri, 6 Dec 2024 at 13:12, Tom Rini wrote: > > On Fri, Dec 06, 2024 at 12:19:38PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 4 Dec 2024 at 09:27, Tom Rini wrote: > > > > > > On Wed, Dec 04, 2024 at 08:13:04AM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue,

Re: [PATCH] ram: k3-ddrss: drop debug() in timing-sensitive sequence

2024-12-06 Thread Tom Rini
On Fri, 15 Nov 2024 10:43:15 +0100, Théo Lebrun wrote: > Those debug() calls might be useful, but beware. They can cause the DDR > controller to hang if we do not run the sequence quickly enough. > > They usually are not an issue with upstream U-Boot and the default DDR > config, but they have be

Re: [PATCH V2] env: Switch the callback static list to Kconfig

2024-12-06 Thread Tom Rini
On Wed, 20 Nov 2024 17:01:35 +0100, Christoph Niedermaier wrote: > Switch the callback static list from the board configuration variable > CFG_ENV_CALLBACK_LIST_STATIC to Kconfig CONFIG_ENV_CALLBACK_LIST_STATIC. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH 0/3] PLL Sequencing update

2024-12-06 Thread Tom Rini
On Thu, 21 Nov 2024 17:32:50 +0530, Manorit Chawdhry wrote: > It has done a re-write of the full driver and the commits aren't split > to keep the bisectability intact. > > Boot Logs: > https://gist.github.com/manorit2001/1eaba109d722715a233244da693133d3 > > Applied to u-boot/next, thanks! -

Re: [PATCH 0/3] board: ti: k3-am65: covert last board to OF_UPSTREAM

2024-12-06 Thread Tom Rini
On Thu, 21 Nov 2024 15:17:48 -0600, Bryan Brattlof wrote: > This small series converts TI's AM65x reference board to use > CONFIG_OF_UPSTREAM and removes the unused device tree files from > arch/arm/dts. > > Because it's the last board using a AM65x without enabling OF_UPSTREAM > it allows us to

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 05:10:39PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 6 Dec 2024 at 17:00, Tom Rini wrote: > > > > On Fri, Dec 06, 2024 at 04:56:31PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 6 Dec 2024 at 16:52, Tom Rini wrote: > > > > > > > > On Fri, Dec 06, 2024

Re: Applying patches to mainline (Was: Re: [PATCH v2 0/7] efi_loader: Add support for logging to a buffer)

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 04:43:47PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 6 Dec 2024 at 13:12, Tom Rini wrote: > > > > On Fri, Dec 06, 2024 at 12:19:38PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 4 Dec 2024 at 09:27, Tom Rini wrote: > > > > > > > > On Wed, Dec 04, 2024

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Simon Glass
Hi Tom, On Fri, 6 Dec 2024 at 17:00, Tom Rini wrote: > > On Fri, Dec 06, 2024 at 04:56:31PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 6 Dec 2024 at 16:52, Tom Rini wrote: > > > > > > On Fri, Dec 06, 2024 at 04:41:37PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Fri,

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Simon Glass
Hi Tom, On Fri, 6 Dec 2024 at 16:52, Tom Rini wrote: > > On Fri, Dec 06, 2024 at 04:41:37PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Fri, 6 Dec 2024 at 12:41, Tom Rini wrote: > > > > > > On Fri, Dec 06, 2024 at 12:17:49PM -0700, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Fri,

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 04:56:31PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 6 Dec 2024 at 16:52, Tom Rini wrote: > > > > On Fri, Dec 06, 2024 at 04:41:37PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 6 Dec 2024 at 12:41, Tom Rini wrote: > > > > > > > > On Fri, Dec 06, 2024

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 04:41:37PM -0700, Simon Glass wrote: > Hi Tom, > > On Fri, 6 Dec 2024 at 12:41, Tom Rini wrote: > > > > On Fri, Dec 06, 2024 at 12:17:49PM -0700, Simon Glass wrote: > > > Hi Tom, > > > > > > On Fri, 6 Dec 2024 at 07:08, Tom Rini wrote: > > > > > > > > On Fri, Dec 06, 2024

Re: [PATCH v1 1/1] driver: clk: tegra: init basic clocks on probe

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 05:09:19PM +0200, Svyatoslav Ryhel wrote: > пт, 6 груд. 2024 р. о 16:20 Tom Rini пише: > > > > On Fri, Dec 06, 2024 at 08:01:15AM +0200, Svyatoslav Ryhel wrote: > > > > > In case DM drivers probe earlier than board clock setup is done > > > init of basic clocks should be do

Re: [PATCH v2 2/5] lib: sha256: add feature sha256_hmac

2024-12-06 Thread Raymond Mao
Hi Philippe, On Fri, 6 Dec 2024 at 08:11, Philippe REYNES wrote: > Hi Raymond, > Le 05/12/2024 à 18:11, Raymond Mao a écrit : > > > > *This Mail comes from Outside of SoftAtHome: *Do not answer, click links > or open attachments unless you recognize the sender and know the content is > safe. > H

Re: [PATCH 1/6] Revert "spi: zynq_qspi: Add parallel memories support in QSPI driver"

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 09:46:08AM +, Abbarapu, Venkatesh wrote: > > > > -Original Message- > > From: Jon Humphreys > > Sent: Friday, December 6, 2024 10:04 AM > > To: Abbarapu, Venkatesh ; Marek Vasut > > ; Simek, Michal ; u- > > b...@lists.denx.de; Tom Rini > > Cc: Andre Przywara

Re: [PATCH v1 1/2] gpio: add PMIC_GPIO Kconfig option

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 05:40:49PM +0200, Svyatoslav Ryhel wrote: > Add more generic Kconfig option to be enabled by the PMIC drivers > which do not have dedicated GPIO node and use same phandle to refer > to both core driver and GPIO child. > > Signed-off-by: Svyatoslav Ryhel > --- > drivers/g

Re: [PATCH v2 1/4] board/qualcomm: introduce phone config

2024-12-06 Thread Julius Lehmann
On 04.10.24 14:46, Caleb Connolly wrote: Phones don't have keyboards! Introduce a phone-specific config fragment and associated environment file to make U-Boot more useful on these devices. This allows for navigating via the buttons and enabling various USB gadget modes or displaying info about U

Re: [PATCH] trace: add support for "trace clear"

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 11:29:16AM +0100, Jerome Forissier wrote: > Implement a "trace clear" command to delete the currently accumulated > trace data. This comes handy when someone needs to trace a particular > command. For example: > > => trace clear; dhcp; trace pause > => trace stats >

[PATCH v2 2/2] efi_loader: efi_net: let efi_net_set_dp properly update the device path

2024-12-06 Thread Adriano Cordova
This commit fixes an use after free introduced in Commit e55a4acb54 (" efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget"). The logic in efi_net_set_dp is reworked so that when the function is invoked it not only changes the value of the static variable net_dp (this is h

[PATCH v2 1/2] efi_loader: Expose efi_reinstall_protocol_interface in efi_loader.h

2024-12-06 Thread Adriano Cordova
This is done so that the device path protocol interface of the network device can be changed internally by u-boot when a new bootfile gets downloaded. Signed-off-by: Adriano Cordova Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- Changes in v2: added commit message include/

[PATCH v2 0/2] efi_loader: efi_net: Fix net_dp handling

2024-12-06 Thread Adriano Cordova
Fixes commit e55a4acb54e8 ("efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget") which generates an use after free, but first it is necessary to expose efi_reinstall_protocol_interfaces in efi_loader.h, which is done in a separated patch. Adriano Cordova (2): efi_loa

Re: [PATCH v2 2/2] efi_loader: efi_net: let efi_net_set_dp properly update the device path

2024-12-06 Thread Tom Rini
On Fri, Dec 06, 2024 at 02:18:35PM -0300, Adriano Cordova wrote: > This commit fixes an use after free introduced in Commit e55a4acb54 > (" efi_loader: net: set EFI bootdevice device path to HTTP when loaded > from wget"). The logic in efi_net_set_dp is reworked so that when the > function is invo

[PATCH] configs: mvebu_espressobin_ultra-88f3720_defconfig: enable full bootflow functionality

2024-12-06 Thread bschnei
From: Ben Schneider This appliance has multiple devices from which it can boot. Enable full bootflow functionality so users can choose a non-default boot device. Signed-off-by: Ben Schneider --- configs/mvebu_espressobin_ultra-88f3720_defconfig | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH v3 01/10] smbios: Refactor the smbios headfile

2024-12-06 Thread Raymond Mao
Move the smbios field definitions to a separated simple headfile, which is a prerequisite to be included by dts files. Add new definitions for cache information. This patch also includes a few of code optimizations in smbios. Signed-off-by: Raymond Mao --- Changes in v2 - Initial patch. Changes i

[PATCH v3 03/10] test/dm: add sandbox test for sysinfo_get_data

2024-12-06 Thread Raymond Mao
Adding sysinfo_get_data into sandbox ut test dm_test_sysinfo. Signed-off-by: Raymond Mao --- Changes in v3 - Initial patch. drivers/sysinfo/sandbox.c | 19 +++ drivers/sysinfo/sandbox.h | 1 + test/dm/sysinfo.c | 6 ++ 3 files changed, 26 insertions(+) diff --git

[PATCH v3 02/10] sysinfo: Add sysinfo API for accessing data area

2024-12-06 Thread Raymond Mao
Add interface for sysinfo to access a data area from the platform. This is useful to save/read a memory region of platform-specific data. Signed-off-by: Raymond Mao --- Changes in v2 - None. Changes in v3 - Use void pointer to avoid casting. drivers/sysinfo/sysinfo-uclass.c | 20 +++

[PATCH v3 04/10] sysinfo: Add sysinfo driver and data structure for smbios

2024-12-06 Thread Raymond Mao
Add sysinfo driver to retrieve smbios information (Type 4 and 7). So that the smbios library can use it for getting values from the hardware platform instead of device tree. Signed-off-by: Raymond Mao --- Changes in v2 - Move the changes to smbios.c instead of creating new file. - Move the headfi

[PATCH v3 06/10] smbios: add detailed smbios information

2024-12-06 Thread Raymond Mao
Add detailed SMBIOS information as following: 1. Missing fields in Type #3 and #4 2. Type #7 Add support to dynamic length of contained object handles and elements. As SMBIOS is a fundamental feature which is enabled for all boards, in order to avoid increasing rom size, all detailed SMBIOS infor

[PATCH v3 05/10] smbios: Refactor smbios library

2024-12-06 Thread Raymond Mao
Current smbios library does not fully match to the specification. It hardcodes values instead of exposing values from the device. It does not reserve the space to support dynamic length for contained object handles or elements and misses the handling of a few of fields. The refactoring of this pat

[PATCH v3 07/10] armv8: Add arch-specific sysinfo platform driver

2024-12-06 Thread Raymond Mao
Add sysinfo platform driver for all armv8 platforms to retrieve hardware information on processor and cache. Signed-off-by: Raymond Mao Reviewed-by: Simon Glass --- Changes in v2 - Combine with #8(v1) patch. - Remove the handling of the common strings and values. Changes in v3 - None. arch/arm

[PATCH v3 08/10] armv8: Add generic smbios information into the device tree

2024-12-06 Thread Raymond Mao
Add common smbios information that can be used by all armv8 platforms and set it as default for qemu-arm64. >From now smbios library can load values from here for those fields doesn't exist in the sysinfo driver. To run this with QEMU arm64, we need to dump the generated DTB from QEMU first, merge

[PATCH v3 09/10] cmd: update smbios cmd

2024-12-06 Thread Raymond Mao
Update the cmd according to the changes of the smbios library: 1. Refactor smbios cmd print functions to match the content defined by the specification. 2. Add new print functions for Type 3, 4 and 7. 3. Remove the fallback string "Not specified" from smbios_get_string, as the spec requires a

[PATCH v3 10/10] configs: Enable sysinfo for QEMU Arm64

2024-12-06 Thread Raymond Mao
Enable sysinfo smbios by default for arm64. When SYSINFO_SMBIOS is enabled, disable QFW_SMBIOS. Signed-off-by: Raymond Mao Reviewed-by: Simon Glass --- Changes in v2 - None. Changes in v3 - add CONFIG_GENERATE_SMBIOS_TABLE_VERBOSE configs/qemu_arm64_defconfig | 3 +++ drivers/misc/Kconfig

[PATCH V6 4/4] board: dhelectronics: Sync env variable dh_som_serial_number with SN

2024-12-06 Thread Christoph Niedermaier
The env variable "SN" is used to store the serial number on DH electronics SoMs. New SoMs will use the variable "dh_som_serial_number". To ensure compatibility, these env variables are synchronized. This is achieved using callback functions. Signed-off-by: Christoph Niedermaier Reviewed-by: Marek

[PATCH V6 0/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP

2024-12-06 Thread Christoph Niedermaier
The new i.MX8M Plus DHCOM rev.200 is populated with M24C32-D EEPROM that contains an additional write-lockable page called ID page, which is populated with a structure containing ethernet MAC addresses, DH item number and DH serial number. This patch series prepare the device tree of the DHCOM i.M

[PATCH V6 3/4] lib: hashtable: Prevent recursive calling of callback functions

2024-12-06 Thread Christoph Niedermaier
In case there are two variables which each implement env callback that performs env_set() on the other variable, the callbacks will call each other recursively until the stack runs out. Prevent such a recursion from happening. Example which triggers this behavior: static int on_foo(...) { env_set(

[PATCH V6 1/4] arm64: dts: imx8mp: Add aliases for the access to the EEPROM ID page node

2024-12-06 Thread Christoph Niedermaier
The new i.MX8M Plus DHCOM rev.200 is populated with M24C32-D EEPROM that contains an additional write-lockable page called ID page. Add aliases eeprom0wl and eeprom1wl for the access to the EEPROM ID page node. Signed-off-by: Christoph Niedermaier Reviewed-by: Marek Vasut --- Cc: "NXP i.MX U-Boo

Re: [PATCH v4 1/3] aes: Allow to store randomly generated IV in the FIT

2024-12-06 Thread Simon Glass
On Mon, 25 Nov 2024 at 10:47, Paul HENRYS wrote: > > When the initialisation vector is randomly generated, its value shall be > stored in the FIT together with the encrypted data. The changes allow to > store the IV in the FIT also in the case where the key is not stored in > the DTB but retrieved

Re: [PATCH v4 3/3] tools: binman: Add tests for FIT with data encrypted by mkimage

2024-12-06 Thread Simon Glass
On Mon, 25 Nov 2024 at 10:47, Paul HENRYS wrote: > > Test the property 'fit,encrypt' to encrypt FIT data. > > Signed-off-by: Paul HENRYS > --- > Changes for v4: > - Update the tests to use 'fit,encrypt' > > tools/binman/ftest.py | 45 +++ > tools/binman/test/

Re: [PATCH v2 7/7] Makefile: Drop SPL_FIT_GENERATOR support

2024-12-06 Thread Simon Glass
On Fri, 1 Nov 2024 at 03:18, Michal Simek wrote: > > From: Marek Vasut > > The SPL_FIT_GENERATOR is long superseded by binman, drop SPL_FIT_GENERATOR > support as there are no more users. > > Signed-off-by: Marek Vasut > Reviewed-by: Peter Robinson > Reviewed-by: Simon Glass > Signed-off-by: M

Re: [PATCH v4 2/3] tools: binman: add 'fit, encrypt' property to pass keys directory to mkimage

2024-12-06 Thread Simon Glass
On Mon, 25 Nov 2024 at 10:47, Paul HENRYS wrote: > > mkimage can be used for both signing the FIT or encrypt its content and the > option '-k' can be used to pass a directory where both signing and encryption > keys can be retrieved. Adding 'fit,encrypt' property to the 'fit' node, leads > to > t

Re: [PATCH 0/3] rpi: Tidy up booting

2024-12-06 Thread Simon Glass
Hi Tom, On Fri, 6 Dec 2024 at 07:08, Tom Rini wrote: > > On Fri, Dec 06, 2024 at 06:11:10AM -0700, Simon Glass wrote: > > > This series allows rpi to boot a compressed Ubuntu kernel with ~100MB > > ramdisk, by expanding the available space. > > > > It also tidies up some strange behaviour with th

Re: [PATCH] dm: gpio: Return error when pull up/down is requested but set_flags ops is not implmentated

2024-12-06 Thread Tom Rini
On Mon, 21 Oct 2024 17:04:51 +0200, Zixun LI wrote: > Currently in _dm_gpio_set_flags() when set_flags ops is not implemented > direction_output()/_input() is used, but pull up/down is not supported by > these ops. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] eeprom: at24: add ST M24256E Additional Write lockable page support

2024-12-06 Thread Tom Rini
On Fri, 08 Nov 2024 19:52:26 +0100, Marek Vasut wrote: > The ST M24256E behaves as a regular M24C256, except for the E variant > which uses up another I2C address for Additional Write lockable page. > This page is 64 Bytes long and can contain additional data. Add entry > for it, so users can desc

Re: [PATCH] button: gpio: handle broken controller

2024-12-06 Thread Tom Rini
On Wed, 13 Nov 2024 05:59:24 +0100, Caleb Connolly wrote: > Avoid crashing U-Boot when the GPIO controller for a button is disabled > or failed to probe. We also need to check the priv data for each button > since even if a button fails to probe it will still be polled by the > core code. > > A

Re: [PATCH] board: phytec: common: Introduce CONFIG_PHYTEC_K3_DDR_PATCH

2024-12-06 Thread Tom Rini
On Tue, 12 Nov 2024 12:40:23 -0800, Garrett Giordano wrote: > Introduce CONFIG_PHYTEC_K3_DDR_PATCH to make DDR timing patch code > optional for PHYTEC K3 boards. This allows better control over which > boards receive DDR timing patches, rather than compiling the code for > all boards with K3_DDRSS

Re: [PATCH 1/3] aspeed: Fix Kconfig logic on "DM_REGULATOR" and ASPEED_AST2500

2024-12-06 Thread Tom Rini
On Fri, 15 Nov 2024 10:53:57 -0600, Tom Rini wrote: > It is not the case that we can only pick ASPEED_AST2500 if DM_REGULATOR > is enabled, but rather choosing ASPEED_AST2500 means we must select > DM_REGULATOR. > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH] arm: dts: k3-am68: Enable OSPI boot

2024-12-06 Thread Tom Rini
On Tue, 19 Nov 2024 15:17:23 +0530, Udit Kumar wrote: > Enable OSPI node to allow OSPI boot on AM68 > > Applied to u-boot/next, thanks! -- Tom

Re: [PATCH v3 0/5] Add OPP_LOW support for J7200

2024-12-06 Thread Tom Rini
On Tue, 19 Nov 2024 06:02:54 +0530, Aniket Limaye wrote: > This series adds OPP_LOW spec data in k3_avs driver and enables a config > option to select the OPP_LOW performance point. > > J7200 SOC supports OPP_LOW and OPP_NOM as two Operating Performance > Points as per (7.5 Operating Performance

Re: [PATCH 0/5] Enable AVS support for AM68, AM69 and J784S4

2024-12-06 Thread Tom Rini
On Mon, 18 Nov 2024 16:27:09 +0530, Neha Malcom Francis wrote: > This series adds AVS support for AM68 SK, AM69 SK and J784S4 EVM. > > Boot logs: > https://gist.github.com/nehamalcom/db5dbf98357ebac46f648c24ad1a17e2 > > Neha Malcom Francis (4): > arm: dts: k3-j784s4-r5: Add VTM node to R5 stag

Re: [PATCH 2/2] tools: binman: etype: fit: Append DTB directory to the list of input directories

2024-12-06 Thread Simon Glass
Hi Paul, On Mon, 25 Nov 2024 at 11:17, Paul HENRYS wrote: > > When specifying a directory containing DTBs with 'fit,fdt-list-dir', it can be > handy not to have to also specify this directory to the input directories of > binman with '-I' option and use the method tools.append_input_dirs() append

Re: [PATCH 1/2] tools: u_boot_pylib: Allow to append input directories to indir

2024-12-06 Thread Simon Glass
On Mon, 25 Nov 2024 at 11:17, Paul HENRYS wrote: > > append_input_dirs() can be used to append a list of input directories to indir > global list. > > Signed-off-by: Paul HENRYS > --- > tools/u_boot_pylib/tools.py | 16 > 1 file changed, 16 insertions(+) Reviewed-by: Simon Glas

Re: [PATCH v2 1/1] tools: binman: etype: Allow to replace 'NAME' in node names

2024-12-06 Thread Simon Glass
Hi Paul, On Mon, 25 Nov 2024 at 10:54, Paul HENRYS wrote: > > This change allows to replace both 'SEQ' and 'NAME' keywords by respectively a > sequence number and the name of the FDT to provide more flexibility in the > node > name for the device trees included in the FIT. > > Signed-off-by: Pau

Re: [PATCH v2 1/7] binman: Add option for pointing to separate description

2024-12-06 Thread Simon Glass
Hi Michal, On Fri, 1 Nov 2024 at 03:18, Michal Simek wrote: > > Adding binman node with target images description can be unwanted feature > but as of today there is no way to disable it. > Also on size constrained systems it is not useful to add binman description > to DTB. > Introduce BINMAN_DTB

Re: [RFC PATCH] zynqmp: Add binman description for SOM

2024-12-06 Thread Simon Glass
Hi Michal, On Mon, 4 Nov 2024 at 01:32, Michal Simek wrote: > > Hi Simon, > > On 11/2/24 17:28, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 1 Nov 2024 at 14:52, Tom Rini wrote: > >> > >> On Fri, Nov 01, 2024 at 02:09:38PM +0100, Michal Simek wrote: > >>> Hi Simon, > >>> > >>> On 11/1/24 09

  1   2   >