Skip to content

Building manual

Intro

This document describes the procedure for compiling coreboot for NovaCustom NS5x/7x.

Requirements

Procedure

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

  1. Obtain the image:

    docker pull coreboot/coreboot-sdk:0ad5fbd48d
    
  2. Clone the coreboot repository:

    git clone https://review.coreboot.org/coreboot.git
    
  3. Checkout to the desired Dasharo revision:

    Replace the REVISION with one of the: - novacustom_ns5x/release for the latest released version - novacustom_ns5x_vVERSION (e.g. v1.0.0) 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
    
  4. Build the firmware:

    ./build.sh build
    

    The resulting coreboot image will be placed in artifacts/dasharo_novacustom_ns5x_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.