world leader in high performance signal processing
Trace: » config

coLinux Configuration

Command Line Options

The default configuration file is named blackfin.conf. It is passed to the coLinux program when first starting up and tells coLinux how to configure itself. That means things like memory, network settings, file system images, etc… It is pretty well commented, so we'll let them do the talking.

This is really just a flat file of command line options and is specified by using @blackfin.conf on the command line.

# This is a default config generated by the Blackfin coLinux installer.
# For more information, please see these sources:
#   example.conf
#   colinux-daemon.txt

# Please do not change unless you understand these settings

# These cofs lines control what paths will be available to CoLinux
# They take the form of: cofs#=<path>

# How much RAM will CoLinux reserve for itself

# Networking configuration (including port forwarding options)

# Serial configuration
ttys0=COM1,"baud=57600 parity=N data=8 stop=1 xon=off odsr=off octs=off idsr=off to=on rts=on dtr=on"


You can expose additional Windows paths via the cofs# options and additional file system images via the cobd# options. A utility called mkFile.exe is included in the coLinux install directory to assist in creation of large blank file system images.


The /etc/fstab file that is inside of the root file system image is used to mount file systems. It needs to stay in sync with the cobd# and cofs# options that are passed to coLinux itself.

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/cobd0      /               ext3    noatime,errors=remount-ro 0 1
/dev/cobd1      none            swap    sw              0       0
#/dev/hdc       /media/cdrom0   udf,iso9660 user,noauto 0       0
/dev/cofs0      /mnt/windows    cofs    defaults        0       0

See the fstab(5) man page on the exact format. By default, the entire Windows C:\ is available inside of coLinux via the /mnt/windows/ path.



You can expose your CDROM device like any other Windows path. Simply add another cofs#= line to the main coLinux file and then update your /etc/fstab file.

Expanding Disks

New Disk

Using the mkFile.exe utility under Windows is pretty straight forward.

# At a Windows command prompt
# example to create a 2G file
mkFile -m mysys.img 2000

Now you need to tell coLinux to mount this image as a cobd source, and then you can format and use it while in coLinux.

# this is the entry in the blackfin.conf file

In the coLinux virtual machine:

# first create an ext2 file system on the disk image
mke2fs -F /dev/cobd4

# turn this into an ext3 file system
tune2fs -i 0 -j /dev/cobd4

# then under coLinux
mkdir -p /mymnt
mount /dev/cobd4 /mymount


Please see the network document.


Please see the serial document.


Please see the accounts document.