PC Engines ALIX
ALIX system boards are manufacturered and sold by PC Engines. They utilise the x86-based AMD Geode CPUs. The boards and other components (enclosures, power supplies, wireless cards, CompactFlash cards, etc) are sold separately, although some retailer sell pre-build kits. At the time of writing (August 2011), ALIX boards and associated accessories are readily available from many resellers across Europe and North America.
Supported Versions
| Model | OpenWrt Version Supported | Model Specific Notes |
|---|---|---|
| Alix 1c, 2c*, 3c* | Kamikaze 8.09 and above | - |
| Alix 1d, 2d*, 3d* | Kamikaze 8.09 and above | - |
| Alix 6* | | Almost certainly works, but untested |
Hardware Highlights
There are many models of ALIX boards (all work with OpenWRT at present), with two different CPU/RAM configurations:
| CPU | Ram | Flash | Network | USB | Serial |
|---|---|---|---|---|---|
| AMD Geode LX700 @ 433 MHz | 128 MiB | Optional (CF) | 100Mbit/s (1-3 ports, varies) | Optional | Yes (RS232) |
| AMD Geode LX800 @ 500 MHz | 256 MiB | Optional (CF) | 100Mbit/s (1-3 ports, varies) | Optional | Yes (RS232) |
All models have a CompactFlash socket and some also have a 44-pin IDE header for 2.5" IDE hard disks.
Many models have miniPCI sockets (ideal for WiFi cards), and some have miniPCI Express sockets (note that there is a warning on the PC Engines site stating that these cannot be used with WiFi cards though).
The device does not include an embedded Ethernet switch. Models with multiple Ethernet ports have multiple Ethernet controllers (Via VT6105M).
Installation
Building from source
There are no pre-built images for the ALIX boards available at http://downloads.openwrt.org/. The generic x86 ones will not include the appropriate drivers (e.g. wireless, LED support, USB). Building your own image and specifying the build profile below will ensure the appropriate drivers are all included in the image.
Follow:
Build profile should be:
- Target System: x86 [2.6]
- Target Profile: PCEngines Alix
Using pre-built images
The current release Backfire 10.03.1-RC5 openwrt-x86-generic-combined-ext2.img.gz includes Ethernet drivers (at least for alix2d3). After flashing the OpenWrt image, follow these guides to install missing packages:
opkg update opkg install ''kmod-leds-alix''
NOTE: If you have problem mounting external storage on boot apply this fix: sleep.before.startup.
Flashing by CompactFlash
The easiest method of installation for ALIX boards is to use dd to write the image to the CompactFlash card on machine.
- Attach a USB CompactFlash reader/writer to the flashing machine and insert the CompactFlash card
- Watch the output from 'dmesg' to see what device ID it has picked up (it will be something like /dev/sdb)
- Ensure that /dev/sdb (or whatever is determined in step #2) is not mounted through the use of the 'mount' command. If it is, unmount it with 'umount'.
- Decide whether you want to use the squashfs (openwrt-x86-squashfs.image) or ext2 image (openwrt-x86-ext2.image). The ext2 one will take up considerably more space on the CompactFlash card, but will be faster to boot.
- Uncompress your image file
gunzip openwrt-x86-generic-combined-ext2.img.gz - Flash the desired image to the CompactFlash card with:
dd if=openwrt-x86-ext2.image of=/dev/sdb
- Depending on your CF card size the default install won´t full fill your CF card. You can use gparted or equivalent application to expand the root partition.
- Removed the CompactFlash card, place it in the ALIX board and power on.
- Once powered on and booted up the ALIX should be reachable on 192.168.1.1 on eth1. In default install eth0 is wan interface configured to obtain ip by dhcp and eth1 is br-lan interface with static ip 192.168.1.1
- If you have a serial cable it is recommended to do the first boot and initial network configuration with it attached ( minicom configured for 38400-8N1)
Note: If you selected the squashfs image it may take a few minutes for the device to power on.
- Afterwards you can use the usual utilities like
fdisk,tune2fs, etc. to resize the system partition (its only around 40MiB by default) and maybe upgrade the filesystem. - Sometimes you need to change the
root=parameter in the GRUB settings if the booting kernel does not find the root device. You'll find themenu.listwithin the first partition.
—-
Ethernet assignation alix2d3
Upgrading
Controlling the LEDs
Note: The below is taken from the Old Wiki, but is known to still be correct.
Assuming you have the kmod-led-alix module present (check via lsmod), you should get three LED devices under /sys/class/leds/ - alix:1, alix:2 and alix:3 This should turn on one led:
echo 1 > /sys/class/leds/alix:1/brightness
And off:
echo 0 > /sys/class/leds/alix:1/brightness
And this should make it blink:
echo timer > /sys/class/leds/alix:1/trigger echo 1000 > /sys/class/leds/alix:1/delay_off echo 100 > /sys/class/leds/alix:1/delay_on
You can assign various triggers for LED activity using the instructions here.
After reading the previous link about leds functionality, the easiest way to configure the leds is from the web gui (luci) in "system" » "led configuration"
Entering Failsafe Mode
Note: The below is taken from the Old Wiki, and its current correctness is unknown.
- The button does not seem to work
- Attach serial cable, speed is 38400
- Press Esc during or after the memory check (can be tricky to time right)
- Choose 'safe mode' in the grub menu
Watchdog Timer
Note: The below is taken from the Old Wiki, and its current correctness is unknown.
The Geode LX CPUs have a hardware watchdog. It might be supported by the scx200_wdt kernel module that provides the same support for the GX series.
These commands might enable the watchdog with the GX series CPUs.
mknod -m 600 /dev/wd c 10 130 modprobe scx200_wdt margin=30
An example of the watchdog in action on ALIX boards can be found at twam.info
Using the Geode's AES engine
As of OpenWRT Backfire 10.03, cryptodev support can be enabled by installing the following packages (confirmed and tested on Alix 2d13):
From Kernel Modules, Cryptographic API modules:
- kmod-crypto-core
- kmod-crypto-aes
- kmod-crypto-hw-geode
- kmod-crypto-ocf
This was tested using openssl-util, which was installed from Utilities –> openssl-util. The command to test it is:
- "openssl speed -evp aes-128-cbc -engine cryptodev"
The Alix Geode crypto engine supports only AES-128. Other ciphers are not supported. For more general crypto hardware info, see here:
Relevant external articles
Many of the below are written with Gentoo in mind, but will work equally well on OpenWRT (you should install relevant pages via 'opkg' rather than 'emerge' though).
Tags
toh/pcengines/alix.txt · Last modified: 2011/10/08 19:29 by esplinter
