2022-11-12 - This is a manual install guide for updating the BIOS (optional) and installing Debian Bullseye on the PC Engines APU2 board. This is a network based installation, connect internet via Ethernet.
zcat apu2-tinycore6.4.img.gz | sudo dd of=/dev/sdX bs=1M conv=fsync status=progress
sudo mount /dev/sda1 /mnt
sudo cp apu2_v4.17.0.2.rom /mnt
sudo umount /mnt
FAT partition not mounted yet, retrying since 3 s FAT partition not mounted yet, retrying since 6 s^C
cd /media/SYSLINUX flashrom -p internal -w apu2_v4.17.0.2.rom reboot ... PC Engines apu2 coreboot build 20222807 BIOS version v4.17.0.2 4080 MB ECC DRAM ...
sudo dd if=debian-11.5.0-amd64-netinst.iso of=/dev/sdX bs=4k oflag=direct status=progress
h
and <ENTER>. #Press F2 through F10 for details, or ENTER to boot: install vga=off console=ttyS0,115200n8
SSH server
and standard system utilities
.vga= is deprecated. Use set gfxpayload=text before linux command instead.
/etc/default/grub
, change vga=off
into gfxpayload=text
and run update-grub.cp /usr/share/doc/nftables/examples/workstation.nft /etc/nftables.conf vi /etc/nftables.conf systemctl enable --now nftables
apt update apt upgrade
Configure front LEDs to blink on network and disk activity.
/etc/modules
.ledtrig-default-on ledtrig-netdev ledtrig-heartbeat
modprobe
.cat > /etc/tmpfiles.d/apuled.conf <<EOF w /sys/class/leds/apu2:green:led1/trigger - - - - default-on w /sys/class/leds/apu2:green:led2/trigger - - - - disk-activity w /sys/class/leds/apu2:green:led3/trigger - - - - netdev w /sys/class/leds/apu2:green:led3/rx - - - - 1 w /sys/class/leds/apu2:green:led3/tx - - - - 1 w /sys/class/leds/apu2:green:led3/device_name - - - - enp1s0 EOF
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
gdb -p 1