]> rtime.felk.cvut.cz Git - mf6xx.git/commitdiff
Reworked README file for Comedi driver.
authorRostislav Lisovy <lisovy@gmail.com>
Sun, 17 Apr 2011 17:53:49 +0000 (19:53 +0200)
committerRostislav Lisovy <lisovy@gmail.com>
Sun, 17 Apr 2011 17:53:49 +0000 (19:53 +0200)
src/comedi/simple_driver/kernel/README.txt

index affd7193e10902681baf68a50857d9d0ed5e991f..b25d42dc681c831f729f450e3ac27c89e30d401b 100644 (file)
@@ -1,33 +1,35 @@
-rostislav@kormus:~/DIP/mf6xx_git/mf6xx/src/comedi/simple_driver/kernel$ sudo cp mf624.c /usr/src/linux-source-2.6.32/drivers/staging/comedi/drivers
-
-rostislav@kormus:~/DIP/mf6xx_git/mf6xx/src/comedi/simple_driver/kernel$ cd /usr/src/linux-source-2.6.32/
-
-root@kormus:/usr/src/linux-source-2.6.32# make drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
-
-root@kormus:/usr/src/linux-source-2.6.32# make M=drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
-
-root@kormus:/usr/src/linux-source-2.6.32# modprobe comedi comedi_num_legacy_minors=4
-
-root@kormus:/usr/src/linux-source-2.6.32# cd _build/686/drivers/staging/comedi/drivers
-
-root@kormus:/usr/src/linux-source-2.6.32/_build/686/drivers/staging/comedi/drivers# insmod ./mf624.ko
-
-root@kormus:/usr/src/linux-source-2.6.32/_build/686/drivers/staging/comedi/drivers# dmesg | tail -3
-[ 6184.326066] comedi: module is from the staging directory, the quality is unknown, you have been warned.
-[ 6184.331917] comedi: version 0.7.76 - http://www.comedi.org
-[ 6309.161789] mf624: module is from the staging directory, the quality is unknown, you have been warned.
-
-root@kormus:/usr/src/linux-source-2.6.32/_build/686/drivers/staging/comedi/drivers# comedi_config /dev/comedi0 mf624
-
-root@kormus:/usr/src/linux-source-2.6.32/_build/686/drivers/staging/comedi/drivers# dmesg | tail -11
-[ 6374.717904] comedi0: mf624: driver: Bourgeot - Poulain 2006-2007
-[ 6374.717909] This is an experimental version, you can report          some remarks or problems to fpoulain@gmail.com
-[ 6374.717929] comedi0: mf624: Found mf624 on bus 1, slot 11
-[ 6374.717950] pci 0000:01:0b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
-[ 6374.717983] comedi0: mf624: PCI Resource 0    addr d2dffc00 
-[ 6374.717987] comedi0: mf624: PCI Resource 1    addr d2dff800 
-[ 6374.717989] comedi0: mf624: PCI Resource 2    addr d2dff400 
-[ 6374.717993] comedi0: mf624: IO_BADR0    addr e081cc00 
-[ 6374.717996] comedi0: mf624: IO_BADR1(2) addr e0846800 
-[ 6374.717999] comedi0: mf624: IO_BADR2(4) addr e084e400 
-[ 6374.718002] comedi0: mf624: Driver attached
+How to compile MF624 Comedi driver
+==================================
+* Copy driver source into kernel tree
+  # cp mf624.c /usr/src/linux-source-2.6.32/drivers/staging/comedi/drivers
+
+* Compile it
+  # cd /usr/src/linux-source-2.6.32/
+  # make drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
+  # make M=drivers/staging/comedi/ O=/usr/src/linux-source-2.6.32/_build/686
+
+* Load Comedi
+  # modprobe comedi comedi_num_legacy_minors=4
+
+* Load MF624 Driver
+  # cd _build/686/drivers/staging/comedi/drivers
+  # insmod ./mf624.ko
+  # dmesg | tail -3
+   [ 6184.326066] comedi: module is from the staging directory, the quality is unknown, you have been warned.
+   [ 6184.331917] comedi: version 0.7.76 - http://www.comedi.org
+   [ 6309.161789] mf624: module is from the staging directory, the quality is unknown, you have been warned.
+
+* Configure loaded driver (!)
+  # comedi_config /dev/comedi0 mf624
+  # dmesg | tail -11
+   [ 6374.717904] comedi0: mf624: driver: Bourgeot - Poulain 2006-2007
+   [ 6374.717909] This is an experimental version, you can report          some remarks or problems to fpoulain@gmail.com
+   [ 6374.717929] comedi0: mf624: Found mf624 on bus 1, slot 11
+   [ 6374.717950] pci 0000:01:0b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
+   [ 6374.717983] comedi0: mf624: PCI Resource 0    addr d2dffc00 
+   [ 6374.717987] comedi0: mf624: PCI Resource 1    addr d2dff800 
+   [ 6374.717989] comedi0: mf624: PCI Resource 2    addr d2dff400 
+   [ 6374.717993] comedi0: mf624: IO_BADR0    addr e081cc00 
+   [ 6374.717996] comedi0: mf624: IO_BADR1(2) addr e0846800 
+   [ 6374.717999] comedi0: mf624: IO_BADR2(4) addr e084e400 
+   [ 6374.718002] comedi0: mf624: Driver attached