Hi,
I’m currently trying to build an Image for my Raspberry Pi0W (so I’m on armv6l).
My config is based on this config from sorki and looks like this.
Everything works fine so far, except that I need a deviceTree
overlay.
Adding the following config causes the build to fail:
hardware.deviceTree = {
enable = true;
overlays = [
{
name = "hifiberry-dac";
dtboFile = "${pkgs.device-tree_rpi.overlays}/hifiberry-dac.dtbo";
}
];
};
The error I’m getting is this:
[...]
checking whether armv6l-unknown-linux-gnueabihf-gcc accepts -Kpthread... no
checking whether armv6l-unknown-linux-gnueabihf-gcc accepts -Kthread... no
checking whether armv6l-unknown-linux-gnueabihf-gcc accepts -pthread... no
checking whether armv6l-unknown-linux-gnueabihf-g++ also accepts flags for thread support... no
checking for ANSI C header files... (cached) yes
[CXX] base/output_file_requirements.cc
gcc: error: unrecognized argument in option '-mabi=aapcs-linux'
gcc: note: valid arguments to '-mabi=' are: ms sysv
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mapcs'
gcc: error: unrecognized command line option '-mno-sched-prolog'
gcc: error: unrecognized command line option '-mfpu=vfp'
make[1]: *** [Kbuild:21: kernel/bounds.s] Error 1
make: *** [Makefile:1102: prepare0] Error 2
UPD include/generated/timestamp_autogenerated.h
checking for canonicalize_file_name... uint64_t
builder for '/nix/store/k206l0wilb04fk1z5xjfxicf9hy0lffi-dtbs-with-symbols-armv6l-unknown-linux-gnueabihf.drv' failed with exit code 2
cannot build derivation '/nix/store/jlddxhy1jz9cb21grqlmzn76pw3bpp6k-device-tree-overlays.drv': 1 dependencies couldn't be built
building '/nix/store/bbgsmpmig48d93iymvcpcm26bdlv4nzc-libsepol-2.9-armv6l-unknown-linux-gnueabihf.drv'...
building '/nix/store/yz6b80xibiarav0cihc7bar469skqpcr-libunistring-0.9.10-armv6l-unknown-linux-gnueabihf.drv'...
building '/nix/store/0mndmsq2hhsz1saz8av9jnvdcxb90zsi-python3-3.7.9-armv6l-unknown-linux-gnueabihf.drv'...
building '/nix/store/5wbczfq33gqyrri34bqh76ldj2rabvx8-thin-provisioning-tools-0.9.0.drv'...
cannot build derivation '/nix/store/qs3rpkfr2j2kpz983kmch0pkxzcfh0s5-nixos-system-nixos-21.03pre244556.dfd2eeabd6e.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/zkqysjkip74kyrczbg3rzg06bqlvhznf-ext4-fs.img.zst-armv6l-unknown-linux-gnueabihf.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/cp7nrhz1g5whxndnn2aa8bscdlkk64v3-nixos-sd-image-21.03pre244556.dfd2eeabd6e-armv6l-linux.img-armv6l-unknown-linux-gnueabihf.drv': 1 dependencies couldn't be built
error: build of '/nix/store/cp7nrhz1g5whxndnn2aa8bscdlkk64v3-nixos-sd-image-21.03pre244556.dfd2eeabd6e-armv6l-linux.img-armv6l-unknown-linux-gnueabihf.drv' failed
The used nixos-unstable
channel is on nixos-unstable-21.03pre244772.502845c3e31
. I tried both linuxPackages_rpi1
and linuxPackages_latest
for boot.kernelPackages
.
I found a similar issue description by @sorki in this PR, but that is on aarch64.
Should I open an issue for this (which I so far did not because armv6 is afaik not really in scope), or am I doing something wrong?