Skip to content

No machine configuration for raspberrypi 5 #1279

@ghost

Description

BACKGROUND

I see there's a pull request out there on adding rpi5 support. In that pull request are comments saying to build off master. I have tried building off master for meta-raspberrypi and poky but kept receiving errors about machine variable being invalid.

ISSUE

I followed the Yocto Quick Start Guide. I checked out master on both meta-raspberry layer and poky layer, set machine to "raspberrypi5" and then built "core-image-minimal". I hit the following error when doing so. I have also tried building "rpi-test-image" and "core-image-base" all of which result in the same error message.

~/yocto/rpi5build took 57s 
☕ ❯ bitbake core-image-minimal
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:
    MACHINE=raspberrypi5 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.
Summary: There was 1 ERROR message, returning a non-zero exit code.

WHAT I'VE TRIED

I have also tried disabling the checker in my local.conf but that doesn't work either. I have tried searching the meta-raspberrypi documentation but there's no build instructions for the raspberrypi5. I presume this is still a WIP but according to the pull request I linked above, I should be able to build off master. I have also tried creating a new build folder. All of which result in the error above.

STEPS TO REPRODUCE

  1. Pull down master from poky and meta-raspberrypi layers
  2. Create build workspace source src/poky/oe-init-build-env rpi5build
  3. Set machine variable MACHINE = "raspberrypi5" in local.conf (not sure why there's no "raspberrypi5-64)
  4. Add license exception LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch" to local.conf
  5. Build an image bitbake rpi-test-image or bitbake core-image-minimal

EXPECTATION

Expectation here is that I should be able to just build my image, flash it to sd card (via bzip and dd) and be on my merry way. I understand uboot support isn't added but my understanding is that I should still be able to boot with the above steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions