-
Debian on alix 3d3
Posted on June 4th, 2009 5 commentsI’ve decided to supply my installation of Debian so that people that aren’t as stubborn or just don’t want to waste time can get up and running
First of all you should take a 1 or 2GB flash drive (flash stick). A CF card would probably also work, but I haven’t tried one and so I don’t know. NOTE: ALL COMMANDS ARE EXECUTED IN ROOT SHELL. BE CAREFUL! First of all you sould format your flash drive. I’m using a 4GB pqi, but a 1GB would easily do (512MB is too close to the current size of 490MB of my installation) EDIT: After cleaning the apt cache (apt-get clean) the distribution is now 409MB on the flash drive and should be safe to put it on a 512MB partition without swap (on idle it consumes just 26/256MB RAM). There are two ways to format the flash stick:- Using terminal:
- fdisk /dev/sdc
- mkfs.ext3 -L “ROOTFS” /dev/sdc1
- mkswap -L “SWAP” /dev/sdc5
- Here in fdisk you should make a bootable partition at least 700MB big (data will fit on 512MB, but give it some space, just in case) data type should be 83. mkfs.ext3 will format the first partition on our flash drive with ext3. The last command gives it a label. If you plan to change the partition label from ROOTFS to something else first check where it is used. I’m sure that one place is /boot/grub/menu.lst file, since I made it boot from device by label and not id (like /dev/sda1), since it can change with adding new devices. Also make a 256MB swap partition, just to be on the safe side
- Using the gparted (preinstalled in Ubuntu Jaunty 9.04; GNOME).
- You can run it by pressing alt+f2 and typing
gksu gparted
You would be prompted for your user password (you should be a sudoer – have sudo ability)
- Use the button in the right top to change to the desired device. Rightclick on the partition that exists on the flash and choose unmount. Now that the partition is unmounted you can delete it – choose delete from the menu or simple select the partition and press DELETE on your keyboard. Do that on all partitions on the flash drive, if there is more than one. THIS WILL CAUSE PERMANENT DATA LOSS ON THE DEVICE BEING FORMATED! BACKUP YOUR STUFF BEFORE FORMATING!
- Click on the empty space with right mouse button and choose New Partition on simply press Ctrl+N to open the new partition dialog. I decided to go with a 1GB partition this time.

On the remaining space I decided to make a 256MB swap partition, just in case
From the “New Partition” dialog choose “extended partition” instead of primary and leave it to take all the remaining space. Then in this extended partition create a new partition (logical) with type linux-swap. I’ve labeled it SWAP, but this shouldn’t be nesessary.
I’ve ended up with this:

This is about it, push APPLY to apply the changes. Everything should go fine, but sometimes it just gives up with an error after deleting the original partition. On the empty flash repeat the remaining steps and it should work fine.
Now rightclick on the new partition and choose Manage Flags and checkout the “boot” flag.
- You can run it by pressing alt+f2 and typing
- Now that we have out partition, it’s time to mount back the new ext3 partition and put in the required files.
- cd /media
- mkdir ROOTFS
- mount -t ext3 /dev/sdc1 /media/ROOTFS
*NOTE ALL COMMANDS SHOULD BE RUNNED AS ROOT*
If everything went ok and the newly formated partition mounted, you have green light to download the archived distribution:wget http://blog.datamatrix-bg.net/wp-content/uploads/2009/06/ROOTFS.tar.gz
Do a
md5sum ROOTFS.tar.gz
and compare the sum with c3d41fbf94b31f0d58f05ed502396f8f – this is the sum at my end. EDIT: The updated archive with removed apt cache files has a checksum of 933fa4bafe7e86d47758bed582d8d08c
If the sum matches – march on with the extracting the files:tar xzvf ROOTFS.tar.gz
You should see a lot of files.
- You should now have a complete linux on your flash drive, all that remains is the bootloader.
- go to a chrooted shell:chroot /media/ROOTFS /bin/bash
- Edit /boot/grub/device.map (mcedit /boot/grub/device.map) and put in it
(hd0) /dev/sdc
/dev/sdc is the flash drive on the development machine.
You should bind /dev/ with /media/ROOTFS/dev so that you can run grub-install:mount –bind /dev/ /media/ROOTFS/dev
Now execute from the chrooted shell (chroot /media/ROOTFS /bin/bash)
grub-install –root-directory=/ /dev/sdc
- While still in the chroot-ed shell you can change your root password:
passwd root
- Exit the chroot shell (exit);
Now unmount the partition using umount /dev/sdc1 and put the flash stick on your alix. It should run without problem. - If you have a monitor and a usb keyboard, you can logon with user “root” and password “datamatrix” if you haven’t changed it.
There is a ssh server installed on the platform and the eth0 interface is configured with a static address of 192.168.47.47/24
You can access it from there. Also there is the lm-sensors installed and the “sensors” command should tell you the core and chipset temperature. Mine runs at 49 degrese celsius.
If you have any notices, improvement notes or just plain comments, please leave them bellow. I would be happy to see them and answer any questions.
debian, embeded, hardware, linux, robotics, ubuntu 2.6.29.4, 3d3, alix, alix 3d3, amd, debian, geode, howto, lenny, pc engines5 responses to “Debian on alix 3d3”
-
Hi,
Were you able to get the Video Card working? I just bought an Alix 3D3 board and was hoping to set it up as a thin client terminal.
-
The video card was working out of the box with a monitor, I just plugged in a VGA monitor and it worked but I had to compile a custom kernel (I’ve wrote about it this or the previous article) to get rid of the hanging without monitor when initialising the kernel.
-
Hi,
thank you for publishing your work! The setup you described worked like a charm on my alix d3d.
The last open task is to get the network-card working. Maybe you have a hint for me. I get a “device does not exist” when trying to start eth0.
Thanks & Regards
-
Forget my last comment. I found the problem. I don’t know if it was a selfmade problem or a type in your /boot/grub/menu.lst.
Instead of
... root=/dev/sda1 label=rootfs ...
it was
... root=label=rootfs ...
-
I’ll check my flash drive to see what’s in there, maybe it’s my mistake. For now my ALIX is broken and I don’t have the money for a new one, so the project is on hold.
Leave a reply
- Using terminal:


