-
PC Engines alix3d3 with Debian Lenny
Posted on June 4th, 2009 6 commentsI have recently bought an alix 3d3 board from ReloadBG. It’s intended to be used in my robotics projects. Since I am a Linux user and Debian distro family fan, I’ve decided to put Debian Lenny (Debian 5) on it. First of all I have made a minimal installation on a 4GB flash stick using the debootstrap ( http://packages.ubuntu.com/jaunty/debootstrap , http://packages.debian.org/lenny/debootstrap ) program. You can read about the process here: http://darwish-07.blogspot.com/2007/08/constructing-minimal-debian-linux-usb.html. After going to a chroot-ed shell I run grub-install –root-directory=/ /dev/sdb to setup grub on the flash stick. There isn’t anything complex here. If you put the flash stick in the alix 3d3, plug in a monitor and give it some power (a standart 12V adapter works good) you would most probably see the kernel loading.
On the other hand everything goes wrong as I decided to boot without the monitor (vga port empty). I’ve waited for a few minutes for the board to reply my pings via the ethernet port (I’ve set up a static ip address in the interfaces file). I’ve plugged back the monitor and the screen was just showing “Starting Up… Detecting EDD (edd=off to disable)… ok” or something like that and nothing more. After 3-4 minutes it resumed normal boot. I’ve read somewhere that this is a but in the EDD module in the kernel, elsewhere that the alix phoenix bios is to blame (some vga ddc bug). I’ve even read that you should turn off “HPET” in the kernel using kernel paramters, but it turned out that the kernel parameter for disabling hpet or edd doesn’t work. Firstly I was thinking how to trick the system into thinking that there is a monitor still attached, asked arount how to do it. Some people and sources from the net pointed in usign some 75 Omh resistors to pull some of the pins to ground, but I’ve decided to try something else first (I’ve even read at ubuntuforums that on alix3c3 you need to put a paperclip between 2 of the vga pins, but that seemed desperate). I’ve went with the building a custom kernel option. I used this article as guidence: http://www.falkotimme.com/howtos/debian_kernel2.6_compile/. You can follow that guide. I used http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.gz. Keep in mind that you need about 500-600MB of free space. It turned out that you also need zlib headers ( zlib-dev or currently in jaunty the package is
zlib1g-dev ). I’ve removed EDID in firmware and also disabled HPET and EDD. You can download the complete config file here: configI’ve started the build process, it took about 1 hour 30 minuts on a AMD Athlon 64 X2 (2.3GHz per core); 2GB RAM; Debian Lenny system. Build time may vary. In the end I ended up with having a .deb fire in my /usr/src directory. You can download the compiled kernel here: linux-image-2.6.29.4_datamatrix.alix3d3.1.0_i386.deb. All that is left to do is to install the package using dpkg, updating initrd image using mkinitramfs (debian/ubuntu) and modifying /boot/grub/menu.lst to add the new kernel. It boots about as fast as before (~40-50 seconds) and has a bit more verbose debugging, but I think it would be useful.
My “hardware”: http://img.datamatrix-bg.net/robotics/IMG_1222.JPG
Comments are welcome!
Misc, embeded, robotics 2.6.29.4, 3d3, alix, alix 3d3, amd, compile kernel, debian, geode, kernel, lenny, linux, pc engines6 responses to “PC Engines alix3d3 with Debian Lenny”
-
Iasho July 23rd, 2009 at 11:06
Did you try latest BIOS from PCEngines?
http://www.pcengines.ch/file/alixbio7.zip
…Fix LEDs, VGA DDC issue (boot hang), free up MFGPT timers…
-
DataMatrix July 25th, 2009 at 22:28
There are three files in there, I’m not entirely sure which one to use and how.
Edit: ok, I understood what the third one does (.com file), but I’m unsure of which version of the firmware to use (alix0.bin or alix2.bin).
-
Hi,
I see that it is possible to install debian on the alix 3d3 board….hm…I read the instructions but my knowledge about linux is nowhere close to honored writer above
Is there any chance some solution that does not include compiling the kernel and similar.
Lets say CF image or similar that I can copy to CF Card!
I am willing to donate some $ for help on this matter!
Best regards, Vladimir
-
Hello, Vladimir.
If I understood correctly you want to use a CF (Compact Flash) card instead of usb flash stick. In my next post ( http://blog.datamatrix-bg.net/2009/06/04/debian-on-alix-3d3/ ) I’ve attached a tar.gz archive of my setup and have some instructions on how to put it to a flash stick, but instead of /dev/sdc you will probably have /dev/cf or something like that for you CF card.
My alix3d3 is currently inoperable (probably beyond repair) due to reversing the supply power polarity and I’m currently unable to afford a new one (and a CF card) to test my statement above and give you direct help.Best regards, Dimitar.
-
Hi Dimitar,
I think I also have a problem with the bios on the alix 3d3 board…..
what is the simplest solution to upgrade bios…all the instructions that are on pcengines website could not make to work..I made fredos bootable cf card , added bios for alix board, alixbio7 files , and my boot stops on the initdiskbad or missing command interpreter
I feel like absoulte beginner but not quite
what is the simple solution for bios upgrade of alix 3d3d board with award bios ver 7 ?
thnx, Vladimir
-
Hi Vladimir,
I read this a bit late, but I can confirm Debian Lenny works without any hacks with new bios.
As for installing new bios, you can also get USB CD-ROM (borrow from someone) and to make bootable DOS CD.
I can’t upload working linux flash image since I’m using USB HDD.
There is a problems here too, if BIOS did not recognize USB HDD, you need a CF with GRUB instructed to boot from HDD.
It works pretty well
CF are not recommended for many write operations as any OS will do.
You can of course install linux as read only, but this is not very useful.
Leave a reply
-



