Home > linux > Installing CentOS on ALIX.2D2

Installing CentOS on ALIX.2D2

First step for successful installation of CentOS (or RHEL/Fedora) on ALIX board is to use Microdrive instead of CompactFlash card, so you won’t have to worry about CF write cycles. Microdrives go now for $10-20 on eBay. Definitely worth it. I used 2.5GB Seagate ST625211CF Microdrive, but I believe any other will do too. 

Then you will need regular PC and IDE to CF adapder. Connect the adapter as first hard disk and install on it Linux distribution of your choice. And yes, you can create swap partition since it’s Microdrive and not CompactFlash.

Another option is to use USB card reader instead of IDE to CF adapter or VMware instead of real PC. Or connect Microdrive to another Linux machine and use yum –installroot same way it done with Xen domU images.

Any way, after Linux is installed don’t forget to enable serial console.

1. Edit /etc/grub.conf:

serial –speed=38400
terminal serial


title CentOS (2.6.18-128.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/hda3 console=ttyS0,38400n8
        initrd /initrd-2.6.18-128.el5.img

2. Add to /etc/inittab:

T0:23:respawn:/sbin/agetty 38400 ttyS0

3. Add to /etc/securetty:


Now Microdrive is ready to be plugged into ALIX and happily booted.

Despite Geode LX800 is i586 compatible CPU and CentOS/RHEL comes with i686 kernel it will boot. The only problem I’ve noticed so far is when you try to install kernel update it will complain “package kernel-2.6.18-128.1.16.el5.i686 is intended for a i686 architecture”. Fix it by:

# echo i686-redhat-linux > /etc/rpm/platform

By the way, we can also use Voyage Linux kernel. Just copy /boot/vmlinuz-2.6.26-486-voyage and /lib/modules/2.6.26-486-voyage and create initrd image:

# mkinitrd -v –without-dmraid /boot/vmlinuz-2.6.26-486-voyage 2.6.26-486-voyage

Voyage Linux kernel provides some support for such ALIX board features as temperature sensor and leds, but some of it can be also enabled in CentOS/RHEL kernel. About it later on.

Categories: linux Tags: , , , , ,
  1. December 16th, 2009 at 09:32 | #1

    Microdrives are rare now. That is why I am thinking of using the stateless linux support within centos.

    I found this:

  2. bk
    December 18th, 2009 at 16:30 | #2

    There are still a lot of microdrives on eBay. But stateless idea seems to be interesting, given support for it is already in CentOS. Still probably will be harder for maintenance.

  3. rg
    May 1st, 2010 at 03:28 | #3

    I installed CentOS on Alix 2D2 with 4GB CF. The system hang-up and keep on rebooting after 2 mins after the following error:

    root (hd0,0)
    Filesystem type is ext2fs, partition type 0×83
    kernel /vmlinuz-2.6.18-164.el5PAE ro root=/dev/VolGroup00/LogVol00 console=ttyS
    [Linux-bzImage, setup=0x1e00, size=0x1c2494]
    initrd /initrd-2.6.18-164.el5PAE.img
    [Linux-initrd @ 0xfcda000, 0x3155bc bytes]

    Any advice?

  4. bk
    May 1st, 2010 at 12:39 | #4

    My first guess would be is that you’re booting PAE kernel. Try to choose regular kernel from GRUB boot menu (install if it’s not there).

  1. No trackbacks yet.