Skip to content

Dasharo Compatibility: generic test setup

Test setup

Test setup is a set of procedures to be executed before the test execution. Typically, the same setup can be reused by multiple test cases, so there is no need to execute the setup actions before each independent case.

Generic test setup

Firmware

  1. Obtain FIRMWARE binary
    1. you can download it from release section
    2. or you can build one yourself as shown in the building section
  2. Flash FIRMWARE binary to the DUT
    1. If coreboot is not yet installed: Refer to Flashing with external programmer
    2. If coreboot is already installed: Refer to Flashing with internal programmer

OS installer

  1. Download OPERATING_SYSTEM installer image
  2. Attach USB stick to the PC
  3. Flash OPERATING_SYSTEM image to the USB stick
  4. Attach the USB stick to the DUT

OS installation

  1. Power ON the DUT
  2. Enter the boot menu using the BIOS_SETUP_KEY
  3. Select the Boot Menu and press Enter
  4. Select the USB stick and press Enter
    1. In case of the Ubuntu 20.04, select the Ubuntu (safe graphics) in the GRUB menu
  5. Wait for the OPERATING_SYSTEM installer to start
  6. Install OPERATING_SYSTEM on the disk
  7. In case of Ubuntu 20.04 on NV41MB: Follow the steps outlined in NVIDIA drivers - Ubuntu 20.04
  8. Power OFF the DUT
  9. Remove the installation media (USB stick with installer)

NVIDIA drivers - Ubuntu 20.04

  1. Power ON the DUT
  2. Wait until the OPERATING_SYSTEM boots from disk
  3. Login into the OPERATING_SYSTEM
  4. Open a terminal window and execute the following commands:

    sudo apt update
    sudo apt install nvidia-driver-470
    
  5. A password prompt for secure boot configuration will appear. Choose a password (you can use your system password) and press Enter

  6. Reboot the DUT
  7. Upon entry into MOKUtil, select Enroll MOK and enter the password you chose during driver installation
  8. Select the option Continue boot
  9. Wait until the OPERATING_SYSTEM boots from disk
  10. Login into the OPERATING_SYSTEM
  11. Open the NVIDIA X Server Settings application
  12. Open the PRIME Profiles section
  13. Select NVIDIA On-demand and apply
  14. Enter the OPERATING_SYSTEM password when prompted

OS boot from disk

  1. Power ON the DUT
  2. Wait until the OPERATING_SYSTEM boots from disk
  3. Login into the OPERATING_SYSTEM