Homepage Wiki Forum Buy

Octopus extension card

From GNUBLIN

severity (level) requirement Gnublin family
Gnublin logo advanced.png solder equipment, solder knowledge, USB, using C-libarys All

Contents


This article describes how to use an Octopus-Board on GNUBLIN.

Hutshiene.jpg

Octopus with standard Rootfs

When you use the standard rootfs Octopus is already implemented. You just go to the directory "/home/root/octopus/led" where you can find an example program to blink an LED on the Octopus board.

Octous with Debian rootfs

If you are running a Debian system you have to install the library by your own:

The best way is to chrootfs on a Linux machine to the GNUBLIN rootfs (look here).

After that the actual repository has to be unchecked by the subversion to get allays the actual one. (before that you should change in the root directory.) Now use this command:

sudo apt-get install build-essential libtool automake libusb-dev

Now close chroot wit exit and unmount the mounted directories.

For the next steps you should have some time (especially on boars with low memory).

Switch to the directory /root/octopus_at90/liboctopus on GNUBLIN and type the next commands:

libtoolize --force
automake --add-missing
./configure
make
sudo make install

Note: In front of the parameter force and add-mission there have to be two dashes.

Attention: It's possible that there have ben changes in the version of automake. You can solve this problem with the command autoreconf.

In the higher directory (../) should be generated the directory libs. After that lookinf for following files and copy them in this directory:

liboctopus.a
liboctopus.so.0.10.0
libusb-0.1.so.4
libusb.a

There are e. g. this directories:

/root/examples/misc/octopus/led

There is the source code of

       led.c

located and

/root/examples/misc/octopus/libs

where the above mentioned files are located.

The makefile could look like that :

CC =gcc

all:
	$(CC) -Wall -I.. -g -c led.c 
	$(CC) -Wall -g -o led led.o ../libs/libusb.a ../libs/liboctopus.a

clean:
	rm -f *.o led *~

Have a lot of fun!

In other languages