Skip to content

Bao, platforms, tools, firmware and guest updates#72

Draft
josecm wants to merge 30 commits intomasterfrom
update/misc
Draft

Bao, platforms, tools, firmware and guest updates#72
josecm wants to merge 30 commits intomasterfrom
update/misc

Conversation

@josecm
Copy link
Member

@josecm josecm commented Jul 24, 2025

This PR introduces several modifications:

  • updates the vast majority of used tools (toolchains and emulators), firmware (opensbi, atf, uboot), guests (linux/buildroot)
  • adds demos for the qemu-riscv32-virt platform
  • removes the linux driver patches, fetches the drivers directly from the bao-linux-drivers repo and introduces buildroot packages for building them and loading them as external kernel modules

All demos are tested for the following platforms (v2.0-rc3):

Only after all we make sure all demos run on all platforms should the PR be merged.

Also, we need to delete the first commit after updating the demo branch across all repos.

josecm added 17 commits July 18, 2025 15:25
These need to be updated after the original demo branches are uptated to
the same versions. After that, this commit can be deleted

Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
@josecm josecm changed the title Bao, platforms, tools, firmware and guests updates Bao, platforms, tools, firmware and guest updates Jul 24, 2025
miguelafsilva5 and others added 2 commits October 17, 2025 11:10
A new toolchain for rv32 was added to bao-riscv-toolchain repo.
This commit updates the readme to add a new link for the rv32 toolchain

Signed-off-by: Miguel Silva <miguelafsilva5@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
@joaopeixoto13 joaopeixoto13 force-pushed the update/misc branch 5 times, most recently from 3b6bb9a to 88d3196 Compare December 3, 2025 14:33
@danielRep
Copy link
Member

TX2 is working properly.

@joaopeixoto13
Copy link
Member

Everything is working properly on qemu-aarch64-virt and fvp-a-aarch64.

@joaopeixoto13 joaopeixoto13 force-pushed the update/misc branch 3 times, most recently from 1ad33be to 7b395a4 Compare December 20, 2025 12:18
Signed-off-by: João Peixoto <joaopeixotooficial@gmail.com>
joaopeixoto13 and others added 4 commits January 5, 2026 09:11
Motivation:
- Previous commands limited Bao image size due to U-Boot
execution path. The patch and updated instructions remove this
constraint, allowing demos with multiple VMs and larger Bao binaries
to run.

Changes:
- Apply a patch to U-Boot for ZCU102/ZCU104 that modifies do_go_exec()
  to directly call the entry point instead of using
armv8_switch_to_el1(). This allows loading larger Bao images, avoiding
previous size limitations that depended on the number of VMs in the
demo.
- Copy `u-boot.elf` image to zcu-firmware directory
- Update makefiles and README to use bao.bin instead of bao.img for
ZCU104, reflecting the new image naming convention and enabling correct
loading via fatload and go commands.

Signed-off-by: João Peixoto <joaopeixotooficial@gmail.com>
Signed-off-by: João Peixoto <joaopeixotooficial@gmail.com>
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
Signed-off-by: Daniel Oliveira <drawnpoetry@gmail.com>
DavidMCerdeira and others added 3 commits January 8, 2026 17:22
Update RPi4 linux memory addresses as a temporary solution for this
issue: bao-project/bao-hypervisor#287

Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Export Buildroot host tools in demo build environment and pass the
Buildroot target compiler to Cargo via `CARGO_TARGET_*_LINKER`, ensuring
Rust builds use the Buildroot-provided toolchain instead of host tools.

Signed-off-by: João Peixoto <joaopeixotooficial@gmail.com>
@DavidMCerdeira
Copy link
Member

DavidMCerdeira commented Jan 12, 2026

I've completed testing and fixes mainly targeting RPi4 but also the baremetal app / runtime and hence freertos as well.
@danielRep @miguelafsilva5 @josecm @joaopeixoto13 @Diogo21Costa, please retest all the demos in your respective platforms to make sure my changes did not break anything.
The main purpose of the baremetal guest modifications are to feature an explicit shared memory region in the guest. The shared memory must not be within the main memory region, and must be higher than main memory region. This keeps the implementation simple enough for our use cases. Let me know if you any questions.

@josecm
Copy link
Member Author

josecm commented Jan 13, 2026

@danielRep @miguelafsilva5 @josecm @joaopeixoto13 @Diogo21Costa, please retest all the demos in you respective platforms to make sure my changes did not break anything.

I've resetted the checklist

@DavidMCerdeira DavidMCerdeira force-pushed the update/misc branch 3 times, most recently from 69a808b to 5f02055 Compare January 14, 2026 11:12
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Signed-off-by: Daniel Oliveira <drawnpoetry@gmail.com>
@danielRep
Copy link
Member

@danielRep @miguelafsilva5 @josecm @joaopeixoto13 @Diogo21Costa, please retest all the demos in you respective platforms to make sure my changes did not break anything.

I've resetted the checklist

TX2 is working properly.

Signed-off-by: Daniel Oliveira <drawnpoetry@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants