This code is not actually x86-specific, so move it into the lib/efi dir
where other archs can use it.
Drop inclusion of the unnecessary x86-specific header.
Signed-off-by: Simon Glass
---
arch/x86/cpu/efi/Makefile | 1 -
lib/efi/Makefile | 1 +
{arch/x86/cpu => lib}/ef
So far only x86 supports the EFI app. Sadly ARM is going the same way,
so allow these options to be enabled for ARM too.
Signed-off-by: Simon Glass
---
arch/Kconfig | 2 ++
arch/x86/Kconfig | 1 -
board/efi/Kconfig | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/a
The previous bootloader has already set up the cache, so don't try to do
it again.
This fixes a crash in QEMU when booting from EDK2
Signed-off-by: Simon Glass
---
common/board_r.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/common/board_r.c b/common/board_r.c
inde
The app does not have this symbol. Also the memory where the app is
loaded is not under U-Boot's control. Disable this reservation for
the EFI app.
Signed-off-by: Simon Glass
---
lib/lmb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/lmb.c b/lib/lmb.c
index 588787d2
The EFI app likes to use a simple variable for global data. Implement
this for ARM.
Signed-off-by: Simon Glass
---
arch/arm/include/asm/global_data.h | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/arm/include/asm/global_data.h
b/arch/arm/include/asm/gl
This code is not used with the EFI app, since it enters through a call
to efi_main(). Remove start.S and crt files from the build.
Signed-off-by: Simon Glass
---
arch/arm/Makefile | 2 ++
arch/arm/lib/Makefile | 6 --
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/a
The previous bootloader has likely done this already, so avoid trying to
do it again. This fixes a crash in QEMU when booting from EDK2
Signed-off-by: Simon Glass
---
arch/arm/lib/bootm.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/
The previous bootloader has already set up the page tables, so don't try
to do it again.
This fixes a crash in QEMU when booting from EDK2
Signed-off-by: Simon Glass
---
arch/arm/lib/cache.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c
inde
The EFI app uses different startup and relocation code and the existing
code uses symbols not present in the app. Drop it.
Signed-off-by: Simon Glass
---
arch/arm/cpu/armv8/Makefile | 2 ++
arch/arm/lib/Makefile | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/
The app needs a special linker script, so select that for the app.
Signed-off-by: Simon Glass
---
arch/arm/cpu/armv8/config.mk | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/cpu/armv8/config.mk b/arch/arm/cpu/armv8/config.mk
index 1ee31680106..d2d1a8d2bc2 100644
--- a/arch/arm
Build in the EFI-app startup code as well as the code to relocate U-Boot
to the loaded position, since this is under the control of the previous
firmware.
Signed-off-by: Simon Glass
---
arch/arm/lib/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/lib/Makefile b/arch/arm/
This option cannot be used with a shared library, since it results in
everything being removed. Disable it.
Signed-off-by: Simon Glass
---
arch/arm/config.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index e0045e22271..20f4d41f2c3 100644
--- a
Adjust the conditions to support the EFI app when running on ARM.
Signed-off-by: Simon Glass
---
common/board_f.c | 4 ++--
common/board_r.c | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/common/board_f.c b/common/board_f.c
index 8baaa2341a3..6426a17edc6 100644
--- a/c
The app should be built as a shared library, with position-independent
code and the -shared flags. Update the Makefile to handle this.
Signed-off-by: Simon Glass
---
Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 3958ea45b9a..990114731b4 100644
--- a/
This code cannot be used since EFI is in charge of managing exceptions.
Drop it.
Signed-off-by: Simon Glass
---
arch/arm/cpu/armv8/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile
index 2e71ff2dc97..7bd6cf21b1
It isn't worth the hassle of omitting this field for the app, since code
is shared between the payload and the app. Adjust the condition to avoid
a build error in the 'efi' command with the app on ARM.
Signed-off-by: Simon Glass
---
arch/arm/include/asm/global_data.h | 2 +-
1 file changed, 1 i
We don't need to manually add the PE header, since binutils has support
for this now. Remove it to simplify the file.
Set the link-target to efi-app-aarch64 so that binutils knows what to
do. Add rules to pick up the arm64 files.
Make some updates to the link-script for arm64, so this all works:
This feature should not be used with the app, since we don't know where
U-Boot will be loaded. Disable it.
Signed-off-by: Simon Glass
---
arch/arm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b032aac4caa..26168670e5c 10064
Introduce an EFI app for arm64 and update the documentation.
Provide a value for LOAD_ADDR to avoid a link error.
Signed-off-by: Simon Glass
---
Kconfig | 1 +
MAINTAINERS | 4 ++-
arch/arm/dts/efi-arm_app.dts | 31
As opposed to the payload, which is built normally with just an EFI
stub, the app is build homogenously using EFI flags. Update
PLATFORM_CPPFLAGS to enable this.
Signed-off-by: Simon Glass
---
arch/arm/cpu/armv8/config.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/cpu/armv8/co
Hi Caleb,
On Sun, 24 Nov 2024 at 13:27, Caleb Connolly wrote:
>
> This series implements support for launching U-Boot as an EFI payload on
> ARM64 devices that already have an EFI capable bootloader.
>
> Patches 9 through 14 in tandem with another series [1] provide all the
> pieces necessary to
The original x86 EFI-app was written back in 2015, about a year before
the EFI-loader was introduced. At that point, ARM mostly used U-Boot and
FIT (Flat Image Tree).
Today, sadly, there are a few efforts to re-invent FIT poorly, to cater
to more primitive boot-environments than U-Boot. One justif
Hi,
> Currently, the 8-bit escapes are being used, which aren't supported by
> vidconsole_escape_char. Since the current usage maps directly to the
> 3-bit equivalents anyway, let's use those instead.
>
> With this change, the fetch output looks as fetching in the vidconsole
> as it does over ser
On 31/01/2025 00:10, Tom Rini wrote:
On Mon, Jan 27, 2025 at 12:42:30PM +, Harrison Mutai wrote:
Hi Tom,
Thanks for the additional details, that helped!
On 23/01/2025 17:12, Tom Rini wrote:
On Thu, Jan 23, 2025 at 05:03:40PM +, Harrison Mutai wrote:
On 22/01/2025 17:21, Tom Rini wrot
On 2/3/25 16:13, Ilias Apalodimas wrote:
Thanks Michal
On Mon, 3 Feb 2025 at 17:03, Michal Simek wrote:
LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
Signed-off-by: Michal Simek
---
From: Fabio Estevam
The imx6q-lxr devicetree has landed in kernel 6.13.
Switch to OF_UPSTREAM to make use of the upstream devicetree.
Signed-off-by: Fabio Estevam
---
arch/arm/dts/Makefile | 1 -
arch/arm/dts/imx6q-lxr.dts | 87 -
arch/arm/dts/imx6q-phyte
Hello Eugen,
thanks for looking at this. My remarks below.
Am Thu, Jan 30, 2025 at 11:49:30AM +0200 schrieb Eugen Hristev:
> Hello Alex,
>
> On 1/23/25 14:12, Alexander Dahl wrote:
> > The qspi controller on sama5d2 and sam9x60 supports "classic" SPI mode
> > without spi-mem enhancements and ac
On Mon, Feb 03, 2025 at 09:25:54AM -0700, Simon Glass wrote:
> When running multiple runners on the same machine, each should be in its
> own container to avoid them interfering with either other.
>
> Add a container name for this. Ensure it is removed after use.
>
> Signed-off-by: Simon Glass
2025. 02. 03. 9:01 keltezéssel, Michal Simek írta:
Hi,
On 2/1/25 15:06, egyszer...@freemail.hu wrote:
From: Benjamin Szőke
Dynamic setting mmcdev and mmcroot.
Then when boot linux, we can have correct "root=/dev/mmcblk[x]p2"
This is source of the problem. That root partition is second is on
LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
Signed-off-by: Michal Simek
---
net/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/Kconfig b/net/Kconfig
index 24508026200d..6c6
Assign variable buf in the sub-test where it is used.
Signed-off-by: Heinrich Schuchardt
---
v3:
new patch
---
test/cmd/setexpr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c
index 7f318a42ead..cc2003faab5 100644
--- a/test/c
The setexpr.s command allows to concatenate two strings.
According to the description in doc/usage/cmd/setexpr.rst the parameters
value1 and value2 can be either direct values or pointers to a
memory location holding the values.
Unfortunately `setexpr.s + ` fails if any of the values
is a direct
env_set() frees the previous value after allocating the new value.
As the free() may merge memory chunks the available memory is not
expected to stay constant.
Signed-off-by: Heinrich Schuchardt
---
v3:
new patch
---
test/cmd/setexpr.c | 24
1 file changed, 24 de
The setexpr.s command allows to concatenate two strings.
According to the description in doc/usage/cmd/setexpr.rst the parameters
value1 and value2 can be either direct values or pointers to a
memory location holding the values.
Unfortunately `setexpr.s + ` fails if any of the values
is a direct
env_set() frees the previous value after allocating the new value.
As the free() may merge memory chunks the available memory is not
expected to stay constant.
Signed-off-by: Heinrich Schuchardt
---
v3:
new patch
---
test/cmd/setexpr.c | 13 -
1 file changed, 13 deletions(-)
On 2/3/25 16:03, Michal Simek wrote:
> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>
> Signed-off-by: Michal Simek
> ---
>
> net/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> di
Thanks Michal
On Mon, 3 Feb 2025 at 17:03, Michal Simek wrote:
>
> LWIP wget.c/mbedtls_hardware_poll() is calling dm_rng_read() but dependency
> is not recorded anywhere that's why select DM_RNG when LWIP stack i used.
>
> Signed-off-by: Michal Simek
> ---
>
> net/Kconfig | 1 +
> 1 file change
From: Benjamin Szőke
Save "bootseq" environment variable in decimal format.
Signed-off-by: Benjamin Szőke
---
board/xilinx/zynqmp/zynqmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 8cdd9d8600..820fb252a
[0m"
static const char * const logo_lines[] = {
---
base-commit: 2b1c8d3b2da46ce0f7108f279f04bc66f1d8d09a
change-id: 20250203-ufetch-vidconsole-colours-0e6a9ebe2475
Best regards,
--
Sam Day
Hi,
On 30.01.25 14:55, Ferenc Fejes wrote:
> Hi,
>
> Is it possible to use the serial port for u-boot networking? For example,
> given
> a restricted environment where the FIT image is available with ethernet
> firmware
> and drivers, so it is not possible to boot it with DHCP boot since there
Hi,
On 31.01.25 17:10, Yao Zi wrote:
> On Tue, Jan 28, 2025 at 11:19:15AM +0100, Jerome Forissier wrote:
>> +.globl _co_switch
>> +.type _co_switch, @function
>> +_co_switch:
>> +// x0: from_co
>> +// x1: to_co
>> +// from_co and to_co layout: { pc, sp, x19-x29 }
>> +
>> +// Save
On 2/3/25 5:17 AM, tkuw584...@gmail.com wrote:
> From: Takahiro Kuwano
>
> Infineon S28HL256T is 3.0V, 256Mb Flash device with Octal interface.
> It has the same functionalities with S28HS256T.
>
> Link:https://www.infineon.com/dgdl/Infineon-S28HS256T_S28HL256T_256Mb_SEMPER_Flash_Octal_interf
Rework of v1 posted by Burak Gerz [1].
[1] https://lore.kernel.org/u-boot/20241212221427.GM1505244@bill-the-cat/
Changes in v2:
- Adapt variable names for better consistency
- Add missing rename hooks
- Use EFI_ACCESS_DENIED for unsuccessful renames
- Avoid using of "== 0"
- Move the call to se
On 2/3/25 5:17 AM, tkuw584...@gmail.com wrote:
> From: Takahiro Kuwano
>
> Infineon S28HL02GT is 3.0V, 2Gb Flash device with Octal interface.
> It has the same functionalities with S28HS02GT.
>
> Link:
> https://www.infineon.com/dgdl/Infineon-S28HS02GT_S28HS04GT_S28HL02GT_S28HL04GT_2Gb_4Gb_S
The EFI API supports file renaming, which is required by
systemd-stub for its bootcounting implementation.
Signed-off-by: Daniel Venzin
---
Changes in v2:
- Adapt variable names for better consistency
- Add missing rename hooks
fs/fs.c | 30 ++
include/fs.h |
Hi Ahmad,
On Mon, 2025-02-03 at 13:08 +0100, Ahmad Fatoum wrote:
> Hi,
>
> On 30.01.25 14:55, Ferenc Fejes wrote:
> > Hi,
> >
> > Is it possible to use the serial port for u-boot networking? For example,
> > given
> > a restricted environment where the FIT image is available with ethernet
> > fi
This implementation currently does not support
moving files between directories.
Signed-off-by: Daniel Venzin
---
Changes in v2:
- Separate the rename implementation from changes in the filesystem layer
- Eliminate code duplication with delete_dentry_long(..)
- Ensure that the source file exist
File renaming is necessary for features like systemd-boot
bootcounting.
Signed-off-by: Daniel Venzin
---
Changes in v2:
- Use EFI_ACCESS_DENIED for unsuccessful renames
- Avoid using of "== 0"
- Move the call to set_blk_dev earlier in the sequence
lib/efi_loader/efi_file.c | 11 ---
1
Directory entries cannot be deleted without also removing their
corresponding FAT entries. This refactor allows for individual
selection of deleting the directory entry and the FAT entry,
facilitating better reuse of existing functionality.
Signed-off-by: Daniel Venzin
---
Changes in v2:
- Refa
Add a minimal generic RK3399 board that only have eMMC, SDMMC, SPI flash
and USB OTG enabled. This defconfig can be used to boot from eMMC,
SD-card or SPI flash on most RK3399 boards that follow reference board
design.
Signed-off-by: Jonas Karlman
---
arch/arm/dts/rk3399-generic-u-boot.dtsi | 10
Add a minimal generic RK3328 board that only have eMMC, SDMMC, SPI flash
and USB OTG enabled. This defconfig can be used to boot from eMMC,
SD-card or SPI flash on most RK3328 boards that follow reference board
design.
Signed-off-by: Jonas Karlman
---
arch/arm/dts/rk3328-generic-u-boot.dtsi | 39
This series adds minimal generic board targets for RK3328 and RK3399,
like existing minimal generic boards for RK3566/RK3568, RK3588S/RK3588,
pending RK3528 [1] and upcoming RK3576 targets.
These generic boards can be used to boot into U-Boot and/or Linux on
most boards that follow reference board
On 2/4/25 02:15, Szőke Benjamin wrote:
2025. 02. 04. 1:38 keltezéssel, Simon Glass írta:
Hi Benjamin,
On Mon, 3 Feb 2025 at 09:33, wrote:
From: Benjamin Szőke
Save "bootseq" environment variable in decimal format.
Signed-off-by: Benjamin Szőke
---
board/xilinx/zynqmp/zynqmp.c | 2 +-
On 1/21/25 14:01, Ibai Erkiaga wrote:
Current usage information is not read friendly specially when all the
options are selected. This series fix some of the issues in the info,
aligment and overlapping issues, excess of verbosity on the loads...
Additionally Xilinx exclusive com
do_fpga_loads() is not called from anywhere else that's why make it static.
Signed-off-by: Michal Simek
---
cmd/fpga.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmd/fpga.c b/cmd/fpga.c
index 212f421739fa..9dc7b63db5d1 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -67,7
On 1/24/25 14:04, Michal Simek wrote:
Build mkfwumdata tool by default for building ab mdata structure.
Signed-off-by: Michal Simek
---
configs/amd_versal2_virt_defconfig | 1 +
configs/xilinx_versal_virt_defconfig | 1 +
configs/xilinx_zynqmp_virt_defconfig | 1 +
3 files changed, 3
On 1/27/25 12:11, Michal Simek wrote:
Enable meminfo command to be able to see where things are mapped.
Signed-off-by: Michal Simek
---
Changes in v2:
- Also cover Kria
configs/amd_versal2_virt_defconfig | 2 ++
configs/microblaze-generic_defconfig | 2 ++
configs/xilinx_vers
On 1/29/25 16:31, Michal Simek wrote:
Enable lwip and https on our platforms to be able to use it in a boot.
Signed-off-by: Michal Simek
---
configs/amd_versal2_virt_defconfig | 11 ---
configs/microblaze-generic_defconfig | 8
configs/xilinx_versal_net_virt_
Hello Michal,
Am Mon, Feb 03, 2025 at 10:28:15AM +0100 schrieb Michal Simek:
> do_fpga_loads() is not called from anywhere else that's why make it static.
>
> Signed-off-by: Michal Simek
> ---
>
> cmd/fpga.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/cmd/fpga.c
101 - 159 of 159 matches
Mail list logo