[RFC PATCH 1/2] bootmeth: implement semihosting (smh) boot method
Tom Rini
trini at konsulko.com
Thu Aug 28 19:34:53 CEST 2025
On Thu, Aug 28, 2025 at 02:06:56PM +0100, Said Nasibov wrote:
> This commit introduces a new standard boot method that supports booting
> via semihosting as provided by ARM FVP platforms.
>
> Semihosting enables the virtual platform to access host-side files as if
> they were block devices, which is particularly useful in early boot
> development and simulation environments. It removes the need for physical
> storage or networking when loading kernel components.
>
> This method mirrors the distroboot logic for semihosting, which is the
> default boot method for vexpress64 platform. The load_file_from_host
> helper function is implemented to mirror behaviour of "load hostfs" u-boot
> command, so it similarly sets filesize environment variable after loading a
> file - this is useful for later commands.
>
> This implementation is marked with BOOTMETH_GLOBAL so it is always
> considered during bootflow scan without requiring a boot device.
>
> Signed-off-by: Said Nasibov <said.nasibov at arm.com>
[snip]
> + env_set("fdt_high", "0xffffffffffffffff");
> + env_set("initrd_high", "0xffffffffffffffff");
Why do we need to do this? U-Boot should be able to move things if
needed, as there's good reason when it does this.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250828/5a002a27/attachment.sig>
More information about the U-Boot
mailing list