Skip to content

coreboot building

Intro

This documents describes the procedure for compiling coreboot for NovaCustom NV4X.

Requirements

Procedure

The easiest way to build coreboot is to use the official Docker image.

Obtain the image:

docker pull coreboot/coreboot-sdk:0ad5fbd48d

Clone the coreboot repository:

git clone https://review.coreboot.org/coreboot.git

Navigate to the source code directory and checkout to the desired revision:

Replace the REVISION with one of the: - novacustom_nv4x/release for the latest released version - novacustom_nv4x_vVERSION (e.g. v1.2.1) for the given release

cd coreboot
git remote add dasharo https://github.com/dasharo/coreboot.git
git submodule update --init --recursive --checkout
git fetch dasharo
git checkout REVISION

Build the firmware:

./build.sh build

The resulting coreboot image will be placed in artifacts/dasharo_novacustom_nv4x_VERSION.rom.

Warning: Do not run ./build.sh as root. This command uses docker and should be executed as your current user. If you're having trouble running build.sh on your user account, follow the Docker instructions outlined in Requirements.