Skip to content

Dasharo Compatibility: SD Card Reader

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. Proceed with the Generic test setup: OS boot from disk.
  5. Insert an SD card into the SD Card reader.

SDC001.001 SD Card reader detection (Ubuntu)

Test description

This test aims to verify that the SD Card reader is enumerated correctly and can be detected from the operating system.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu

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. Open a terminal window and execute the following command:
lspci | grep RTS522A

Expected result

The output from the command should contain the line:

2d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)

SDC001.002 SD Card reader detection (Windows)

Test description

This test aims to verify that the SD Card reader is enumerated correctly and can be detected from the operating system.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Windows

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. Open PowerShell as administrator.
  5. Run below command and note result:

    Get-PnpDevice -Status "OK" -Class "MTD"
    

Expected result

The output of the command should contain basic information about mounted SD card reader.

Output example:

Status     Class           FriendlyName
------     -----           ------------
OK         MTD             Realtek PCIE CardReader

SDC002.001 SD Card read/write (Ubuntu)

Test description

This test aims to verify that the SD Card reader is initialized correctly and can be used from the operating system.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu

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. Open a terminal window and execute the following commands as root:
dd if=/dev/urandom of=/tmp/in.bin bs=4K count=100
dd if=/tmp/in.bin of=/dev/mmcblk0 bs=4K count=100
dd if=/dev/mmcblk0 of=/tmp/out.bin bs=4K count=100
sha256sum /tmp/in.bin /tmp/out.bin

Expected result

The output from the last command should contain 2 identical checksums:

2083776668ed0c8095a9ac42188153c02f360e116c14b36d2ef5c98665d75dcb  /tmp/in.bin
2083776668ed0c8095a9ac42188153c02f360e116c14b36d2ef5c98665d75dcb  /tmp/out.bin

SDC002.002 SD Card read/write (Windows)

Test description

This test aims to verify that the SD Card reader is initialized correctly and can be used from the operating system.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Windows

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. Determine the localization of the mounted SD card.
  5. Open PowerShell as administrator.
  6. Run below commands and note results:

    New-Item -Path "${drive_lacation}:\" -Name "testfile.txt" -ItemType "file" -Value "This is a test string."
    Get-Content -Path "${drive_lacation}:\testfile.txt"
    

Expected result

Last command should return This is a test string.