Skip to content

Device tree in gadget.yaml #61

Open

Description

@rodmaz

We are having difficulties getting this image to run on Raspberry Pi 3 B. We haven't narrowed down the issue completely but something has caught our attention. Why does the gadget.yaml is referencing an old device tree (bcm2709-rpi-3-b-plus)?
We expected to see a valid device tree in gadget.yaml, as defined here.

Activity

  1. RuhanSA079 commented on Jan 9, 2021

    @RuhanSA079

    @rodmaz I tracked down the issue to the kernel being pulled from the internet with the bug in the linux-raspi2 package, you can try specifying a kernel file in the model file, and getting the pi-kernel snap file from the official Ubuntu Core image (extracted, kpartx mount), and provide the snap file with --snap as a parameter of ubuntu-image.

    As for the gadget, I think you just substitute the dtb name in the device tree.
    bcm2709-rpi-2-b: Pi 2B
    bcm2710-rpi-3-b: Pi 3B
    bcm2710-rpi-3-b-plus: Pi 3B+ and 3A+
    bcm2710-rpi-cm3: Compute Module 3

    I compiled the gadget with the bcm2710-rpi-3-b-plus device tree, and it was booting on a CM3+. (No idea why)
    I will change that to the cm3 dtb and build/flash.

  2. Meulengracht commented on Nov 26, 2021

    @Meulengracht
    Member

    If this issue still persists, can you retry with latest pi-kernel and see if this still is an issue? The DTB is now updated when the kernel is updated.

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

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