Re: [PATCH] RISC-V: fix stack clobbering in relocate_to_adr

2025-09-15 Thread Sascha Hauer
On Fri, 12 Sep 2025 10:34:38 +0200, Ahmad Fatoum wrote: > relocate_to_adr is decrementing two SZREG worth of stack space to be able > to spill two registers. An off-by-one led us to reference the word after > the reserved stack space, clobbering one word from the previous > function's stack frame

Re: [PATCH] ARM: dts: k3-am62l: read MAC address from E-Fuse

2025-09-15 Thread Sascha Hauer
On Mon, 15 Sep 2025 16:41:26 +0200, Sascha Hauer wrote: > Applied, thanks! [1/1] ARM: dts: k3-am62l: read MAC address from E-Fuse https://git.pengutronix.de/cgit/barebox/commit/?id=27764e8ee710 (link may not be stable) Best regards, -- Sascha Hauer

Re: [PATCH] usb: dwc3: remove non existent Kconfig option

2025-09-15 Thread Sascha Hauer
On Mon, Sep 15, 2025 at 04:41:19PM +0200, Sascha Hauer wrote: > CONFIG_USB_ROLE_SWITCH does not exist in barebox. Remove the test for > this option. > > Fixes: 5d01c33175 ("usb: dwc3: sync with Linux-6.3-rc2") > Signed-off-by: Sascha Hauer > --- > drivers/usb/dwc3/core.c | 3 +-- > 1 file change

[PATCH v4 09/12] efi: payload: early-mem: helps to correctly boot x86 linux.

2025-09-15 Thread chalianis1
From: Chali Anis remove the allocate EFI_ALLOCATE_MAX_ADDRESSES and use a different memsize for x86 since the initrd could be bigger that those used in arm. it might be refactored in the future with a more generic allocation strategy (i.e barebox malloc memory vs an allocator for the boot loader

Re: [PATCH v4 01/12] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-15 Thread Ahmad Fatoum
Hi, On 16.09.25 06:54, chalian...@gmail.com wrote: > From: Ahmad Fatoum > > We currently lack a way to build a barebox EFI payload on ARM without > enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global > effect and adds EFI stubs to all enabled board, an EFI subarchitecture > d

[PATCH 4/7] efi: payload: add support for fit image

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH 5/7] efi: payload: make selectable without COMPILE_TEST

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/Kconfig b/efi/Kconfig index 5f4c6713d539..5ae7ec92e5f8 100644 --- a/efi/Kconfig +++ b/efi/Kconfig @@ -6,7 +6,7 @@ config HAVE_EFI_PAY

[PATCH v4 11/12] lib: fdt: remove FDT_PADDING.

2025-09-15 Thread chalianis1
From: Chali Anis remove the unused FDT_PADDING. Signed-off-by: Chali Anis --- lib/Kconfig | 4 1 file changed, 4 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index 89e95d202c2c..d07e2f3b6959 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -121,10 +121,6 @@ config FSL_QE_FIRMWARE

[PATCH v4 07/12] efi: payload: initrd: implement efi initrd media protocol.

2025-09-15 Thread chalianis1
From: Chali Anis Add the ability to install an initrd media protocol from an initrd file or a fitImage, support both the initrd media protocol or installing the initramfs directly to efi like what linux do. Signed-off-by: Chali Anis --- efi/guid.c| 7 +++ efi/payload/efi-init

[PATCH v4 06/12] arm: efi: add a generic defconfig for v8 efi payload,

2025-09-15 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- arch/arm/configs/efi_v8_defconfig | 266 ++ 1 file changed, 266 insertions(+) create mode 100644 arch/arm/configs/efi_v8_defconfig diff --git a/arch/arm/configs/efi_v8_defconfig b/arch/arm/configs/efi_v8_defconfig new

[PATCH v4 12/12] efi: payload: x86: enable the possibility to efi stub bootm for x86.

2025-09-15 Thread chalianis1
From: Chali Anis this permits to select one of efi stub bootm or efi handover protocol tested on dell latitude and qemu. Signed-off-by: Chali Anis --- efi/payload/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efi/payload/Kconfig b/efi/payload/Kconfig index 8f7

[PATCH v4 10/12] efi: payload: bootm: add x86 efi stub boot support.

2025-09-15 Thread chalianis1
From: Chali Anis implement the efi stub boot on x86, this code is tested on qemu, and dell latitude 7490. the EFI_ALLOCATE_MAX_PAGES cause an xfuncs issue on real hardware so I transformed it to allocate any pages. Signed-off-by: Chali Anis --- efi/payload/bootm.c | 143 +--

[PATCH v4 08/12] common: filetype: add x86 linux filetype.

2025-09-15 Thread chalianis1
From: Chali Anis add x86 linux filetype to be used to boot with efi stub bootm image handler. Signed-off-by: Chali Anis --- common/filetype.c | 4 include/filetype.h | 6 ++ 2 files changed, 10 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index eb397a175cb6..8735

[PATCH v4 05/12] efi: payload: make selectable without COMPILE_TEST

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/Kconfig b/efi/Kconfig index 5f4c6713d539..5ae7ec92e5f8 100644 --- a/efi/Kconfig +++ b/efi/Kconfig @@ -6,7 +6,7 @@ config HAVE_EFI_PAY

[PATCH v4 02/12] efi: payload: split image handling from legacy handover boot support

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig| 4 + efi/payload/Kconfig| 4 + efi/payload/Makefile | 2 + efi/payload/handover.c | 195 +++ efi/payload/image.c| 228 ++

[PATCH v4 01/12] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-15 Thread chalianis1
From: Ahmad Fatoum We currently lack a way to build a barebox EFI payload on ARM without enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global effect and adds EFI stubs to all enabled board, an EFI subarchitecture doesn't fit into our current model. Instead, let's make it possi

[PATCH v4 04/12] efi: payload: add support for fit image

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v4 03/12] efi: payload: add support for efi stub boot

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v3 09/11] efi: payload: early-mem: helps to correctly boot x86 linux.

2025-09-15 Thread chalianis1
From: Chali Anis remove the allocate EFI_ALLOCATE_MAX_ADDRESSES and use a different memsize for x86 since the initrd could be bigger that those used in arm. it might be refactored in the future with a more generic allocation strategy (i.e barebox malloc memory vs an allocator for the boot loader

[PATCH v2 06/10] arm: efi: add a generic defconfig for v8 efi payload,

2025-09-15 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- arch/arm/configs/efi_v8_defconfig | 266 ++ 1 file changed, 266 insertions(+) create mode 100644 arch/arm/configs/efi_v8_defconfig diff --git a/arch/arm/configs/efi_v8_defconfig b/arch/arm/configs/efi_v8_defconfig new

[PATCH v3 03/11] efi: payload: add support for efi stub boot

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v3 05/11] efi: payload: make selectable without COMPILE_TEST

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/Kconfig b/efi/Kconfig index 5f4c6713d539..5ae7ec92e5f8 100644 --- a/efi/Kconfig +++ b/efi/Kconfig @@ -6,7 +6,7 @@ config HAVE_EFI_PAY

[PATCH v3 06/11] arm: efi: add a generic defconfig for v8 efi payload,

2025-09-15 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- arch/arm/configs/efi_v8_defconfig | 266 ++ 1 file changed, 266 insertions(+) create mode 100644 arch/arm/configs/efi_v8_defconfig diff --git a/arch/arm/configs/efi_v8_defconfig b/arch/arm/configs/efi_v8_defconfig new

[PATCH v3 11/11] lib: fdt: remove FDT_PADDING.

2025-09-15 Thread chalianis1
From: Chali Anis remove the unused FDT_PADDING. Signed-off-by: Chali Anis --- lib/Kconfig | 4 1 file changed, 4 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index 89e95d202c2c..d07e2f3b6959 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -121,10 +121,6 @@ config FSL_QE_FIRMWARE

[PATCH v3 10/11] efi: payload: bootm: add x86 efi stub boot support.

2025-09-15 Thread chalianis1
From: Chali Anis implement the efi stub boot on x86, this code is tested on qemu, and dell latitude 7490. the EFI_ALLOCATE_MAX_PAGES cause an xfuncs issue on real hardware so I transformed it to allocate any pages. Signed-off-by: Chali Anis --- efi/payload/bootm.c | 143 +--

[PATCH v3 08/11] common: filetype: add x86 linux filetype.

2025-09-15 Thread chalianis1
From: Chali Anis add x86 linux filetype to be used to boot with efi stub bootm image handler. Signed-off-by: Chali Anis --- common/filetype.c | 4 include/filetype.h | 6 ++ 2 files changed, 10 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index eb397a175cb6..8735

[PATCH v3 07/11] efi: payload: initrd: implement efi initrd media protocol.

2025-09-15 Thread chalianis1
From: Chali Anis Add the ability to install an initrd media protocol from an initrd file or a fitImage, support both the initrd media protocol or installing the initramfs directly to efi like what linux do. Signed-off-by: Chali Anis --- efi/guid.c| 7 +++ efi/payload/efi-init

[PATCH v3 04/11] efi: payload: add support for fit image

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v3 01/11] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-15 Thread chalianis1
From: Ahmad Fatoum We currently lack a way to build a barebox EFI payload on ARM without enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global effect and adds EFI stubs to all enabled board, an EFI subarchitecture doesn't fit into our current model. Instead, let's make it possi

[PATCH v3 02/11] efi: payload: split image handling from legacy handover boot support

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig| 4 + efi/payload/Kconfig| 4 + efi/payload/Makefile | 2 + efi/payload/handover.c | 195 +++ efi/payload/image.c| 228 ++

[PATCH v2 09/10] efi: payload: early-mem: helps to correctly boot x86 linux.

2025-09-15 Thread chalianis1
From: Chali Anis remove the allocate EFI_ALLOCATE_MAX_ADDRESSES and use a different memsize for x86 since the initrd could be bigger that those used in arm. it might be refactored in the future with a more generic allocation strategy (i.e barebox malloc memory vs an allocator for the boot loader

[PATCH v2 10/10] efi: payload: bootm: add x86 efi stub boot support.

2025-09-15 Thread chalianis1
From: Chali Anis implement the efi stub boot on x86, this code is tested on qemu, and dell latitude 7490. the EFI_ALLOCATE_MAX_PAGES cause an xfuncs issue on real hardware so I transformed it to allocate any pages. Signed-off-by: Chali Anis --- efi/payload/bootm.c | 143 +--

[PATCH v2 08/10] common: filetype: add x86 linux filetype.

2025-09-15 Thread chalianis1
From: Chali Anis add x86 linux filetype to be used to boot with efi stub bootm image handler. Signed-off-by: Chali Anis --- common/filetype.c | 4 include/filetype.h | 6 ++ 2 files changed, 10 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index eb397a175cb6..8735

[PATCH v2 07/10] efi: payload: initrd: implement efi initrd media protocol.

2025-09-15 Thread chalianis1
From: Chali Anis Add the ability to install an initrd media protocol from an initrd file or a fitImage, support both the initrd media protocol or installing the initramfs directly to efi like what linux do. Signed-off-by: Chali Anis --- efi/guid.c| 7 +++ efi/payload/efi-init

[PATCH v2 05/10] efi: payload: make selectable without COMPILE_TEST

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi/Kconfig b/efi/Kconfig index 5f4c6713d539..5ae7ec92e5f8 100644 --- a/efi/Kconfig +++ b/efi/Kconfig @@ -6,7 +6,7 @@ config HAVE_EFI_PAY

[PATCH v2 03/10] efi: payload: add support for efi stub boot

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v2 02/10] efi: payload: split image handling from legacy handover boot support

2025-09-15 Thread chalianis1
From: Ahmad Fatoum Signed-off-by: Ahmad Fatoum Signed-off-by: Chali Anis --- efi/Kconfig| 4 + efi/payload/Kconfig| 4 + efi/payload/Makefile | 2 + efi/payload/handover.c | 195 +++ efi/payload/image.c| 228 ++

[PATCH v2 04/10] efi: payload: add support for fit image

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH v2 01/10] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-15 Thread chalianis1
From: Ahmad Fatoum We currently lack a way to build a barebox EFI payload on ARM without enabling some other subarchitecture. As CONFIG_EFI_PAYLOAD has a global effect and adds EFI stubs to all enabled board, an EFI subarchitecture doesn't fit into our current model. Instead, let's make it possi

[PATCH 6/7] arm: efi: add a generic defconfig for v8 efi payload,

2025-09-15 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- arch/arm/configs/efi_v8_defconfig | 266 ++ 1 file changed, 266 insertions(+) create mode 100644 arch/arm/configs/efi_v8_defconfig diff --git a/arch/arm/configs/efi_v8_defconfig b/arch/arm/configs/efi_v8_defconfig new

[PATCH 3/7] efi: payload: add support for efi stub boot

2025-09-15 Thread chalianis1
From: Ahmad Fatoum This patch has more stock, between implementing EFI STUB boot, refactor to reuse the code and finaly support the fit image format. This code is tested on many qemu EFI compilations comming from ovmf ubuntu package, tianocore efi for qemu, local edk2 build, and also tested on RP

[PATCH] ARM: dts: k3-am62l: read MAC address from E-Fuse

2025-09-15 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/dts/k3-am62l-main.dtsi | 1 + arch/arm/dts/k3-am62l-wakeup.dtsi | 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/dts/k3-am62l-main.dtsi b/arch/arm/dts/k3-am62l-main.dtsi index b7b52d6b56..f1f67c1cc4 100644 --- a/arch/arm/dts/k3-am62l-ma

[PATCH] usb: dwc3: remove non existent Kconfig option

2025-09-15 Thread Sascha Hauer
CONFIG_USB_ROLE_SWITCH does not exist in barebox. Remove the test for this option. Fixes: 5d01c33175 ("usb: dwc3: sync with Linux-6.3-rc2") Signed-off-by: Sascha Hauer --- drivers/usb/dwc3/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/driv

Re: [PATCH] arch: x86: efi_defconfig: remove framebuffer console to fix duplicate screen.

2025-09-15 Thread Ahmad Fatoum
Hi, On 9/14/25 9:40 PM, chalian...@gmail.com wrote: > From: Chali Anis > > remove the framebuffer console and let develpers select it when needed, this > fixes the problem that consist of having the screen splited to top and bottom > displaying the output twice, and considerably speedup the efi