Docker files to build an Open System Firmware image based on coreboot and LinuxBoot.
Just run either docker
or podman
:
podman build -t insomniacslk/osf-build -f Dockerfile .
podman run --rm -it insomniacslk/osf-build
The last command will run QEmu in nographics
mode. Remember that you can
terminate QEmu with ctrl-a x
.
You can copy the output files with a command like this:
podman run --rm -it --mount type=bind,source="${PWD}"/output,target=/home/circleci/output insomniacslk/osf-build sudo cp coreboot.rom disk.img output/
This will create an output
directory on the host system, containing
coreboot.rom
and disk.img
.
This is mostly equivalent to the process described in the chapter LinuxBoot using coreboot, u-root and systemboot of the LinuxBoot book.