CFW002 PC104 linux driver

From Wiki for iCub and Friends
Revision as of 13:33, 24 November 2014 by Matteo.brunettini@iit.it (talk | contribs) (Created page with "== Files required to use the driver == Apart from the driver binary, some other files are required to load and use it === firmware === ''/lib/firmware/cfw002_fw.bin'' === API ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Files required to use the driver

Apart from the driver binary, some other files are required to load and use it

firmware

/lib/firmware/cfw002_fw.bin

API

/lib/modules/${KERNEL_NAME}/iCubDrivers/cfw002/LinuxDriver/API/cfw002_api.h /lib/modules/${KERNEL_NAME}/iCubDrivers/cfw002/LinuxDriver/API/libcfw002.so /usr/lib/libcfw002.so (a symlink to the above file)

Tests

/lib/modules/${KERNEL_NAME}/iCubDrivers/cfw002/LinuxDriver/tests/test_audio

Startup scripts

/etc/rciCub.d/S20_cfw2

#!/bin/bash -e
sudo mknod /dev/cfw002 c 280 0
sudo chmod 777 /dev/cfw002
sudo modprobe  firmware_class
sudo insmod /lib/modules/$(uname -r)/iCubDrivers/cfw002/LinuxDriver/cfw002.ko
exit 0

/etc/rciCub.d/S60_cfw2-sound

#!/bin/bash -e
# Set iCub speakers volume - to use only if iCub has cfw002
/lib/modules/$(uname -r)/iCubDrivers/cfw002/LinuxDriver/tests/test_audio 6
exit 0