Voyage Linux: The Comforts of Debian. Embedded. - Page 2

 By Carla Schroder
Page 2 of 2   |  Back to Page 1
Print Article

Command-line commandos should use these commands to create the filesystem, using your own device and partition names:

# mkfs.ext2 /dev/sdd1
# tune2fs -c 0 /dev/sdc1

The tunefs command disables those annoying forced fscks.

Now download the tarball to a Linux PC. The current stable release is 0.4.1, even though it doesn't say so yet on the download page. Unpack it with this command:

$ tar --numeric-owner -jxf voyage-0.4.1.tar.bz2

Ignore the "tar: voyage-0.4.1/dev/console: Cannot mknod: Operation not permitted" errors. Your system should already have /dev/console and /dev/null, so tar doesn't need to create them.

Now you're ready to copy the files to your Compact Flash card. This bit is easy, the because Voyage Linux developers supply an excellent installation script. Change to your voyage-0.4.1 directory and run the installation script as root:

# ./usr/local/sbin/voyage.update

First select "1 - Create new Voyage Linux disk", then there are seven steps that you must follow in order:

What would you like to do?
1 - Specify Distribution Directory
2 - Select Target Profile
3 - Select Target Disk
4 - Select Target Bootstrap Loader
5 - Configure Target Console
6 - Copy Distribution to Target
7 - Exit

The Distribution Directory is voyage-0.4.1. Target Profile is whatever type of hardware you're going to run Voyage Linux on. Target Disk is your Compact Flash card, which in the example above is /dev/sdd. Then it asks for the partition number.

Then you need a local mountpoint, like /mnt/voyage, and this directory must already exist. Then choose your favorite bootloader (GRUB rules!), select Serial Terminal for the Target Console, and then choose the appropriate baud speed for the serial link. On Soekris boards this defaults to 19200 and WRAP boards are 38400. If you don't choose the correct speed your serial console will be full of gibberish. The installer should choose the correct default for you anyway, based on the profile you selected.

You'll get a chance to review all of your settings and make changes before the files transfer. Step 6 is copy the files, and 7 is exit. It will take 3-4 minutes to copy all the files.

You can verify that the files copied correctly by mounting the Compact Flash on your Linux PC. I this example I use the downloads/tmp directory in my home directory :

carla@xena:~# mount /dev/sdc1 downloads/tmp

Configuring Networking and Other Services

It's easy at this stage to enter your configurations while the Compact Flash card is still mounted on your Linux PC. Next week we'll configure networking, learn how to maintain and update Voyage Linux, and set up an Internet-connection sharing firewall.


This article was originally published on Sep 13, 2007
Get the Latest Scoop with Networking Update Newsletter