Installing Debian 5.0 on Vortex86DX

Published on June 14, 2009

After writing about compiling a new kernel for the Vortex86DX, I've had quite a few people email me asking how I installed Debian in the first place. The installation is actually quite straightforward, but it involved several quirky techniques. After doing another install I decided to keep track of the process of installing Debian 5.0 on my eBox-3300.

The following guide assumes a few things. First, you are currently using Linux and a debian variety (although instructions could be altered if using Windows). Second, your USB shows up as /dev/sdb. Third, your eBox-3300 has the HDD set in Native mode. Forth, you are patient.

1) Download the custom vmlinuz and initrd.gz files from my site. Also, download the custom deb files we'll use near the end of installation:

http://cdn.kelvinism.com/ebox/vmlinuz
http://cdn.kelvinism.com/ebox/initrd.gz
http://cdn.kelvinism.com/ebox/linux-headers-2.6.29.3-vortex86dx.deb
http://cdn.kelvinism.com/ebox/linux-image-2.6.29.3-vortex86dx.deb

2) Download an i386 netinst iso:

http://www.debian.org/CD/netinst/

3) Make sure the USB has an MBR installed:

apt-get install syslinux mtools mbr
install-mbr /dev/sdb
4) Format the device as FAT32 with whatever tool you like.

5) Run syslinux on it:

syslinux /dev/sdb1

6) Mount the USB (or pull it out and plug it in again so it shows up on your desktop), and copy the downloaded vmlinuz, initrd, netinst.iso and deb files onto the USB. There should be a file called ldlinux.sys already; create a file called syslinux.cfg and put the following in it:

default vmlinuz
append initrd=initrd.gz root=/dev/rd/0 devfs=mount,dall rw DEBCONF_PRIORITY=medium

It should look like this:

Ebox files

7) Unmount the USB, and put it in your eBox-3300. When the system boots up initially, hit F11. Select your USB device. Depending how you created the MBR it might come up as saying "MBR FA:". Press "A". When 1234F comes up, press "1". Press enter at the SYSLINUX "boot:" screen.

8) Proceed as normal through the menu. It will search for an ISO image, and should detect the netinst image you inserted earlier. When you get to the "Load installer components" section, it will complain about no kernel modules found. Select YES. On the next screen you shouldn't need to load any components, so hit continue. Proceed as normal.

9) If you are ever asked about starting PC card services, hit NO. Proceed as normal.

10) Eventually you will hit a screen that says LVM is not available, hit CONTINUE. Proceed as normal.

11) Near the end it will toss up a list of available kernels. Select either, it shouldn't matter. When you are allowed to select drivers to include in the initrd, select TARGETED. Proceed as normal.

12) You might get to a point where it says Install GRUB boot loader on a hard disk. This will fail. That's ok, just skip it and select "continue without boot loader".

13) You will end up on the "Finish the installation" menu. DO NOT finish! We now need to swap out the current kernel with one that works. Scroll down and select "Execute a shell". Press CONTINUE. Try these steps when the shell prompt appears:

cd hd-media
cp *.deb /target/usr/src/
cp vmlinuz /target/boot/vmlinuz-2.6.26-2.486
cp initrd.gz /target/boot/
cd /target/boot
gunzip initrd.gz
mv initrd initrd.img-2.6.26-2-486
reboot

Your system will now reboot, and it should actually boot correctly. However, you're using a kernel that doesn't have any headers or modules, which means you can't activate anything. Once the box boots up, login and install the included custom kernels:

cd /usr/src
dpkg -i linux-image-2.6.29.3-vortex86dx.deb
dpkg -i linux-headers-2.6.29.3-vortex86dx.deb
reboot

Once the system comes back up, you should be running a spiffy 2.6.29 kernel, with the ability to add modules.

You may want to follow the tuning section from the MicroClient page on Google Groups. I also modified my fstab file to help reduce wear on the CF card:

tmpfs /var/run tmpfs defaults,noatime 0 0
tmpfs /var/lock tmpfs defaults,noatime 0 0
tmpfs /var/tmp tmpfs defaults,noatime 0 0 

Contribution 1: Francois Fleuret emailed through a kind reminder that the qemu-onto-SD card method is a viable option. So, if you want to go the SD route, and have an SD reader, this might be what you're after!

Basically, install Debian on a SD card with qemu (start qemu with the
install disk iso as cdrom and the SD card as hda), while you are still
in qemu, download and install the kernel deb file

ftp://ftp.icop.com.tw/upload/Shawn/linux-image-2.6.27.9-vortex86dx_2.6.27.9-vortex86dx_i386.deb

then quit qemu, put the SD card in the box and reboot. You are done!

If you want the source file for the above kernels, you can get it from here: 2.6.29-3 source. I recently recompiled the kernel with some extra modules enabled (e.g. ecryptfs), so if you would like to try a newer kernel, you can download my updated kernels too:

http://cdn.kelvinism.com/ebox/linux-headers-2.6.30.4-vortex86dx.deb
http://cdn.kelvinism.com/ebox/linux-image-2.6.30.4-vortex86dx_2.6.30.4.deb

Contribution 2: Trent L has also recompiled a 2.6.28 kernel with wireless extensions built into it, which is what was needed for his wireless card. He has kindly allowed me to distribute them; you can find them here:

http://cdn.kelvinism.com/ebox/linux-source-2.6.28.10_vortex86dx.deb
http://cdn.kelvinism.com/ebox/linux-image-2.6.28.10_vortex86dx.deb
http://cdn.kelvinism.com/ebox/linux-headers-2.6.28.10_vortex86dx.deb
http://cdn.kelvinism.com/ebox/2.6.28.config

Contribution 3: If you have the ebox-3310, you can still read through this, but you may also want to see a suggested installation method and kernels from Stefan.

Contribution 4: Alexandru T. sent through some instructions directly received from ICOP. I've added another page with the details. Thanks Alex!

Update: I've needed to recompile a new Lenny vortex86dx-enabled kernel for 2.6.31.5: image, headers, source and config.

Tagged as: compiling | debian | ebox | kernel | vortex86dx

Scott Jun 15 2009
8:45 a.m. canada
#1

Do you know if anybody has gotten it to load on the SX model?

Kelvin Nicholson Jun 16 2009
4:12 a.m. australia
#2

I don't own an SX, but there are two sites that detail how to load it:

http://designbuildtestrepeat.wordpres...

http://www.althainz.de/debian-on-ebox...

The second URL contains an IMG for USB at the bottom.

Olivier Jun 16 2009
9:58 a.m. france
#3

I've followed thoroughly that guide from step 1 to step 13, with a small modification:
# cp vmlinuz /target/boot/vmlinuz-2.6.26-2-486 (Replace the dot before "486" by a hyphen)

But after I reboot, my screen is blank, without any error message.
I have to mention I don't own an eBox-3300, but an industrial VDX-6354 board running on a 800MHz Vortex86DX. So I use a 10-year-old 8GB HDD connected with a specific IDE connector.
Anyway, I'm curious:
How does the system boot without a bootloader?

Olivier Jun 18 2009
8:37 a.m. france
#4

Thank you!
I finally installed Debian 5.0 on my VDX-6354 board thanks to that guide.

I followed your instructions but at step 12, I installed GRUB to be able to boot (without it, all I could see was a blank screen).

With GRUB, I loaded the 2.6.26-2-486 kernel, but it was loading the Installer again. So I edited the commands with GRUB, by pressing 'e' then deleting the initrd line with 'd'. I was able to login, but I must admit I can't explain why this works, I found this trick after spending hours trying to solve this problem.

Then I installed a self-compiled 2.6.30 kernel (compiled using your "Compiling kernel for Vortex86dx" tutorial). It worked!

Khurram Gulzar Jun 25 2009
1:57 p.m. finland
#5

hai oliver can you please tell me how you did it for VDX-6354 board
as i am using the same board

Olivier Jun 27 2009
7:06 a.m. france
#6

Hi Khurram,
I mainly used the guide from Kelvin. I summed up my installation process in my previous comment.
Have you tried to follow this guide? In that case, at what step are you having a problem?

chris Jul 13 2009
7:09 a.m. australia
#7

As Olivier pointed out, the instructions say to replace the initrd with the installer initrd and your system will reboot off the HD, but into the installer entry screen again. AS Oliver rightly pointed out, edit the GRUB boot option by pressing "e" and remove the initrd line, then boot in and install the *.deb packages and you'll be right to go!

Jeremy Jul 15 2009
12:19 a.m.
#8

Another tidbit of information: If you install Debian to another USB drive, you might need to add a "rootdelay=" parameter to the boot command to allow the kernel time to discover the USB device before it tries to mount the filesystem.

Comments are currently closed for this entry.

About This Page

This entry is from my tutorial section and was written on June 14, 2009. It's been tagged with compiling and debian and ebox and kernel and vortex86dx. There have been 8 comments so far.

Via Twitter

Twitter contact import script seems to be broken and spamming my requests - apologies if I sent you 10 emails; I'm stubborn like that. (about 1 week, 1 day ago)

Related Readings

Book Book Book Book