Unable to upgrade Raspberry Pi 3... not enough space on /boot

I'm unable to upgrade using 'pacman -Syu' on my Raspberry Pi 3 running Manjaro ARM. Anyone know how I can fix this or expand the capacity of /boot?

:: Synchronizing package databases...
 core                                                             214.9 KiB   716 KiB/s 00:00 [-------------------------------------------------------] 100%
 extra                                                              2.4 MiB  1580 KiB/s 00:02 [-------------------------------------------------------] 100%
 community                                                          5.2 MiB  1402 KiB/s 00:04 [-------------------------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (7)           Old Version  New Version  Net Change  Download Size

core/gnupg            2.2.17-3     2.2.18-1       0.02 MiB       2.10 MiB
core/iana-etc         20191031-1   20191123-1     0.00 MiB       0.36 MiB
extra/imagemagick     7.0.9.5-1    7.0.9.7-1      0.03 MiB       2.03 MiB
core/libtasn1         4.14-3       4.15.0-1       0.01 MiB       0.11 MiB
core/linux-aarch64    5.3.12-1     5.4.0-1        1.99 MiB      69.93 MiB
core/manjaro-release  19.10-1      19.12-1       -0.01 MiB       0.00 MiB
core/pcre2            10.33-2      10.34-1        0.08 MiB       0.95 MiB

Total Download Size:    75.49 MiB
Total Installed Size:  153.33 MiB
Net Upgrade Size:        2.11 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 iana-etc-20191123-1-any                                          369.2 KiB   648 KiB/s 00:01 [-------------------------------------------------------] 100%
 libtasn1-4.15.0-1-aarch64                                        116.2 KiB   968 KiB/s 00:00 [-------------------------------------------------------] 100%
 pcre2-10.34-1-aarch64                                            975.9 KiB   976 KiB/s 00:01 [-------------------------------------------------------] 100%
 gnupg-2.2.18-1-aarch64                                             2.1 MiB   892 KiB/s 00:02 [-------------------------------------------------------] 100%
 linux-aarch64-5.4.0-1-aarch64                                     69.9 MiB  1530 KiB/s 00:47 [-------------------------------------------------------] 100%
 manjaro-release-19.12-1-any                                        2.3 KiB  0.00   B/s 00:00 [-------------------------------------------------------] 100%
 imagemagick-7.0.9.7-1-aarch64                                      2.0 MiB  1625 KiB/s 00:01 [-------------------------------------------------------] 100%
(7/7) checking keys in keyring                                                                [-------------------------------------------------------] 100%
(7/7) checking package integrity                                                              [-------------------------------------------------------] 100%
(7/7) loading package files                                                                   [-------------------------------------------------------] 100%
(7/7) checking for file conflicts                                                             [-------------------------------------------------------] 100%
(7/7) checking available disk space                                                           [-------------------------------------------------------] 100%
error: Partition /boot too full: 3182 blocks needed, 2878 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

Du you have a separate boot partition? Maybe you've got some too many kernels lying around in there? If so, uninstall some old ones.

I don't think so. Whatever the installer setup is what I have. The only kernel I have is linux-aarch64 so I'm assuming it just replaces the image in the boot partition.

I have no clue what image you have but if there is a dtbs directory in /boot you can delete all the directories for all of the other devices except broadcom.

Almost enough space freed up.
I installed Manjaro ARM maybe a year or two ago if that helps.
Now I get this, after deleting all subdirectories in dtbs:

(7/7) checking available disk space                                                           [-------------------------------------------------------] 100%
warning: could not get file information for boot/dtbs/allwinner/
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-amarula-relic.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-bananapi-m64.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-nanopi-a64.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-oceanic-5205-5inmfd.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-olinuxino.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-orangepi-win.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-pine64-lts.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-pine64-plus.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-pine64.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-pinebook.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-sopine-baseboard.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-a64-teres-i.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-bananapi-m2-plus-v1.2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-bananapi-m2-plus.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-libretech-all-h3-cc.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-nanopi-neo-plus2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-nanopi-neo2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-orangepi-pc2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-orangepi-prime.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-orangepi-zero-plus.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h5-orangepi-zero-plus2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h6-beelink-gs1.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h6-orangepi-3.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h6-orangepi-lite2.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h6-orangepi-one-plus.dtb
warning: could not get file information for boot/dtbs/allwinner/sun50i-h6-pine-h64.dtb
warning: could not get file information for boot/dtbs/amd/
warning: could not get file information for boot/dtbs/amd/amd-overdrive-rev-b0.dtb
warning: could not get file information for boot/dtbs/amd/amd-overdrive-rev-b1.dtb
warning: could not get file information for boot/dtbs/amd/amd-overdrive.dtb
warning: could not get file information for boot/dtbs/amd/husky.dtb
warning: could not get file information for boot/dtbs/amlogic/
warning: could not get file information for boot/dtbs/amlogic/meson-axg-s400.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-g12a-sei510.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-g12a-u200.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-g12a-x96-max.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-g12b-odroid-n2.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-nanopi-k2.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-nexbox-a95x.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-odroidc2.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-p200.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-p201.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-vega-s95-meta.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-vega-s95-pro.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-vega-s95-telos.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-wetek-hub.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxbb-wetek-play2.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s805x-libretech-ac.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s805x-p241.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905d-p230.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905d-p231.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905d-phicomm-n1.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905w-p281.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905w-tx3-mini.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905x-hwacom-amazetv.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905x-khadas-vim.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905x-libretech-cc.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905x-nexbox-a95x.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxl-s905x-p212.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-khadas-vim2.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-nexbox-a1.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-q200.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-q201.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-rbox-pro.dtb
warning: could not get file information for boot/dtbs/amlogic/meson-gxm-vega-s96.dtb
warning: could not get file information for boot/dtbs/apm/
warning: could not get file information for boot/dtbs/apm/apm-merlin.dtb
warning: could not get file information for boot/dtbs/apm/apm-mustang.dtb
warning: could not get file information for boot/dtbs/arm/
warning: could not get file information for boot/dtbs/arm/foundation-v8-gicv3-psci.dtb
warning: could not get file information for boot/dtbs/arm/foundation-v8-gicv3.dtb
warning: could not get file information for boot/dtbs/arm/foundation-v8-psci.dtb
warning: could not get file information for boot/dtbs/arm/foundation-v8.dtb
warning: could not get file information for boot/dtbs/arm/fvp-base-revc.dtb
warning: could not get file information for boot/dtbs/arm/juno-r1.dtb
warning: could not get file information for boot/dtbs/arm/juno-r2.dtb
warning: could not get file information for boot/dtbs/arm/juno.dtb
warning: could not get file information for boot/dtbs/arm/rtsm_ve-aemv8a.dtb
warning: could not get file information for boot/dtbs/arm/vexpress-v2f-1xv7-ca53x2.dtb
warning: could not get file information for boot/dtbs/freescale/
warning: could not get file information for boot/dtbs/freescale/imx8mm-evk.dtb
warning: could not get file information for boot/dtbs/freescale/imx8mq-evk.dtb
warning: could not get file information for boot/dtbs/freescale/imx8mq-librem5-devkit.dtb
warning: could not get file information for boot/dtbs/freescale/imx8mq-zii-ultra-rmb3.dtb
warning: could not get file information for boot/dtbs/freescale/imx8mq-zii-ultra-zest.dtb
warning: could not get file information for boot/dtbs/freescale/imx8qxp-mek.dtb
warning: could not get file information for boot/dtbs/hisilicon/
warning: could not get file information for boot/dtbs/hisilicon/hi3660-hikey960.dtb
warning: could not get file information for boot/dtbs/hisilicon/hi3670-hikey970.dtb
warning: could not get file information for boot/dtbs/hisilicon/hi3798cv200-poplar.dtb
warning: could not get file information for boot/dtbs/hisilicon/hi6220-hikey.dtb
warning: could not get file information for boot/dtbs/hisilicon/hip05-d02.dtb
warning: could not get file information for boot/dtbs/hisilicon/hip06-d03.dtb
warning: could not get file information for boot/dtbs/hisilicon/hip07-d05.dtb
warning: could not get file information for boot/dtbs/marvell/
warning: could not get file information for boot/dtbs/marvell/armada-3720-db.dtb
warning: could not get file information for boot/dtbs/marvell/armada-3720-espressobin.dtb
warning: could not get file information for boot/dtbs/marvell/armada-3720-uDPU.dtb
warning: could not get file information for boot/dtbs/marvell/armada-7040-db.dtb
warning: could not get file information for boot/dtbs/marvell/armada-8040-clearfog-gt-8k.dtb
warning: could not get file information for boot/dtbs/marvell/armada-8040-db.dtb
warning: could not get file information for boot/dtbs/marvell/armada-8040-mcbin-singleshot.dtb
warning: could not get file information for boot/dtbs/marvell/armada-8040-mcbin.dtb
warning: could not get file information for boot/dtbs/marvell/armada-8080-db.dtb
warning: could not get file information for boot/dtbs/mediatek/
warning: could not get file information for boot/dtbs/mediatek/mt2712-evb.dtb
warning: could not get file information for boot/dtbs/mediatek/mt6755-evb.dtb
warning: could not get file information for boot/dtbs/mediatek/mt6795-evb.dtb
warning: could not get file information for boot/dtbs/mediatek/mt6797-evb.dtb
warning: could not get file information for boot/dtbs/mediatek/mt6797-x20-dev.dtb
warning: could not get file information for boot/dtbs/mediatek/mt7622-bananapi-bpi-r64.dtb
warning: could not get file information for boot/dtbs/mediatek/mt7622-rfb1.dtb
warning: could not get file information for boot/dtbs/mediatek/mt8173-evb.dtb
warning: could not get file information for boot/dtbs/mediatek/mt8183-evb.dtb
warning: could not get file information for boot/dtbs/nvidia/
warning: could not get file information for boot/dtbs/nvidia/tegra132-norrin.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra186-p2771-0000.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-p2371-0000.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-p2371-2180.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-p2571.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-p2894-0050-a08.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-p3450-0000.dtb
warning: could not get file information for boot/dtbs/nvidia/tegra210-smaug.dtb
warning: could not get file information for boot/dtbs/qcom/
warning: could not get file information for boot/dtbs/qcom/apq8016-sbc.dtb
warning: could not get file information for boot/dtbs/qcom/apq8096-db820c.dtb
warning: could not get file information for boot/dtbs/qcom/ipq8074-hk01.dtb
warning: could not get file information for boot/dtbs/qcom/msm8916-mtp.dtb
warning: could not get file information for boot/dtbs/qcom/msm8992-bullhead-rev-101.dtb
warning: could not get file information for boot/dtbs/qcom/msm8994-angler-rev-101.dtb
warning: could not get file information for boot/dtbs/qcom/msm8996-mtp.dtb
warning: could not get file information for boot/dtbs/qcom/msm8998-asus-novago-tp370ql.dtb
warning: could not get file information for boot/dtbs/qcom/msm8998-hp-envy-x2.dtb
warning: could not get file information for boot/dtbs/qcom/msm8998-lenovo-miix-630.dtb
warning: could not get file information for boot/dtbs/qcom/msm8998-mtp.dtb
warning: could not get file information for boot/dtbs/qcom/qcs404-evb-1000.dtb
warning: could not get file information for boot/dtbs/qcom/qcs404-evb-4000.dtb
warning: could not get file information for boot/dtbs/qcom/sdm845-cheza-r1.dtb
warning: could not get file information for boot/dtbs/qcom/sdm845-cheza-r2.dtb
warning: could not get file information for boot/dtbs/qcom/sdm845-cheza-r3.dtb
warning: could not get file information for boot/dtbs/qcom/sdm845-db845c.dtb
warning: could not get file information for boot/dtbs/qcom/sdm845-mtp.dtb
warning: could not get file information for boot/dtbs/rockchip/
warning: could not get file information for boot/dtbs/rockchip/px30-evb.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3328-evb.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3328-roc-cc.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3328-rock64.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-evb-act8846.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-geekbox.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-lion-haikou.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-orion-r68-meta.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-px5-evb.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3368-r88.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-evb.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-ficus.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-firefly.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-gru-bob.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-gru-kevin.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-gru-scarlet-inx.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-gru-scarlet-kd.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-hugsun-x99.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-khadas-edge-captain.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-khadas-edge-v.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-khadas-edge.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-nanopc-t4.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-nanopi-m4.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-nanopi-neo4.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-orangepi.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-pinebook-pro.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-puma-haikou.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-roc-pc.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-rock-pi-4.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-rock960.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-rockpro64.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-sapphire-excavator.dtb
warning: could not get file information for boot/dtbs/rockchip/rk3399-sapphire.dtb
error: Partition /boot too full: 6436 blocks needed, 6147 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

Here's some extra info if it can help:

[tanner@rasp-pi ~]$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1   94M   82M   13M  88% /boot
[tanner@rasp-pi boot]$ du -ah
52K     ./bootcode.bin
2.0K    ./boot.scr
2.0K    ./boot.txt
2.0K    ./config.txt
20K     ./dtbs/broadcom/bcm2837-rpi-3-a-plus.dtb
20K     ./dtbs/broadcom/bcm2837-rpi-3-b-plus.dtb
20K     ./dtbs/broadcom/bcm2837-rpi-3-b.dtb
20K     ./dtbs/broadcom/bcm2837-rpi-cm3-io3.dtb
82K     ./dtbs/broadcom
84K     ./dtbs
8.0K    ./fixup.dat
8.0K    ./fixup4.dat
4.0K    ./fixup4cd.dat
27M     ./Image
11M     ./Image.gz
18M     ./initramfs-linux-fallback.img
7.1M    ./initramfs-linux.img
480K    ./kernel8.img
2.0K    ./mkscr
10K     ./fixup4db.dat
10K     ./fixup4x.dat
4.0K    ./fixup_cd.dat
10K     ./fixup_db.dat
2.8M    ./start.elf
2.7M    ./start4.elf
758K    ./start4cd.elf
4.4M    ./start4db.elf
3.4M    ./start4x.elf
672K    ./start_cd.elf
4.7M    ./start_db.elf
82M     .

So I deleted the fallback img and I was able to upgrade.
Is this the normal boot partition size in modern Manjaro ARM images?

[tanner@rasp-pi ~]$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1   94M   90M  4.3M  96% /boot

That seems pretty tight ...

You had one of the early rpi3 aarch64 based images I think. Back then we only did 100 MB to the boot partition, because that's what Raspbian did, but it is not quite enough when using the mainline kernel, like we are in the rpi3 aarch64 images.

Sorry about that.
About a year ago we changed it to 250 MB.

Yes, it's a pretty old image. I'll install a newer image one of these weekends.

Thanks for the explanation!

The Not getting File Info warnings are normal since you deleted the directories. Was hoping there might be some obsolete files there. To tell you the truth they are only taking up space and are never used but it is a one kernel fits all type of situation so it is what it is....

The fallback image is just taking up space also and is never used.

Since the addition of the rpi4 there are 8 more files that was added to /boot. (Four fixup4 files and 4 startx4 files)

I need to know which pi3 device you have. I have some new idea's I want to test to make things better for the pi3 devices before you upgrade.

Also there was some things that was not working in the lxde image that I have fixed since the image you have.

I found the order for it back in 2017. I'm 90% sure it's the model B and not the B+. I'm only using the minimal image as my Pi is a CUPS/SANE server.

It will be printed on the top side of the board what it is. Using the minimal image for what you are doing I do not know if I would be in a big hurry to upgrade the kernel.

Just made an update to the linux-aarch64 kernel today, where the fallback image is no longer generated. Hopefully that makes your system able to update the kernel.

Forum kindly sponsored by