Carlos I have managed to compile the driver, but the dialers kppp and wvdial are not dialing :(, change line 420 port.info to port.state line 513 port.state line 565 delta_msr_wait to port.delta_msr_wait line 1226? comment it out where it has NULL Here are results: diff linmodem-2.6.c /root/Downloads/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c 31d30 < 418c417 < struct tty_struct *tty = p->port.state->tty; --- > struct tty_struct *tty = p->port.info->tty; 420c419 < struct tty_struct *tty = p->port.state->port.tty; --- > struct tty_struct *tty = p->port.info->port.tty; 513c512 < struct circ_buf *xmit = &p->port.state->xmit; --- > struct circ_buf *xmit = &p->port.info->xmit; 565c564 < wake_up_interruptible(&p->port.state->port.delta_msr_wait); --- > wake_up_interruptible(&p->port.info->delta_msr_wait); < int linmodem_register_port(struct uart_port *port) /* int */ --- > int linmodem_register_port(struct uart_port *port) 1227c1226 < // p->reg.state->port = NULL; /* NULL */ --- > p->reg.state->port = NULL; pctel_hw: module license 'GPL linked with proprietary libraries' taints kernel. pctel_hw(155): PCTel hardware driver version 0.9.7-9-rht-9 for PCT789 pctel(481): pctel v0.1 loaded root@slax:~/Downloads/tmp/pctel-0.9.7-9-rht-10# root@slax:~/Downloads/pctel-0.9.7-9-rht-10/src# lsmod Module Size Used by pctel 6954 0 pctel_hw 1035214 1 pctel linmodem 10461 1 pctel root@slax:~/Downloads/pctel-0.9.7-9-rht-10/src# make clean rm -f vuart.o i8xxhal.o binary.a built-in.o rm -f linmodem-2.6.o ptserial-2.6.o ptserial_hw-2.6.o ptserial_pci-2.6.o rm -f linmodem.o pctel.o pctel_hw.o rm -f linmodem.ko pctel.ko pctel_hw.ko rm -f linmodem.mod.c pctel.mod.c pctel_hw.mod.c rm -f linmodem.mod.o pctel.mod.o pctel_hw.mod.o rm -f .built-in.o.cmd rm -f .pctel.ko.cmd .pctel.mod.o.cmd .pctel.o.cmd rm -f .pctel_hw.ko.cmd .pctel_hw.mod.o.cmd .pctel_hw.o.cmd rm -f .linmodem.ko.cmd .linmodem.mod.o.cmd .linmodem.o.cmd rm -f .linmodem-2.6.o.cmd .ptserial-2.6.o.cmd .ptserial_hw-2.6.o.cmd rm -f .ptserial_pci-2.6.o.cmd rm -rf .tmp_versions rm -f Module.symvers root@slax:~/Downloads/pctel-0.9.7-9-rht-10/src# ./configure -auto checking for running kernel version...perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_COLLATE = "C", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 2.6.33 checking for ptserial...ptserial-2.6.c checking for gcc...4.4.3 checking for kernel gcc version...4.4.3 searching for kernel includes...found at /lib/modules/2.6.33.2/build/include checking for autoconf.h.../lib/modules/2.6.33.2/build/include/linux/autoconf.h yes checking for kernel version in utsrelease.h...UTS_RELEASE is 2.6.33.2 checking type of tty_struct.count...int checking for presence of udev...present (kernel version 2.6.13 or later) detecting your modem...** error autodetection failed, your modem is not in the database of known modems. Try to guess the hal and report success, if the modem worked. Please read the FAQ about autodetection failed. please enter your hal type choose one of: pct789, cm8738, i8xx, sis, via686a hal type: pct789 root@slax:~/Downloads/pctel-0.9.7-9-rht-10/src# make all CC vuart.o LD binary.a make -C /lib/modules/2.6.33.2/build M=/root/Downloads/pctel-0.9.7-9-rht-10/src make[1]: Entering directory `/usr/src/linux-2.6.33.2' WARNING: Symbol version dump /usr/src/linux-2.6.33.2/Module.symvers is missing; modules will have no dependencies and modversions. LD /root/Downloads/pctel-0.9.7-9-rht-10/src/built-in.o CC [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/linmodem-2.6.o CC [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial-2.6.o CC [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.o /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'pci_pctel_setup': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:231: warning: format '%x' expects type 'unsigned int', but argument 9 has type 'long unsigned int' /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'amr_pctel_setup': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:291: warning: format '%04x' expects type 'unsigned int', but argument 7 has type 'long unsigned int' /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'pciserial_init_one': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:606: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' CC [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_hw-2.6.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/linmodem.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel_hw.o Building modules, stage 2. MODPOST 3 modules CC /root/Downloads/pctel-0.9.7-9-rht-10/src/linmodem.mod.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/linmodem.ko CC /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel.mod.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel.ko CC /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel_hw.mod.o LD [M] /root/Downloads/pctel-0.9.7-9-rht-10/src/pctel_hw.ko make[1]: Leaving directory `/usr/src/linux-2.6.33.2' linmodem(1282): linmodem v0.1 loaded pctel_hw: module license 'GPL linked with proprietary libraries' taints kernel. Disabling lock debugging due to kernel taint pctel_hw(155): PCTel hardware driver version 0.9.7-9-rht-9 for PCT789 pctel(481): pctel v0.1 loaded pctel(490): pctel v0.1 unloaded pctel_hw(165): Unloading PCTel hardware driver version 0.9.7-9-rht-9 linmodem(1306): linmodem v0.1 unloaded linmodem(1282): linmodem v0.1 loaded pctel_hw(155): PCTel hardware driver version 0.9.7-9-rht-9 for PCT789 pctel(481): pctel v0.1 loaded pctel(490): pctel v0.1 unloaded pctel_hw(165): Unloading PCTel hardware driver version 0.9.7-9-rht-9 linmodem(1306): linmodem v0.1 unloaded linmodem(1282): linmodem v0.1 loaded pctel_hw(155): PCTel hardware driver version 0.9.7-9-rht-9 for PCT789 pctel(481): pctel v0.1 loaded but wvdial : root@slax:~/Downloads# ls /dev/modem -l lrwxrwxrwx 1 root root 16 Jun 5 15:50 /dev/modem -> /dev/ttyS_PCTEL0 root@slax:~/Downloads# wvdial --> WvDial: Internet dialer version 1.60 --> Cannot open /dev/modem: No such file or directory --> Cannot open /dev/modem: No such file or directory --> Cannot open /dev/modem: No such file or directory root@slax:~/Downloads# I believe it is now a matter of changing some things like the suggestions given here: /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'pci_pctel_setup': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:231: warning: format '%x' expects type 'unsigned int', but argument 9 has type 'long unsigned int' /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'amr_pctel_setup': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:291: warning: format '%04x' expects type 'unsigned int', but argument 7 has type 'long unsigned int' /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c: In function 'pciserial_init_one': /root/Downloads/pctel-0.9.7-9-rht-10/src/ptserial_pci-2.6.c:606: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' and it should have a chance at working? Hope this helps, Antonio On 6/5/10, carlos ramos <caramosc@xxxxxxxxx> wrote: > Hi guys, well i'm trying my best to understand what you are doing. I'm > going to put what i had done before i asked you guys for help to try > to solve the problem with what i read googling, i didn't mention it at > first because i thought it would not be important, but i can now see > that its similar to what i had done gooling. > > I read in a forum that for the "asm/match--default" problem to change > lines 426 and 442 in the ./configure file as follows: > > 426--- if [ ! -d ${kernel_inc}/asm/mach-default ] > 426--- if [ ! -d ${kernel_inc}/asm ] <---new > > 442--- extra_includes=-I${kernel_inc2}/asm/mach-default > 442--- extra_includes=-I${kernel_inc2}/asm <---new > > > then when i do: > > carlos@carlos-desktop:~/Desktop/pctel-0.9.7-9-rht-10$ sudo ./setup > [sudo] password for carlos: > checking for running kernel version...2.6.32 > checking for ptserial...ptserial-2.6.c > checking for gcc...4.4.3 > checking for kernel gcc version...4.4.3 > searching for kernel includes...found at > /lib/modules/2.6.32-21-generic/build/include > checking for > autoconf.h.../lib/modules/2.6.32-21-generic/build/include/linux/autoconf.h > checking for asm/mach-default...yes > checking for kernel version in utsrelease.h...UTS_RELEASE is > 2.6.32-21-generic > checking type of tty_struct.count...int > checking for presence of udev...present (kernel version 2.6.13 or later) > detecting your modem...found. Your modem is a pct789 type modem. > ** compilation error > please read the FAQ about reporting compilation problems > and report this problem. A transcript of the build process > has been saved in src/make.log. When reporting problems to > the development team, please send us this file. > carlos@carlos-desktop:~/Desktop/pctel-0.9.7-9-rht-10$ > > > and this is the make.log file: > > CC vuart.o > LD binary.a > make -C /lib/modules/2.6.32-21-generic/build > M=/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src > make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic' > LD /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/built-in.o > CC [M] /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.o > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘receive_chars’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:419: > error: ‘struct uart_port’ has no member named ‘info’ > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘transmit_chars’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:512: > error: ‘struct uart_port’ has no member named ‘info’ > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘check_modem_status’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:564: > error: ‘struct uart_port’ has no member named ‘info’ > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘linmodem_register_port’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:1226: > error: incompatible types when assigning to type ‘struct tty_port’ > from type ‘void *’ > make[2]: *** [/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.o] > Error 1 > make[1]: *** [_module_/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic' > make: *** [all] Error 2 > > > then for this error i read to change from "info" to "state" in the > indicated lines in the linmodem-2.6.c file, then when i do: > > carlos@carlos-desktop:~/Desktop/pctel-0.9.7-9-rht-10$ sudo ./setup > [sudo] password for carlos: > checking for running kernel version...2.6.32 > checking for ptserial...ptserial-2.6.c > checking for gcc...4.4.3 > checking for kernel gcc version...4.4.3 > searching for kernel includes...found at > /lib/modules/2.6.32-21-generic/build/include > checking for > autoconf.h.../lib/modules/2.6.32-21-generic/build/include/linux/autoconf.h > checking for asm/mach-default...yes > checking for kernel version in utsrelease.h...UTS_RELEASE is > 2.6.32-21-generic > checking type of tty_struct.count...int > checking for presence of udev...present (kernel version 2.6.13 or later) > detecting your modem...found. Your modem is a pct789 type modem. > ** compilation error > please read the FAQ about reporting compilation problems > and report this problem. A transcript of the build process > has been saved in src/make.log. When reporting problems to > the development team, please send us this file. > carlos@carlos-desktop:~/Desktop/pctel-0.9.7-9-rht-10$ > > > and this is the make.log file: > > CC vuart.o > LD binary.a > make -C /lib/modules/2.6.32-21-generic/build > M=/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src > make[1]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic' > LD /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/built-in.o > CC [M] /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.o > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘check_modem_status’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:564: > error: ‘struct uart_state’ has no member named ‘delta_msr_wait’ > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c: In > function ‘linmodem_register_port’: > /home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.c:1226: > error: incompatible types when assigning to type ‘struct tty_port’ > from type ‘void *’ > make[2]: *** [/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src/linmodem-2.6.o] > Error 1 > make[1]: *** [_module_/home/carlos/Desktop/pctel-0.9.7-9-rht-10/src] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic' > make: *** [all] Error 2 > > > as I said I really don't know about programing, i just changed the > lines in the files to see if the driver could install, with what I > read that could solve the problem. Maybe with output of the make.log > files can be of some help. > > > > > On 6/5/10, Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx> wrote: >> The residual compile problem is at least in part due to >> port.info becoming obsolete. Below is a fix that was done for the >> ltmodem code. In the pctel src/linmodems.2.6.c , I tried >> substitutions of port.state for port.info, but the compile still >> failed. So something a bit more sophisticated is needed. >> >> MarvS >> >> >> ---------- Forwarded message ---------- >> From: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> >> Date: Mon, Jan 4, 2010 at 5:03 PM >> Subject: [PATCH 8/9] v8250: uart_info is gone >> To: Discuss@xxxxxxxxxxxxx >> >> >> See upstream kernel.org commit ebd2c8f6d2ec4012c267ecb95e72a57b8355a705 >> where things are relocated into uart_state >> >> Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> >> --- >> v8250.c | 8 ++++---- >> 1 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/v8250.c b/v8250.c >> index b422ad1..18849a6 100644 >> --- a/v8250.c >> +++ b/v8250.c >> @@ -178,7 +178,7 @@ static void serial8250_enable_ms(struct uart_port >> *port) >> static void >> receive_chars(struct vuart_8250_port *up, unsigned int *status) >> { >> - struct tty_struct *tty = up->port.info->port.tty; >> + struct tty_struct *tty = up->port.state->port.tty; >> unsigned char ch, lsr = *status; >> int max_count = 256; >> char flag; >> @@ -240,7 +240,7 @@ receive_chars(struct vuart_8250_port *up, unsigned >> int *status) >> >> static void transmit_chars(struct vuart_8250_port *up) >> { >> - struct circ_buf *xmit = &up->port.info->xmit; >> + struct circ_buf *xmit = &up->port.state->xmit; >> int count; >> >> if (up->port.x_char) { >> @@ -281,7 +281,7 @@ static unsigned int check_modem_status(struct >> vuart_8250_port *up) >> unsigned int status = serial_in(up, UART_MSR); >> >> if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && >> - up->port.info != NULL) { >> + up->port.state != NULL) { >> if (status & UART_MSR_TERI) >> up->port.icount.rng++; >> if (status & UART_MSR_DDSR) >> @@ -291,7 +291,7 @@ static unsigned int check_modem_status(struct >> vuart_8250_port *up) >> if (status & UART_MSR_DCTS) >> uart_handle_cts_change(&up->port, status & >> UART_MSR_CTS); >> >> - wake_up_interruptible(&up->port.info->delta_msr_wait); >> + wake_up_interruptible(&up->port.state->delta_msr_wait); >> } >> >> return status; >> -- >> 1.6.5.2 >> >