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
- Pull down master from poky and meta-raspberrypi layers
- Create build workspace
source src/poky/oe-init-build-env rpi5build
- Set machine variable
MACHINE = "raspberrypi5" in local.conf (not sure why there's no "raspberrypi5-64)
- Add license exception
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch" to local.conf
- 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.
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.
WHAT I'VE TRIED
I have also tried disabling the checker in my
local.confbut 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
source src/poky/oe-init-build-env rpi5buildMACHINE = "raspberrypi5"inlocal.conf(not sure why there's no "raspberrypi5-64)LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"tolocal.confbitbake rpi-test-imageorbitbake core-image-minimalEXPECTATION
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.