Fit Signature booting without public key

2023-05-16 Thread Manorit Chawdhry
Hi All, I recently came upon a discussion that had happened a while back [0]. I want to continue the discussion as I believe the issue still persists and the checks around fit signature booting are still the same, that allows booting the fit without changing the uboot dtb. Allowing the signed

Re: [PATCH] Fix sparse checks processing

2023-05-16 Thread Christophe Leroy
Le 15/05/2023 à 23:12, Tom Rini a écrit : > On Fri, May 05, 2023 at 10:39:39AM +0200, Christophe Leroy wrote: > >> A lot of errors are encountered when building with sparse checking >> activated (make C=1 or make C=2). >> >> Many of them are fixed in Linux. >> >> Resynchronise Makefile and

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

2023-05-16 Thread Pali Rohár
Happy Birthday for this patch? On Monday 16 May 2022 11:01:19 Pali Rohár wrote: > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board. > > Hardware design is fully open source, all firmware and

Pull request efi-2023-07-rc3

2023-05-16 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit e94fbdd2729fdcd570035d43f67adda8e0dfc115: Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2023-05-11 08:40:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-07-rc3

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

2023-05-16 Thread yanhong wang
On 2023/5/12 13:50, Bo Gan wrote: > On 3/28/23 8:42 PM, Yanhong Wang wrote: >> +void harts_early_init(void) >> +{ >> +    ulong *ptr; >> +    u8 *tmp; >> +    ulong len, remain; >> +    /* >> + * Feature Disable CSR >> + * >> + * Clear feature disable CSR to '0' to turn on all

Re: mmc: Read eMMC partition access bits before card reset

2023-05-16 Thread Pali Rohár
On Sunday 07 May 2023 22:36:16 Pali Rohár wrote: > On Sunday 07 May 2023 12:45:11 Tom Rini wrote: > > On Sun, May 07, 2023 at 04:56:04PM +0200, Pali Rohár wrote: > > > On Sunday 07 May 2023 10:40:44 Tom Rini wrote: > > > > On Sun, May 07, 2023 at 04:01:04PM +0200, Pali Rohár wrote: > > > > > On

Re: [PATCH v3 2/2] firmware: zynqmp: Move config object permission check

2023-05-16 Thread Michal Simek
Hi, first of all sorry for delay. On 4/27/23 12:31, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move the check of the permission to change a config object from zynqmp_pmufw_node function to zynqmp_pmufw_load_config_object function to simplify the code and check the permission

In u-boot proper, what function in int_sequence_r list jumps to linux?

2023-05-16 Thread Chan Kim
Hello u-boot experts, On qemu arm64 virt machine, I can start u-boot-spl and it loads u-boot(proper) from RAM ( CONFIG_SPL_RAM_SUPPORT=y, CONFIG_SPL_RAM_DEVICE=y) and executes it. Previously I have used u-boot-spl and used falcon mode to jump directly to linux on qemu virt machine and on actual

Re: [PATCH v3 7/7] configs: rock5b-rk3588: add PCI drivers and command

2023-05-16 Thread Eugen Hristev
On 5/6/23 12:44, Kever Yang wrote: On 2023/4/27 15:35, Eugen Hristev wrote: Add drivers for PCIe , phy, and command. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- Hi Kever, Do you need me to resend this series as well ? If you need help in applying, or

Re: [PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Josua Mayer
Hi Heinrich, Am 16.05.23 um 14:21 schrieb Heinrich Schuchardt: On 5/16/23 10:27, Josua Mayer wrote: populate_serial_number is not used internally for the tlv_eeprom command, but rather provided as a library function for external use.. Remove the devnum that had recently been added by mistake,

[PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-16 Thread Ashok Reddy Soma
For sf commands, when '0' length is passed for erase, update, write or read, there might be undesired results. Ideally '0' length means nothing to do. So print 'ERROR: Invalid size 0' and return cmd failure when length '0' is passed to sf commands. Same thing applies for nand commands also.

[PATCH] scripts/Makefile.lib: change spelling of $(srctree)/arch/$(ARCH)/dts in dtc_cpp_flags

2023-05-16 Thread Rasmus Villemoes
Currently, all in-tree .dts files (apart from some under test/ and tools/), reside in arch/$ARCH/dts. However, in the linux kernel tree, dts files for arm64 boards, and probably in the not too distant future [1], arm boards as well, live in subdirectories of that. For private forks, using a

[RFC v2 3/3] cmd: tlv_eeprom: port to new shared tlv library

2023-05-16 Thread Josua Mayer
Rewrite tlv_eeprom command for using the new tlv library, and drop all unused functions. From this point on, tlv_eeprom command internal functions shall not be reused externally. mac_read_from_eeprom & populate_serial_number are kept in place for now as is, however these probably deserve a new

Re: [PATCH v3 2/2] firmware: zynqmp: Move config object permission check

2023-05-16 Thread Michal Simek
On 5/16/23 13:23, Stefan Herbrechtsmeier wrote: Hi, Am 16.05.2023 um 10:26 schrieb Michal Simek: Hi, first of all sorry for delay. On 4/27/23 12:31, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move the check of the permission to change a config object from

Re: [PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Heinrich Schuchardt
On 5/16/23 13:49, Josua Mayer wrote: Hi Heinrich, Am 16.05.23 um 14:21 schrieb Heinrich Schuchardt: On 5/16/23 10:27, Josua Mayer wrote: populate_serial_number is not used internally for the tlv_eeprom command, but rather provided as a library function for external use.. Remove the devnum

RE: How should I build u-boot for qemu_arm64_defconfig and run it on arm64 qemu virt machine?

2023-05-16 Thread Chan Kim
Hello all, I found by compiling u-boot-spl to start at 0x4020 and using -kernel option, I can make u-boot-spl start loaded and started from 0x4020. And then by loading the .itb file (FIT file) which contains u-boot proper binary at 0x4040 using -device loader option, and setting

Re: [PATCH v3 2/2] firmware: zynqmp: Move config object permission check

2023-05-16 Thread Stefan Herbrechtsmeier
Hi, Am 16.05.2023 um 10:26 schrieb Michal Simek: Hi, first of all sorry for delay. On 4/27/23 12:31, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Move the check of the permission to change a config object from zynqmp_pmufw_node function to zynqmp_pmufw_load_config_object

Re: [PATCH 3/3] clang: Link with --no-pie instead of --apply-dynamic-relocs

2023-05-16 Thread Sam Edwards
On 5/14/23 09:28, Tom Rini wrote: Hi Tom! How extensively have you tested this change? I tested it in building for the arm/sunxi target. U-Boot does not build at all (on Clang+LLD) in its current state: ld.lld: error: section type mismatch for .gnu.version_r >>> :(.gnu.version_r):

Re: [RFC PATCH 13/17] sunxi: add early Allwinner R528/T113 SoC support

2023-05-16 Thread Sam Edwards
On 12/5/22 17:45, Andre Przywara wrote: diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 3763ec3d2e4..1cda5e2 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -148,6 +148,10 @@ static int gpio_init(void)

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-16 Thread Sam Edwards
Hi Andre! Thank you for your efforts on this patchset; I've been test-driving it a bit myself this week. On 12/5/22 17:45, Andre Przywara wrote: +#define SUNXI_RTC_BASE 0x0700 +#define SUNXI_R_CPUCFG_BASE0x07000400 +#define SUNXI_PRCM_BASE

Re: [PATCH] sunxi: Fix typo in include guard

2023-05-16 Thread Sam Edwards
On 5/15/23 03:48, Andre Przywara wrote: Ahoy, Andre! > How did you find this? Just by accident? I was wondering if we could > check the tree automatically for those accidents. I found it both automatically and by accident. :) My cross-compiler of choice is Clang (as I don't have to

RE: [External] - Re: Issues with bcm2835-host: let firmware manage the clock divisor

2023-05-16 Thread Vincent Fazio
Stefan > -Original Message- > From: Stefan Wahren > Sent: Tuesday, May 16, 2023 12:54 AM > To: Vincent Fazio ; Nuno Gonçalves > ; u-boot@lists.denx.de; pbrobin...@gmail.com > Subject: Re: [External] - Re: Issues with bcm2835-host: let firmware manage > the clock divisor > > Am 15.05.23

[PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Josua Mayer
populate_serial_number is not used internally for the tlv_eeprom command, but rather provided as a library function for external use.. Remove the devnum that had recently been added by mistake, returning the function to its original signature. Instead place a 0-initialised member variable inside

Re: [PATCH] cmd: tlv_eeprom: fix signature for populate_serial_number function

2023-05-16 Thread Heinrich Schuchardt
On 5/16/23 10:27, Josua Mayer wrote: populate_serial_number is not used internally for the tlv_eeprom command, but rather provided as a library function for external use.. Remove the devnum that had recently been added by mistake, returning the function to its original signature. Instead place

[RFC v2 1/3] lib: add tlv_eeprom library

2023-05-16 Thread Josua Mayer
Create a new tlv library by rewriting parts, and reusing other parts of the tlv_eeprom command. This library is intended to simplify reading tlv data during system initialisation from board files, as well as increase maintainability by defining a clear API and functionally decouple from the

[RFC v2 2/3] mvebu: clearfog: convert tlv parsing to use new library

2023-05-16 Thread Josua Mayer
Update the existing code reading tlv data from eeprom to use the new tlv library functions rather than relying on tlv_eeprom command internals. Signed-off-by: Josua Mayer --- board/solidrun/common/tlv_data.c | 46 configs/clearfog_defconfig | 4 ++- 2

[RFC v2 0/3] lib: tlv_eeprom: refactor API

2023-05-16 Thread Josua Mayer
The existing tlv_eeprom functionality has been designed as a single application living as a uboot command. The split into individual library and command, as well as attempts using this functionality extensively for board-identification have revealed several short-comings, such as: - Inconsistent

Re: mmc: Read eMMC partition access bits before card reset

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 09:04:27AM +0200, Pali Rohár wrote: > On Sunday 07 May 2023 22:36:16 Pali Rohár wrote: > > On Sunday 07 May 2023 12:45:11 Tom Rini wrote: > > > On Sun, May 07, 2023 at 04:56:04PM +0200, Pali Rohár wrote: > > > > On Sunday 07 May 2023 10:40:44 Tom Rini wrote: > > > > > On

[GIT PULL] xilinx patches for v2023.07-rc3

2023-05-16 Thread Michal Simek
Hi Tom, please pull these changes to your tree. CI is not showing any issue. https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/16372 Thanks, Michal The following changes since commit 177e506952a8ee34011590c4bd578d191fafb1ca: Merge branch

Re: [PATCH] include: Remove unused header files

2023-05-16 Thread Eugen Hristev
On 5/16/23 16:09, Tom Rini wrote: On Tue, May 16, 2023 at 04:08:10PM +0300, Eugen Hristev wrote: On 5/15/23 21:01, Tom Rini wrote: As part of various code clean-ups we have on occasion missed removing unused header files. None of these files are referenced anywhere else at this point.

Re: [RESEND PATCH v2 2/2] samsung: common: do not reset if cros-ec uclass is missing

2023-05-16 Thread Tom Rini
On Tue, May 09, 2023 at 09:05:47PM +0200, Henrik Grimler wrote: > Otherwise non-ChromeOS samsung devices, like the odroid boards, are > stuck in a bootloop if CONFIG_CROS_EC is not enabled: > > <...> > MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 > Loading Environment from MMC... ***

Re: [PATCH] video: tweak CONFIG_SPL_VIDEO description

2023-05-16 Thread Tom Rini
On Tue, May 09, 2023 at 12:02:50PM +0100, John Keeping wrote: > Make it clear that this is the SPL option to avoid potential confusion > when the description for CONFIG_SPL_VIDEO is the same as that for > CONFIG_VIDEO. > > Signed-off-by: John Keeping Applied to u-boot/master, thanks! -- Tom

Re: [RESEND PATCH v2 1/2] Revert "mmc: s5p_sdhci: unset the SDHCI_QUIRK_BROKEN_R1B"

2023-05-16 Thread Tom Rini
On Tue, May 09, 2023 at 09:05:46PM +0200, Henrik Grimler wrote: > This reverts commit a034ec06ff1d558bbe11d5ee05edbb4de3ee2215. > > Commit 4a3ea75de4c5 ("Revert "mmc: sdhci: set to INT_DATA_END when > there are data"") reverted the alternative fix that was added for > Exynos 4 devices, causing

Re: [GIT PULL] xilinx patches for v2023.07-rc3

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 02:59:29PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these changes to your tree. > CI is not showing any issue. > https://source.denx.de/u-boot/custodians/u-boot-microblaze/-/pipelines/16372 > > Thanks, > Michal > > The following changes since commit

[PATCH v3 2/2] firmware: zynqmp: Move permission to change config object message

2023-05-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move the permission to change a config object message from zynqmp_pmufw_load_config_object function to zynqmp_pmufw_node function to simplify the code and check the permission only if required. Signed-off-by: Stefan Herbrechtsmeier --- Changes in v4: - Reword -

[PATCH v3 1/2] firmware: zynqmp: Remove extraordinary return value

2023-05-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Return a common -EACCES error value instead of a positive private error value XST_PM_NO_ACCESS (2002) in zynqmp_pmufw_load_config_object function if the config object is not loadable to simplify the error checking. Signed-off-by: Stefan Herbrechtsmeier --- (no

[RFC PATCH] mmc: zynq_sdhci: Dependable card detect

2023-05-16 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier The card detect logic needs a short card present signal to work dependable. Without a present card the SDHCI_CARD_STATE_STABLE signal is not set dependable after a reset. Use the internal fixed card present signal to initiate the card detect logic. Signed-off-by:

[PATCH v2] arm64: versal-net: Detect and display bootmode

2023-05-16 Thread Ashok Reddy Soma
Read boodmode register using versal_net_get_bootmode() in board_late_init and prepare corresponding distro boot command sequence based on it. versal_net_get_bootmode() will be changed to use smc calls later, but for now directly reads the register. Signed-off-by: Ashok Reddy Soma --- Changes

Re: [PATCH v3 1/3] Move bootorder and bootoption apis to lib

2023-05-16 Thread Raymond Mao
Hi Ilias, I think we can address Heinrich's comments in a follow up patch set. The concerns are more related to refactoring on the logic of existing functions and less to the functionality we want to enable with these patches. Thanks. Regards, Raymond On Tue, 16 May 2023 at 01:58, Ilias

Re: [PATCH v3 3/3] Load option with short device path for boot vars

2023-05-16 Thread Raymond Mao
Hi Ilias, On Tue, 16 May 2023 at 01:57, Ilias Apalodimas wrote: > Hi Raymond, > > On Tue, May 02, 2023 at 12:12:21PM -0700, Raymond Mao wrote: > > The boot variables automatically generated for removable medias > > should be with short form of device path without device nodes. > > This is a

Re: [PATCH v3 2/3] Boot var automatic management for removable medias

2023-05-16 Thread Raymond Mao
Hi Ilias, On Tue, 16 May 2023 at 01:59, Ilias Apalodimas wrote: > On Tue, May 02, 2023 at 12:12:19PM -0700, Raymond Mao wrote: > > Changes for complying to EFI spec §3.5.1.1 > > 'Removable Media Boot Behavior'. > > Boot variables can be automatically generated during a removable > > media is

Re: [V3,1/1] riscv: Increase the upper bound of NR_CPUS to 4095

2023-05-16 Thread Heinrich Schuchardt
On 2/13/23 09:43, Leo Yu-Chi Liang wrote: From: Xiang W The maximum hart number is 32 and is determined by the type of gd->arch.available_harts. However, various RISC-V specifications allow the hart number to be greater than 32. We can eliminate this limitation through bitmaps. The patch

Re: [PATCH 13/14] rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash

2023-05-16 Thread Eugen Hristev
Hi Jonas, On 5/9/23 14:16, Kever Yang wrote: On 2023/4/22 09:23, Jonas Karlman wrote: Add sfc and flash node to device tree and config options to enable support for booting from SPI NOR flash on Radxa ROCK 5 Model B. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever

Re: [PATCH] drivers: core: ofnode: fix typo in panel timing decode

2023-05-16 Thread Tom Rini
On Thu, May 11, 2023 at 04:36:52PM +0200, Patrick Delaunay wrote: > From: Raphael Gallais-Pou > > In case where a single timing resolution is implemented in the > device-tree, the property is named "panel-timing", as specify > in Linux kernel binding file: > >

Re: [PATCH v3] environment: ti: rproc: fix remoteproc environment variables

2023-05-16 Thread Tom Rini
On Mon, May 15, 2023 at 12:22:42PM +0530, Manorit Chawdhry wrote: > During refactor this seemed to have been missed. > > Fixes: 65dbb128fb45 ("include: environment: ti: Use .env for environment > variables") > > Signed-off-by: Manorit Chawdhry Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v10] core: fdtaddr: use map_sysmem() as cast for the return (part 2)

2023-05-16 Thread Tom Rini
On Wed, May 10, 2023 at 11:48:44PM +0200, Johan Jonker wrote: > For the devfdt_get_addr_size_index_ptr() function use > map_sysmem() function as cast for the return for use in > sandbox. > > Signed-off-by: Johan Jonker Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: Fit Signature booting without public key

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 12:11:24PM +0530, Manorit Chawdhry wrote: > Hi All, > > I recently came upon a discussion that had happened a while back [0]. > I want to continue the discussion as I believe the issue still persists > and the checks around fit signature booting are still the same, that >

Re: [PATCH] include: Remove unused header files

2023-05-16 Thread Eugen Hristev
On 5/15/23 21:01, Tom Rini wrote: As part of various code clean-ups we have on occasion missed removing unused header files. None of these files are referenced anywhere else at this point. Signed-off-by: Tom Rini --- arch/arm/include/asm/arch-bcmcygnus/configs.h | 18 -

Re: [PATCH] include: Remove unused header files

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 04:08:10PM +0300, Eugen Hristev wrote: > On 5/15/23 21:01, Tom Rini wrote: > > As part of various code clean-ups we have on occasion missed removing > > unused header files. None of these files are referenced anywhere else > > at this point. > > > > Signed-off-by: Tom

[PATCH 1/1] config: CONFIG_SPL_SIZE_LIMIT for VisionFive 2

2023-05-16 Thread Heinrich Schuchardt
The size of SPL including the 1 KiB header added by spl_tool may not exceed 128 KiB. Without the header this leaves 127 KiB for spl/u-boot-spl.bin. We should check this value when building to avoid oversized binaries. Signed-off-by: Heinrich Schuchardt ---

Re: [PATCH] include: Remove unused header files

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 04:15:18PM +0300, Eugen Hristev wrote: > On 5/16/23 16:09, Tom Rini wrote: > > On Tue, May 16, 2023 at 04:08:10PM +0300, Eugen Hristev wrote: > > > On 5/15/23 21:01, Tom Rini wrote: > > > > As part of various code clean-ups we have on occasion missed removing > > > > unused

Re: envtools lack extra settings since commit 86b9c3e4e4 ("env: Allow U-Boot scripts to be placed in

2023-05-16 Thread Tom Rini
On Thu, May 11, 2023 at 08:16:49AM +0200, Christophe Leroy wrote: > After converting my targets from CFG_EXTRA_ENV_SETTINGS to > CONFIG_EXTRA_ENV_TEXT as suggested by Tom, I discovered that > fw_setenv doesn't set the entire defaut environment anymore. > > I tried to fix it with the below patch,

Re: Pull request efi-2023-07-rc3

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 08:37:28AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit e94fbdd2729fdcd570035d43f67adda8e0dfc115: > > Merge https://source.denx.de/u-boot/custodians/u-boot-x86 (2023-05-11 > 08:40:33 -0400) > > are available in the Git

[PATCH] mmc: Do not read eMMC partition access bits by default on OMAP2PLUS and BCM283X

2023-05-16 Thread Pali Rohár
OMAP2PLUS and BCM283X mmc controllers do not work correctly with new emmc code which reads partition access bits prior mmc controller reset. So introduce a new config option MMC_ENABLE_PART_ACCESS, which is by default disabled for ARCH_OMAP2PLUS and ARCH_BCM283X; and selected for 32-bit mvebu mmc

Re: [PATCH 3/4] usb: Move SPL_USB_GADGET and related Kconfig symbols to drivers/usb/

2023-05-16 Thread Tom Rini
On Sat, May 06, 2023 at 04:42:39PM +0200, Marek Vasut wrote: > To avoid piling up all the various Kconfig symbols in one place, i.e. > common/spl/Kconfig, move the USB Kconfig symbols into drivers/usb/ . > This commit moves SPL_USB_GADGET and related symbols. Fix typo and > rename SPL_USB_GADGET

Re: [PATCH 1/4] usb: Move SPL_USB_HOST Kconfig symbol to drivers/usb/

2023-05-16 Thread Tom Rini
On Sat, May 06, 2023 at 04:42:37PM +0200, Marek Vasut wrote: > To avoid piling up all the various Kconfig symbols in one place, i.e. > common/spl/Kconfig, move the USB Kconfig symbols into drivers/usb/ . > This commit moves SPL_USB_HOST and updates help text of both USB_HOST > and SPL_USB_HOST .

Re: [PATCH 2/4] usb: Move SPL_USB_STORAGE Kconfig symbol to drivers/usb/

2023-05-16 Thread Tom Rini
On Sat, May 06, 2023 at 04:42:38PM +0200, Marek Vasut wrote: > To avoid piling up all the various Kconfig symbols in one place, i.e. > common/spl/Kconfig, move the USB Kconfig symbols into drivers/usb/ . > This commit moves SPL_USB_STORAGE and matching SYS_USB_FAT_BOOT_PARTITION . > >

[PATCH v2] arm: mach-k3: am625_init: Add Erratum WA for RTC startup

2023-05-16 Thread Bryan Brattlof
From: Nishanth Menon In the first silicon revision of the am62x family of SoCs, the hardware wakeup event cannot be used if software is unable to unlock the RTC device within one second after boot. To work around this limitation unlock RTC as soon as possible in the boot flow to maximize our

[PULL] u-boot-sh/next_gpio

2023-05-16 Thread Marek Vasut
The following changes since commit 5d0b3dde115b0d26d414199678983d01b738ad1b: Merge branch '2023-05-15-build-system-updates' into next (2023-05-15 15:26:54 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git next_gpio for you to fetch

Re: [RFC PATCH 13/17] sunxi: add early Allwinner R528/T113 SoC support

2023-05-16 Thread Andre Przywara
On Mon, 15 May 2023 20:52:23 -0600 Sam Edwards wrote: Hi Sam, > On 12/5/22 17:45, Andre Przywara wrote: > > diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c > > index 3763ec3d2e4..1cda5e2 100644 > > --- a/arch/arm/mach-sunxi/board.c > > +++

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-16 Thread Andre Przywara
On Mon, 15 May 2023 20:32:52 -0600 Sam Edwards wrote: Hi Sam, > Hi Andre! Thank you for your efforts on this patchset; I've been > test-driving it a bit myself this week. many thanks for having a look, that's much appreciated! > On 12/5/22 17:45, Andre Przywara wrote: > > > +#define

Re: [PATCH 13/14] rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash

2023-05-16 Thread Jonas Karlman
On 2023-05-16 21:13, Eugen Hristev wrote: > On 5/16/23 20:38, Jonas Karlman wrote: >> Hi Eugen, >> >> On 2023-05-16 17:06, Eugen Hristev wrote: >>> Hi Jonas, >>> >>> On 5/9/23 14:16, Kever Yang wrote: On 2023/4/22 09:23, Jonas Karlman wrote: > Add sfc and flash node to device tree

Re: mmc: Read eMMC partition access bits before card reset

2023-05-16 Thread Pali Rohár
On Tuesday 16 May 2023 14:56:46 Tom Rini wrote: > On Tue, May 16, 2023 at 08:52:23PM +0200, Pali Rohár wrote: > > On Tuesday 16 May 2023 11:36:20 Tom Rini wrote: > > > On Tue, May 16, 2023 at 09:04:27AM +0200, Pali Rohár wrote: > > > > On Sunday 07 May 2023 22:36:16 Pali Rohár wrote: > > > > > On

Re: [PATCH 13/14] rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash

2023-05-16 Thread Jonas Karlman
Hi Eugen, On 2023-05-16 17:06, Eugen Hristev wrote: > Hi Jonas, > > On 5/9/23 14:16, Kever Yang wrote: >> >> On 2023/4/22 09:23, Jonas Karlman wrote: >>> Add sfc and flash node to device tree and config options to enable >>> support for booting from SPI NOR flash on Radxa ROCK 5 Model B. >>> >>>

Re: [PATCH] Fix sparse checks processing

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 06:18:56AM +, Christophe Leroy wrote: > > > Le 15/05/2023 à 23:12, Tom Rini a écrit : > > On Fri, May 05, 2023 at 10:39:39AM +0200, Christophe Leroy wrote: > > > >> A lot of errors are encountered when building with sparse checking > >> activated (make C=1 or make

Re: mmc: Read eMMC partition access bits before card reset

2023-05-16 Thread Tom Rini
On Tue, May 16, 2023 at 08:52:23PM +0200, Pali Rohár wrote: > On Tuesday 16 May 2023 11:36:20 Tom Rini wrote: > > On Tue, May 16, 2023 at 09:04:27AM +0200, Pali Rohár wrote: > > > On Sunday 07 May 2023 22:36:16 Pali Rohár wrote: > > > > On Sunday 07 May 2023 12:45:11 Tom Rini wrote: > > > > > On

Re: [PATCH 1/1] config: CONFIG_SPL_SIZE_LIMIT for VisionFive 2

2023-05-16 Thread Heinrich Schuchardt
On 5/16/23 21:33, Bo Gan wrote: On 5/16/23 6:11 AM, Heinrich Schuchardt wrote: The size of SPL including the 1 KiB header added by spl_tool may not exceed 128 KiB. Without the header this leaves 127 KiB for spl/u-boot-spl.bin. We should check this value when building to avoid oversized

Re: [External] - Re: Issues with bcm2835-host: let firmware manage the clock divisor

2023-05-16 Thread Peter Robinson
On Mon, May 15, 2023 at 1:10 PM Vincent Fazio wrote: > > All > > > -Original Message- > > From: Stefan Wahren > > Sent: Sunday, May 14, 2023 1:55 PM > > To: Nuno Gonçalves ; u-boot@lists.denx.de; Vincent > > Fazio ; pbrobin...@gmail.com > > Subject: [External] - Re: Issues with

[PATCH 3/3] doc: fix loady man-page

2023-05-16 Thread Heinrich Schuchardt
* loady may return $? = 1. * Move misplaced description Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/loady.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/usage/cmd/loady.rst b/doc/usage/cmd/loady.rst index 718af6e128..3f8227ecf2 100644 ---

[PATCH 2/3] doc: loadx man-page

2023-05-16 Thread Heinrich Schuchardt
Provide a man-page for the loadx command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/loadx.rst | 77 + doc/usage/index.rst | 1 + 2 files changed, 78 insertions(+) create mode 100644 doc/usage/cmd/loadx.rst diff --git

[PATCH 1/3] doc: loadb man-page

2023-05-16 Thread Heinrich Schuchardt
Provide a man-page for the loadb command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/loadb.rst | 70 + doc/usage/index.rst | 1 + 2 files changed, 71 insertions(+) create mode 100644 doc/usage/cmd/loadb.rst diff --git

Re: [PATCH 4/4] usb: gadget: Add and use matching SPL USB ethernet gadget Kconfig symbols

2023-05-16 Thread Tom Rini
On Sat, May 06, 2023 at 04:42:40PM +0200, Marek Vasut wrote: > Define SPL_USB_ETH_RNDIS symbol to make it possible to select USB > gadget ethernet support in SPL and U-Boot separately in Kconfig . > Make use of the new symbols in gadget Makefile and move the rndis.o > just below the now merged

Re: [PATCH 13/14] rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash

2023-05-16 Thread Eugen Hristev
On 5/16/23 20:38, Jonas Karlman wrote: Hi Eugen, On 2023-05-16 17:06, Eugen Hristev wrote: Hi Jonas, On 5/9/23 14:16, Kever Yang wrote: On 2023/4/22 09:23, Jonas Karlman wrote: Add sfc and flash node to device tree and config options to enable support for booting from SPI NOR flash on

Re: mmc: Read eMMC partition access bits before card reset

2023-05-16 Thread Pali Rohár
On Tuesday 16 May 2023 11:36:20 Tom Rini wrote: > On Tue, May 16, 2023 at 09:04:27AM +0200, Pali Rohár wrote: > > On Sunday 07 May 2023 22:36:16 Pali Rohár wrote: > > > On Sunday 07 May 2023 12:45:11 Tom Rini wrote: > > > > On Sun, May 07, 2023 at 04:56:04PM +0200, Pali Rohár wrote: > > > > > On

Re: [PATCH] gpio: renesas: Simplify .request/.rfree callbacks

2023-05-16 Thread Pali Rohár
PING? Another patch mentioned today which stay there for more than 8 months? On Tuesday 02 August 2022 12:06:55 Pali Rohár wrote: > Remove identify wrapper functions. > > Signed-off-by: Pali Rohár > --- > drivers/gpio/gpio-rcar.c | 15 ++- > 1 file changed, 2 insertions(+), 13

Re: [PATCH 1/1] config: CONFIG_SPL_SIZE_LIMIT for VisionFive 2

2023-05-16 Thread Bo Gan
On 5/16/23 6:11 AM, Heinrich Schuchardt wrote: The size of SPL including the 1 KiB header added by spl_tool may not exceed 128 KiB. Without the header this leaves 127 KiB for spl/u-boot-spl.bin. We should check this value when building to avoid oversized binaries. +CONFIG_SPL_SIZE_LIMIT=0x1fc00

Re: [PATCH v2 0/4] Remove misuse of env is nowhere driver

2023-05-16 Thread Tom Rini
On Tue, 02 May 2023 12:23:01 +0200, Stefan Herbrechtsmeier wrote: > From: Stefan Herbrechtsmeier > > > When using a list of writeable variables, the initial values come from > the built-in default environment since commit 5ab81058364b > ("env: Complete generic support for writable list").

Re: [PULL] u-boot-sh/next_gpio

2023-05-16 Thread Tom Rini
On Wed, May 17, 2023 at 01:48:49AM +0200, Marek Vasut wrote: > The following changes since commit 5d0b3dde115b0d26d414199678983d01b738ad1b: > > Merge branch '2023-05-15-build-system-updates' into next (2023-05-15 > 15:26:54 -0400) > > are available in the Git repository at: > >

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-16 Thread Andre Przywara
On Tue, 16 May 2023 17:53:38 -0600 Sam Edwards wrote: Hi Sam, > On 5/16/23 15:08, Andre Przywara wrote: > > This whole memory map is somewhat of a legacy. Apart from a few > > addresses for the SPL needs we shouldn't have those defines at all. > > Some symbols are needed because there are other

[PATCH 3/4] usb: gadget: ether: Move probe function above driver structure

2023-05-16 Thread Marek Vasut
Move the driver probe function above the driver structure, so it can be placed alongside other related functions, like upcoming remove function. No functional change. Signed-off-by: Marek Vasut --- Cc: Kevin Hilman Cc: Lukasz Majewski Cc: Marek Vasut Cc: Simon Glass ---

[PATCH 1/4] cmd: bind: Add unbind command with driver filter

2023-05-16 Thread Marek Vasut
Extend the driver core to perform lookup by both OF node and driver bound to the node. Use this to look up specific device instances to unbind from nodes in the unbind command. One example where this is needed is USB peripheral controller, which may have multiple gadget drivers bound to it. The

[PATCH 2/4] usb: gadget: ether: Inline functions used once

2023-05-16 Thread Marek Vasut
These functions here are only ever called once since drop of non-DM networking code. Inline them. No functional change. Signed-off-by: Marek Vasut --- Cc: Kevin Hilman Cc: Lukasz Majewski Cc: Marek Vasut Cc: Simon Glass --- drivers/usb/gadget/ether.c | 48

Re: [PATCH 00/14] rockchip: rk35xx: Update defconfigs and enable boot from SPI NOR flash

2023-05-16 Thread Kever Yang
Hi Jonas, On 2023/5/10 14:48, Jonas Karlman wrote: Looks like the following two commits in your enablement efforts tree may be a source of some of these dependency conflicts. - rockchip: rk3588-rock-5b: Add spi nor flash node - ARM: dts: rockchip: rk3588-rock-5b-u-boot: enable SPI flash in SPL

[PATCH 4/4] usb: gadget: ether: Handle gadget driver registration in probe and remove

2023-05-16 Thread Marek Vasut
Move the ethernet gadget driver registration and removal from ethernet bind and unbind callbacks into driver DM probe and remove callbacks. This way, when the driver is bound, which is triggered deliberately using 'bind' command, the USB ethernet gadget driver is instantiated and bound to the

Re: [PATCH v4 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc

2023-05-16 Thread Kever Yang
On 2023/5/15 21:44, Eugen Hristev wrote: To be able to initialize the pinctrl correctly at SPL level and read u-boot proper from SD-Card, the pinctrl must be initialized. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v4: - rebased on latest master:

Re: [PATCH v4 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL

2023-05-16 Thread Kever Yang
On 2023/5/15 21:44, Eugen Hristev wrote: Add pinctrl driver in SPL. Do not remove pinctrl properties for SPL dtb. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v4: - rebased on master: Warning ! This is rebased on top of the USB 2.0 series ! Changes

Re: [RFC PATCH 08/17] sunxi: introduce NCAT2 generation model

2023-05-16 Thread Sam Edwards
On 5/16/23 15:08, Andre Przywara wrote: This whole memory map is somewhat of a legacy. Apart from a few addresses for the SPL needs we shouldn't have those defines at all. Some symbols are needed because there are other macros using them, although these then are eventually unused. I have some

Re: [PATCH 1/1] config: CONFIG_SPL_SIZE_LIMIT for VisionFive 2

2023-05-16 Thread Bo Gan
@Heinrich Some background information I discovered by experimenting with my vf2 board: The only reasonable place to load SPL is the L2 LIM, which is 2M in size mapped at 0x800. This region consists of 16 0x2 sized regions, each one can be used as either L2 cache way or SRAM (not

Re: [PATCH v3 7/7] configs: rock5b-rk3588: add PCI drivers and command

2023-05-16 Thread Kever Yang
Hi Eugen, On 2023/5/16 17:20, Eugen Hristev wrote: On 5/6/23 12:44, Kever Yang wrote: On 2023/4/27 15:35, Eugen Hristev wrote: Add drivers for PCIe , phy, and command. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- Hi Kever, Do you need me to resend this

Re: [tiU23.04 PATCH 0/4] HS booting cleanup

2023-05-16 Thread Chawdhry, Manorit
Kindly ignore the series Regards, Manorit From: Chawdhry, Manorit Sent: Wednesday, May 17, 2023 10:31:42 AM To: Nagalla, Hari; Raghavendra, Vignesh; Brattlof, Bryan Cc: Chawdhry, Manorit; u-boot@lists.denx.de; Kumar, Udit; Bajjuri, Praneeth; Francis, Neha

[tiU23.04 PATCH 4/4] configs: enable signed fit booting across all k3 socs

2023-05-16 Thread Manorit Chawdhry
We are moving towards the standard fit signature booting that requires the following configs to be enabled, enable them in all k3 socs to allow signed fit booting. Signed-off-by: Manorit Chawdhry --- boot/Kconfig | 3 +-- configs/am62ax_evm_a53_defconfig | 2 ++

[tiU23.04 PATCH 1/4] configs: remove explicit not set of setexpr

2023-05-16 Thread Manorit Chawdhry
Keeping this line in defconfigs doesn't allow the Kconfig values to be reflected, remove these to enabled use of setexpr used for fit image booting. Signed-off-by: Manorit Chawdhry --- configs/j7200_evm_a72_defconfig | 1 - configs/j721e_evm_a72_defconfig | 1 -

[tiU23.04 PATCH 2/4] configs: keep the bootcmd consistent across jacinto

2023-05-16 Thread Manorit Chawdhry
Since moving towards distroboot, we need a way to boot using the legacy methods too so keep the bootcmd consistent across devices to keep both the flows running. Signed-off-by: Manorit Chawdhry --- configs/j7200_evm_a72_defconfig | 2 +- configs/j721e_evm_a72_defconfig | 2 +-

[tiU23.04 PATCH 3/4] configs: j7*: remove saved environments

2023-05-16 Thread Manorit Chawdhry
Having saved environments usually causes inconsistencies while development workflow. The saved environments conflict with the default ones that uboot should be updating while development but that doesn't happen and the saved environments need to be reset during bootups to test the changes causing

[tiU23.04 PATCH 0/4] HS booting cleanup

2023-05-16 Thread Manorit Chawdhry
Test results http://lcpdresults.itg.ti.com/launcher/results/14057 Cc: u-boot@lists.denx.de To: Hari Nagalla To: Vignesh Raghavendra To: Bryan Brattlof Cc: Udit Kumar Cc: Praneeth Bajjuri Cc: Neha Malcom Francis Signed-off-by: Manorit Chawdhry --- Manorit Chawdhry (4): configs: