Hi folks,

I want to run Guix on a Raspberry Pi 4, but I’m unable to build an image for it. I built a declarative system-image around the example operating-system in gnu/system/examples/raspberry-pi-64.tmpl -- you can see my definition in this paste: https://paste.debian.net/hidden/22d01add

When I try building the image with:

   guix system image raspi-min.scm

...it fails with:

-------------------- 8< -- snip -- >8 --------------------
guix/build/utils.scm:822:6: In procedure invoke:
ERROR:
 1. &invoke-error:
     program: "mcopy"
arguments: ("-bsp" "-i" "/gnu/store/735nmj7g2b16nvnsrjkb1ihx4ygsk15y-partition.img" "tmp-root/gnu" "::gnu")
     exit-status: 1
     term-signal: #f
     stop-signal: #f
environment variable `PATH' set to `/gnu/store/f93sad0fc85marmp2as1qsn88wvb0jfd-dosfstools-4.2/sbin:/gnu/store/np9nf8bx2540ch7v8vkyxkcf3am5njp6-fakeroot-1.38/bin:/gnu/store/b9m2jarwgfn4qfq6yaib1rn559bxf2vf-mtools-4.0.49/bin'
installing bootloader...
-------------------- 8< -- snip -- >8 --------------------

I’m building this on a Raspberry Pi 3B running Debian, with Guix as a foreign package manager on top. I’m not sure which thing it’s saying is out of space. I have plenty of actual disk space:

   $ df -h /
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/mmcblk0p2  117G   38G   74G  34% /

I know /tmp running out of space can cause this, so I have 24gb of swap added:

   $ free -m
total used free shared buff/cache available Mem: 902 197 115 0 677 704
   Swap:          24191          49       24142

I ran `watch -n 1 df -h' while building the image, neither / nor /tmp usage increases appreciably, and nothing is filling up.

So I think the issue is that the declarative partitions themselves are running out of space, but I don’t know why. Based on the `mcopy' command, it seems like this is the vfat /boot partition. The Debian on this machine is using <300mb, so I’d expect 1gb is plenty. It also fails with 2gb. Specifying 4gb fails because fat16 doesn’t support filesystems that large.

Anyone know what’s wrong here? Or have a working system image definition I can start from?

 -- Ian

Reply via email to