

To set-up "apt" we need to tell it which sources to use, I'll use the UK Debian mirror in this example. Lets deal with "apt" first so we can install new packages.

Now we are chrooted into our new Debian system there are a few things we need to configure to make it useable. Now we have a basic Debian system we can chroot into and start setting up. sudo cp /usr/bin/qemu-arm64-static /mnt/sd/usr/bin sudo debootstrap -arch arm64 bullseye /mnt/sd īefore we can do anything with our new system we have to make it accessible from our hosts architecture, we do this using QEMU. This may take a while and will download an entire basic Debian system. Now lets tell debootstrap to set-up a base Debian Arm64 installation on our SD card. We will also need QEMU if we are building an Arm64 system on another host architecture (圆4 or ArmHF most likely)

The utility used by the Debian installer, and recognized as the official way to install a Debian base system, is debootstrap. 2nd Partition 256MB+ = EXT4 (Mount to /mnt/sd).1st Partition 0-256MB = FAT32 (Mount to /mnt/sd/boot).An empty SD card formatted as per a standard Raspbian installation mounted to /mnt/sd on the build system.An existing Debian/Raspbian system (any architecture will do).I could not run the software easily in a container (docker or podman) because it needs access to systmctl.The objective of these instructions is to create a complete Arm64 OS (Userland and Kernel) using Debian Debootstrap and RPI-Update for use on the Raspberry Pi 3 and 4. They only tested and built it on armhf 32-bit pi. Its legacy: the last update was a few years ago before the 64 bit pi was released. For some reason this software has been designed to run on a pi. It uses websockets to interface with their brain machine interface api so I can run programs that use EEG headsets over my local network. I hope this thread will help others who stumble along with similar questions in the future. I've searched all over the internet and can't find an official Debian 10 image. I'm working with a niche piece of software that needs a 32-bit Debian 10 operating system on my pi.
