Skip to content

Initial Deployment

Intro

Flashing coreboot can be done from Linux using flashrom with the internal programmer. This document describes the process of building, installing and running flashrom on Ubuntu 20.04.

Build flashrom

Currently, the latest flashrom release lacks support for Tiger Lake-U internal flashing. Because of this, we need to build flashrom from the source.

  1. Install build dependencies:

    apt install git build-essential debhelper pkg-config libpci-dev libusb-1.0-0-dev libftdi1-dev meson
    
  2. Obtain source code:

    git clone https://review.coreboot.org/flashrom.git
    cd flashrom
    
  3. Build flashrom:

    make
    sudo make install
    

Reading flash contents

To read from the flash and save them to a file (dump.rom), execute the following command:

flashrom -p internal -r dump.rom

Installing Dasharo

The following instructions describe how to flash Dasharo, but if you are interested in version v1.3.0 or higher, which is only compatible with Open EC Firmware, follow this instruction: Dasharo EC Transition.

If this is your first experience with DTS, first read its documentation. We recommend using DTS with the Bootable over network method which is less time-consuming and just easier than DTS on the USB Stick.

Internal flashing Dasharo

To flash Dasharo to the laptop, execute the following command - replace [path] with the path to the Dasharo image you want to flash, e.g. build/coreboot.rom.

flashrom -p internal -w [path] --ifd -i bios

Initial Installation

During the initial installation of Dasharo, you should deploy the supported Intel ME version (and configuration) on the device.

Publicly released binaries do not contain ME binary. If you need an Intel ME update for your device, contact us via already established commercial support channel.

When flashing binaries with ME binary included, flashing of the whole chip is required. Additionally, the firmware has to be flashed externally using an external programmer like a ch341a_spi.

ns50mu chips

Steps for initial Dasharo installation:

  1. Open the laptop.
  2. Disconnect the primary battery. (1)
  3. Disconnect the CMOS battery. (2)
  4. Attach an external programmer with a SOIC-8 clip to the SPI flash chip. (3)
  5. Execute the following command, replacing [path] with the path to the firmware image you want to flash, e.g. novacustom_ns5x_7x_full_v1.0.0.rom

    flashrom -p ch341a_spi -w [path]
    
  6. Detach the SOIC-8 clip.

  7. Connect the primary battery (1) - do not connect the CMOS battery yet. (2)
  8. Power on the laptop. The laptop may shut down once after training the memory.
  9. Once Dasharo is booted, shut down the laptop and reconnect the CMOS battery.