=====PC Engines ALIX.2d13 - Debian 12, Bookworm===== My 15 year old (2008) ALIX2D13, a 500MHz single x86 CPU, 256MB memory board, is still working! And Debian 12, is still supported! So let's install Debian 12 8-) {{::img_1881.jpg?nolink&400|}} ====Documentation sources==== * [[https://www.pcengines.ch/alix2d13.htm|Alix 2D13]] * [[https://www.pcengines.ch/pdf/alix2.pdf|Alix 2 manual]] ====Connect and configure BIOS==== * First we need to get the board out of the case to unplug the CF card * Connect a serial console, power up and boot the board * Enter the BIOS settings, by pressing ''s'' * Set the console baud rate to 115200 * Exit and save the settings ====Prepare the CompactFlash card==== * Unplug the CF card from the board, and connect it to your host machine. * Partition the CF card: # Make sure you've got the the right blockdevice here. CFDRIVE=/dev/sd? # Unmount partitions if they are automounted. umount ${CFDRIVE}{1,2} # Remove partition table dd if=/dev/zero of=${CFDRIVE} bs=512 count=1 conv=notrunc # Make a new partion table for /boot and the / root filesystem. parted --script $CFDRIVE \ mklabel msdos \ unit mib \ mkpart primary ext4 1MiB 500MiB \ toggle 1 boot \ mkpart primary ext4 500MiB 100% # Create the filesystems mkfs.ext4 -L boot ${CFDRIVE}1 mkfs.ext4 -L root ${CFDRIVE}2 # Mount the filesystems mount ${CFDRIVE}2 /mnt mkdir /mnt/boot mount ${CFDRIVE}1 /mnt/boot ====Install Debian Bookworm==== * Install Debian Bookworm with debootstrap:debootstrap --verbose --arch i386 bookworm /mnt http://ftp.nl.debian.org/debian ====Enter the chroot==== * Bind mount some special filesystems and enter the chroot: mount --bind /dev/pts /mnt/dev/pts mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys mount --bind /dev /mnt/dev LANG=C linux32 chroot /mnt /bin/bash ====Configure Debian Bookworm==== * Still in the chroot: # Configure /etc/fstab cat > /etc/fstab < /etc/apt/sources.list < /etc/hostname echo "127.0.0.1 alix2d13" >>/etc/hosts # Configure the first network interface (as DHCP client) cat > /etc/systemd/network/enp0s9.network < ====Boot the alix2d13 board==== {{:img_1880.jpg?nolink&400|}} * Insert the CF card and power it up. * Log in as root and enable networking:systemctl enable --now systemd-resolved systemd-networkd * Set the timezone:timedatectl set-timezone Europe/Amsterdam * Configure localesdpkg-reconfigure locales * Enable time synchronization:systemctl enable --now systemd-timesyncd ====LED's==== The LED's are supported out of the box. * Install sysfsutils:apt install sysfsutils * Add to /etc/sysfs.conf: devices/platform/leds-gpio/leds/alix:1/brightness = 1 devices/platform/leds-gpio/leds/alix:2/trigger = disk-activity devices/platform/leds-gpio/leds/alix:3/trigger = netdev devices/platform/leds-gpio/leds/alix:3/rx = 1 devices/platform/leds-gpio/leds/alix:3/tx = 1 devices/platform/leds-gpio/leds/alix:3/device_name = enp0s9 * Restart sysfsutils (or reboot) to test:systemctl restart sysfsutils ====nftables firewall==== * Configure nftables (examples in /usr/share/doc/nftables/examples):cat >/etc/nftables.conf < * Enable nftables:systemctl enable --now nftables * Check loaded rules:nft list ruleset {{tag>[hardware pcengines alix alix2d13 debian bookworm]}}