Archive

Posts Tagged ‘Gentoo’

CHOST: i586 vs. i486 on AMD Geode LX

May 25th, 2009 7 comments

On my blog post about Installing Gentoo on ALIX.3D3 Mart Raudsepp made an interesting comment: He pointed out, that on AMD Geode CPUs it might be better to use i486 CHOST instead of my used i586, because the CPU is more like a i486 as far as instruction scheduling and times go.

This sounded interesting, so I googled for some benchmark test to measure differences. I found nbench, which measures performance by executing some typical algorithms and compares them to a Pentium 90 based system. So I installed it and run on the i586 CHOST system, then rebuild it completely to i486 CHOST and run it again. Read more…

Categories: Alix, Gentoo, Hardware, Linux Tags: , , ,

Using Geode’s AES engine on ALIX.3D3

May 13th, 2009 21 comments

The AMD Geode LX800 CPU has an on-chip AES 128-bit crypto accelerations block and a true random number generator. Using this block for encryption and decryption is a lot faster than software implemented algorithms and it unloads the CPU. There are two main purposes where en/decryption is needed:

  • Storing files
  • Communication over network (IPSEC, OpenVPN, WPA2, …)

I’ll focus on the first point in this article using LUKS (Linux Unified Key Setup).

Read more…

Categories: Alix Tags: , , , ,

Updating BIOS on ALIX.3D3 within Linux

May 6th, 2009 2 comments

Usually BIOS updating means booting DOS and running a proprietary tool from the board vendor. A few days ago, coreboot’s flashrom 0.9 has realeased. It’s an open-source tool which supports program almost all flash chips used on x86 mainboards. Its compatibility list includes Geode™ CS5530/A, which can be found on the ALIX.3D3 board. So why not using flashrom to update ALIX.3D3 BIOS.

Read more…

Categories: Alix, Gentoo, Linux Tags: , , ,

Ethernet bonding with Linux and 802.3ad

May 6th, 2009 No comments

2 NIC + SwitchNowadays, most desktop mainboards provide more than one gigabit ethernet port. Connecting them both to the same switch causes most Linux distros by default to get a individual IP on each device and route traffic only on the primary device (based on device metric) or round-robin. A single connection always starts at one IP and so all traffic goes through one device, limiting maximum bandwidth to 1 GBit.

Here comes bonding (sometimes called (port) trunking or link aggregation) to play. It connects two ore more ethernet ports to one virtual port with only one MAC and so mostly one IP address. Wheres earlier only two hosts (with the same OS running) or two switches (from the same vendor) could be connected, nowadays there’s a standard protocol which makes it easy: LACP which is part of IEEE 802.3ad. Read more…

Changing scheduling parameters in Linux

May 4th, 2009 No comments

Process scheduling within Linux is done by the kernel, following different aspects. Usually it’s goal is to share all resources fairly among all running processes.

Sometimes, there’s a need to tell the kernel explicitly to prior some process, bind some process to a special CPU and so on.

Changing process priorities is commonly known:

nice -n 10 make

runs the program make with a priority of 10 (-20 meaning most favorable and 19 least favorable scheduling). If you want to change a priority of a running program, renice is your choice. Read more…

Categories: Linux Tags: , ,

Sound on ALIX.3D3

May 2nd, 2009 No comments

The AMD CS5536 Geode on the ALIX.3D3 board has an included audio controller which headset output and microphone input is populated on the board. lspci lists the audio controller as

00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01)

ALSA (Advanced Linux Sound Architecture) supports this chip. Read more…

Categories: Alix Tags: , , , ,

Framebuffer on ALIX.3D3

May 2nd, 2009 1 comment
ALIX.3D3 booting

ALIX.3D3 booting

In contrary to most ALIX devices, the ALIX.3D3 has an integrated VGA controller and an Award BIOS (tinyBIOS doesn’t support VGA), so why not attach a monitor.

Standard text mode is supported by default (and faster than graphical mode), but if you wish to change resolution, add a boot logo or even want to use a graphical boot screen like splashutils a framebuffer device is needed.

lspci lists the integrated VGA controller of the AMD Geode LX800 CPU as the video device:

00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video

Luckily the linux kernel supports this device directly and so no VESA framebuffer is needed. Read more…

Categories: Alix Tags: , , ,

Installing Gentoo on ALIX.3D3

May 1st, 2009 35 comments

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. Read more…

Categories: Alix, Gentoo Tags: , ,

Temperature sensor on ALIX.3D3

April 30th, 2009 2 comments
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. Read more…

Categories: Alix Tags: , , , ,

Watchdog on ALIX.3D3

April 28th, 2009 No comments

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. Read more…

Categories: Alix Tags: , , ,