Hi,
On Thu, 24 Jul 2025 at 04:52, Simon Glass wrote:
>
> From: Simon Glass
>
> Add some debugging to virtiofs in the directory-handling area.
>
> Drop a stray, blank line while here.
>
> Signed-off-by: Simon Glass
> ---
>
> drivers/virtio/fs.c | 1
Hi,
Just a note to say that I'll be disengaging from the mailing list and
irc for a while I work on some specific areas. Please send me a direct
email / irc message if needed, but no promises!
Regards,
Simon
Add implementation for bootmeth rauc
> doc: Add description for bootmeth rauc
>
> boot/Kconfig | 51 +
> boot/Makefile| 1 +
> boot/bootmeth_rauc.c | 432
> +++
> doc/develop/bootstd/index.rst| 1 +
> doc/develop/bootstd/overview.rst | 1 +
> doc/develop/bootstd/rauc.rst | 56 +
> 6 files changed, 542 insertions(+)
> ---
> base-commit: b22a276f039f818d5564bec6637071cfc8a7e432
> change-id: 20250129-wip-bootmeth-rauc-03b5e2dd88f4
>
> Best regards,
> --
> Martin Schwan
>
Great to see this. Could you please add a test, e.g. to
test/boot/bootflow.c ? Let me know if you need help.
Regards,
Simon
Hi Ilias,
On Sat, 24 May 2025 at 12:24, Ilias Apalodimas
wrote:
>
> On Sat, 24 May 2025 at 20:59, Ilias Apalodimas
> wrote:
> >
> > Thanks Tom
> >
> > On Sat, 24 May 2025 at 17:26, Tom Rini wrote:
> > >
> > > On Sat, May 24, 2025 at 08:13:4
Hi Tom,
On Wed, 4 Jun 2025 at 11:23, Tom Rini wrote:
>
> On Wed, Jun 04, 2025 at 10:17:32AM -0600, Simon Glass wrote:
> > Hi Jerome,
> >
> > On Wed, 4 Jun 2025 at 07:15, Jerome Forissier
> > wrote:
> > >
> > > On 6/4/25 15:09, Simon Glass wrot
Hi Jerome,
On Wed, 4 Jun 2025 at 07:15, Jerome Forissier
wrote:
>
> On 6/4/25 15:09, Simon Glass wrote:
> > The condition here is reversed, which makes link and coral very slow,
> > leading to lab failures.
> >
> > Signed-off-by: Simon Glass
> > Fixes 6c171f7
Hi Tom,
On Tue, 3 Jun 2025 at 10:10, Tom Rini wrote:
>
> On Tue, Jun 03, 2025 at 09:22:01AM -0600, Simon Glass wrote:
> > Hi Jerome,
> >
> > On Fri, 4 Apr 2025 at 07:50, Jerome Forissier
> > wrote:
> > >
> > > Change board_init_f(), board_init_f_r
The condition here is reversed, which makes link and coral very slow,
leading to lab failures.
Signed-off-by: Simon Glass
Fixes 6c171f7a184 ("common: board: make initcalls static")
---
common/board_f.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/b
Hi Tom,
On Fri, 23 May 2025 at 08:08, Tom Rini wrote:
>
> On Fri, May 23, 2025 at 02:48:15PM +0100, Simon Glass wrote:
> > Hi Benjamin,
> >
> > On Tue, 20 May 2025 at 22:35, Benjamin ROBIN wrote:
> > >
> > > When building with only bootz command,
y x86 uses this route, but it is intended that
> * all archs will move to this when generic relocation is implemented.
> */
> -static const init_fnc_t init_sequence_f_r[] = {
> -#if !CONFIG_IS_ENABLED(X86_64)
> - init_cache_f_r,
> +static void initcall_run_f_r(void)
> +{
> +#if CONFIG_IS_ENABLED(X86_64)
This is reversing the condition, which breaks link and coral in my lab.
> + INITCALL(init_cache_f_r);
> #endif
> -
> - NULL,
> -};
> +}
Regards,
Simon
Hi Ilias,
I finally picked up the TPM you recommended (LetsTrust [1]) and
attached it to a rpi4 and used the instructions at [2]. It seems to
work fine in my CI - see [3].
Regards,
Simon
[1] https://buyzero.de/products/letstrust-hardware-tpm-trusted-platform-module
[2] https://github.com/joholl
There are backslashes in some of the tags which seems to be unnecessary.
Remove then.
Change the word 'either' to 'any' since there are three options.
Signed-off-by: Simon Glass
---
doc/usage/cmd/bootefi.rst | 20 ++--
1 file changed, 10 insertions(+), 1
Hi,
On Sun, 1 Jun 2025 at 13:04, Simon Glass wrote:
>
> There are backslashes in some of the tags which seems to be unnecessary.
> Remove then.
>
> Change the word 'either' to 'any' since there are three options.
>
> Signed-off-by: Simon Glass
Hi Tom,
On Fri, 30 May 2025 at 17:59, Tom Rini wrote:
>
> On Fri, May 30, 2025 at 04:42:18PM +0100, Simon Glass wrote:
> > Hi Tom,
> >
> > On Fri, 30 May 2025 at 15:06, Tom Rini wrote:
> > >
> > > On Fri, May 30, 2025 at 02:31:13PM +010
> [21/24] kbuild: strip whitespace in cmd_record_mcount findstring
> > commit: 25ab30f1c46efc8d2c11b01013449c09815a3f65
> > [22/24] kbuild: remove unused archmrproper
> > commit: 0719c79e09de41aaba0ee5d86dcd578828d4aad3
> > [23/24] kbuild: make -r/-R effective in top Makefile for old Make versions
> > commit: af1a9935708a30614e3dbf4a33e5fe90e846f598
> > [24/24] kbuild: add -Werror=strict-prototypes flag unconditionally
> > commit: 0128b2cf4da8bd69c695d56743a666faf159d2d5
> > --
> > Tom
This is fantastic, thank you Ilias!
- Simon
Hi Tom,
On Fri, 30 May 2025 at 15:06, Tom Rini wrote:
>
> On Fri, May 30, 2025 at 02:31:13PM +0100, Simon Glass wrote:
>
> > Hi Tom,
> >
> > I have always found the azure pipeline to be slow, but I found that it
> > actually does support having your own runners
5f-9710-46ad-88c1-5e99a7c3cde6_1.log:2025-05-30T13:24:34.1360950Z
+ ./test/py/test.py -ra -o cache_dir=/tmp/sandbox64/.pytest_cache --bd
sandbox64 --build-dir /tmp/sandbox64 --report-dir /tmp/sandbox64
--junitxml=/home/azure/azure/agent3/_work/1/s/results.xml
azure@ruru:~/azure$
It seems a bit strange. If you have any ideas, please let me know.
Regards,
Simon
f improvements.
----
Simon Glass (46):
abuf: Add a helper for initing and allocating a buffer
abuf: Add a function to copy a buffer
abuf: Add a way to printf() into a buffer
expo: Add CLI context to the expo
or me to comment on the series in this state.
Also there's no need to put an 'RFC' tag on this series. We do want to
resolve this, one way or another.
>
> Reported-by: Simon Glass
> Signed-off-by: Yannic Moog
> ---
> tools/binman/binman.rst| 7 +++
> to
git a/tools/binman/image.py b/tools/binman/image.py
> index
> 24ce0af7c72b5256a9a71963a6d94c080ed8bdd4..86543ad8db36b38afc1957fde7e20152067b79aa
> 100644
> --- a/tools/binman/image.py
> +++ b/tools/binman/image.py
> @@ -15,7 +15,7 @@ import sys
> from binman.entry import Entry
> from binman.etype import fdtmap
> from binman.etype import image_header
> -from binman.etype import section
> +from etype import section
Why this change? I suspect it will break when installed with 'pip
install binary-manager'
> from dtoc import fdt
> from dtoc import fdt_util
> from u_boot_pylib import tools
> @@ -183,6 +183,8 @@ class Image(section.Entry_section):
> fname = tools.get_output_filename(self._filename)
> tout.info("Writing image to '%s'" % fname)
> with open(fname, 'wb') as fd:
> +# For final image, don't write absent blobs to file
> +self.drop_absent_optional()
> data = self.GetPaddedData()
> fd.write(data)
> tout.info("Wrote %#x bytes" % len(data))
>
> --
> 2.43.0
>
Regards,
Simon
---
> tools/binman/etype/ti_board_config.py | 8 ++---
> tools/binman/ftest.py | 43 +---
> tools/binman/image.py | 4 ++-
> 17 files changed, 138 insertions(+), 82 deletions(-)
> ---
> base-commit: eeb5ff1a468b2303efa9deb2483b5edbebb568c6
> change-id: 20250122-binman_faked_optional-5025f7046e25
>
> Best regards,
> --
> Yannic Moog
>
Regards,
Simon
,
But let's try it for now.
Can you push these changes into the other commits so that the series
is bisectable with 'binman test' ?
>
> Signed-off-by: Yannic Moog
> ---
> tools/binman/ftest.py | 18 +++---
> 1 file changed, 11 insertions(+), 7 deletions(-)
>
Regards,
Simon
tools/binman/etype/ti_board_config.py | 8 +++
> tools/binman/ftest.py | 2 +-
> 11 files changed, 44 insertions(+), 44 deletions(-)
Are you sure this is right? The classes which use _entries are
subclasses, except for ftest.py which is test code where we should
probably add:
#pylint: disable=protected-access
Regards,
Simon
ned-off-by: Yannic Moog
> ---
> tools/binman/entry.py | 11 +--
> tools/binman/etype/blob.py | 7 +++
> tools/binman/etype/blob_ext_list.py | 4 ++--
> 3 files changed, 10 insertions(+), 12 deletions(-)
Reviewed-by: Simon Glass
For the commi
If a BootFail exception is thrown in a test, it is not handled
correctly. Use the correct fixture variable 'ubman_fix' to resolve this.
Signed-off-by: Simon Glass
Fixes: d9ed4b75add ("test/py: Drop u_boot_ prefix on test files")
---
test/py/conftest.py | 2 +-
1 file change
If an Unexpected exception is thrown in a test, an undefined variable
error is reported. Fix this.
Signed-off-by: Simon Glass
Fixes: 85d7dae377a ("test: Detect dead connections")
---
test/py/conftest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/py/con
Hi Tom,
On Wed, 28 May 2025 at 16:19, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 03:32:12PM +0100, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 28 May 2025 at 15:25, Tom Rini wrote:
> > >
> > > On Wed, May 28, 2025 at 06:32:02AM -0600, Simon Glass
Hi Tom,
On Wed, 28 May 2025 at 15:25, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 06:32:02AM -0600, Simon Glass wrote:
> >
> > This series adds a standard way of passing information between different
> > firmware phases. This already exists in U-Boot at a very basic lev
Hi Tom,
On Wed, 28 May 2025 at 16:05, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 03:32:08PM +0100, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 28 May 2025 at 15:12, Tom Rini wrote:
> > >
> > > On Wed, May 28, 2025 at 08:35:37AM +0100, Simon Glass w
Hi Quentin,
On Wed, 28 May 2025 at 17:15, Quentin Schulz wrote:
>
> Hi Simon,
>
> On 5/28/25 4:32 PM, Simon Glass wrote:
> > Hi Quentin,
> >
> > On Wed, 28 May 2025 at 14:06, Quentin Schulz wrote:
> >>
> >> From: Quentin Schulz
> >>
>
Create a Kconfig which indicates that EFI functionality is in use,
either as a client (EFI app / stub) or provider (EFI loader). This will
make it easier to share code between these two parts of U-Boot
Signed-off-by: Simon Glass
---
doc/develop/uefi/u-boot_on_efi.rst | 6 +++---
lib/efi
The 'EFI PAYLOAD' entry really refers to the EFI loader and EFI APP
refers to the app and the payload.
Rename 'EFI PAYLOAD' to 'EFI LOADER' and 'EFI APP' to 'EFI CLIENT'
Signed-off-by: Simon Glass
---
MAINTAINERS | 4 ++--
1 file chan
for U-Boot being a client of EFI, i.e. the EFI app and stub.
Signed-off-by: Simon Glass
---
MAINTAINERS| 2 +-
Makefile | 2 +-
doc/develop/uefi/u-boot_on_efi.rst | 8
lib/Makefile | 2 +-
lib/{efi
The generic name 'EFI' would be more useful for common EFI features. At
present it just refers to the EFI app and stub, which is confusing.
Rename it to EFI_CLIENT
Signed-off-by: Simon Glass
---
arch/x86/Kconfig| 6 +++---
arch/x86/cpu/Makefile |
Hi Tom,
On Wed, 28 May 2025 at 16:01, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 03:25:32PM +0100, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 28 May 2025 at 15:09, Tom Rini wrote:
> > >
> > > On Wed, May 28, 2025 at 02:24:26AM -0600, Simon Glas
avoid the compiler masking values before calling a
function, which can increase code size. In this case I could make the
argument either way.
Reviewed-by: Simon Glass
Regards,
Simon
Hi Tom,
On Tue, 27 May 2025 at 14:32, Tom Rini wrote:
>
> On Tue, May 27, 2025 at 06:40:34AM -0600, Simon Glass wrote:
>
> > This is quite long at present. Rename it so that fixes better with the
> > bootstd naming.
> >
> > Signed-off-by: Simon Glass
>
>
int")
> Signed-off-by: Quentin Schulz
> ---
> drivers/core/read.c | 4 ++--
> include/dm/read.h | 8
> 2 files changed, 6 insertions(+), 6 deletions(-)
Reviewed-by: Simon Glass
Hi Tom,
On Wed, 28 May 2025 at 15:12, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 08:35:37AM +0100, Simon Glass wrote:
> > Hi Ilias,
> >
> > On Tue, 27 May 2025 at 10:20, Ilias Apalodimas
> > wrote:
> > >
> > > Hi Simon,
> > &g
Hi Tom,
On Wed, 28 May 2025 at 15:09, Tom Rini wrote:
>
> On Wed, May 28, 2025 at 02:24:26AM -0600, Simon Glass wrote:
>
> > This series makes a number of improvements to the EFI app. Mostly it
> > applies to x86 but the ARM version will share some improvements.
> &g
Hi Casey,
On Wed, 28 May 2025 at 12:03, Casey Connolly wrote:
>
>
>
> On 5/23/25 16:06, Tom Rini wrote:
> > On Fri, May 23, 2025 at 02:06:35PM +0100, Simon Glass wrote:
> >
> >> Some functions provided in lib/efi_loader are actually useful for the
> >&
, so we can obtain it
from standard passage.
For now this just boots and hangs in SPL as there is no bloblist.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add a build for aarch64 as well
arch/arm/dts/qemu-arm64-u-boot.dtsi | 29 ++
arch/arm/dts/qemu-arm64.dts
ches already applied)
- Rework global_data for new stdpass convention
- Split the jump_to_image_no_args() change into its own patch
- Update the commit message to mention the long lines
- Use three registers instead of two for the entry
Simon Glass (25):
RFC: scripts: Add scripts for running QEM
e set automatically by each
platform.
[1] https://docs.u-boot.org/en/latest/develop/devicetree/dt_qemu.html
Link:
https://patchwork.kernel.org/project/qemu-devel/patch/20210926183410.256484-1-...@chromium.org/#24481799
Signed-off-by: Simon Glass
Suggested-by: Tom Rini
---
(no changes since v3)
Chang
Add tests that check that SPL can generate a standard passage on ARM and
that U-Boot proper can accept it successfully.
- Finish the commit message
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add test for aarch64
- Add tests for azure
.azure-pipelines.yml | 6
Add checks / documentation for blobs which are already in the list. This
brings U-Boot up to the standard required by the standard-passage
documentation.
Signed-off-by: Simon Glass
---
(no changes since v1)
board/sandbox/stdpass_check.c | 70 -
include/stdpass/tpm2_eventlog.h | 42
This tag already exists in U-Boot. Add documentation, following the
format set out.
Signed-off-by: Simon Glass
---
(no changes since v1)
board/sandbox/stdpass_check.c | 15 ---
include/handoff.h | 10 +++---
2 files changed, 15 insertions(+), 10 deletions(-)
diff
Add documentation about standard passage and update the maintainers.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Fix 'that' typo
- Update docs for the various code changes
Changes in v2:
- Add comments about how to pass standard passage to EFI
- Add comm
Check that the standard passage works on ARM, by setting it up in SPL
and making sure that it comes through correctly in U-Boot proper.
Signed-off-by: Simon Glass
---
Changes in v5:
- Enable the test for any board which uses OF_PASSAGE
Changes in v3:
- Add conditions to avoid enaling the test
Add a file which can be used to check that structs used in standard
passage do compile. No other validation is done at present, but could be
considered later.
Signed-off-by: Simon Glass
---
(no changes since v1)
board/sandbox/Makefile| 3 ++-
board/sandbox/stdpass_check.c | 34
This is not needed now, as the startup protocol is handled in
arch-specific code early in boot.
Drop BLOBLIST_PASSAGE_MANDATORY as well, as OF_BLOBLIST is enough to
cover this. With standard passage the devicetree is accessed before the
bloblist is inited.
Signed-off-by: Simon Glass
---
(no
can obtain it
from standard passage.
For now this just boots and hangs in SPL as there is no bloblist.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Drop common.h
- Refresh the U-Boot output in the documentation
- Use bootph tags
arch/arm/dts/qemu-arm-u-boot.dtsi
We need to enable CONFIG_BLOBLIST_PASSAGE sand CONFIG_PASSAGE_IN so that
U-Boot is built with support for accepting an incoming standard passage.
Update the defconfig accordingly.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Add new patch to update vexpress_fvp to use
Add implementations for 32- and 64-bit ARM.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Update registers to match the Firmware Handoff protocol
Changes in v2:
- Add new patch with the arm-specific standard passage implementation
arch/arm/cpu/armv7/cpu.c | 18
Create a new arch-specific way of creating a standard passage for the
next phase.
Signed-off-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Fix 'to' typo
Changes in v2:
- Make the stdpass calling standard arch-specific
common/spl/spl.c | 26 +---
Add an option for SPL to add a devicetree to the passage bloblist, so
SPL can provide the devicetree to U-Boot.
Fix a few long lines while we are here.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Rebase on -master
- Update the commit message to mention the long lines
/firmware_handoff/main/index.html
Signed-off-by: Simon Glass
---
While some efforts were made to encourage Intel to adopt this
specification, this has not yet been successful. However I do intend to
use my proposed x86 handoff in U-Boot, once this series is in.
(no changes since v4)
Changes in v4:
- Update
Add an option to receive the FDT using standard passage from a previous
phase. Rename the FDT source to 'passage' to match the old terminology,
which was only partially added.
Signed-off-by: Simon Glass
---
(no changes since v1)
env/common.c | 2 +-
include/fdtdec.h | 4
The bloblist is not inited any earlier in the board_f sequence now, so
drop this function. Just use bloblist_init() instead.
Signed-off-by: Simon Glass
---
Changes in v5:
- Add new patch to drop bloblist_maybe_init()
common/bloblist.c | 8
common/board_f.c | 4 +++-
include
valid bloblist, since the devicetree is processed
first.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to adjust how the bloblist is received from stdpass
common/bloblist.c | 70 ---
1 file changed, 30
The existing logic for handling receiving a devicetree from a previous
phase is quite complicated. Simplify it in preparation for introducing
standard passage.
Add a Kconfig called OF_PASSAGE which indicates that the devicetree
must come from standard passage.
Signed-off-by: Simon Glass
Plumb in the ability for U-Boot proper to accept an incoming standard
passage from a previous phase, such as SPL or TF-A. This allows data to
be passed from binary to binary when firmware is booting.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add passage_valid() to
This is about to become a misnomer since with standard passage we need to
pass arguments to U-Boot. Rename the function.
Also rename the local variable to 'jumper' to avoid a conflict.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Split the jump_to_ima
Move this so we can include it from sandbox, needed since it is in a
bloblist and must have a check.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/x86/cpu/apollolake/acpi.c| 2 +-
arch/x86/cpu/intel_common/acpi.c | 2 +-
arch/x86/include/asm
These is present in my tree. Provide it as a patch to simplify testing
this series with QEMU.
Signed-off-by: Simon Glass
---
(no changes since v1)
scripts/build-efi | 173 +
scripts/build-qemu | 415
scripts/build_helper.py
These are out of order. Fix them.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 76fd56dfe4b..abbca9acde0 100644
--- a/common/spl
Add a -x flag to build/run xPL instead of the normal build.
Signed-off-by: Simon Glass
---
Changes in v5:
- Add RFC for test script
scripts/build-qemu | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/scripts/build-qemu b/scripts/build-qemu
index 5798da3775c
Hi Tom,
On Mon, 26 May 2025 at 15:42, Tom Rini wrote:
>
> On Sun, May 25, 2025 at 09:43:14AM +0100, Simon Glass wrote:
>
> > Hi Tom,
> >
> > Bloblist is IMO a bit of a mess, with 2-3 maintainers who don't agree
> > on the direction.
> >
> > Yo
Hi Tom,
On Mon, 26 May 2025 at 15:51, Tom Rini wrote:
>
> On Mon, May 26, 2025 at 03:10:49PM +0100, Simon Glass wrote:
>
> > Hi Tom,
> >
> > What do you think about having a Linux distro in the docker image so
> > we could run a 'boot' test in CI witho
When networking is disabled, avoid trying to use networking in the app.
Signed-off-by: Simon Glass
---
lib/efi_client/efi_app_init.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/efi_client/efi_app_init.c b/lib/efi_client/efi_app_init.c
index 25a9b105d63
Add a Kconfig option to easily enable debugging of the app using the
recommended method. Provide some docs too.
Signed-off-by: Simon Glass
---
doc/develop/uefi/u-boot_on_efi.rst | 39 ++
lib/efi_client/Kconfig | 12 -
lib/efi_client/efi.c
Use a condition to ensure this symbol is not accessed in the EFI app.
Signed-off-by: Simon Glass
---
boot/vbe_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/vbe_common.c b/boot/vbe_common.c
index a86986d86e9..f9368a6a9ab 100644
--- a/boot/vbe_common.c
+++ b
Mark important sections with KEEP so that the linker will not remove
them when garbage-collection is (later) enabled.
Provide a _end symbol so that this can be accessed in setup_mon_len()
Signed-off-by: Simon Glass
---
arch/x86/lib/elf_ia32_efi.lds | 5 +++--
arch/x86/lib/elf_x86_64_efi.lds
This provides a few clean-ups:
- sort the imports correctly
- sort the arguments (-v is in the wrong place)
- use os_arch for the OS architecture, to match build-efi
Signed-off-by: Simon Glass
---
scripts/build-qemu | 20 ++--
1 file changed, 10 insertions(+), 10 deletions
Add a -v option for verbose output. For now this just shows the QEMU
cmdline before starting it. This allows the user to start it separately,
perhaps tweaking the args.
Signed-off-by: Simon Glass
---
scripts/build-efi | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a
The TPM driver used in the app here should 'efi_tpm', not 'efi_net'. Fix
it.
Signed-off-by: Simon Glass
---
lib/efi_client/efi_app_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/efi_client/efi_app_init.c b/lib/efi_client/efi_app_init
Enable logging, TPM and the lsblk and cat commands. These are all useful
for using and debugging the EFI app.
For the 32-bit app, enable CONFIG_BOARD_EARLY_INIT_R so that the EFI
devices are scanned.
Signed-off-by: Simon Glass
---
configs/efi-x86_app32_defconfig | 9 +
configs/efi
Use bootstd for booting. Add the -p option since we may wish to boot
from an extlinux file even if a EFI partition is present.
Disable the bootz command since this is not applicable for x86 and
causes bootstd to attempt it anyway.
Signed-off-by: Simon Glass
---
configs/efi-x86_app32_defconfig
The cache is managed by the first-stage EFI firmware, so the 'cache'
command is not useful.
SCSI and AHCI are not used in the app, since it relies on EFI for all
block devices.
Make sure all three options are not present in the 32/64-bit apps.
Signed-off-by: Simon Glass
---
c
Add --gc-sections to help reduce the size of the EFI app. Add a check
for undefined symbols too, since using these can hang or crash the app.
Signed-off-by: Simon Glass
---
arch/x86/config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/config.mk b/arch/x86
These two files are not used in the EFI app and it does not make sense
to compile them in. Omit relocate.c and physmem.c
Signed-off-by: Simon Glass
---
arch/x86/lib/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile
index afb6abb57d3
Although GD_FLG_SKIP_RELOC is enabled for the app, the code for
relocation is still present in the image. Add a few dummy functions
needed on x86.
Signed-off-by: Simon Glass
---
lib/efi_client/efi_app.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib/efi_client/efi_app.c b
The EFI app has its own way of handling the global_data pointer,
regardless of which arch is in use. Skip the jump_to_copy() function
since it calls the arch-specific arch_setup_gd().
Signed-off-by: Simon Glass
---
common/board_f.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Bootstd needs a driver so that it can scan EFI media within the EFI app.
Add one.
Signed-off-by: Simon Glass
---
drivers/block/efi_blk.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/drivers/block/efi_blk.c b/drivers/block/efi_blk.c
index 9766cd6f832
Update the links to an embedded style. Also drop the part about needing
to support ARM, as this is done now.
Signed-off-by: Simon Glass
---
doc/develop/uefi/u-boot_on_efi.rst | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/doc/develop/uefi/u-boot_on_efi.rst
b/doc
.
Signed-off-by: Simon Glass
---
arch/x86/lib/elf_ia32_efi.lds | 26 ++
arch/x86/lib/elf_x86_64_efi.lds | 25 +
2 files changed, 23 insertions(+), 28 deletions(-)
diff --git a/arch/x86/lib/elf_ia32_efi.lds b/arch/x86/lib/elf_ia32_efi.lds
index
When the TPM is disabled, avoid trying to use it in the app.
Signed-off-by: Simon Glass
---
lib/efi_client/efi_app_init.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/efi_client/efi_app_init.c b/lib/efi_client/efi_app_init.c
index ff31266fb12..938b16d14ab
tflow scan' to allow any partition to be
scanned.
Signed-off-by: Simon Glass
---
cmd/bootflow.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 6063d9dfa7d..a8d9cb213e6 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -15
The current name of 'efi_media' is annoying in that it must be given
with 'bootflow scan'. We would prefer to use 'bootflow scan efi', for
example.
Rename the driver to 'efi'.
Signed-off-by: Simon Glass
---
drivers/block/efi-media-uclass.c | 2 +-
1
At present the -bios option is used to specify the firmware, but this does
not allow settings to be adjusted.
Use the pflash method instead, with a separate variables file, so that
settings can be changed.
Add a -g option to tell QEMU to stop and wait for gdb to connect.
Signed-off-by: Simon
Add a -g option to tell QEMU to stop and wait for gdb to connect.
Signed-off-by: Simon Glass
---
scripts/build-efi | 5 +
1 file changed, 5 insertions(+)
diff --git a/scripts/build-efi b/scripts/build-efi
index 5a6eef450d4..33702953c32 100755
--- a/scripts/build-efi
+++ b/scripts/build
The help for 'bootflow scan' is missing some flags. Tidy this up and
update the docs as well, keeping the flags in alpha order.
Signed-off-by: Simon Glass
---
cmd/bootflow.c | 4 +++-
doc/usage/cmd/bootflow.rst | 15 +--
2 files changed, 12 insertions(+), 7
These have a different meaning in build-qemu, so capitalise these
options to avoid confusion.
Signed-off-by: Simon Glass
---
scripts/build-efi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/build-efi b/scripts/build-efi
index 2f4b916c49b..443a5ca4908 100755
Add a -d option to specify a root disk to boot with.
Signed-off-by: Simon Glass
---
scripts/build-efi | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/scripts/build-efi b/scripts/build-efi
index 4eb3a76d1a2..5a6eef450d4 100755
--- a/scripts/build-efi
+++ b
an extlinux OS on
EFI media
- Make the 32/64-bit apps more similar in terms of features and link
script
Simon Glass (27):
scripts: Tidy up build-qemu a little
scripts: Change -k and -o options
scripts: Update build-efi to support kvm
scripts: Update build-efi to support booting an OS
Bring this script into line with build-qemu so an OS and release can be
specified. As with that script, only Ubuntu is supported for now.
Signed-off-by: Simon Glass
---
scripts/build-efi | 29 -
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/scripts
This is a useful feature when booting the EFI app, so add this option to
the build-efi script too, matching the same option in build-qemu
Signed-off-by: Simon Glass
---
scripts/build-efi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/scripts/build-efi b/scripts/build-efi
index
On Fri, 23 May 2025 at 14:07, Simon Glass wrote:
>
> Some functions provided in lib/efi_loader are actually useful for the
> app as well. This series refactors the Kconfig and directories a little
> so that code is easier to share.
>
> As a starting point, it moves some filena
Hi Paul,
On Wed, 28 May 2025 at 01:24, Paul Liu wrote:
>
>
>
> On Fri, 23 May 2025 at 14:44, Simon Glass wrote:
>>
>> Hi,
>>
>> On Thu, 22 May 2025 at 03:18, Ying-Chun Liu (PaulLiu)
>> wrote:
>> >
>> > From: "Ying-Chun Li
Hi Ilias,
On Tue, 27 May 2025 at 10:20, Ilias Apalodimas
wrote:
>
> Hi Simon,
>
> On Tue, 27 May 2025 at 11:20, Simon Glass wrote:
> >
> > Hi Ilias,
> >
> > On Sat, 24 May 2025 at 19:13, Ilias Apalodimas
> > wrote:
> > >
> > > Hi
1 - 100 of 6605 matches
Mail list logo