Skip to content

Conversation

@m-iwanicki
Copy link
Contributor

@m-iwanicki m-iwanicki commented Oct 10, 2025

robot -L TRACE -b cmd_logs.txt -v rte_ip:127.0.0.1 -v config:qemu -v snipeit:no \
    -v boot_dts_from_ipxe_shell:True \
    -v dts_ipxe_link:https://boot.dasharo.com/dts/dts-rc.ipxe \
    -v features:encryption,otab \
    -v zarhus_wic_gz_file:../yocto/zarhus/zarhus-base-image-genericx86-64.rootfs.wic.gz \
    -v zarhus_swu_file:../yocto/zarhus/zarhus-swu-image-genericx86-64.rootfs.swu \
    zarhus-x86/zarhus.robot

Results:

==============================================================================
Zarhus
==============================================================================
ZHS001.206 Make sure that cukinia tests pass                          | PASS |
------------------------------------------------------------------------------
ZHS002.206 Make sure that update works :: Make sure that update vi... | PASS |
------------------------------------------------------------------------------
ZHS003.206 Make sure that failed update rollbacks to working slot ... | PASS |
------------------------------------------------------------------------------
ZHS004.206 Make sure that rollback works :: Make sure that `otab r... | PASS |
------------------------------------------------------------------------------
Zarhus                                                                | PASS |
4 tests, 4 passed, 0 failed
==============================================================================

log.html

On hardware:

robot -L TRACE -b cmd_logs.txt -v rte_ip:192.168.10.168 -v config:odroid-h4-plus -v snipeit:no \
    -v boot_dts_from_ipxe_shell:True \
    -v dts_ipxe_link:https://boot.dasharo.com/dts/dts-rc.ipxe \
    -v features:encryption,otab \
    -v zarhus_wic_gz_file:../yocto/zarhus/zarhus-base-image-genericx86-64.rootfs.wic.gz \
    -v target_device:nvme0n1 -t "ZHS001*" zarhus-x86/zarhus.robot
==============================================================================
Zarhus
==============================================================================
ZHS001.206 Make sure that cukinia tests pass                          | PASS |
------------------------------------------------------------------------------
Zarhus                                                                | PASS |
1 test, 1 passed, 0 failed
==============================================================================

log.html


robot -L TRACE -b command_log.txt -v rte_ip:192.168.10.168 -v config:odroid-h4-plus -v snipeit:no \
    -v boot_dts_from_ipxe_shell:True \
    -v dts_ipxe_link:https://boot.dasharo.com/dts/dts-rc.ipxe \
    -v features:encryption,otab \
    -v zarhus_bootstrap_file:../yocto/zarhus-dtrpb/bootstrap.img \
    zarhus-x86/zarhus-provisioning-preparation.robot
==============================================================================
Zarhus-Provisioning-Preparation
==============================================================================
ZPBP001.101 Make sure that network boot is disabled :: Make sure t... | PASS |
------------------------------------------------------------------------------
ZPBP002.101 Make sure that BIOS boot medium is locked :: Make sure... | PASS |
------------------------------------------------------------------------------
ZPBP003.101 Make sure that SMM BIOS write protection is enabled ::... | PASS |
------------------------------------------------------------------------------
ZPBP004.101 Make sure that Intel ME is HAP disabled :: Make sure t... | PASS |
------------------------------------------------------------------------------
ZPBP005.101 Make sure that OptionROM loading is disabled :: Make s... | PASS |
------------------------------------------------------------------------------
ZPBP006.206 Make sure that zarhus status returns expected initial ... | PASS |
------------------------------------------------------------------------------
ZPBP006.206 Make sure that Secure Boot is in Setup Mode :: Make su... | FAIL |
'Installed:      ✗ sbctl is not installed
Setup Mode:     ✗ Enabled
Secure Boot:    ✗ Disabled
Vendor Keys:    none' does not match 'Setup Mode:*Enabled'
------------------------------------------------------------------------------
Zarhus-Provisioning-Preparation                                       | FAIL |
7 tests, 6 passed, 1 failed
==============================================================================

After fix:

==============================================================================
ZPBP006.206 Make sure that zarhus status returns expected initial ... | PASS |
------------------------------------------------------------------------------
ZPBP006.206 Make sure that Secure Boot is in Setup Mode :: Make su... | PASS |
Secure Boot is in Setup Mode
------------------------------------------------------------------------------
Zarhus-Provisioning-Preparation                                       | PASS |
2 tests, 2 passed, 0 failed
==============================================================================

And second fix later to change ZPBP006 -> ZPBP007

Couldn't test zarhus-provisioning.robot as Suite preparation fails in Setup ZPB keyword, Should Contain ${status} Boot Guard: Enabled to be exact. For some reason capsule update doesn't work.

On QEMU:

==============================================================================
Zarhus-Provisioning
==============================================================================
ZPB001.206 Make sure that cukinia tests pass                          | PASS |
------------------------------------------------------------------------------
Zarhus-Provisioning                                                   | PASS |
1 test, 1 passed, 0 failed
==============================================================================

@m-iwanicki m-iwanicki self-assigned this Oct 10, 2025
@m-iwanicki m-iwanicki force-pushed the zarhus branch 2 times, most recently from 81e1101 to d980f3a Compare October 14, 2025 17:12
@m-iwanicki m-iwanicki force-pushed the zarhus branch 3 times, most recently from eb5b7b8 to 7bbb1c9 Compare October 15, 2025 16:53
@m-iwanicki m-iwanicki marked this pull request as ready for review October 15, 2025 16:53
@m-iwanicki m-iwanicki force-pushed the zarhus branch 6 times, most recently from c35aab7 to c02c919 Compare October 15, 2025 17:57
@m-iwanicki m-iwanicki force-pushed the zarhus branch 2 times, most recently from ee3d0b4 to 2114774 Compare October 20, 2025 07:34
Copy link
Contributor

@3mkusiak 3mkusiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contentwise looks good to me, small nitpicks for now. I'll proceed to running tests.

@3mkusiak
Copy link
Contributor

3mkusiak commented Oct 21, 2025

Tested provisioning box on hardware, details below

HW PROV.BOX

All tests have passed beside one

(venv) mkusiak in ~/Development/dts/open-source-firmware-validation on zarhus ● λ robot -L TRACE -b command_log.txt -v rte_ip:192.168.10.168 -v config:odroid-h4-plus -v snipeit:no -v boot_dts_from_ipxe_shell:True \
    -v dts_ipxe_link:https://boot.dasharo.com/dts/dts-rc.ipxe \
    -v features:encryption,otab \
    -v zarhus_bootstrap_file:"$bootstrap" \
    zarhus-x86/zarhus-provisioning-preparation.robot
==============================================================================
Zarhus-Provisioning-Preparation                                               
==============================================================================
ZPBP001.101 Make sure that network boot is disabled :: Make sure t... | PASS |
------------------------------------------------------------------------------
ZPBP002.101 Make sure that BIOS boot medium is locked :: Make sure... | PASS |
------------------------------------------------------------------------------
ZPBP003.101 Make sure that SMM BIOS write protection is enabled ::... | PASS |
------------------------------------------------------------------------------
ZPBP004.101 Make sure that Intel ME is HAP disabled :: Make sure t... | PASS |
------------------------------------------------------------------------------
ZPBP005.101 Make sure that OptionROM loading is disabled :: Make s... | PASS |
------------------------------------------------------------------------------
ZPBP006.206 Make sure that zarhus status returns expected initial ... | FAIL |
low != high
------------------------------------------------------------------------------
ZPBP007.206 Make sure that Secure Boot is in Setup Mode :: Make su... | PASS |
Secure Boot is in Setup Mode
------------------------------------------------------------------------------
Zarhus-Provisioning-Preparation                                       | FAIL |
7 tests, 6 passed, 1 failed
==============================================================================
Debug:   /home/mkusiak/Development/dts/open-source-firmware-validation/command_log.txt
Output:  /home/mkusiak/Development/dts/open-source-firmware-validation/output.xml
Log:     /home/mkusiak/Development/dts/open-source-firmware-validation/log.html
Report:  /home/mkusiak/Development/dts/open-source-firmware-validation/report.html

One of the tests failed due to improper state of power LED, this is a known issue.

image

Will proceed to test zarhus os.

@3mkusiak
Copy link
Contributor

Hardware ZarhusOS tests pass

ZarhusOS HW

==============================================================================
Zarhus                                                                        
==============================================================================
ZHS001.206 Make sure that cukinia tests pass                          | PASS |
------------------------------------------------------------------------------
Zarhus                                                                | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Debug:   /home/mkusiak/Development/dts/open-source-firmware-validation/command_log.txt
Output:  /home/mkusiak/Development/dts/open-source-firmware-validation/output.xml
Log:     /home/mkusiak/Development/dts/open-source-firmware-validation/log.html
Report:  /home/mkusiak/Development/dts/open-source-firmware-validation/report.html

Will try qemu next

@3mkusiak
Copy link
Contributor

Rerun full test set this time, all tests do pass.

ZarhusOS full scope HW

==============================================================================
Zarhus                                                                        
==============================================================================
ZHS001.206 Make sure that cukinia tests pass                          | PASS |
------------------------------------------------------------------------------
ZHS002.206 Make sure that update works :: Make sure that update vi... | PASS |
------------------------------------------------------------------------------
ZHS003.206 Make sure that failed update rollbacks to working slot ... | PASS |
------------------------------------------------------------------------------
ZHS004.206 Make sure that rollback works :: Make sure that `otab r... | PASS |
------------------------------------------------------------------------------
Zarhus                                                                | PASS |
4 tests, 4 passed, 0 failed
==============================================================================
Debug:   /home/mkusiak/Development/dts/open-source-firmware-validation/command_log.
Output:  /home/mkusiak/Development/dts/open-source-firmware-validation/output.xml
Log:     /home/mkusiak/Development/dts/open-source-firmware-validation/log.html
Report:  /home/mkusiak/Development/dts/open-source-firmware-validation/report.html

Skipping doing tests on QEMU, waste of time if hardware works.

@m-iwanicki m-iwanicki force-pushed the zarhus branch 2 times, most recently from d10cc63 to 39daed0 Compare October 23, 2025 08:46
Copy link
Contributor

@3mkusiak 3mkusiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
…or Zarhus

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Used to run commands and check if they succeeded

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Example on Dasharo v0.9.1 on ODROID-H4+:

```
Enable SMM BIOS write      [X]
protection
```

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
@3mkusiak
Copy link
Contributor

Rebased on top of develop. Waiting for checks to complete.

@3mkusiak 3mkusiak merged commit fcc1987 into develop Oct 23, 2025
2 checks passed
@3mkusiak 3mkusiak deleted the zarhus branch October 23, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants