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
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 ++
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
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
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
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
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 ++-
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
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
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
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/
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
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
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
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
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
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
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
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 +--
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
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
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 ++
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
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
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
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
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
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
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
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
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
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 +--
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
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
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
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
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 ++
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
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 +--
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
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
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
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
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 ++
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
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
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
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
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
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
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:
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 -
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
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
+
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
71 matches
Mail list logo