[PATCH] net: efi-snp: fix mac address change when it is not supported.

2025-09-27 Thread chalianis1
From: Chali Anis continue interface open if the efiret is unsupported since the mac address change is not always supported, this permits to not fail when the network could be used since it already has a network mac address configured, this is at least the case on qemu with certain versions of ED

[PATCH 2/7] efi: payload: split image handling from legacy handover boot support

2025-09-20 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 7/7] efi: payload: initrd: implement efi initrd media protocol.

2025-09-20 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 02/15] efi: payload: add support for efi stub boot

2025-09-19 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 00/15] Implement efi loader to run barebox as efi payload app and then load efi stubed application/kernels.

2025-09-19 Thread chalianis1
Signed-off-by: Chali Anis --- Ahmad Fatoum (5): efi: payload: split image handling from legacy handover boot support efi: payload: add support for efi stub boot efi: payload: add support for fit image efi: payload: make selectable without COMPILE_TEST ARM: cpu: allow

[PATCH 14/15] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-19 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 01/15] efi: payload: split image handling from legacy handover boot support

2025-09-19 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 04/15] efi: payload: make selectable without COMPILE_TEST

2025-09-19 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 5f4c6713d539abc88e3244f7ff3933274a8c4ebb..5ae7ec92e5f8d12f72842c5c97bc9ed924b6dff9 100644 --- a/efi/Kco

[PATCH 03/15] efi: payload: add support for fit image

2025-09-19 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 1/7] ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

2025-09-17 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] riscv: dma: rename dma_ops to dma_map_ops.

2025-09-17 Thread chalianis1
From: Chali Anis rename dma_ops to dma_map_ops for more consistence. Signed-off-by: Chali Anis --- arch/riscv/cpu/dma.c | 6 +++--- arch/riscv/include/asm/dma.h | 4 ++-- drivers/soc/starfive/jh7100_dma.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/

[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

[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] arch: x86: efi_defconfig: remove framebuffer console to fix duplicate screen.

2025-09-14 Thread chalianis1
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 payload on x86. Fixes: 67498b411276 ("x86: configs: efi: enabl

[PATCH] drivers: dma: refactor: rename dma_ops to dma_device_ops.

2025-09-14 Thread chalianis1
From: Chali Anis This patch is an esthetic cleanup, rename the dma_ops to dma_device_ops to be sure that the struct in drivers/dma is different from one used in arch/riscv/cpu. I accidentally faced the issue telling that the struct is defined in the two places but it is not supposed to happen sin

[PATCH] efi: payload: entry-single: memory need to be alloccated as data.

2025-09-14 Thread chalianis1
From: Chali Anis The entry single is used in x86, this memory allocation need to be set to data since it is used to initialise the malloc memory. set all this region to loader code could represent a security issue since we autorise memory execution. Fixes: 7497c86c5032 ("efi: payload: early-mem:

[PATCH] efi: payload: image: fix many issues in the code.

2025-09-03 Thread chalianis1
From: Chali Anis fix memory free missing. fix unrechable code issue. set the fdt memory to a fixed 128KB. fix oftree_file exist check. Signed-off-by: Chali Anis --- efi/payload/image.c | 56 +++-- 1 file changed, 34 insertions(+), 22 deletions(-) diff -

[PATCH 2/7] efi: video: gop: remove dependency to x86.

2025-08-30 Thread chalianis1
From: Chali Anis efi GOP work also in arm64, the efi has drivers that implements LCDs and expose them as GOP protocol. Tested on QEMU ramfb and RPi3b 64 bit. Signed-off-by: Chali Anis --- drivers/video/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/Kconfig b/drivers/v

[PATCH 7/7] efi: payload: add options for FDT force and initrd direct install

2025-08-30 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- efi/Kconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/efi/Kconfig b/efi/Kconfig index 84f670fd23d3..c3811574920d 100644 --- a/efi/Kconfig +++ b/efi/Kconfig @@ -50,4 +50,21 @@ config EFI_PAYLOAD_DEFAULT_PATH endif +

[PATCH 6/7] efi: payload: add support for efi stub boot and fit image.

2025-08-30 Thread chalianis1
From: Chali Anis 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 RPi3

[PATCH 3/7] efi: payload: initrd: implement efi initrd media protocol.

2025-08-30 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/Makefile

[PATCH 5/7] lib: fdt: add lib fdt padding size.

2025-08-30 Thread chalianis1
From: Chali Anis When loading an unflating an FDT in some cases we need to have a padding space to be able to apply fixes. Signed-off-by: Chali Anis --- lib/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index d07e2f3b6959..89e95d202c2c 100644 --- a/l

[PATCH 4/7] arm: efi: add a generic efi machine.

2025-08-30 Thread chalianis1
From: Chali Anis add a generic arm64 machine that can select the CPU_V8 and the required efi payload minimal configs. this machine permits to have a clean arm64 efi payload, idealy we don't need the other machine that comes from multi arch since they execute code that is specific for the correspo

[PATCH 1/7] drivers: video: efi-gop: fix null reference pointer.

2025-08-30 Thread chalianis1
From: Chali Anis fix a null reference pointer on mode variable, that was never initialized, the mode will be set by the framebuffer subsyetem after initialisation so it's not necessary to change the resolution here. Fixes: 6518b21c6c66 ("video: add EFI Graphics Output Protocol support") Signed-o

[PATCH] clk: clkdev: fix format security.

2025-08-30 Thread chalianis1
From: Chali Anis not a string literal and no format arguments [-Werror=format-security] Fixes: 61da1fea5d3c ("clk: sifive: Fix missing conversion to struct clk_hw") Signed-off-by: Chali Anis --- drivers/clk/sifive/sifive-prci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] drivers: video: efi-gop: fix null reference pointer on priv->fb.mode=NULL.

2025-08-27 Thread chalianis1
From: Chali Anis fix a null reference pointer on mode variable, that was never initialized, the mode will be set by the framebuffer subsyetem after initialisation so it's not necessary to change the resolution here. Fixes: 6518b21c6c66 ("video: add EFI Graphics Output Protocol support") Signed-

[PATCH] arm: crypto: add a check for crypto extensions support.

2025-08-27 Thread chalianis1
From: Chali Anis In some configuration the CPU may raise an exception bacause of an unknown instruction if it does not support Crypto Extensions for example in some BCM281X (RPi3B in my case) when running barebox as an EFI Payload, where the EFI stops with a synchronous execption See bellow: Sync

[PATCH] arm: crypto: add a check for crypto extensions support.

2025-08-26 Thread chalianis1
From: Chali Anis In some configuration the CPU may raise an exception bacause of an unknown instruction if it does not support Crypto Extensions for example in some BCM281X (RPi3B in my case) when running barebox as an EFI Payload, where the EFI stops with a synchronous execption See bellow: Sync

[PATCH] arm: configs: raspberry-pi: add support for fit image.

2025-08-26 Thread chalianis1
From: Chali Anis Signed-off-by: Chali Anis --- arch/arm/configs/rpi_defconfig | 1 + arch/arm/configs/rpi_v8a_defconfig | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig index ed583f80a0d7..ab146d755133 100

[PATCH] common: bootm: only use initrd override if non-empty

2025-08-25 Thread chalianis1
From: Chali Anis OSTree integration in Yocto generates an empty initramfs file and references it in the boot configuration (under /boot/loader/ostree-1.conf) to suppress init= kernel arguments. This caused Barebox to always prefer the override, even when the initramfs was empty, preventing bootin

[PATCH] efi: devicepath: add support for mbr partition.

2025-08-23 Thread chalianis1
From: Chali Anis Add support for mbr partition for loading barebox from usb key or even from qemu fat partition as an efi payload. Signed-off-by: Chali Anis --- efi/devicepath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/efi/devicepath.c b/efi/devicepath.c index 3424

[PATCH] efi: payload: early-mem: add memory type on early mem allocation

2025-08-22 Thread chalianis1
From: Chali Anis Add the ability to specify the memory type which mendatory for the recent efi versions that have MMU, this will fix a permission fault on second level when trying to relocate the barebox or even execting the memory code. see the snapshot error log below. SP 0x7C6CFF80

[PATCH] arm: efi: add a dummy efi arch on ARM64

2025-07-29 Thread chalianis1
From: Chali Anis this arch will forces a generic arm 64 cpu, which will produce an efi payload on ARM 64, this works with a virtual machine using qemu-system-aarch64, need further work to support real hardware. Submit the patch in case someone is interrested in working to have a full support for

[PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled

2025-07-29 Thread chalianis1
From: Chali Anis This permits to not compile when it's not used, fix undefined reference error. Signed-off-by: Chali Anis --- drivers/clk/clk-fixed-factor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index d2c808d40c63

[PATCH] clk: clkdev: fix format security.

2025-07-28 Thread chalianis1
From: Chali Anis not a string literal and no format arguments [-Werror=format-security] Fixes: dfcdce8eec30 ("arm: add common clkdev") Signed-off-by: Chali Anis --- drivers/clk/clkdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkde

[PATCH] pinctrl: tegra30: fix typo with variables to control the drive state on nvidia pins.

2025-07-24 Thread chalianis1
From: Chali Anis Fixes: fd940ff6512b ("pinctrl: tegra30: parse drive groups") Signed-off-by: Chali Anis --- drivers/pinctrl/pinctrl-tegra30.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-tegra30.c b/drivers/pinctrl/pinctrl-tegra30.c ind