| Summary: | Raspberry Pi Zero-W build fails on newer kernel versions | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | HiFiBerry (Daniel) <info> |
| Component: | Other | Assignee: | Peter Korsgaard <jacmet> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2019.08 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | Rename bcm2708-rpi-0-w to bcm2708-rpi-zero-w | ||
|
Description
HiFiBerry (Daniel)
2019-09-04 15:40:42 UTC
But the dts file to use is also part of the defconfig, so simply change BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-0-w" To BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-zero-w" But keep in mind that the genimage configuration also refers to the old name: board/raspberrypi/genimage-raspberrypi0w.cfg: "bcm2708-rpi-0-w.dtb", Either we change that when we bump the kernel version or we add some logic to rename the file if needed. Unless I'm mistaken, there is no bug. Our current RPi0w defconfig works fine, and it's only when you change it to use a different kernel version that it no longer builds. But this is obviously not a bug: if you tweak a part of a defconfig, you may need to also adjust other parts of that defconfig. In this specific example, if newer versions of the kernel have renamed the Device Tree for the platform, obviously the list of Device Trees that Buildroot will build/install should be updated accordingly. Of course, let me know if I misunderstood. Don't hesitate to reopen the bug in such a case. Created attachment 8246 [details]
Rename bcm2708-rpi-0-w to bcm2708-rpi-zero-w
I'm sure it's a bug. Yesterday I tried to build SD image for RPi0W using master branch and this failed. I've must applied a small patch to build RPi0W image correctly. Earlier I built RPi0W image on 30 August and this worked without the patch. (In reply to Grzegorz Blach from comment #4) Ahh, but that is because the kernel version got bumped last week: commit 42d22f3bdba41da8e6b6ace2c78af2b3e34d7491 Author: Gergely Imreh <imrehg@gmail.com> Date: Tue Aug 27 15:14:28 2019 +0100 {configs/raspberrypi,package/rpi-firmware}: bump kernel/firmware to 20190819 version It's the latest original version. The defconfig and package/rpi-firmware changes are done in a single patch, as they are going together. Signed-off-by: Gergely Imreh <imrehg@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Which was applied on the 7th. I have sent a patch to fix this - And while at it, also change the rpi0 defconfig to use the new dedicated dts file: https://patchwork.ozlabs.org/patch/1162330/ |