- From: Tim Holt <holtt_at_nacse.org>
- Date: Wed, 16 Jul 2003 13:20:54 -0700
Answering my own question...
Two things you have to do differently to build on RH9. First is at the
kernel stage, and second is a patch you have to make to comedi_fops.c
KERNEL STUFF
If you don't do this you'll get a huge number of errors during the
"make" step for comedi. The first error will be something like this...
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: warning:
parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: field
`loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: invalid suffix
on integer constant
To fix, you need to change your INSTALL steps for the kernel stage to
include "make mrproper" as below...
1) Get a copy of the kernel source that matches the kernel you are
running. Unpack it
and copy your kernel config file to '.config' in the top directory
of your kernel source.
2) Run 'make mrproper' in your kernel source directory.
3) Run 'make oldconfig' in your kernel source directory.
4) You might need to edit the file 'Makefile' in the kernel source.
At the top of the Makefile, the variable EXTRAVERSION is defined.
If necessary, change it to match your kernel (for example, if the
command
'uname -r' produces "2.4.16-386" then your EXTRAVERSION should be
set as 'EXTRAVERSION=-386'.
5) Run 'make dep' in the kernel source directory and you are done.
CODE PATCH STUFF
Next you need to patch one line of code to fix a call to
remap_page_range as follows...
Edit comedi_fops.c and modify the line that reads...
if(remap_page_range(start, __pa(async->buf_page_list[i]),
to look like...
if(remap_page_range(vma, start, __pa(async->buf_page_list[i]),
It will all then build to completion.
The reference thread I found this info in is at
http://www.redhat.com/archives/redhat-install-list/2001-July/msg00035.html
Reference thread for the remap_page_range error is
http://www.spinics.net/lists/vfl/msg05389.html
Received on 2003-07-16Z19:20:54