K8055 refresher on Linux

Hi,

I got a k8055 running on Ubuntu 12 using bash scripting (as in calling k8055 with params eg k8055 -d:0) about 5 years ago. It all worked great.

My machine died, Im now moving k8055 to a newer Ubuntu 14 on a different box.

It seems a lot has happened since I last looked. Can anyone point me in the right direction to get my old bash scripts working with my (old!) k8055 board please?

I think I should be using k8055-driver-1.0. But compiling gives me errors like:

[code]2: error: unknown field ‘ioctl’ specified in initializer
.ioctl = k8055_ioctl,

2: error: implicit declaration of function ‘init_MUTEX’ [-Werror=implicit-function-declaration]
init_MUTEX(&k8055->limit_sem);
^
[/code]

and fails. This makes me think I can no longer use this to talk to the board (assuming that’s what I used originally).

I see a k8055 libusb version. This builds just fine. But the bash does not find k8055 (ie k8055 -d"0 ==> command not found). This makes me think it works differently now, and perhaps all my scripts need changing (hopefully not!).

As you can see Im as bit behind the 8 ball as to how I should now be talking to my good old k8055 using my original scripts. All Im after is the simplest way to reuse my old scripts with the same Velleman k8055 board, but on Ubuntu 14 with updated kernel and so on.

Can someone please enlighten me?

many thanks.

OK, I think my previous assumptions were right and k8055-driver-1.0 with libusb is the right way to talk to the k8055 board.

Does anyone know why I get all these errors and cant compile k8055 please?

Entering make gives:

make -C /lib/modules/3.13.0-107-generic/build SUBDIRS=/home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0 modules make[1]: Entering directory `/usr/src/linux-headers-3.13.0-107-generic' CC [M] /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.o /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1080:2: error: unknown field ‘ioctl’ specified in initializer .ioctl = k8055_ioctl, ^ /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1080:2: warning: initialization from incompatible pointer type [enabled by default] /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1080:2: warning: (near initialization for ‘k8055_fops.flush’) [enabled by default] /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c: In function ‘k8055_probe’: /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1109:2: error: implicit declaration of function ‘init_MUTEX’ [-Werror=implicit-function-declaration] init_MUTEX(&k8055->limit_sem); ^ /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1221:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=] dbg_info(&k8055->intf->dev, ^ /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1221:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat=] /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c: In function ‘k8055_init’: /home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.c:1289:3: error: implicit declaration of function ‘err’ [-Werror=implicit-function-declaration] err("usb_register failed for the "__FILE__" driver.\n"); ^ cc1: some warnings being treated as errors make[2]: *** [/home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0/k8055.o] Error 1 make[1]: *** [_module_/home/colic/Projects/Server-Build/compile/velleman-k8055/k8055-driver-1.0] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-107-generic' make: *** [default] Error 2