1 How to compile MF614 & MF624 Comedi driver
2 ==========================================
3 * Copy driver source into kernel tree
4 # cp mf624.c /usr/src/linux-source-2.6.32/drivers/staging/comedi/drivers
6 * Tell Comedi to compile it
7 # cd /usr/src/linux-source-2.6.32/
8 # echo "obj-\$(CONFIG_COMEDI_PCI_DRIVERS) += mf624.o" >> drivers/staging/comedi/drivers/Makefile
11 # make drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
12 # make M=drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
14 How to load legacy (!) drivers
15 ==============================
17 # modprobe comedi comedi_num_legacy_minors=4
20 # cd _build/686/drivers/staging/comedi/drivers
23 [ 6184.326066] comedi: module is from the staging directory, the quality is unknown, you have been warned.
24 [ 6184.331917] comedi: version 0.7.76 - http://www.comedi.org
25 [ 6309.161789] mf624: module is from the staging directory, the quality is unknown, you have been warned.
27 * Configure loaded driver (!)
28 # comedi_config /dev/comedi0 mf624
30 [ 6374.717904] comedi0: mf624: driver: Bourgeot - Poulain 2006-2007
31 [ 6374.717909] This is an experimental version, you can report some remarks or problems to fpoulain@gmail.com
32 [ 6374.717929] comedi0: mf624: Found mf624 on bus 1, slot 11
33 [ 6374.717950] pci 0000:01:0b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
34 [ 6374.717983] comedi0: mf624: PCI Resource 0 addr d2dffc00
35 [ 6374.717987] comedi0: mf624: PCI Resource 1 addr d2dff800
36 [ 6374.717989] comedi0: mf624: PCI Resource 2 addr d2dff400
37 [ 6374.717993] comedi0: mf624: IO_BADR0 addr e081cc00
38 [ 6374.717996] comedi0: mf624: IO_BADR1(2) addr e0846800
39 [ 6374.717999] comedi0: mf624: IO_BADR2(4) addr e084e400
40 [ 6374.718002] comedi0: mf624: Driver attached
42 How to load modern drivers
43 ==========================
48 # cd _build/686/drivers/staging/comedi/drivers
51 [10543.431017] mf614 0000:01:0a.0: PCI INT A disabled
52 [10566.126096] comedi: module is from the staging directory, the quality is unknown, you have been warned.
53 [10566.132780] comedi: version 0.7.76 - http://www.comedi.org
54 [10585.089172] mf614: module is from the staging directory, the quality is unknown, you have been warned.
55 [10585.091866] comedi0: mf614: Found mf614 on bus 1, slot 10
56 [10585.091903] mf614 0000:01:0a.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21
57 [10585.091915] comedi0: mf614: Driver attached
59 * No configuration is needed. /dev/comedi0 is ready to use