Skip to content

Dasharo Compatibility: Firmware locally building and flashing

Test cases common documentation

Test setup

  1. Proceed with the Generic test setup: firmware.
  2. Proceed with the Generic test setup: OS installer.
  3. Proceed with the Generic test setup: OS installation.
  4. Make yourself familiar with Building manual procedure dedicated for the relevant platform:

FLB001.001 Firmware locally build

Test description

This test aims to verify whether there is a possibility to build firmware on the local machine, based on Build manual procedure dedicated to the platform.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu 22.04

Test setup

  1. Proceed with the Test cases common documentation section.

Test steps

  1. Power on the DUT.
  2. Boot into the system.
  3. Log into the system by using the proper login and password.
  4. Based on the dedicated documentation build firmware.
  5. Check if the binary file, after finishing the building process, is available in the build location.

Expected result

The build location should contain the binary file, which size is equal to the flash chip size.

FLB002.001 Flash locally built firmware

Test description

This test aims to verify whether there is a possibility to flash the locally built firmware to the DUT.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu 22.04

Test setup

  1. Proceed with the Test cases common documentation section.

Test steps

  1. Power on the DUT.
  2. Boot into the system.
  3. Log into the system by using the proper login and password.
  4. Localize the firmware, which was built in the FLB001.001 test case.
  5. Flash the firmware by using the internal programmer and flashrom tool. If DUT is already flashed with the Dasharo firmware, the following command should be used:

    flashrom -p internal -w [path-to-binary] --fmap -i RW_SECTION_A
    

    Otherwise, the following command should be used:

    flashrom -p internal -w [path-to-binary] --ifd -i bios
    
  6. Reboot the DUT.

  7. Boot into the system.
  8. Log into the system by using the proper login and password.
  9. Open a terminal window and run the following command to verify the results:

    sudo dmidecode -t bios | grep Version
    

Expected result

The output of dmidecode command should contain information about the current firmware. The current firmware version should be equal to the latest released firmware version.

Example output:

Version: Dasharo (coreboot+UEFI) v1.1.0