Re: Agere USB modem (047e:2892) - Driver Load but not working

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

 



Nick Zhuravlev,

Here is the result:-


On Fri, 15 Jan 2010 00:48:20 +0300
Nikolay Zhuravlev <xxor@xxxxxxx> wrote:

> Jack,
> 
>  For agrsm06pci-2.1.80~20100106, try changing
> MODULE_LICENSE("Proprietary") to MODULE_LICENSE("GPL") in the
> agrsoftmodem.c file and compile again.
> 

After change the agrsoftmodem.c for "GPL" and replace the library with agrsm-11c11040-2.1.80~20091225.tar.bz2.
The result is the same as agrsm-11c11040-2.1.80~20091225.tar.bz2

> For agrsm-11c11040-2.1.80~20091225.tar.bz2, please send the
> patch of the changes you tried to make to remove/deactivate the HDA stuff.

Patch for deactivate the HDA stuff :-
--- agrsoftmodem.c.orig	2009-12-11 10:00:54.000000000 +0800
+++ agrsoftmodem.c	2010-01-15 00:06:27.000000000 +0800
@@ -70,39 +70,39 @@
   { 0x11C1, 0x0620, 0x0000, 0x0000 },
   { 0x1039, 0x7013, 0x0000, 0x0000 },
   { 0x1106, 0x3068, 0x0000, 0x0000 },
-  { 0x8086, 0x2668, 0x0000, 0x0000 }, //ich6 hda
-  { 0x8086, 0x27D8, 0x0000, 0x0000 }, //ich7 hda
-  { 0x8086, 0x284B, 0x0000, 0x0000 }, //ich8 hda
-  { 0x8086, 0x269a, 0x0000, 0x0000 },  /* ESB2 */
-  { 0x8086, 0x293e, 0x0000, 0x0000 }, /* ICH9 */
-  { 0x8086, 0x293f, 0x0000, 0x0000 }, /* ICH9 */
-  { 0x1002, 0x437b, 0x0000, 0x0000 },  /* ATI SB450 */
-  { 0x1002, 0x4383, 0x0000, 0x0000 }, /* ATI SB600 */
-  { 0x1002, 0x793b, 0x0000, 0x0000 }, /* ATI RS600 HDMI */
-  { 0x1002, 0x7919, 0x0000, 0x0000 },  /* ATI RS690 HDMI */
-  { 0x1002, 0x960c, 0x0000, 0x0000 }, /* ATI RS780 HDMI */
-  { 0x1002, 0xaa00, 0x0000, 0x0000 }, /* ATI R600 HDMI */
-  { 0x1106, 0x3288, 0x0000, 0x0000 },  /* VIA VT8251/VT8237A */
-  { 0x1039, 0x7502, 0x0000, 0x0000 },  /* SIS966 */
-  { 0x10b9, 0x5461, 0x0000, 0x0000 }, /* ULI M5461 */
-  { 0x10de, 0x026c, 0x0000, 0x0000 },  /* NVIDIA MCP51 */
-  { 0x10de, 0x0371, 0x0000, 0x0000 },  /* NVIDIA MCP55 */
-  { 0x10de, 0x03e4, 0x0000, 0x0000 },  /* NVIDIA MCP61 */
-  { 0x10de, 0x03f0, 0x0000, 0x0000 }, /* NVIDIA MCP61 */
-  { 0x10de, 0x044a, 0x0000, 0x0000 }, /* NVIDIA MCP65 */
-  { 0x10de, 0x044b, 0x0000, 0x0000 }, /* NVIDIA MCP65 */
-  { 0x10de, 0x055c, 0x0000, 0x0000 },  /* NVIDIA MCP67 */
-  { 0x10de, 0x055d, 0x0000, 0x0000 },  /* NVIDIA MCP67 */
-  { 0x8086, 0x2416, 0x0000, 0x0000 },
-  { 0x8086, 0x2426, 0x0000, 0x0000 },
-  { 0x8086, 0x2446, 0x0000, 0x0000 },
-  { 0x8086, 0x7196, 0x0000, 0x0000 },
-  { 0x8086, 0x2486, 0x0000, 0x0000 },
-  { 0x8086, 0x24C6, 0x0000, 0x0000 },
-  { 0x8086, 0x24D6, 0x0000, 0x0000 },
-  { 0x11C1, 0x048C, 0x0000, 0x0000 },
-  { 0x11C1, 0x048F, 0x0000, 0x0000 },
-  { 0x8086, 0x266D, 0x0000, 0x0000 },
+//  { 0x8086, 0x2668, 0x0000, 0x0000 }, //ich6 hda
+//  { 0x8086, 0x27D8, 0x0000, 0x0000 }, //ich7 hda
+//  { 0x8086, 0x284B, 0x0000, 0x0000 }, //ich8 hda
+//  { 0x8086, 0x269a, 0x0000, 0x0000 },  /* ESB2 */
+//  { 0x8086, 0x293e, 0x0000, 0x0000 }, /* ICH9 */
+//  { 0x8086, 0x293f, 0x0000, 0x0000 }, /* ICH9 */
+//  { 0x1002, 0x437b, 0x0000, 0x0000 },  /* ATI SB450 */
+//  { 0x1002, 0x4383, 0x0000, 0x0000 }, /* ATI SB600 */
+//  { 0x1002, 0x793b, 0x0000, 0x0000 }, /* ATI RS600 HDMI */
+//  { 0x1002, 0x7919, 0x0000, 0x0000 },  /* ATI RS690 HDMI */
+//  { 0x1002, 0x960c, 0x0000, 0x0000 }, /* ATI RS780 HDMI */
+//  { 0x1002, 0xaa00, 0x0000, 0x0000 }, /* ATI R600 HDMI */
+//  { 0x1106, 0x3288, 0x0000, 0x0000 },  /* VIA VT8251/VT8237A */
+//  { 0x1039, 0x7502, 0x0000, 0x0000 },  /* SIS966 */
+//  { 0x10b9, 0x5461, 0x0000, 0x0000 }, /* ULI M5461 */
+//  { 0x10de, 0x026c, 0x0000, 0x0000 },  /* NVIDIA MCP51 */
+//  { 0x10de, 0x0371, 0x0000, 0x0000 },  /* NVIDIA MCP55 */
+//  { 0x10de, 0x03e4, 0x0000, 0x0000 },  /* NVIDIA MCP61 */
+//  { 0x10de, 0x03f0, 0x0000, 0x0000 }, /* NVIDIA MCP61 */
+//  { 0x10de, 0x044a, 0x0000, 0x0000 }, /* NVIDIA MCP65 */
+//  { 0x10de, 0x044b, 0x0000, 0x0000 }, /* NVIDIA MCP65 */
+//  { 0x10de, 0x055c, 0x0000, 0x0000 },  /* NVIDIA MCP67 */
+//  { 0x10de, 0x055d, 0x0000, 0x0000 },  /* NVIDIA MCP67 */
+//  { 0x8086, 0x2416, 0x0000, 0x0000 },
+//  { 0x8086, 0x2426, 0x0000, 0x0000 },
+//  { 0x8086, 0x2446, 0x0000, 0x0000 },
+//  { 0x8086, 0x7196, 0x0000, 0x0000 },
+//  { 0x8086, 0x2486, 0x0000, 0x0000 },
+//  { 0x8086, 0x24C6, 0x0000, 0x0000 },
+//  { 0x8086, 0x24D6, 0x0000, 0x0000 },
+//  { 0x11C1, 0x048C, 0x0000, 0x0000 },
+//  { 0x11C1, 0x048F, 0x0000, 0x0000 },
+//  { 0x8086, 0x266D, 0x0000, 0x0000 },
 };
 
 /************** Ensure Kernel Version 2.4.0 or later *************/


> Please run commands:
> sudo modprobe -r agrserial
> sudo modprobe -r agrmodem
> make
> sudo make modules_install
> sudo modprobe agrmodem
> sudo modprobe agrserial
> sudo ln -sf /dev/ttyAGS3 /dev/modem
> sudo ln -sf /dev/ttyAGS3 /dev/ttySAGR
>
> and show the result of the following command:
> sudo wvdialconf /etc/wvdial.conf
> 

Here is the result:-
Scanning your serial ports for a modem.

Port Scan<*1>: S0   S1   S2   S3   
ttySAGR<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttySAGR<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttySAGR<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wvdial/

If you still have problems, send mail to wvdial-list@xxxxxxxxxxxxx

Regards,
Jack



> -- 
> Nick Zhuravlev
> www.auriga.com
> 
> 
> On Fri, Jan 15, 2010 at 12:52:28AM +0800, M81011181 <m81011181@xxxxxxxxxxxx> wrote:
> 
> > Hi Nick Zhuravlev & MarvS,
> > Just complete the try for your advice :) thanks~!
> > 
> > I can't finished the driver compile for agrsm06pci-2.1.80~20100106, error messages as below:-
> > make -C /lib/modules/2.6.30.10-2_SMP.rhel5/build M=/home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106 modules
> > make[1]: Entering directory `/usr/src/linux-2.6.30.10-2_SMP.rhel5'
> >   CC [M]  /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem..o
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c: In function ‘agr_pci_find_device’:
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c:364: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c: At top level:
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c:486: warning: function declaration isn’t a prototype
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c:508: warning: function declaration isn’t a prototype
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c:518: warning: function declaration isn’t a prototype
> > /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrsoftmodem.c:519: warning: function declaration isn’t a prototype
> >   SHIPPED /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrmodemlib.o
> >   CC [M]  /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/hda.o
> >   CC [M]  /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/serial26..o
> >   LD [M]  /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrmodem..o
> >   LD [M]  /home/jack/rpmbuild/BUILD/agrsm06pci-2.1.80~20100106/agrserial.o
> >   Building modules, stage 2.
> >   MODPOST 2 modules
> > FATAL: modpost: GPL-incompatible module agrmodem.ko uses GPL-only symbol 'usb_put_dev'
> > make[2]: *** [__modpost] Error 1
> > make[1]: *** [modules] Error 2
> > 
> > Then, I try another one, agrsm048pci-2.1.60_20100108, after compile the driver without error, I load the driver into the kernel, but the usb modem light is not turn on, 
> > I check with the agrsoftmodem.c and find that there are no "USB_MODEM" code inside it , so, I think this version is not support for usb modem.
> > 
> > I try the agrsm-11c11040-2.1.80~20091225.tar.bz2 again by remark the HDA stuff. and this time using minicom is not showing any 
> > error message and will not hang up the screen, but later when I using wvdial to testing the modem, it show the below screen :-
> > [root@lenovo ~]# ln -s /dev/ttyAGS3 /dev/ttySAGR
> > [root@lenovo ~]# wvdial
> > --> WvDial: Internet dialer version 1.54.0
> > --> Initializing modem.
> > --> Sending: ATZ
> > --> Sending: ATQ0
> > --> Re-Sending: ATZ
> > --> Modem not responding.
> > 
> > and the dmesg info :-
> > serial8250_register_ports: BaseAddress 0x0400 Irq 3 
> > ttyAGS3 at I/O 0x400 (irq = 3) is a AgereModem
> > agrserial - ret_val 0, call: lt_modem_ops.init_modem
> > Loading module Agere Modem Interface driver version 2.1.80.0 (2007-10-01)
> > ==> codecType = 0x31
> > BALA Usb_StartIsoDma pRecDmabuffer c0c00220 pPlayDmabuffer c0c00e20
> > Uss_InitForUsingBulkEps() - download workaround 
> > 70000a64: 20
> > 70000a65: 14af
> > 70000a66: 2298
> > 70000a67: 14af
> > 70000a68: 14b1
> > 70000a69: 14af
> > 70000a6a: 14af
> > 70000a6b: 14af
> > * Download Bulk Patch!
> > ERROR status -32
> > Reading gfunctable after bulk download @ addr 70000a64
> > 70000a64: 20
> > 70000a65: 14af
> > 70000a66: 2298
> > 70000a67: 14af
> > 70000a68: 70001588
> > 70000a69: 14af
> > 70000a6a: 14af
> > 70000a6b: 14af
> > USS_CMD_CHANGE_CLK command passed
> > Usb_BoostArmClock(): ARMCDR Reg= 20, clock running @ 7 Mhz
> > ERROR status -32
> > BALA IsoUsb_StartIsoDma
> > reset enpoint 0x1 retVal 0
> > reset enpoint 0x81 retVal 0
> > x_usb_start_dma pRecDmabuffer c0c00220 pPlayDmabuffer c0c00e20
> > ** i = 0
> > ** i = 1
> > 
> > URBS 2
> > x_usb_start_dma return
> > *** Usb_StartIsoDma End 100
> > ERROR status -32
> > ERROR status -32
> > BALA Usb_StopIsoDma
> > x_usb_stop_dma
> > 
> > STREAMING ENDED
> > Number of times Write/Read performed=1
> > BALA Usb_StopIsoDma
> > x_usb_stop_dma
> > 
> > STREAMING ENDED
> > Number of times Write/Read performed=1
> > ==> codecType = 0x31
> > 
> > 


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

  Powered by Linux