Dave, Per the attachment, I've done the fix and will send you the tarball separately MarvS On Sat, Apr 18, 2009 at 10:23 AM, Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx> wrote: > Dave, > > The ‘struct uart_info’ error has been encoiubtered i other code > packages. The fix is to make a change like > > struct tty_struct *tty =p->port.info->port.tty; > from an original like: > struct tty_struct *tty =p->port.info->tty; > > But I'm not under linux now and cannot check in detail. > Maybe this PM. But you can search out the lines like above and test yourself. > > MarvS > > On Fri, Apr 17, 2009 at 4:25 PM, Dave and Marleen Rentoul > <rentoul@xxxxxxxxxxx> wrote: >> Hi, can any one that has installed the drivers for a:- >> >> NAME="Communication controller: Agere Systems V.92 56K WinModem " >> CLASS=0780 >> PCIDEV=11c1:048c >> SUBSYS=11c1:044c >> IDENT=agrsm >> >> please tell me what I need to do to so that the "make" instruction >> compiles the code without error >> >> "/home/username/Desktop/agrsm/serial26.c:1007: error: ‘struct uart_info’ >> has no member named ‘tty’" >> >> Thanks >> >> Dave >> >> >> Quote from terminal window follows:- >> >> username@Elmo:~/Desktop/agrsm$ make >> make -C /lib/modules/2.6.27-7-generic/build >> SUBDIRS=/home/username/Desktop/agrsm modules >> make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic' >> CC [M] /home/username/Desktop/agrsm/serial26.o >> /home/username/Desktop/agrsm/serial26.c: In function ‘receive_chars’: >> /home/username/Desktop/agrsm/serial26.c:1007: error: ‘struct uart_info’ >> has no member named ‘tty’ >> /home/username/Desktop/agrsm/serial26.c: In function >> ‘serial8250_get_mctrl’: >> /home/username/Desktop/agrsm/serial26.c:1371: warning: unused variable >> ‘flags’ >> /home/username/Desktop/agrsm/serial26.c: In function >> ‘serial8250_config_port’: >> /home/username/Desktop/agrsm/serial26.c:2039: warning: unused variable >> ‘ret’ >> /home/username/Desktop/agrsm/serial26.c: At top level: >> /home/username/Desktop/agrsm/serial26.c:2131: warning: initialization >> from incompatible pointer type >> /home/username/Desktop/agrsm/serial26.c:2132: warning: initialization >> from incompatible pointer type >> make[2]: *** [/home/username/Desktop/agrsm/serial26.o] Error 1 >> make[1]: *** [_module_/home/username/Desktop/agrsm] Error 2 >> make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic' >> make: *** [modules] Error 2 >> >> >> >
marv@marvlap:/usr/src/modules$ cd agrsm-20090418 marv@marvlap:/usr/src/modules/agrsm-20090418$ make clean rm -fR agrsoftmodem.o serial26.o \ serial26.o \ agrsm_core.o \ agrmodem.{o,ko,mod.{c,o}} \ agrserial.{o,ko,mod.{c,o}} \ .*.cmd .tmp_versions marv@marvlap:/usr/src/modules/agrsm-20090418$ make modules make -C /lib/modules/2.6.27-7-generic/build SUBDIRS=/usr/src/modules/agrsm-20090418 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic' CC [M] /usr/src/modules/agrsm-20090418/agrsoftmodem.o objcopy --weaken-symbol=LXHardwareInfoCreate \ --weaken-symbol=LXHardwareInfoDestroy \ /usr/src/modules/agrsm-20090418/agrmodemlib.o /usr/src/modules/agrsm-20090418/agrsm_core.o CC [M] /usr/src/modules/agrsm-20090418/lib.o CC [M] /usr/src/modules/agrsm-20090418/serial26.o /usr/src/modules/agrsm-20090418/serial26.c: In function â??serial8250_get_mctrlâ??: /usr/src/modules/agrsm-20090418/serial26.c:1371: warning: unused variable â??flagsâ?? /usr/src/modules/agrsm-20090418/serial26.c: In function â??serial8250_config_portâ??: /usr/src/modules/agrsm-20090418/serial26.c:2039: warning: unused variable â??retâ?? /usr/src/modules/agrsm-20090418/serial26.c: At top level: /usr/src/modules/agrsm-20090418/serial26.c:2131: warning: initialization from incompatible pointer type /usr/src/modules/agrsm-20090418/serial26.c:2132: warning: initialization from incompatible pointer type /usr/src/modules/agrsm-20090418/serial26.c:1922: warning: â??serial8250_request_rsa_resourceâ?? defined but not used LD [M] /usr/src/modules/agrsm-20090418/agrmodem.o LD [M] /usr/src/modules/agrsm-20090418/agrserial.o Building modules, stage 2. MODPOST 2 modules WARNING: could not find /usr/src/modules/agrsm-20090418/.agrsm_core.o.cmd for /usr/src/modules/agrsm-20090418/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 /usr/src/modules/agrsm-20090418/agrmodem.mod.o LD [M] /usr/src/modules/agrsm-20090418/agrmodem.ko CC /usr/src/modules/agrsm-20090418/agrserial.mod.o LD [M] /usr/src/modules/agrsm-20090418/agrserial.ko make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic' marv@marvlap:/usr/src/modules/agrsm-20090418$ ls -lh *.ko -rw-r--r-- 1 marv marv 1.4M 2009-04-18 20:44 agrmodem.ko -rw-r--r-- 1 marv marv 25K 2009-04-18 20:44 agrserial.ko $ sudo make install make -C /lib/modules/2.6.27-7-generic/build M="/usr/src/modules/agrsm-20090418" modules_install make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic' INSTALL /usr/src/modules/agrsm-20090418/agrmodem.ko INSTALL /usr/src/modules/agrsm-20090418/agrserial.ko DEPMOD 2.6.27-7-generic make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic' if ! /sbin/modprobe -nq agrmodem.ko ; then /sbin/depmod -a; fi Watching kernel messages with: $ sudo tail -f /var/log/messages & $ sudo modprobe agrmodem Apr 18 20:48:13 marvlap kernel: [ 907.985418] agrmodem: module license 'Proprietary' taints kernel. Apr 18 20:48:13 marvlap kernel: [ 908.008652] agrsm: created 0 infos $ sudo modprobe agrserial Apr 18 20:48:22 marvlap kernel: [ 917.395727] ttyAGS3 at I/O 0x400 (irq = 3) is a AgereModem Apr 18 20:48:22 marvlap kernel: [ 917.398535] agrserial: Loading module Agere Modem Interface driver version 2.1.60.0.Linspire (2005-11-16) Setting a symbolic link $ sudo ln -s /dev/ttyAGS3 /dev/ttySAGR and checking $ ls -l /dev/ttyAGS3 /dev/ttySAGR crw-rw---- 1 root dialout 62, 67 2009-04-18 20:48 /dev/ttyAGS3 lrwxrwxrwx 1 root root 12 2009-04-18 20:52 /dev/ttySAGR -> /dev/ttyAGS3 so that /dev/ttySAGR will be found by wvdialconf: $ sudo wvdialconf wvtest Editing `wvtest'. Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 Segmentation fault === fails on my System for lack of the modem hardware, at least. Hopefully performance will be better on yours.