Nikolay, With the change suggested by you, I could compile and load the agrmodem.ko and agrserial.ko. agrmodem: module license 'Proprietary' taints kernel. * Hello Agere Driver ** Loading module Agere Modem Controller driver version 2.1.80 (2008-10-31) eth0: auto-negotiating... ttyAGS3 at I/O 0x400 (irq = 18) is a AgereModem Loading module Agere Modem Interface driver version 2.1.80.0 (2008-10-31) The device file "ttyAGS3" was created but I tried to open the COM port using "minicom", I got the kernel message: ==> codecType = 0x32 BUG: unable to handle kernel NULL pointer dereference at 0000006c IP: [<f8f0c01c>] :agrmodem:azlGetResourceInformation+0x10/0x41 *pde = 6f56d067 Oops: 0000 [#1] SMP Modules linked in: agrserial agrmodem(P) bridge bnep rfcomm l2cap bluetooth sunrpc loop dm_mirror dm_log dm_multipath dm_mod ipv6 snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq_dummy ath5k mac80211 cfg80211 wlan_scan_sta snd_seq_oss snd_seq_midi_event ath_rate_sample snd_seq ath_pci snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm pcspkr snd_timer wlan snd uvcvideo sdhci joydev soundcore mmc_core serio_raw firewire_ohci ath_hal snd_page_alloc compat_ioctl32 firewire_core crc_itu_t sis190 videodev mii sg v4l1_compat sr_mod cdrom video output battery ac asus_laptop ata_generic sata_sis pata_sis pata_acpi libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded: scsi_wait_scan] Pid: 2704, comm: minicom Tainted: P (2.6.26.5-45.fc9.i686 #1) EIP: 0060:[<f8f0c01c>] EFLAGS: 00210246 CPU: 0 EIP is at azlGetResourceInformation+0x10/0x41 [agrmodem] EAX: 00000000 EBX: f8ae80c4 ECX: 00000000 EDX: 00000000 ESI: f8ae80c4 EDI: f8ae8028 EBP: f6e90d2c ESP: f6e90d2c DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 Process minicom (pid: 2704, ti=f6e90000 task=f6ed3e80 task.ti=f6e90000) Stack: f6e90d4c f8ef6fa9 f8af25e9 f8af25ea f6e90d4c c062ed3f f8f25499 f6e90d9b f6e90dbc f8ee0231 f8ae80c4 f8a6f048 00000008 00000001 f8ae839c 00000004 00000000 00000000 00200246 00000000 c072a000 00000000 c16dc5a0 c0728f80 Call Trace: [<f8ef6fa9>] ? CAzlIntelInit+0x2d/0x3c4 [agrmodem] [<c062ed3f>] ? printk+0xf/0x18 [<f8ee0231>] ? LXHardwareStart+0x11de/0x13fb [agrmodem] [<f8edb9e8>] ? linux_modem_open+0x45/0x10e [agrmodem] [<c0430b06>] ? internal_add_timer+0x88/0x8c [<c04313a1>] ? __mod_timer+0xc1/0xcc [<f8e35c58>] ? modemPortOpen+0x8/0x12 [agrmodem] [<f8b3ab67>] ? serial8250_startup+0x80/0x2ce [agrserial] [<c05640e1>] ? uart_startup+0x71/0x12c [<c0564d74>] ? uart_open+0x146/0x35e [<c0546f7e>] ? check_tty_count+0x14/0x84 [<c0564c2e>] ? uart_open+0x0/0x35e [<c0549c24>] ? tty_open+0x182/0x281 [<c0487c12>] ? chrdev_open+0x116/0x132 [<c0484178>] ? __dentry_open+0x10e/0x1fc [<c04842ed>] ? nameidata_to_filp+0x1f/0x33 [<c0487afc>] ? chrdev_open+0x0/0x132 [<c048f1ec>] ? do_filp_open+0x33e/0x6b0 [<c043c2f9>] ? hrtimer_start+0x127/0x141 [<c042c320>] ? do_setitimer+0x138/0x312 [<c0483ee8>] ? get_unused_fd_flags+0x64/0xc5 [<c0483f89>] ? do_sys_open+0x40/0xb6 [<c0484041>] ? sys_open+0x1e/0x26 [<c0404c32>] ? syscall_call+0x7/0xb [<c0630000>] ? down_read+0x27/0x29 ======================= Code: c1 11 75 0d a3 8c f6 f5 f8 8b 40 04 83 e0 0f eb 08 42 83 fa 10 75 dd 31 c0 5d c3 a1 8c 89 98 f8 31 d2 55 89 e5 8b 80 38 01 00 00 <8b> 48 6c 8b 44 91 28 85 c0 74 1d 66 81 78 16 c1 11 75 0f a3 8c EIP: [<f8f0c01c>] azlGetResourceInformation+0x10/0x41 [agrmodem] SS:ESP 0068:f6e90d2c ---[ end trace 00537fbc2eae09a2 ]--- " Probably it's related to a failed access to make reference to the ALSA objects ? Any idea? I am starting to be convinced to upgrade the kernel and all dependencies in the whole distro. Isamar 2009/6/12 Nikolay Zhuravlev <xxor@xxxxxxx>: > 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?" > -- 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?"