www.pudn.com > canbus4linux.rar > INSTALL
Basic instructions: - you need GCC 3.2.x, with older versions of gcc the source may compile or may not compile - 'cd' into the directory, containing the package - make - make install "make install" will do following: - copy driver files (*.o) into /lib/modules//misc - copy canbus4linux.h into /usr/src/linux/include - call "depmod -a" - create /dev/can? entries - insert following lines into /etc/modules.conf: only ELEKTOR CAN Card -------------------------------------------------- alias char-major-91 elektor_canpar or only CAN200 Card -------------------------------------------------- alias char-major-91 can200par or both CAN Cards (kernel < 2.4.0) -------------------------------------------------- alias char-major-91 elektor_canpar post-install elektor_canpar /sbin/modprobe "-k" can200par or both CAN Cards (kernel >= 2.4.0, this should also work with 2.2.x) -------------------------------------------------- alias char-major-91 canbus probeall canbus elektor_canpar can200par -------------------------------------------------- If you have a 16 MHz crystal on your CAN200 board (as I), you must set the frequency option also: -------------------------------------------------- option can200par frequency=16000000 -------------------------------------------------- - Also set the IRQ for the parport driver for example (IRQ 7 for LPT1): -------------------------------------------------- options parport_pc io=0x378 irq=7,none -------------------------------------------------- - Sometimes (it depends on the kernel version) the above settings doesn't work. Then try out: -------------------------------------------------- options parport_pc io=0x378 irq=auto -------------------------------------------------- - after changing "modules.conf" do a "depmod -a"