Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2023-04-18 Thread Rasmus Villemoes
On 19/04/2023 03.49, Simon Glass wrote: > Hi Rasmus, > > Returning to this old thread... > >> >> There's no problematic device tree, having two nodes with the same >> (base)name is perfectly fine and in fact sometimes expected/required (in >> the cases where a node name is standardized; e.g.

Re: [PATCH 12/23] arm: dts: k3-am642-r5-sk: Use am642-sk.dts and k3-am642-sk-u-boot.dtsi

2023-04-18 Thread Manorit Chawdhry
On 07:34-20230418, Nishanth Menon wrote: > On 14:45-20230418, Manorit Chawdhry wrote: > > Hi Nishanth, > > > > On 14/04/23 13:27, Nishanth Menon wrote: > > > Use am642-sk.dts to represent the Board and selectively enable/override > > > the configurations ne

[PATCH v2 08/42] x86: Correct get_sp() implementation for 64-bit

2023-04-18 Thread Simon Glass
Use an assembler implementation as is done for i386, so that the results are equivalent. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index

[PATCH v2 37/42] x86: link: Support Micron memory

2023-04-18 Thread Simon Glass
Add the required tag so that micron memory can be set up correctly. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to support Micron memory arch/x86/dts/chromebook_link.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/dts/chromebook_link.dts

[PATCH v2 40/42] sandbox: Correct header order in board file

2023-04-18 Thread Simon Glass
Fix the header order in this file. Signed-off-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index 2e44bdf0df3e..e72d8164ebf6 100644 ---

[PATCH v2 42/42] efi: Use the installed ACPI tables

2023-04-18 Thread Simon Glass
U-Boot sets up the ACPI tables during startup. Rather than creating a new set, install the existing ones. Create a memory-map record to cover the tables. Signed-off-by: Simon Glass --- Changes in v2: - Drop patch to set high bits of the mtrr base register, for now lib/efi_loader/efi_acpi.c |

[PATCH v2 38/42] x86: Make sure that the LPC is active before SDRAM init

2023-04-18 Thread Simon Glass
Some boards need to access GPIOs to determine which SDRAM is fitted to the board, for example chromebook_link. Probe this device (if it exists) to make sure that this works as expected. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to make sure that the LPC is active before

[PATCH v2 36/42] x86: Convert some debug statements to use logging

2023-04-18 Thread Simon Glass
Move from using debug() to log_debug() so that we don't have to use the __func__ parameter and can access other logging features. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to convert some debug statements to use logging arch/x86/cpu/intel_common/mrc.c | 10 +-

[PATCH v2 39/42] log: Support outputing function names in SPL

2023-04-18 Thread Simon Glass
The output is garbled when tiny printf() is used. Correct this by adding a special case. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to support outputing function names in SPL common/log_console.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH v2 35/42] x86: Show the number of physical address bits

2023-04-18 Thread Simon Glass
Add this information to global_data and show it with the 'bdinfo' command. For now we use CONFIG_CPU_ADDR_BITS to control the number of bits, but this could change if needed. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to show the number of physical address bits

[PATCH v2 34/42] x86: Record the start and end of the tables

2023-04-18 Thread Simon Glass
The ACPI tables are special in that they are passed to EFI as a separate piece, independent of other tables. Also they can be spread over two areas of memory, e.g. with QEMU we end up with tables kept in high memory as well. Add new global_data fields to hold this information and update the

[PATCH v2 32/42] fs: fat: Support reading from a larger block size

2023-04-18 Thread Simon Glass
At present it is not possible to read from some CDROM drives since the FAT sector size does not match the media's block size. Add a conversion option for this, so that reading is possible. This does increase SPL size for read-only FAT support by 25 bytes but all but 6 are covered by the previous

[PATCH v2 31/42] fs: fat: Shrink the size of a few strings

2023-04-18 Thread Simon Glass
To save a few bytes, replace Error with ** and try to use the same string for multiple messages where possible. Signed-off-by: Simon Glass --- Changes in v2: - Drop ** in strings and use log_err() for messages fs/fat/fat.c | 20 +++- fs/fat/fat_write.c | 14

[PATCH v2 41/42] sandbox: Install ACPI tables on startup

2023-04-18 Thread Simon Glass
With x86 we set up the ACPI tables on startup so they can be examined. Do the same with sandbox, so it is consistent. Signed-off-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.c | 16 1 file changed, 16 insertions(+) diff --git a/board/sandbox/sandbox.c

[PATCH v2 30/42] x86: Allow logging to be used in SPL reliably

2023-04-18 Thread Simon Glass
When global_data is relocated, log_head moves in memory, meaning that the items in that list point to the wrong place. Disable logging when making the change, then reenable it afterwards, so that logging works normally. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/spl.c

[PATCH v2 29/42] x86: Enable display for QEMU 64-bit

2023-04-18 Thread Simon Glass
Enable the various options needed for display to work on the qemu-x86_64 board. This includes expanding the available malloc() memory in SPL, since the PCI bus must be enumerated in order to find the video device. It also includes enabling a bloblist, so that the video parameters can be passed.

[PATCH v2 27/42] pci: Adjust video BIOS debugging to be SPL-friendly

2023-04-18 Thread Simon Glass
A hex value is expected for the VGA mode. Drop the 0x prefix, which is not supported in SPL. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index

[PATCH v2 28/42] pci: Mask the ROM address in case it is already enabled

2023-04-18 Thread Simon Glass
In some cases the video ROM may have been enabled previously, such as by a previous firmware stage. Use the correct address in that case. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci_rom.c

[PATCH v2 26/42] x86: Init video in SPL if enabled

2023-04-18 Thread Simon Glass
When video is required in SPL, set this up ready for use. Ignore any problems since it may be that video is not actually available and we still want to continue on to U-Boot proper in that case. Make sure that the SPL banner is only shown once. Signed-off-by: Simon Glass --- (no changes since

[PATCH v2 25/42] x86: Pass video settings from SPL to U-Boot proper

2023-04-18 Thread Simon Glass
When video is set up in SPL, U-Boot proper needs to use the correct parameters so it can write to the display. Put these in a bloblist so they are available to U-Boot proper. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c | 78

[PATCH v2 24/42] x86: Allow video-BIOS code to be built for SPL

2023-04-18 Thread Simon Glass
With qemu-x86_64 we need to run the video BIOS while in 32-bit mode, i.e. SPL. Add a Kconfig option for this, adjust the Makefile rules and use CONFIG_IS_ENABLED() where needed. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/Makefile | 7 --- arch/x86/lib/bios.c | 2

[PATCH v2 33/42] x86: Enable useful options for qemu-86_64

2023-04-18 Thread Simon Glass
This build can be used to boot standard distro builds, since these are mostly 64-bit these days. Enable some more options, so that all possible EFI UUIDs are decoded, we get a proper printf() in SPL, can search memory for tables, support the full set of standard-boot features, have full logging

[PATCH v2 23/42] pci: Tidy up logging and reporting for video BIOS

2023-04-18 Thread Simon Glass
When running the ROM the code is not very helpful when something goes wrong. Add a little more debugging and some logging of return values to improve this. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/pci_rom.c | 12 +--- 1 file changed, 9 insertions(+), 3

[PATCH v2 22/42] pci: Allow the video BIOS to work in SPL with QEMU

2023-04-18 Thread Simon Glass
QEMU emulates two common machines (Q35 and i440fx) which use mapping to determine whether RAM is present below 1MB. In order to copy the video BIOS to c we need to flip this mapping over to RAM. This does not happen automatically until SPL has finished running. Switch in RAM at these address

[PATCH v2 21/42] pci: Support autoconfig in SPL

2023-04-18 Thread Simon Glass
Allow PCI autoconfig to be handled in SPL, so that we can set it up correctly for boards which need to do this before U-Boot proper. This includes qemu-x64_64 which needs to set up the video device while in 32-bit mode. Signed-off-by: Simon Glass --- (no changes since v1) drivers/pci/Kconfig

[PATCH v2 20/42] nvme: Provide more useful debugging messages

2023-04-18 Thread Simon Glass
When scanning fails it is useful to be able to decode what went wrong. Add some debugging for this. Signed-off-by: Simon Glass --- (no changes since v1) drivers/nvme/nvme.c | 36 ++-- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git

[PATCH v2 19/42] Show the malloc base with the bdinfo command

2023-04-18 Thread Simon Glass
It is useful to see the base of the malloc region. This is visible when debugging but not in normal usage. Add it to the global data so that it can be shown. Signed-off-by: Simon Glass --- (no changes since v1) cmd/bdinfo.c | 1 + common/board_r.c | 7

[PATCH v2 18/42] x86: Improve the trampoline in 64-bit mode

2023-04-18 Thread Simon Glass
At present this leaves the stack at the pre-relocation value. This is not ideal since we want to have U-Boot running entirely from the top of memory. In addition, the new global_data pointer is not actually used, since the global_data pointer itself is relocated, then the pre-relocation value is

[PATCH v2 15/42] video: Allow building video drivers for SPL

2023-04-18 Thread Simon Glass
Update the Makefile rules to allow video drivers in SPL. This is useful for 64-bit QEMU on x86, since the video BIOS can only be run from 32-bit mode (i.e. in SPL). Signed-off-by: Simon Glass --- (no changes since v1) drivers/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v2 17/42] efi: Show all known UUIDs with CONFIG_CMD_EFIDEBUG

2023-04-18 Thread Simon Glass
The CMD_EFIDEBUG option enables debugging so it is reasonable to assume that all effects should be made to decode the dreaded UUIDs favoured by UEFI. Update the table to show them all when CONFIG_CMD_EFIDEBUG is enabled. Signed-off-by: Simon Glass --- (no changes since v1) lib/uuid.c | 2 +-

[PATCH v2 16/42] qfw: Set the address of the ACPI tables

2023-04-18 Thread Simon Glass
Once the ACPI tables have been set up, record their address so that it is possible to list them with 'acpi list'. Signed-off-by: Simon Glass --- (no changes since v1) drivers/misc/qfw.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index

[PATCH v2 13/42] qfw: Show the file address if available

2023-04-18 Thread Simon Glass
Some files have an associated address. Show this with the 'qfw list' command so that it is possible to dump the data. Signed-off-by: Simon Glass --- (no changes since v1) cmd/qfw.c | 2 +- doc/usage/cmd/qfw.rst | 28 2 files changed, 17 insertions(+),

[PATCH v2 14/42] log: Tidy up an ambiguous comment.

2023-04-18 Thread Simon Glass
Add a a bit more detail so it is clear that multiple devices are supported, but only one per driver. Signed-off-by: Simon Glass --- (no changes since v1) common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log.c b/common/log.c index

[PATCH v2 12/42] part: Allow setting the partition-table type

2023-04-18 Thread Simon Glass
Some devices have multiple partition types available on the same media. It is sometimes useful to see these to check that everything is working correctly. Provide a way to manually set the partition-table type, avoiding the auto-detection process. Signed-off-by: Simon Glass --- (no changes

[PATCH v2 11/42] bdinfo: Show the RAM top and approximate stack pointer

2023-04-18 Thread Simon Glass
These are useful pieces of information when debugging. The RAM top shows where U-Boot started allocating memory from, before it relocated. The stack pointer can be checked to ensure it is in the correct region. Signed-off-by: Simon Glass --- (no changes since v1) cmd/Kconfig | 8

[PATCH v2 10/42] acpi: Add a comment to set the acpi tables

2023-04-18 Thread Simon Glass
Sometimes a previous bootloader has written ACPI tables. It is useful to be able to find and list these. Add an 'acpi set' command to set the address for these tables. Signed-off-by: Simon Glass --- (no changes since v1) cmd/acpi.c | 24 +---

[PATCH v2 05/42] x86: Tidy up EFI code in interrupt_init()

2023-04-18 Thread Simon Glass
The ll_boot_init() check handles the EFI case so we don't need the rest of the code. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/i386/interrupt.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/arch/x86/cpu/i386/interrupt.c

[PATCH v2 07/42] x86: Show the CPU physical address size with bdinfo

2023-04-18 Thread Simon Glass
This is useful information so show it with the bdinfo command. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/lib/bdinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c index 15390070fe85..0970efa4726f 100644 ---

[PATCH v2 04/42] bios_emulator: Drop VIDEO_IO_OFFSET

2023-04-18 Thread Simon Glass
This is always zero in the source tree, so drop it. While we are here, add a comment to _X86EMU_env since it the symbol is actually defined twice, which can cause confusion when building. Signed-off-by: Simon Glass --- (no changes since v1) drivers/bios_emulator/biosemui.h | 18

[PATCH v2 09/42] x86: Show an error when a BIOS exception occurs

2023-04-18 Thread Simon Glass
Rather than silently hanging, show an error first. This can happen when there is something wrong with the video BIOS. Signed-off-by: Simon Glass --- Changes in v2: - Fix BINS typo - Drop the Ooops string arch/x86/lib/bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 06/42] x86: Add a comment for board_init_f_r_trampoline()

2023-04-18 Thread Simon Glass
Add a comment for this function in the header. Change the function (and the one after) to use __noreturn to keep checkpatch happy. Add docs to board_init_f_r() while we are here. Signed-off-by: Simon Glass --- Changes in v2: - Add docs to board_init_f_r() too

[PATCH v2 03/42] bios_emulator: Add Kconfig and adjust Makefile for SPL

2023-04-18 Thread Simon Glass
The Kconfig for this is currently inside a particular board. Move it into the correct place and allow use in SPL, so that video can be used there if needed. Signed-off-by: Simon Glass --- (no changes since v1) board/google/Kconfig | 7 --- drivers/Kconfig | 2 ++

[PATCH v2 02/42] x86: mtrr: Add documentation

2023-04-18 Thread Simon Glass
Add documention for the x86 'mtrr' command. Signed-off-by: Simon Glass Suggested-by: Heinrich Schuchardt --- Changes in v2: - Add new patch with docs for mtrr command doc/usage/cmd/mtrr.rst | 151 + doc/usage/index.rst| 1 + 2 files changed, 152

[PATCH v2 01/42] x86: Allow listing MTRRs in SPL

2023-04-18 Thread Simon Glass
Move MTRR-listing code into a common file so it can be used from SPL. Update the 'mtrr' command to call it. Use this in SPL just before adjusting the MTRRs, so we can see the state set up by the board. Only show it when debug is enabled. Signed-off-by: Simon Glass --- (no changes since v1)

[PATCH v2 00/42] x86: Use qemu-x86_64 to boot EFI installers

2023-04-18 Thread Simon Glass
This series adds various minor features so that qemu-x86_64 can boot the Ubuntu 2022.04 installer using a virtio device: qemu-system-x86_64 -M pc -drive format=raw,file=root.img -bios /tmp/b/qemu-x86_64/u-boot.rom -drive if=virtio,file=ubuntu-22.04.2-desktop-amd64.iso

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-18 Thread Jassi Brar
On Tue, 18 Apr 2023 at 20:46, Simon Glass wrote: > > Hi, > > On Fri, 14 Apr 2023 at 07:53, Michal Simek wrote: > > > > > > > > On 4/10/23 06:25, Jassi Brar wrote: > > > On Wed, 29 Mar 2023 at 15:02, Simon Glass wrote: > > >> > > >> Hi, > > >> > > >> On Tue, 28 Mar 2023 at 10:16, wrote: > > >>>

Re: Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-18 Thread Neuber Sousa
Thanks ButI've already done that and it didn't help at all. I also have the results of bdinfo command and cat /proc/iomem in it has not helped me Em ter., 18 de abr. de 2023 22:50, Simon Glass escreveu: > Hi Neuber, > > On Mon, 10 Apr 2023 at 14:59, Neuber Sousa wrote: > > > > >

Re: [PATCH 1/1] sandbox: correct posix_types.h define

2023-04-18 Thread Simon Glass
On Mon, 17 Apr 2023 at 01:09, Heinrich Schuchardt wrote: > > arch/arm/include/asm/posix_types.h and > arch/sandbox/include/asm/posix_types.h should use different defines. > > Add SPDX header. > > Signed-off-by: Heinrich Schuchardt > --- > arch/sandbox/include/asm/posix_types.h | 7 --- > 1

Re: [PATCH v2] spl: fit: Report fdt error for loading u-boot

2023-04-18 Thread Simon Glass
Hi, On Tue, 11 Apr 2023 at 04:24, Su, Bao Cheng wrote: > > Dear all, > > Any updates or new comments on this? How should I proceed? This expands error reporting, so I think this is better than what we have. Reviewed-by: Simon Glass More comments below. > > BRs/Baocheng Su > > On Thu,

Re: [PATCH v3 08/25] menu: Make use of CLI character processing

2023-04-18 Thread Simon Glass
Hi Daniel, On Tue, 11 Apr 2023 at 14:19, Daniel Golle wrote: > > On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote: > > Avoid duplicating some of the escape-sequence processing here and use the > > CLI function instead. > > > > Signed-off-by: Simon Glass > > --- > > > > [...] > > diff

Re: [PATCH v2 0/1] meson: Demonstration of using binman to produce the image

2023-04-18 Thread Simon Glass
Hi Da, On Fri, 7 Apr 2023 at 21:34, Da Xue wrote: > > On Wed, Apr 5, 2023 at 2:39 PM Simon Glass wrote: > > > > Hi Christian, > > > > On Mon, 3 Apr 2023 at 20:10, Christian Hewitt > > wrote: > > > > > > > On 2 Apr 2023, at 6:41 am, Simon Glass wrote: > > > > > > > > Hi Mark, > > > > > > > >

Re: [PATCH v11 08/10] arm_ffa: introduce armffa command Sandbox test

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add Sandbox test for the armffa command > > Signed-off-by: Abdellatif El Khlifi > Reviewed-by: Simon Glass > Cc: Tom Rini > Cc: Simon Glass > Cc: Ilias Apalodimas > Cc: Jens Wiklander > > --- > Changelog: >

Re: [PATCH v11 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add functional test cases for the FF-A support > > These tests rely on the FF-A sandbox emulator and FF-A > sandbox driver which help in inspecting the FF-A communication. > > Signed-off-by: Abdellatif El Khlifi > Cc: Tom Rini > Cc:

Re: [PATCH v11 06/10] arm_ffa: introduce sandbox FF-A support

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support > > Features of the sandbox FF-A support: > > - Introduce an FF-A emulator > - Introduce an FF-A device driver for FF-A comms with emulated Secure

Re: [PATCH] ata: pci: enable bus mastering

2023-04-18 Thread Simon Glass
On Tue, 11 Apr 2023 at 06:55, Bin Meng wrote: > > On Tue, Apr 11, 2023 at 7:23 PM Christian Gmeiner > wrote: > > > > The non DM code path already would enable pci bus mastering. Do the > > same for the DM code path. > > > > Fixes AHCI problems I am seeing on an Intel Apollolake device. > > > >

Re: Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-18 Thread Simon Glass
Hi Neuber, On Mon, 10 Apr 2023 at 14:59, Neuber Sousa wrote: > > https://stackoverflow.com/questions/71073386/reading-file-would-overwrite-reserved-memory-failed-to-load-hello-world-bin > > Hi, > > I had this issue last year and I solved it via device tree. However, I used > Yocto hardknott and

Re: [PATCH v2 3/7] sandbox64: fix: return unsigned long in readq()

2023-04-18 Thread Simon Glass
On Mon, 17 Apr 2023 at 03:12, Abdellatif El Khlifi wrote: > > make readq return unsigned long > > readq should return 64-bit data > > Signed-off-by: Abdellatif El Khlifi > --- > arch/sandbox/cpu/cpu.c| 2 +- > arch/sandbox/include/asm/io.h | 2 +- > 2 files changed, 2 insertions(+), 2

Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance

2023-04-18 Thread Simon Glass
Hi Filip, On Tue, 11 Apr 2023 at 14:24, Filip Žaludek wrote: > > > > On 2/8/23 20:01, Mark Kettenis wrote: > >> Date: Wed, 8 Feb 2023 19:45:36 +0100 > >> From: Michal Suchánek > >> > >> Hello, > >> > >> On Wed, Jan 18, 2023 at 05:01:12PM +0100, Filip Žaludek wrote: > >>> > >>> > >>> Hi Michal,

Re: using binman sym for size of u-boot itb

2023-04-18 Thread Simon Glass
Hi Rasmus, On Fri, 3 Mar 2023 at 03:25, Rasmus Villemoes wrote: > > On imx8mp, binman is heavily used for the assembling of all the various > pieces. Partly for my own future reference: > > There's u-boot-spl-ddr which is u-boot-spl.bin with the DDR firmware > blobs tacked on at the end, and the

Re: [PATCH v2 3/3] net: share fastboot boot handle logic between transports

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 12:49, Dmitrii Merkurev wrote: > > Introduce reboot, boot and continue commands support to > TCP fastboot by moving existing UDP logic into the common module. > > Signed-off-by: Dmitrii Merkurev > Cc: Ying-Chun Liu (PaulLiu) > Cc: Simon Glass > Сс: Joe Hershberger > Сс:

Re: [PATCH] Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

2023-04-18 Thread Simon Glass
Hi Rasmus, On Mon, 1 Aug 2022 at 07:13, Rasmus Villemoes wrote: > > On 31/07/2022 15.28, Tom Rini wrote: > > On Sat, Jul 30, 2022 at 07:27:26PM -0600, Simon Glass wrote: > >> Hi Tom, > >> > > >> Shall I pick it up for the upcoming release? > > > > I don't think we should pick up the revert as I

Re: [PATCH v11 04/10] arm_ffa: introduce Arm FF-A support

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 > > The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] > describes interfaces (ABIs) that standardize communication > between

Re: [PATCH v11 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Add MM communication support using FF-A transport > > This feature allows accessing MM partitions services through > EFI MM communication protocol. MM partitions such as StandAlonneMM > or smm-gateway secure partitions

Re: [PATCH v11 05/10] arm_ffa: introduce armffa command

2023-04-18 Thread Simon Glass
Hi Abdellatif, On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > Provide armffa command showcasing the use of the U-Boot FF-A support > > armffa is a command showcasing how to invoke FF-A operations. > This provides a guidance to the client developers on how to > call the FF-A bus

Re: [PATCH v5 4/4] test/py: efi_capsule: test for FMP versioning

2023-04-18 Thread Simon Glass
Hi Masahisa, On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima wrote: > > This test covers FMP versioning for both raw and FIT image, > and both signed and non-signed capsule update. > > Signed-off-by: Masahisa Kojima > --- > Changes in v5: > - get aligned to the device tree based versioning > >

Re: [PATCH 16/30] ide: Avoid preprocessor for CONFIG_LBA48

2023-04-18 Thread Simon Glass
Hi Mattijs, On Tue, 28 Mar 2023 at 08:18, Mattijs Korpershoek wrote: > > On mar., mars 28, 2023 at 08:07, Simon Glass wrote: > > > Use IS_ENABLED() instead for all conditions. Add the 'lba48' flag into > > struct blk_desc always, since it uses very little space. Use a bool so > > the meaning is

Re: [PATCH v11 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 03:43, Abdellatif El Khlifi wrote: > > provide a test case > > Signed-off-by: Abdellatif El Khlifi > Cc: Simon Glass > > --- > Changelog: > === > > v11: > > * use ut_asserteq_mem() > > MAINTAINERS | 5 + > test/lib/Makefile | 1 + >

Re: [PATCH v3 3/3] test: eth: IPv6 network discovery unit test

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 10:10, wrote: > > From: Ehsan Mohandesi > > Test router advertisement validation and processing functions. > > Signed-off-by: Ehsan Mohandesi > --- > test/dm/eth.c | 88 > +++ > 1 file changed, 88 insertions(+)

Re: [PATCH v2 2/3] net: dhcp6: pxe: Add DHCP/PXE commands for IPv6

2023-04-18 Thread Simon Glass
Hi Sean, On Mon, 10 Apr 2023 at 18:03, Sean Edmond wrote: > > > On 2023-04-07 11:55 a.m., Simon Glass wrote: > > Hi Sean, > > > > On Fri, 7 Apr 2023 at 18:56, wrote: > >> From: Sean Edmond > >> > >> Adds commands to support DHCP and PXE with IPv6. > >> > >> New configs added: > >> - CMD_DHCP6

Re: Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-18 Thread Simon Glass
Hi Neuber, On Sun, 9 Apr 2023 at 07:02, neuber sousa wrote: > > https://stackoverflow.com/questions/71073386/reading-file-would-overwrite-reserved-memory-failed-to-load-hello-world-bin > > > Hi, > > I had this issue last year and I solved it via device tree. However, I > used Yocto hardknott and

Re: [PATCH v1 4/4] board: asus: grouper: add Google Nexus 7 (2012) support

2023-04-18 Thread Simon Glass
Hi Svyatoslav, On Wed, 12 Apr 2023 at 13:50, Svyatoslav Ryhel wrote: > > Nexus 7 is a mini tablet computer co-developed by Google and Asus > that runs the Android operating system. The Nexus 7 features a 7" > display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB > of internal

Re: [PATCH] dm: core: introduce uclass_get_device_by_of_path()

2023-04-18 Thread Simon Glass
Hi Rasmus, On Thu, 13 Apr 2023 at 09:17, Rasmus Villemoes wrote: > > There's quite a few instances of board-specific code doing > > off = fdt_path_offset(gd->fdt_blob, ...); > ... > ret = uclass_get_device_by_of_offset(..., off, ); > > looking for an eeprom or a pmic via some alias. Such

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-18 Thread Simon Glass
Hi Tony, On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console, in addtion to nc. > For example, stdin=serial,nc. Some recent Linux kernels will not boot with > only nc on the

Re: [PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-18 Thread Simon Glass
On Thu, 13 Apr 2023 at 09:16, Rasmus Villemoes wrote: > > The functions uclass_find_device_by_phandle() and > uclass_get_device_by_phandle_id() both loop over a given uclass > looking for a device with a given phandle. Factor that out to a common > helper. > > For now, there are no (known

Re: [PATCH v3 2/3] test/py: IPv6 network discovery test

2023-04-18 Thread Simon Glass
Hi, On Wed, 12 Apr 2023 at 10:10, wrote: > > From: Ehsan Mohandesi > > Test the IPv6 network discovery feature if indicated by boardenv file. > > Signed-off-by: Ehsan Mohandesi > > Conflicts: > configs/sandbox64_defconfig > configs/sandbox_defconfig >

Re: [PATCH 03/13] input: Only reset the keyboard when running bare metal

2023-04-18 Thread Simon Glass
Hi Bin, On Thu, 23 Mar 2023 at 11:55, Simon Glass wrote: > > Hi Bin, > > On Tue, 21 Mar 2023 at 14:25, Bin Meng wrote: > > > > Hi Simon, > > > > On Tue, Mar 21, 2023 at 2:40 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Mon, 20 Mar 2023 at 19:32, Bin Meng wrote: > > > > > > > > Hi

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-18 Thread Simon Glass
Hi, On Fri, 14 Apr 2023 at 07:53, Michal Simek wrote: > > > > On 4/10/23 06:25, Jassi Brar wrote: > > On Wed, 29 Mar 2023 at 15:02, Simon Glass wrote: > >> > >> Hi, > >> > >> On Tue, 28 Mar 2023 at 10:16, wrote: > >>> > >>> From: Masami Hiramatsu > >>> > >>> Add 'mkfwumdata' tool to generate

Re: [PATCH 1/1] test: fix pylint warning for capsule tests

2023-04-18 Thread Simon Glass
Hi Heinrich, On Fri, 14 Apr 2023 at 02:34, Heinrich Schuchardt wrote: > > Fix pylint warnings like: > > * Class inherits from object > * Missing module description > * Missing class description > * First line of comment blank > * Superfluous imports > > Signed-off-by: Heinrich Schuchardt > ---

Re: [PATCH] riscv: Support riscv64 image type

2023-04-18 Thread Simon Glass
Hi Rick, On Mon, 10 Apr 2023 at 01:26, Rick Chen wrote: > > Allow U-Boot to load 32 or 64 bits RISC-V Kernel Image > distinguishly. It helps to avoid someone maybe make a mistake > to run 32-bit U-Boot to load 64-bit kernel. > > Signed-off-by: Rick Chen > > --- > The patchset is based on

Re: [PATCH 4/4] common: spl: spl: Remove video driver before u-boot proper

2023-04-18 Thread Simon Glass
Hi Nikhil, On Mon, 10 Apr 2023 at 02:21, Nikhil M Jain wrote: > > Add method to remove video driver before loading u-boot proper. When > bootstage changes from SPL to u-boot proper, noo method is called to > remove video driver, and at u-boot proper if video driver is not > enabled, the video

Re: [PATCH v4 0/9] Add video damage tracking

2023-04-18 Thread Simon Glass
Hi Antonio, +Alex Graf +Heinrich Schuchardt On Fri, 14 Apr 2023 at 08:55, Antonio Murdaca wrote: > > Hi, this patch set applies cleanly on 2023.01 and solves the issue on the > rockpro64 where the grub would take forever to draw on the screen. Could we get some tests added for this so we can

Re: [PATCH v2 0/3] rpi: Convert to standard boot

2023-04-18 Thread Simon Glass
Hi Peter, On Sun, 2 Apr 2023 at 14:29, Simon Glass wrote: > > This series moves Raspberry Pi boards over to use standard boot. > > It also moves rpi over to use a text-based environment. Unfortunately it > is not possible to empty the header file due to several CFG options. > > Fix the repeated

Re: [PATCH v3 00/16] x86: Various minor enhancements for coreboot

2023-04-18 Thread Simon Glass
Hi Bin, On Sun, 26 Mar 2023 at 22:16, Simon Glass wrote: > > This series includes some patches generated while getting U-Boot to boot > more nicely on Brya, an Adler Lake Chromebook. > > This includes: > - show the ACPI tables with 'acpi list' > - get the UART to work even if coreboot doesn't

Re: [PATCH v8 00/13] bootstd: Convert rockchip and add various fixes and tweaks

2023-04-18 Thread Simon Glass
Hi Tom, On Wed, 12 Apr 2023 at 17:03, Simon Glass wrote: > > Hi Tom, > > On Sun, 9 Apr 2023 at 18:07, Tom Rini wrote: > > > > On Sun, Apr 09, 2023 at 08:18:31AM +1200, Simon Glass wrote: > > > Hi Tom, > > > [..] > > > > Because that's the key here, on the 564 platforms that use > > > >

Re: The u-boot supports i2c-over-hid?

2023-04-18 Thread Simon Glass
Hi, +Heinrich Schuchardt +Heiko Schocher On Thu, 13 Apr 2023 at 08:58, skyo...@126.com wrote: > > Hello, > I would like to ask whether i2c-over-hid is not supported under u-boot at > present. At present, we have this development need. I would like to ask > whether it is feasible to

Re: Support for NXP S32K3 Family

2023-04-18 Thread Simon Glass
Hi Ashok, On Fri, 14 Apr 2023 at 08:55, Ashok Kumar wrote: > > Hi Folks, > > > I am trying to build a u-boot boot-loader for my S32K344 board. > > Can you guys please help me, which defconf/config file is suitable for > my S32K344 board for building a u-boot binaries? If you look in MAINTAINERS

Re: [PATCH 1/6] misc: add Qualcomm GENI SE QUP device driver

2023-04-18 Thread Simon Glass
Hi Vladimir, On Wed, 12 Apr 2023 at 06:45, Vladimir Zapolskiy wrote: > > On 3/31/23 04:23, Konrad Dybcio wrote: > > > > > > On 30.03.2023 21:47, Vladimir Zapolskiy wrote: > >> This change adds a Qualcomm GENI SE QUP device driver as a wrapper for > >> actually enabled and used serial devices

Re: [PATCH] doc:fix typo in 'mmc write' example

2023-04-18 Thread Simon Glass
On Sun, 9 Apr 2023 at 07:01, Alexander Shirokov wrote: > > In the 'mmc write' command example, it writes 16 blocks (0x10). But the > output contains 256 (0x100) blocks. This patch fixes the mismatch. > > Signed-off-by: Alexander Shirokov > --- > doc/usage/cmd/mmc.rst | 2 +- > 1 file changed, 1

Re: [PATCH] scripts/Makefile.lib: also consider $(CONFIG_SYS_BOARD)-u-boot.dtsi

2023-04-18 Thread Simon Glass
Hi Rasmus, On Wed, 12 Apr 2023 at 05:05, Rasmus Villemoes wrote: > > On 19/03/2023 20.29, Simon Glass wrote: > > Hi Rasmus, > > > > On Sun, 19 Mar 2023 at 13:34, Rasmus Villemoes > > wrote: > >> > >> On 18/03/2023 21.20, Simon Glass wrote: > >> > > Now, the only way to be really sure

Re: [PATCH] sandbox: disable tracing before unmapping RAM

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 12:55, Pavel Skripkin wrote: > > Currently doing 'reset' command in sandbox with tracing enabled causes > SIGSEV > > ``` > Hit any key to stop autoboot: 0 > => > => > => reset > resetting ... > Segmentation fault (core dumped) > > ``` > > Tracing callback uses RAM buffer

Re: [PATCH] docs: fix wrong proftool usage

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 13:05, Pavel Skripkin wrote: > > Guide shows incorrect usage of proftool, which is confusing. If proftool > is used w/o '-o' argument it complains like following > > $ ./sandbox/tools/proftool -m sandbox/System.map -t trace dump-ftrace > > trace.dat > Must provide trace

Re: [PATCH] tools: env: update lock path in README

2023-04-18 Thread Simon Glass
On Wed, 12 Apr 2023 at 05:24, John Keeping wrote: > > Commit aeb40f1166 ("tools: env: use /run to store lockfile") updated the > path to the lockfile but did not update the documentation to match. > > Use the new path in the documentation. > > Fixes: aeb40f1166 ("tools: env: use /run to store

RE: [PATCH v1 0/4] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-04-18 Thread Tom Warren
Thanks, Svyatoslav. I do all my testing on top of TOT u-boot-tegra/master, as that's what I'll use to send a PR to TomR. Before I apply any patches, I usually sync to TOT u-boot/master, via 'git rebase', then apply the patches, then build/test. But in this case, rebasing to TOT u-boot/master

Re: [PATCH 5/7] ARM: dts: rockchip: rk3588s-u-boot: add pcie2x1l2 with PHY

2023-04-18 Thread Jonas Karlman
Hi Eugen, On 2023-04-17 11:19, Eugen Hristev wrote: > From: Joseph Chen > > Add the node for pciE 2x1l 2 device together with the corresponding > combphy. > > Signed-off-by: Joseph Chen > [eugen.hris...@collabora.com: moved to -u-boot.dtsi, minor > adaptations] > Signed-off-by: Eugen Hristev

Re: [PATCH 07/13] smegw01: Enable EMMC boot from multiple partitions

2023-04-18 Thread Pali Rohár
On Tuesday 18 April 2023 10:47:38 Fabio Estevam wrote: > From: Eduard Strehlau > > GPT Partition labels are used for determining the right > root filesystem to boot from. > > The U-Boot environment is configured to reside in the eMMC hardware > boot partition we are currently booted from. > >

Re: [PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-18 Thread Marek Vasut
On 4/18/23 20:20, Ralph Siemsen wrote: The -l-e-constant flag has been deprecated since 2012. [1] Use the recommended replacement instead. [1] https://sourceforge.net/p/srecord/code/ci/1.59.D009/ Signed-off-by: Ralph Siemsen I'm afraid this needs some backward compatibility sreccat version

Re: [PATCH v4 01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

2023-04-18 Thread Marek Vasut
On 4/18/23 16:32, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut wrote: On 4/17/23 20:26, Ralph Siemsen wrote: On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote: You could send this patch as a separate one. In fact I did that almost a year ago:

Re: [PATCH 2/2] ARM: dts: stm32mp: alignment with v6.3-rc3

2023-04-18 Thread Marek Vasut
On 4/18/23 15:59, Patrick Delaunay wrote: Device tree alignment with Linux kernel v6.3-rc3: - ARM: dts: stm32: add i2c nodes into stm32mp131.dtsi - ARM: dts: stm32: enable i2c1 and i2c5 on stm32mp135f-dk.dts - ARM: dts: stm32: add spi nodes into stm32mp131.dtsi - ARM: dts: stm32: add pinctrl and

Re: [PATCH 1/5] mtd/spinand: rework detect procedure for different READ_ID operation

2023-04-18 Thread Michael Nazzareno Trimarchi
Hi On Tue, Apr 18, 2023 at 8:20 PM Mikhail Kshevetskiy wrote: > > I can try to resend patches (flash drivers synced with linux-6.1). > Unfortunately I am not sure I will be able to do it after changes in our > mail system. I don't think that re-sync now is what we want to do. The idea here is

[PATCH] rmobile: avoid deprecated srec_cat flags

2023-04-18 Thread Ralph Siemsen
The -l-e-constant flag has been deprecated since 2012. [1] Use the recommended replacement instead. [1] https://sourceforge.net/p/srecord/code/ci/1.59.D009/ Signed-off-by: Ralph Siemsen --- arch/arm/mach-rmobile/Makefile | 48 +- 1 file changed, 24

  1   2   3   >