=====PC Engines ALIX.2d13 - Debian buster=====
How to install Debian Buster on an aging (2008) ALIX2D13. A 500MHz single x86 CPU, 256MB memory board. These steps are based on a Ubuntu 18.04 LTS host.
{{::img_1881.jpg?nolink&400|}}
====Connect and configure BIOS====
* Get the board out of the case, for access to 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====
* Remove the card out of 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/sdc
# 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 Buster====
* Install Debian Buster with debootstrap:debootstrap --verbose --arch i386 buster /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 Buster====
* 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 in the board and power it up.
* Log in as root and enable networking:
systemctl start systemd-resolved
systemctl enable systemd-resolved
systemctl start systemd-networkd
systemctl enable systemd-networkd
* Set the timezone:timedatectl set-timezone Europe/Amsterdam
* Configure localesdpkg-reconfigure locales
====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
* Restart sysfsutils (or reboot) to test:systemctl restart sysfsutils
{{tag>[hardware pcengines alix alix2d13 debian buster]}}