I’m trying to build ReSpeaker’s RPi driver under BalenaOS. The repo and instructions are at: https://github.com/respeaker/seeed-voicecard
I’ve been adapting their install.sh file. At one point, it downloads a number of headers to /lib/modules (see below) and the drive fills up.
Is there a way to resize the partitions? Or a way to tell docker to make them a certain size or to add extra space? Thank you.
Partitions are currently 312MB:
root@7a59785:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 59.2G 0 disk
|-mmcblk0p1 179:1 0 40M 0 part /mnt/boot
|-mmcblk0p2 179:2 0 312M 0 part /mnt/sysroot/active
|-mmcblk0p3 179:3 0 312M 0 part
It fills up /lib/module after calling this command:
+ apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel
Reading package lists… Done
Building dependency tree
Reading state information… Done
raspberrypi-kernel-headers is already the newest version (1.20190819~stretch-1).
The following NEW packages will be installed:
raspberrypi-kernel
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 35.4 MB of archives.
After this operation, 126 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20190819~stretch-1 [35.4 MB]
Fetched 35.4 MB in 10s (3461 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database … 61127 files and directories currently installed.)
Preparing to unpack …/raspberrypi-kernel_1.20190819~stretch-1_armhf.deb …
Leaving ‘diversion of /boot/bcm2708-rpi-b-plus.dtb to /usr/share/rpikernelhack/bcm2708-rpi-b-plus.dtb by rpikernelhack’
Then, this “Leaving diversion” message is repeated a number of times with different files, until it gets to here:
Leaving ‘diversion of /boot/overlays/w1-gpio.dtbo to /usr/share/rpikernelhack/overlays/w1-gpio.dtbo by rpikernelhack’
Leaving ‘diversion of /boot/overlays/wittypi.dtbo to /usr/share/rpikernelhack/overlays/wittypi.dtbo by rpikernelhack’
Unpacking raspberrypi-kernel (1.20190819~stretch-1) …
dpkg: error processing archive /var/cache/apt/archives/raspberrypi-kernel_1.20190819~stretch-1_armhf.deb (–unpack):
cannot copy extracted data for ‘./lib/modules/4.19.66-v7+/kernel/fs/cifs/cifs.ko’ to ‘/lib/modules/4.19.66-v7+/kernel/fs/cifs/cifs.ko.dpkg-new’: failed to write (No space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/raspberrypi-kernel_1.20190819~stretch-1_armhf.deb
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)