Clang compile errors with psci_target_cpus on kria board

Open
#562 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet

Research direction

Start with the kria_k26 BoardInfo declaration and compare its KernelPlatform, KernelARMPlatform, and custom DTS overlay settings. Reproduce the Clang build for the Kria board and trace why psci_target_cpus is treated as unused or why zcu102 is selected. Done means the board builds without the warning-as-error and uses the intended platform configuration.

Written by the indexing model from the issue text.

Description

@cazb2 noticed that the board declaration for the kria doesn't work right, and it creates an unused psci_target_cpus warning which errors on his version of LLVM, as it picks up the zcu102 platform.

Not sure whether this is a false warning on something wrong, need to dig deeper.

    BoardInfo(
        name="kria_k26",
        arch=KernelArch.AARCH64,
        gcc_cpu="cortex-a53",
        loader_link_address=0x40000000,
        kernel_options={
            "KernelPlatform": "zynqmp",
            "KernelARMPlatform": "zcu102",
            "KernelCustomDTSOverlay": Path("custom_dts/overlay-zynqmp-kria-k26.dts"),
        },
    ),
Dominant language
Rust
Stars
201
Forks
80
Avg merge
1d 4h
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seL4/microkit

All issues in seL4/microkit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.