LinuxBIOS Brings Clones One Step Closer to Freedom

You might not think about your computer's BIOS much, but one project has: LinuxBIOS rethinks an old and hoary PC convention with an approach devoted to modern operating systems.

By Carla Schroder | Posted Oct 23, 2007
Page 1 of 2
Print ArticleEmail Article
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

No matter how hard you try to build a 100 percent Free/Open Source (FOSS) computer, there are a few bits you can't reach that contain non-FOSS code: ROM chips. These power the BIOS (Basic Input/Output System), Ethernet interfaces, SCSI controllers, and SATA/PATA drive controllers. Today we're taking a look at the LinuxBIOS project, which gives us a modern GPL alternative to the two remaining proprietary BIOS vendors, AMI and Phoenix.

Even if you don't care about the openness of your system BIOS, you might be concerned about its inflexibility and legacy baggage. The x86 BIOS still thinks it's supporting MS-DOS and performs a number of tasks, such as probing hardware and loading drivers, that modern operating systems (including Linux and Windows) now handle better, faster and with a lot more flexibility and user control. This can take 30-50 seconds. The operating system ignores what the BIOS does and then re-runs the same tasks. Newer PCs shortcut this with the "fast boot" setting, which skips most of the usual steps and gets to a boot prompt in about ten seconds.

LinuxBIOS takes a completely different approach. Rather than merely skipping over the useless bits, LinuxBIOS is new from the ground up. It's designed to perform just enough hardware initialization to start the system, and then it hands off to the next step in the boot process. LinuxBIOS calls this executing a payload, which is any executable capable of starting a kernel. It's not limited to booting Linux, but can boot a number of operating systems including Windows 2000. It can also start memtest, enable netbooting, Open Firmware, or anything you care to code it to boot.

What is the BIOS?

"BIOS" is a shortcut name for a complex of programs and chips, including three programs stored on a Flash ROM chip. BIOS, Setup and Power-on Self-test (POST), plus Setup variables are stored on a CMOS (Complementary metal-oxide-semiconductor) chip. This is volatile memory; it loses its contents when the power goes off. So it needs a battery to maintain settings when the power is off, usually a soldered barrel battery, a lithium battery, or a coin cell battery. Batteries last several years; you can tell when one is getting weak because your settings, such as the time and date, are not retained between power cycles. Motherboards with barrel batteries usually have connectors for a replacement battery, so you don't have to solder in a new battery.

The code in these programs is called firmware or microcode (the term favored by IBM). They mean the same thing. The common phrase for updating or replacing this code is flashing the firmware. LinuxBIOS adds an excellent twist to this, which we'll get to in a moment.

LinuxBIOS Advantages

LinuxBIOS is written in C rather than assembly language, which makes it easier to write and debug. There are no licensing fees, and it occupies a smaller footprint than proprietary BIOSes.

A very large advantage, at least to me, is it foils Trusted Computing. Whoever controls the BIOS controls your computer, and you can call me a crazy hairy old anarchist paranoid hippie all you want—I still won't cede control of my computer to a consortium of ethics-free globalcorps who view me as a fleecy animal.

Bugs in LinuxBIOS get fixed.

The development toolchain is relatively inexpensive and accessible.

Open code means it's auditable and has nowhere for home-phoning nasties to hide. It's also completely customizable, so you don't have to depend on non-responsive vendors for extra features.

Very fast booting—the project page claims 3 seconds from power-on to console.

You get real-live useful debugging output to the serial console.

It is maintained by a community of developers and users who are more interested in making something inventive, flexible and excellent than locking-in users and vendors.

You can update LinuxBIOS over the network. (This is the cool thing I referred to earlier.) Imagine the traditional way of changing settings in the PC BIOS: one system at a time, monitor and keyboard required. Now imagine logging in remotely to any machine&mash;workstation, server, cluster node—and making changes with a few keystrokes from the comfort of your personal lair.

You don't need a Windows PC or floppy disk to flash the LinuxBIOS.

Nobody was stopping the proprietary vendors from implementing new and excellent features, but that's the way it always seems to be.

Comment and Contribute
(Maximum characters: 1200). You have
characters left.
Get the Latest Scoop with Enterprise Networking Planet Newsletter