Skip to content

Misleading error message when passing ROM as ./coreboot.rom #17

@krystian-hebel

Description

@krystian-hebel

It seems that either dcuc or dcu doesn't properly treat paths relative to current directory. This doesn't work and produces error about wrong sub-command:

(venv) [khebel@3M05 dcu]$ ./dcuc variable ./msi_ms7d25_v1.1.3_ddr4.rom --set SerialRedirection --value Enabled
Unknown sub-command: msi_ms7d25_v1.1.3_ddr4.rom
Usage: smmstoretool smm-store-file|rom sub-command
       smmstoretool -h|--help

Sub-commands:
 * get    - display current value of a variable
 * guids  - show GUID to alias mapping
 * help   - provide built-in help
 * list   - list variables present in the store
 * remove - remove a variable from the store
 * set    - add or updates a variable in the store

This works fine:

(venv) [khebel@3M05 dcu]$ ./dcuc variable msi_ms7d25_v1.1.3_ddr4.rom --set SerialRedirection --value Enabled
No firmware volume header present
No valid firmware volume was found

The variable store has not been found in the ROM image
and is about to be initialized. This situation is normal
for a release image, as the variable store is usually
initialized on the first boot of the platform.

Successfully created variable store in "msi_ms7d25_v1.1.3_ddr4.rom"
Successfully set variable SerialRedirection in the variable store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions