Skip to content

daym/docker-oreboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Danny Milosavljevic
Jan 18, 2025
56cb130 · Jan 18, 2025
Feb 15, 2021
Apr 4, 2022
Jan 18, 2025
Dec 7, 2023
Jan 29, 2021
Mar 10, 2022
Apr 21, 2021
Nov 29, 2022
Aug 4, 2023
Mar 25, 2022
May 31, 2021
Mar 10, 2022
May 7, 2021
Apr 2, 2021
May 7, 2021

Repository files navigation

docker-oreboot

Build oreboot with Docker.

Usage:

First, run

./prepare

This will prepare a Docker image with the Rust compiler from DockerHub.

Then, run

git clone https://github.com/oreboot/oreboot.git oreboot

in order to check out oreboot into the subdirectory oreboot.

Then you need to put file bzImage containing a Linux kernel (or LinuxBoot) into subdirectory oreboot, and then:

cd oreboot
cat rust-toolchain | egrep 'toolchain|channel|components' |sed -e 's;"llvm-tools-preview", ;;' >rust-toolchain.new && mv rust-toolchain.new rust-toolchain
MAINBOARD=src/mainboard/amd/romecrb PAYLOAD_A="${PWD}/bzImage" ../build

Note that build needs a device tree compiler (dtc) on the host since it's not in the Docker image.

Other interesting invocations would be:

RUSTFLAGS="--emit asm -C llvm-args=-x86-asm-syntax=intel" CARGO_NET_OFFLINE=true MAINBOARD=src/mainboard/amd/romecrb PAYLOAD_A=${PWD}/orebootkernel DTC=dtc ../build # This also leaves generated assembly code in the target dir (".s" files)

About

Build oreboot with Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published