Skip to content

[BUG] [Zephyr] Wrong rimage signing schema used when building for IPC4 #5335

Closed

Description

@kv2019i

Describe the bug
When SOF is built for IPC4, a different signing schema (e.g. "tgl-cavs") must be used.

When building for Zephyr, signing schema is not change and resulting image is not correct.

Zephyr signing tool (west zephyr/scripts/west_commands/sign.py) takes the target from RIMAGE_TARGET.

SOF scripts to build with IPC4 should specify an alternative target RIMAGE_TARGET when building for Zephyr&IPC4.

In XTOS build, matching logic is in src/arch/xtensa/CMakeLists.txt and set via config override:
sof/src/arch/xtensa/configs/override/tigerlake_ipc4.config (from #5227)

Original report from @XiaoyunWu6666 and @aiChaoSONG

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    ZephyrIssues only observed with Zephyr integrated
    on Feb 9, 2022
  2. self-assigned this
    on Feb 9, 2022
  3. modified the milestones: v2.0, v2.1 on Feb 9, 2022
  4. lgirdwood commented on Feb 10, 2022

    @lgirdwood
    Member

    @marc-hb IIUC, you have a few WIP PRs to support Zephyr. Do any cover this ?

  5. aiChaoSONG commented on Feb 11, 2022

    @aiChaoSONG
    Collaborator

    I filed a patch on zephyr side to add sign schema overriding support zephyrproject-rtos/zephyr#42724. @lgirdwood @kv2019i @lyakh not sure they will accept it.

  6. lgirdwood commented on Feb 11, 2022

    @lgirdwood
    Member

    Thanks @aiChaoSONG I've added the relevant folks to discuss in Zpehyr.

  7. modified the milestones: v2.1, v2.2 on Feb 16, 2022
  8. lgirdwood commented on Feb 16, 2022

    @lgirdwood
    Member

    Moving to v2.2 since this is related to IPC4

  9. marc-hb commented on Feb 18, 2022

    @marc-hb
    Collaborator

    @marc-hb IIUC, you have a few WIP PRs to support Zephyr. Do any cover this ?

    Not sure what you're referring to sorry. In any case I don't have any WIP related to this.

  10. marc-hb commented on Feb 19, 2022

    @marc-hb
    Collaborator

    In any case I don't have any WIP related to this.

    Well now I have. A bit:

  11. added
    IPC4Issues observed with IPC4 (same IPC as Windows)
    on Feb 28, 2022
  12. aiChaoSONG commented on Feb 28, 2022

    @aiChaoSONG
    Collaborator

    Correct rimage sign schema on sof side: #5412.
    Another is to use cmake to sign firmware, but not sure when it will be implemented. because we already have one fix to use, let's close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

IPC4Issues observed with IPC4 (same IPC as Windows)P1Blocker bugs or important featuresZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions