2023-09-14 - This is a manual install guide for installing Debian 12 Bookworm on the PC Engines APU/APU2 board. It is a network based installation, you'll need to have a working internet connection using one of the Ethernet ports.
zcat boot.img.gz | sudo dd bs=4M iflag=fullblock of=/dev/sdX oflag=direct status=progress
sudo mount /dev/sdX1 /mnt
# D-I config version 2.0 # search path for the c32 support libraries (libcom32, libutil etc.) path prompt 0 timeout 0 serial 0 115200 include menu.cfg default vesamenu.c32
cp debian-12.1.0-amd64-netinst.iso /mnt
umount /mnt
Build date: Apr 5 2014 System memory size: 4592 MB Press F12 for boot menu. Select boot device: 1. AHCI/0: KINGSTON SMS200S330G ATA-8 Hard-Disk (28626 MiBytes 2. USB MSC Drive SanDisk Ultra 1.00 3. iPXE (PCI 00:00.0) 4. Payload [setup] 5. Payload [memtest]
i
and <TAB>linux initrd=initrd.gz qfxpayload=text console=ttyS0,115200n8
SSH server
and standard system utilities
.e
in grub menu) and add console=ttyS0,115200n8 to the linux command-line parameters GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"
update-grub
cp /usr/share/doc/nftables/examples/workstation.nft /etc/nftables.conf vi /etc/nftables.conf # accept port 22 for example systemctl enable --now nftables
Configure front LEDs to blink on network and disk activity.
/etc/modules
.cat >> /etc/modules <<EOF ledtrig-default-on ledtrig-netdev ledtrig-heartbeat EOF
modprobe
# Install sysfs utils apt install sysfsutils # Append config to /etc/sysfs.conf cat >> /etc/sysfs.conf <<EOF class/leds/apu2:green:led1/brightness = 1 class/leds/apu2:green:led2/trigger = disk-activity class/leds/apu2:green:led3/trigger = netdev class/leds/apu2:green:led3/rx = 1 class/leds/apu2:green:led3/tx = 1 class/leds/apu2:green:led3/device_name = enp1s0 EOF
systemctl enable sysfsutils
cat > /etc/modprobe.d/noi2c.conf <<EOF # Disable i2c_piix4, see https://pcengines.github.io/apu2-documentation/theory-of-operation/ blacklist i2c_piix4 EOF
update-initramfs -u
/etc/systemd/system.conf
and enable watchdog.RuntimeWatchdogSec=60
apt install gdb gdb -p 1