Piero V.

A small journey with my Orange Pi Zero

A couple of weeks ago, Debian Bookworm became stable. I have a few devices running stable, including an Orange Pi Zero I use to open and close my garage door with a Telegram bot.

So, I SSH’ed in it, and ran the following commands:

apt update
apt upgrade
apt dist-upgrade

Without even changing my /etc/apt/sources.list because I already keep stable instead of the codename 😎️.

End of the story, just like any other major Debian update there in the last 6 years… Or is it?

I just wanted a new kernel…

Many boot files were dated June 2017, so the system probably started as Debian Stretch. And actually, it was an Armbian installation (which uses the official Debian repos, contrarily to Raspbian, plus a custom repository for a few additional packages).

The Linux kernel was one of these custom packages, and its version was 4.11.3, released on May 25, 2017, so quite old. I wanted a more recent kernel with security vulnerabilities fixed and all the other improvements.

Debian supports a configuration they call ARMMP (ARM multiplatform). With a single kernel and DeviceTree, it targets many different devices, and the Orange Pi is one of them. So, I tried to install Debian’s official kernel instead of the one I was using… and for the first time in 6 years, I screwed up to the point I needed to remove the thumb drive I use as storage on that system. It was somehow annoying because the board is in an electrical box, and there were several things I needed to move to get to it. I tried to troubleshoot it for an entire evening without success. Eventually, I went back to the old kernel, closed the box, and moved everything again. … [Leggi il resto]

Orange Pi Zero e boot USB

Di recente ho comprato una Orange Pi Zero, versione da 512MB di RAM e flash NOR saldata.

Il mio obiettivo è rendere domotico il basculante del garage, ovvero permetterne l’apertura tramite un bot Telegram. Negli anni ho visto persone far svolgere funzioni simili ad Arduino o a schede di sviluppo simili, però sono troppo poco potenti per gestire un bot Telegram, e comunque una Orange Pi Zero, con tanto di spese di spedizione, è più economica di un Arduno ufficiale.

La scelta della versione più potente è dovuta principalmente al fatto che dopo l’esperienza che ho avuto con la Raspberry, preferisco evitare le micro SD. Tuttavia ne serve comunque una per un unico boot. L’alternativa è avere un programmatore di flash NOR, che penso sia molto più difficile da avere già in casa.

Oltre alla scheda micro SD, sarà necessario procurarsi una versione con kernel mainline di Armbian. Potete scegliere indipendentemente Debian (disponibile scegliendo other options) o Ubuntu. Le versioni con il legacy kernel non vanno bene perché non rilevano la flash. … [Leggi il resto]