Re: comedi and redhat 9.0? (HOW TO DO IT)

OK I just found another patch you need to apply to the code for RedHat 9

You need to change the call to "pte_offset" in drivers.c to be 
"pte_offset_kernel"

SO in summary...
   1) Run 'make mrproper' before you do 'make oldconfig' for kernel
   2) Patch comedi_fops.c and add "vma" as a new first argument to the 
remap_page_range() call.  It
       changes from...
           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]),
   3) Patch drivers.c and change "pte_offset" to "pte_offset_kernel"

Tim Holt wrote:

> Could be - but it works so I'm not asking many questions right now :^)
>
> Seriously though I don't know a lot about building kernels & drivers 
> on Linux, but I've found it now builds quite well if I do the 'make 
> mrproper' step.
>
> William T Wilson wrote:
>
>> On Wed, 16 Jul 2003, Tim Holt wrote:
>>
>>  
>>
>>> 2) Run 'make mrproper' in your kernel source directory.
>>>
>>> 3) Run 'make oldconfig' in your kernel source directory.
>>>   
>>
>>
>> Doesn't mrproper blow away the .config file?  I think you will have to
>> copy the .config file from /boot after running mrproper, but before
>> oldconfig.
>>
>>
>> _______________________________________________
>> comedi mailing list
>> comedi_at_comedi.org
>> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>>  
>>
>
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2003-07-16Z19:49:24