Installing Gentoo on ALIX.3D3

When I ordered the ALIX.3D3 board I thought installing Gentoo on this should be a piece of cake, but finally there were some stumbling blocks and that's why I want to summarize how I got gentoo running.

First of all, I recommend installing Gentoo on a normal desktop to get to know the installing process, which is a bit different from graphical installers of mainstream distros. The Gentoo Handbook is a great documentation how this done.

To install gentoo, you have to boot a minimal or "rescue" linux usually from cd/dvd. I tried to convice the bios to boot from a usb cd-rom drive, but I hadn't any success. Continue reading →

Temperature sensor on ALIX.3D3

LM86 on ALIX.3D3

LM86 on ALIX.3D3

The schematics of the ALIX.3D3 mention a temperature sensors LM86 on page 2 which external sensors pins are connected to the TDP/TDN pins of the Geode LX800 CPU. So this sensor should be able to measure CPU and mainboard temperature.

The LM86 ist connected by the SMBus (which is compatible to I²C if bus speed is below 100kHz, see Maxim's Appnote for detailed comparison) via the AMD CS5536 Geode companion. Continue reading →

Watchdog on ALIX.3D3

The AMD CS5536 Geode companion on the ALIX.3D3 board has an internal watchdog, beeing able to reboot the system by itself if it's hangup. To use this watchdog device, kernel support is needed. In kernel 2.6.29 you have to enable

  Device Drivers  --->
    [*] Watchdog Timer Support  --->
      [*]   Disable watchdog shutdown on close
      <*>   AMD Geode CS5535/CS5536 Watchdog

for beeing able to use the watchdog timer. The Disable watchdog shutdown on close is optional. Usually if the watchdog program terminates it tell's the kernel to disable the watchdog and the kernel does. With this option you can prevent the kernel from disabling the watchdog. Continue reading →

commenting iptables rules

I often use iptables (or ip6tables, the IPv6 version of iptables) to implemented firewall rules on my linux systems.

In earlier times I used a commented bash script to setup the rules after booting, but using Gentoo nowadays there is a nice init script saving and restoring my tables. Using this I stopped commenting the firewall rules, but yesterday I found a very nice solution for this problem.

Iptables has a special "match" for comments. Continue reading →

wget and IPv6

wget is THE standard Linux tool to download files via http(s) or ftp on console and of course Gentoo's emerge is using wget as well.

But wget prefers IPv4 over IPv6, meaning if your download mirror supports IPv6, wget doesn't use it by default. You can change this behavior by setting

prefer-family = IPv6

either in /etc/wgetrc for everybody or in $HOME/.wgetrc for a user only.

So enable it and tell portage to use an IPv6 enabled mirror, by setting GENTOO_MIRROR in /etc/make.conf. You'll find a list of IPv6 capable mirrors on gentoo.org (look for mirrors marked with *).