Gudedcf.ko: Unterschied zwischen den Versionen

Aus Gude Systems GmbH
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „==Linux kernel driver module for the deprecated 'Expert mouseCLOCK USB'== Attention: "Expert mouseCLOCK USB" and gudedcf.ko is no longer supported by Gud…“)
 
 
Zeile 13: Zeile 13:
  
 
* download kernel patch:
 
* download kernel patch:
  wget http://www.gudeads.com/files/driver/gudedcf_v2.14_Kernel_2.6.x.tgz
+
  wget http://www.gude.info/temp/gudedcf_v2.14_Kernel_2.6.x.tgz
 
  tar -xzvpf gudedcf_v2.14_Kernel_2.6.x.tgz
 
  tar -xzvpf gudedcf_v2.14_Kernel_2.6.x.tgz
 
  cd gudedcf
 
  cd gudedcf

Aktuelle Version vom 20. April 2015, 09:11 Uhr

Linux kernel driver module for the deprecated 'Expert mouseCLOCK USB'

Attention:

"Expert mouseCLOCK USB" and gudedcf.ko is no longer supported by
Gude Analog- und Digitalsysteme GmbH. Please upgrade to
"Expert mouseCLOCK USB II" to gain futher linux support


compiling the gudedcf.ko kernel module

  • first make sure you have a 2.6.x Kernel installed in /usr/src/linux
  • download kernel patch:
wget http://www.gude.info/temp/gudedcf_v2.14_Kernel_2.6.x.tgz
tar -xzvpf gudedcf_v2.14_Kernel_2.6.x.tgz
cd gudedcf
  • proof your build environment:
make test
  • compile gude_dcf.c to build/gude_dcf.ko:
make
  • copy gude_dcf.ko into your /lib/modules structure:
make install
  • load the gudedcf.ko kernel module and check if the driver works find a device is connected:
make testmodule

If the driver loaded successfully, the LED at your DCF receiver should start to blink periodically. Now you should have a new serial tty named /dev/gudedcf0 which can be used as 50-Baud serial device, similar to the standard serial "Expert mouseCLOCK".

use tarball as kernel patch

if you want to compile the module within your own kernel source, you might want to add the driver to your kernel source tree:

  • make sure you have a 2.6.x Kernel insalled in /usr/src/linux
  • switch to subdirectory kernel_patch created by extracing the tarball archive:
cd gudedcf/kernel_patch/
  • patch your kernel sources
./install
  • go to /usr/src/linux anf reconfigure your kernel (e.g. with make menuconfig)
  • enable the following kernel options:
 Code maturity level options  --->
   [*] Prompt for development and/or incomplete code/drivers
 Device Drivers  --->
   USB support  --->
     <*> Support for USB
     <M>   EHCI HCD (USB 2.0) support
     <M>   OHCI HCD support
     <M>   UHCI HCD (most Intel and VIA) support
     --- USB Miscellaneous drivers
     <M> Expert mouseCLOCK USB (EXPERIMENTAL) (NEW)
  • recompile your kernel:
make && make modules_install
  • create gudedcf0 devnode:
mknod -m 0660 /dev/gudedcf0 c 181 64

or configure udevd:

KERNEL=="gudedcf*", NAME="%k", SYMLINK="refclock-%m", MODE="0640"
  • if your kernel is brand new, reconfigure your boot loader and boot your kernel
  • load the gude_dcf driver module:
modprobe gude_dcf