Re: [PATCH] Re: dkms-agrsm-2.1.80-2mdv2009.0.i586.rpm fails with kernel >= 2.6.29.X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Nikolay,

I applied the patch and it does indeed compile:

[olivares@localhost agrsm-20090502]$ make
make -C /lib/modules/2.6.29.3-60.fc10.i686.PAE/build
SUBDIRS=/home/olivares/Download/agrsm/agrsm-20090502 modules
make[1]: Entering directory `/usr/src/kernels/2.6.29.3-60.fc10.i686.PAE'
  CC [M]  /home/olivares/Download/agrsm/agrsm-20090502/agrsoftmodem.o
  CC [M]  /home/olivares/Download/agrsm/agrsm-20090502/lib.o
  CC [M]  /home/olivares/Download/agrsm/agrsm-20090502/serial26.o
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c: In function
‘serial8250_get_mctrl’:
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c:1371: warning:
unused variable ‘flags’
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c: In function
‘serial8250_config_port’:
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c:2039: warning:
unused variable ‘ret’
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c: At top level:
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c:2131: warning:
initialization from incompatible pointer type
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c:2132: warning:
initialization from incompatible pointer type
/home/olivares/Download/agrsm/agrsm-20090502/serial26.c:1922: warning:
‘serial8250_request_rsa_resource’ defined but not used
  LD [M]  /home/olivares/Download/agrsm/agrsm-20090502/agrmodem.o
  LD [M]  /home/olivares/Download/agrsm/agrsm-20090502/agrserial.o
  Building modules, stage 2.
  MODPOST 2 modules
WARNING: could not find
/home/olivares/Download/agrsm/agrsm-20090502/.agrsm_core.o.cmd for
/home/olivares/Download/agrsm/agrsm-20090502/agrsm_core.o
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  CC      /home/olivares/Download/agrsm/agrsm-20090502/agrmodem.mod.o
  LD [M]  /home/olivares/Download/agrsm/agrsm-20090502/agrmodem.ko
  CC      /home/olivares/Download/agrsm/agrsm-20090502/agrserial.mod.o
  LD [M]  /home/olivares/Download/agrsm/agrsm-20090502/agrserial.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.29.3-60.fc10.i686.PAE'

I did not run make install because this computer has a smartlink
modem, but this will go a long way for users with these chipsets.

Regards,

Antonio

2009/5/16 Nikolay Zhuravlev <xxor@xxxxxxx>:
> Marvin,
>
>  Ok, I see where the problem is. Here is the patch updated for 2.6.28 along with
> some further improvements.  This time it is against the
> agrsm-2.1.80-6mdv2009.0.tar.gz sources tarball you sent me on May 14.
>
>  I have installed 2.6.28.10 and built the driver successfully.  The wvdialconf
> runs fine, too.
>
>  I am not sure what 2.6.28.11 is, I couldn't find it on ftp.kernel.org. I hope
> it is close enough to 2.6.28.10.
>
> --
> WBR, Nikolay Zhuravlev
>
> Thus spake Marvin Stodolsky (marvin.stodolsky@xxxxxxxxx):
>
>> Nikolay,
>>
>> There is the problem below  under Ubuntu 2.6.28-11-generic , last
>> paragraph below.
>>
>>  However the compile is OK with your prior patch applied to
>> agrsm-2.1.80-6mdv2009.0, resulting in the
>> agrsm-2.1.80-6mdv2009.0.tar.gz, I sent you earlier.
>>
>> MarvS
>>
>> $ patch -p0 < 4mdv_2.6.29.1.patch
>> patching file agrsm-2.1.80-4mdv2009.0/agrsoftmodem.c
>> patching file agrsm-2.1.80-4mdv2009.0/HDA.c
>> patching file agrsm-2.1.80-4mdv2009.0/hda_codec.h
>> patching file agrsm-2.1.80-4mdv2009.0/Kbuild
>> patching file agrsm-2.1.80-4mdv2009.0/Makefile
>>
>> agrsm-2.1.80-4mdv2009.0$ make
>> make -C /lib/modules/2.6.28-11-generic/build
>> M=/usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0 modules
>> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
>>   CC [M]  /usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0/agrsoftmodem.o
>> /usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0/agrsoftmodem.c: In function
>> ‘x_request_region’:
>> /usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0/agrsoftmodem.c:276: error:
>> too many arguments to function ‘__request_region’
>> make[2]: *** [/usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0/agrsoftmodem.o] Error 1
>> make[1]: *** [_module_/usr/src/pkg/agrsm/agrsm-2.1.80-4mdv2009.0] Error 2
>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
>> make: *** [default] Error 2
>>
>>
>> On Sat, May 16, 2009 at 8:52 AM, Nikolay Zhuravlev <xxor@xxxxxxx> wrote:
>> > Bjorn/All,
>> >
>> >  I played with the source a bit more this morning. This is the patch against
>> >  the agrsm-2.1.80-4mdv2009.0.tgz sources available at the Zsolt's site.
>> >
>> >  It does two things:
>> >  (1) Adds support for the 2.6.27-rc9, 2.6.29.1 (and maybe 2.6.28) kernel
>> >  (2) Changes the Makefile to use the standard 2.6 kbuild procedure
>> >     used for the linux modules [described in Documentation/kbuild/modules.txt]
>> >
>> >  Before applying the patch and running make, please rename the file
>> > agrmodemlib.o to agrmodemlib.o_shipped . This will help the kbuild
>> >  to recognize this is a pre-build binary coming from elsewhere,
>> >  so that 'make clean' will not destroy it.
>> >
>> >  After the patch, build & install like this:
>> >
>> > $ sudo modprobe -r agrserial
>> > $ sudo modprobe -r agrmodem
>> > $ make
>> > $ sudo make modules_install
>> > $ sudo modprobe agrmodem
>> > $ sudo modprobe agrserial
>> > $ sudo ln -s /dev/ttyAGS3 /dev/ttySAGR
>> > $ sudo wvdialconf /etc/wvdial.conf
>> >
>> > wvdialconf was successful on my notebook that has the 11c11040 chip on HDA, but
>> > I cannot test beyond that -- I don't have an actual phone line here.
>> >
>> > --
>> > WBR, Nikolay Zhuravlev
>> >
>> > Thus spake Bjorn Wielens (Uniacke1@xxxxxxxx):
>> >
>> >> Hi,
>> >> Zsolt's sources are confirmed to work with 2.6.27 kernels.
>> >> However, we are still unsure about 2.6.28, and I will be able to try and
>> >> experiment with 2.6.29 as soon as I can locate the correct packages for
>> >> my distro.
>> >> You are likely correct about the problem, but there may be other issues
>> >> as well.
>> >> Bjorn.
>> >>
>> >>
>> >>
>> >>
>> >> Nikolay Zhuravlev wrote:
>> >> > Antonio,
>> >> >
>> >> >  Those sources are too old to work with the kernels >= 2.6.27
>> >> >
>> >> >  You may want to have a look at the sources located at
>> >> > http://linux.zsolttech.com/linmodem/agrsm/ and hack those with
>> >> >  the patch I attach here. I used it to get the driver working
>> >> >  with the 2.6.27-rc9 kernel.
>> >> >  Note that the patched sources may build and still not work with
>> >> > the recent kernels (28 and higher).
>> >> >
>> >> >  I guess the HDA.c stuff in that driver is out of sync with
>> >> >  the current ALSA developments in the 29 kernel anyway.
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux