pihole on raspberry 1 type "A"

Hello everyone, I’m not sure if I’m posting in the right section, but I wanted to say that I’ve been using Pi-hole 5 on an old Raspberry Pi 1 Model A (with a USB Ethernet adapter) and it has always worked perfectly. The other day, I noticed that an update was available, and when I tried to install it, I got an error saying that the CPU is not supported.

I found a page that says support starts from Raspberry Pi 1 Model B and newer, but the Model A and B have the same CPU. Thinking the issue might be due to the amount of RAM, I first created a swap file on the root of the SD card, then I forced the update to Pi-hole 6 by modifying the installation script.

if [[ "${rev}" -eq 6 ]]; then
printf "%b %b Detected ARMv6 architecture\n" "${OVER}" "${TICK}"
l_binary="pihole-FTL-armv6"

modified to

if [[ "${rev}" -eq 6 ]] || [[ "${rev}" -lt 6 ]]; then
printf "%b %b Forcing ARMv6 architecture\n" "${OVER}" "${TICK}"
l_binary="pihole-FTL-armv6"

And it worked! I’m now running Pi-hole 6 on a Raspberry Pi 1 Model A with only 51 MB of RAM in use and CPU usage not exceeding 30%.

So, I’m wondering, why was support for Raspberry Pi 1 Model A removed? Or is it a bug in the installation script?

Please run the unmodified updater again in verbose mode and post a dozen or lines leading up to and following the error message.

sudo bash -x /opt/pihole/update.sh

Will this knock out my Pi-hole again?
The previous script didn’t just tell me that the CPU wasn’t supported and then stop; before stopping, it made the current installation non-functional...

I need to work today, and I don’t want to kill my network again since Pi-hole is also handling my DHCP...
How can I quickly restore the installation in case of failure?

I executed your command, and the messages I get are these:

++ [[ 5 -eq 6 ]]
++ [[ 5 -ge 7 ]]
++ printf '%b %b This processor architecture is not supported by Pi-hole (%s)\n' '\r' '[✗]' v5TE
++ l_binary=
++ echo
[✗] This processor architecture is not supported by Pi-hole (v5TE)'

  • local binary
    [✗] This processor architecture is not supported by Pi-hole (v5TE)'
    [✗] This processor architecture is not supported by Pi-hole (v5TE)'

    [✗] This processor architecture is not supported by Pi-hole (v5TE) [i] Downloading and Installing FTL...curl: (3) bad range in URL position 70:
    [✗] This processor architecture is not supported by Pi-hole (v5TE)
    ^
    [✗] Downloading and Installing FTL
    [✗] This processor architecture is not supported by Pi-hole (v5TE) not found
    [✗] FTL Engine not installed

  • echo -e '\n Unable to complete update, please contact Pi-hole Support'

    Unable to complete update, please contact Pi-hole Support

  • exit 1

I ran the update again with my modified script, and it works correctly.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.