?? redhat-notes
字號:
From: Dan Christian <dac@ptolemy.arc.nasa.gov>Reply-To: dac@ptolemy.arc.nasa.govOrganization: NASA Ames Research CenterTo: comedi@stm.lbl.govSubject: Notes on building under RedHat 7.1Date: Wed, 23 May 2001 10:25:37 -0700I just got comedi building under a stock Redhat 7.1 kernel. Here are my notes on how to make it work. There are really just two issues to fix: getting the right .config file, and working around RedHat's custom version.h file.You have to have kernel-headers and kernel-source installed and then you have to get the right config file in place. In my case, I'm building for a K6-2 (i586 compatible).# as rootcd /usr/srcln -s linux-2.4.2 linux # this may already have been donecd linux# now copy the right config file to the standard placecp -p configs/kernel-2.4.2-i586.config .config# as any usercd comedimake config# you will get a message about the kernel version. Ignore it (for now)# This is due to RedHat's multi-kernel version.h file.emacs .uts_version# it will have multiple values for UTS_VERSION. # Edit to just have your kernel (e.g. 2.4.2-2)make cleanmake depmake# as rootmake installEverything seems to work fine.-Dan_______________________________________________comedi mailing listcomedi@stm.lbl.govhttp://stm.lbl.gov/cgi-bin/mailman/listinfo/comediFrom: Kevin Thayer <kthayer@sytronics.com>Subject: RE: error when make comediDate: Thu, 26 Jul 2001 15:01:20 -0400Hi, I am developing applications using Labview 6.0 on Linux 7.0(2.2.16-22). Here are the detailed instructions on how Isuccessfully installed the comedi drivers for an NI-6023E Daqboard. I was receiving the same errors as mentioned in the previouse-mail.Linux E-series Installation Document for Red Hat Linux 7.0(2.2.16-22) (comedi drivers)1.) The first thing you will need to do is create a .config filefor the comedi installation in /usr/src/linux (note: in Red Hat7.0, usr/src/linux is a symbolic link to usr/src/linux- 2.2.16).First install the kernel source header files from the Red Hatinstallation CD if they are not already in place. Make sure thatthere is a symbolic link to the source headers from the kernelsource directory (usr/src/linux should be symbolically linked tousr/src/linux2.2.16). Backup the old ./config file first.2.) Navigate to the /usr/src/linux directory and enter the commandmake menuconfig. When the menu comes up, click on the exit button(to accept all of the default settings) and opt to save the newconfiguration.3.) Copy the comedi-0.7.59.tgz file to the /usr/local directoryand unzip it (tar xzvf comedi-0.7.59.tgz).4.) Navigate inside the newly created/usr/local/comedi-0.7.59/include/linux and make the followingchanges to the file fs.h with the editor of your choice, so thatit resembles the following text (basically, four lines commentedout from the original version):/** linux / fs.h compatability header*/#ifndef __COMPAT_LINUX_FS_H_#define __COMPAT_LINUX_FS_H_#include <linux/version.h>/* #if LINUX_VERSION_CODE < 0x020400 *//* #define KILL_FASYSNC(a,b,c) kill_fasync((a),(c)) *//* #else */#define KILL_FASYNC(a,b,c) kill_fasync(&(a),(b),(c))/* #endif */#include_next <linux/fs.h>#endif5.) Edit the file /usr/src/linux/include/linux/version.h.Ensure that the value for UTS_RELEASE matches the current kernel(type uname -r from the console).6.) Navigate back to the /usr/local/comedi-0.7.59 directory andenter make config.7.) Press enter to accept the default linux source tree.8.) Enter 'y' for the first two features, Trig compatability andVerbose debugging.9.) Enter 'm' for the kernel comedilib feature.10.) Enter 'n' for all of the remaining features except for thefollowing:National Instruments Boards: 'y'PCI-MIO E Series: 'm'Generic 8255 support: 'm'11.) After configuring the features, edit the file .uts_version(pico or emacs) and ensure that the correct kernel version islisted. If not, change it.12.) Run the following commands consecutively:make cleanmake depmakemake installmake dev the last command installs the following devices: /dev/comedi0 /dev/comedi1 /dev/comedi2 /dev/comedi313.) Next, install the comedi Library. Copy the filecomedilib-0.7.16.tgz to the /usr/local directory and unzip usingthe tar command.14.) Navigate to the /usr/local/comedilib-0.7.16 directory.15.) Run the following commands consecutively:makemake install16.) To install the driver into the kernel, enter the command:/sbin/modprobe ni_pcimio17.) Next, we must associate the device file with the driver:/usr/sbin/comedi_config /dev/comedi0 ni_pcimio_______________________________________________comedi mailing listcomedi@stm.lbl.govhttp://stm.lbl.gov/cgi-bin/mailman/listinfo/comedi
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -