Re: Compiling support for AGRSM 0x11c11040 - Fedora 9 - kernel 2.6.26.5-45

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

 



Isamar,

The error indicates you have a mismatch between the kernel API and the API that
serial26.c is trying to use. Different releases of the driver have different
serial26.c files. Since your kernel is relatively old, you may have a better
luck with the older driver packages. Sometimes, there is no backward
compatibility in the newer driver packages.

 As a temporary fix, you can try to change the line 990 in serial26.c:
from
        struct tty_struct *tty = up->port.info->port.tty;
to
        struct tty_struct *tty = up->port.info->tty;

There is another site,
http://linmodems.technion.ac.il/packages/ltmodem/11c11040/

There is a package there that may be a better match for your kernel
agrsm-2.1.80-2mdv2009.0.src.rpm

Extract it with the following command:

rpm2cpio dkms-agrsm-2.1.80-8mdv2009.0.i586.rpm | lzma -d | cpio -ivd

-- 
WBR, Nikolay Zhuravlev

Thus spake Isamar Maia (isamar@xxxxxxxxx):

> Marvin,
> 
> Looks like they updated the site http://linux.zsolttech.com/linmodem/agrsm/
> and now there are only support files for kernel => 2.6.27
> 
> Should it work to 2.6.26 ?
> 
> I tried to compile anyway, but now I have:
> 
> make module
> make -C /lib/modules/2.6.26.5-45.fc9.i686/build/
> SUBDIRS=/producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0 modules
> make[1]: Entering directory `/usr/src/kernels/2.6.26.5-45.fc9.i686'
>   CC [M]  /producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0/serial26.o
> /producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0/serial26.c: In
> function 'receive_chars':
> /producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0/serial26.c:990:
> error: 'struct uart_info' has no member named 'port'
> make[2]: *** [/producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0/serial26.o]
> Error 1
> make[1]: *** [_module_/producao/packages/agrsm/agrsm-2.1.80-4mdv2009.0] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.26.5-45.fc9.i686'
> make: *** [module] Error 2
> 
> The structure "uart_info" was changed in 2.6.27 in include/linux/serial_core.h
> 
> https://www.linuxhq.com/kernel/v2.6/27-rc1/include/linux/serial_core.h
> 
> Maybe, somebody can tell me how to change the references in serial26.c
> to fit that in 2.6.26 solve
> the compilation problem.
> 
> Isamar
> 
> 
> 2009/6/10 Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>:
> > Isamar,
> >
> > For 2.6.26 kernels, you should be able to use one of the dkms-agrsm packages.
> > First install Fedora's dkms support. Then try from
> > http://linux.zsolttech.com/linmodem/agrsm/
> > install the dkms-agrsm-2.1.80-4mdv2009.0.i586.rpm
> > See the example at
> > http://linmodems.technion.ac.il/bigarch/archive-eighth/msg03863.html
> >
> > dkms automates compilation and installation of needed drivers upon
> > kernel upgrade, provided the linux-headers are also installed.
> >
> > MarvS
> >
> > 2009/6/10 Isamar Maia <isamar@xxxxxxxxx>:
> >> Hi Folks,
> >>
> >> Long time since my last post here. Thank you very much for all
> >> collaboration and great results
> >>  supporting several modems on Linux.
> >>
> >> I am trying to compile agrsm support for kernel 2.6.26.5-45.fc9.i686.
> >> Using Fedora 9. Alsa-driver-1.0.19
> >>
> >> I cannot use different kernel and distro versions since it's a
> >> customized OEM distro(respin) with several
> >> dependencies and customizations.
> >>
> >> I am not getting to add the "EXPORT_SYMBOL"  lines as per described in
> >> the item 2.2 of
> >> http://linmodems.technion.ac.il/packages/ltmodem/11c11040/HOWTO-Agere-11c11040-HDA.html
> >>
> >> When I add those lines and try to recompile the alsa kernel driver, I get:
> >>
> >>
> >> In file included from /usr/src/alsa/alsa-driver-1.0.19/pci/hda/hda_codec.c:2:
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:193:
> >> error: redefinition of '__kstrtab_snd_hda_codec_read'
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:34:
> >> error: previous definition of '__kstrtab_snd_hda_codec_read' was here
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:193:
> >> error: redefinition of '__ksymtab_snd_hda_codec_read'
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:34:
> >> error: previous definition of '__ksymtab_snd_hda_codec_read' was here
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:222:
> >> error: redefinition of '__kstrtab_snd_hda_codec_write'
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:35:
> >> error: previous definition of '__kstrtab_snd_hda_codec_write' was here
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:222:
> >> error: redefinition of '__ksymtab_snd_hda_codec_write'
> >> /usr/src/alsa/alsa-driver-1.0.19/pci/hda/../../alsa-kernel/pci/hda/hda_codec.c:35:
> >> error: previous definition of '__ksymtab_snd_hda_codec_write' was here
> >> make[4]: *** [/usr/src/alsa/alsa-driver-1.0.19/pci/hda/hda_codec.o] Error 1
> >> make[3]: *** [/usr/src/alsa/alsa-driver-1.0.19/pci/hda] Error 2
> >> make[2]: *** [/usr/src/alsa/alsa-driver-1.0.19/pci] Error 2
> >> make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.19] Error 2
> >> make[1]: Leaving directory `/usr/src/kernels/2.6.26.5-45.fc9.i686'
> >> make: *** [compile] Error 2
> >>
> >>
> >> Any tip?
> >>
> >>
> >> --
> >> Isamar Maia
> >> Brazil: 55-71-9146-8575
> >>            55-71-4062-8688
> >> 日本: +81-(0)3-4550-1212
> >> "In a world without walls. Who needs windows and gates?"
> >>
> >
> 
> 
> 
> -- 
> Isamar Maia
> Brazil: 55-71-9146-8575
>             55-71-4062-8688
> 日本: +81-(0)3-4550-1212
> "In a world without walls. Who needs windows and gates?"

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

  Powered by Linux