Bug 12156 - buildroot-2019.08-rc3 does not build for Pi Zero W
Summary: buildroot-2019.08-rc3 does not build for Pi Zero W
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-30 07:37 UTC by HiFiBerry (Daniel)
Modified: 2019-08-30 10:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HiFiBerry (Daniel) 2019-08-30 07:37:46 UTC
When trying to build a Pi Zero W image with the latest release candidate, build stops when trying to install the DTB file for the Pi Zero:

>>>   Executing post-image script board/raspberrypi0w/post-image.sh
INFO: cmd: "mkdir -p "/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp"" (stderr):
INFO: cmd: "rm -rf "/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp"/*" (stderr):
INFO: cmd: "mkdir -p "/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp"" (stderr):
INFO: cmd: "cp -a "/home/matuschd/buildroot-2019.08-rc3/output/target" "/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp/root"" (stderr):
INFO: cmd: "find '/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/home/matuschd/buildroot-2019.08-rc3/output/target/{}' '/home/matuschd/buildroot-2019.08-rc3/output/build/genimage.tmp/root/{}'" (stderr):
ERROR: file(bcm2708-rpi-zero-w.dtb): stat(/home/matuschd/buildroot-2019.08-rc3/output/images/bcm2708-rpi-zero-w.dtb) failed: No such file or directory
ERROR: vfat(boot.vfat): could not setup bcm2708-rpi-zero-w.dtb
Makefile:812: recipe for target 'target-post-image' failed
make[1]: *** [target-post-image] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

Seems to me that the filename should be bcm2708-rpi-0-w.dtb instead of bcm2708-rpi-zero-w.dtb

Commands to reproduce the error:

make raspberrypi0w_defconfig
make
Comment 1 Peter Korsgaard 2019-08-30 10:12:39 UTC
Are you sure this is a clean build? I cannot reproduce it here:

INFO: vfat(boot.vfat): adding file 'bcm2708-rpi-0-w.dtb' as 'bcm2708-rpi-0-w.dtb' ...
INFO: vfat(boot.vfat): cmd: "MTOOLS_SKIP_CHECK=1 mcopy -bsp -i '/home/peko/source/buildroot/output-rpi/images/boot.vfat' '/home/peko/source/buildroot/output-rpi/images/bcm2708-rpi-0-w.dtb' '::'" (stderr):
INFO: vfat(boot.vfat): adding file 'rpi-firmware/bootcode.bin' as 'rpi-firmware/bootcode.bin' ...

And the file is there as it should be:
find -name bcm2708-rpi-0-w.\*
./build/linux-custom/arch/arm/boot/dts/bcm2708-rpi-0-w.dtb
./build/linux-custom/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
./build/linux-headers-custom/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
./images/bcm2708-rpi-0-w.dtb
git describe                                                                                                                                                                                                                                                
2019.08-rc3-3-g268bdf0360
Comment 2 Peter Korsgaard 2019-08-30 10:16:08 UTC
(In reply to info from comment #0)
But the defconfig USES bcm2708-rpi-0-w.dtb:

grep DTS_NAME configs/raspberrypi0w_defconfig                                                                                                                                                                                                                            
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-0-w"

Did you perhaps edit raspberrypi0w_defconfig locally?
Comment 3 HiFiBerry (Daniel) 2019-08-30 10:55:03 UTC
Just did a fresh extract of the buildroot tar file. Works now. Looks like something was messed up on the system.