Menu

kernel 2.6test9 cxacru problems

2003-11-20
2003-11-23
  • Luca Rosellini

    Luca Rosellini - 2003-11-20

    Hello jcomas.
    I have an error similar to the one posted in "New Driver Kernel 2.6 Problems"

    I have the problem with kernel 2.6-test9.
    No problems with 2.6-test6.
    I used the same cxacru version (the latest) in both the kernels so it seems that in latest tests kernel hackers have changed something in USB code.
    You may say: go on using test6. The problem is that I noticed system freeze when connecting some usb hardware to my system using test6 which seems to be resolved in test9.

    - I used the same config file in test6 and test9
    - In /usr/src I have a symlinks called linux and linux-beta pointing to linux-2.6.0-test9-mm2
    - Before compiling cxacru in /usr/src/linux I typed:
    make mrproper
    cp /proc/config .config

    when compiling cxacru I get this warning and compilation finish successfully:
    -------------------------------------------------
    ...
    CC      arch/i386/kernel/asm-offsets.s
      CHK     include/asm-i386/asm_offsets.h
      CC [M]  /tmp/cxacru/module2/xdslusb.o
    /tmp/cxacru/module2/xdslusb.c:362: warning: initialization from incompatible pointer type
      LD [M]  /tmp/cxacru/module2/cxacru.o
      Building modules, stage 2.
    /usr/src/linux-2.6.0-test9-mm2/scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries. You messed with SUBDIRS,
    /usr/src/linux-2.6.0-test9-mm2/scripts/Makefile.modpost:18: do not complain if something goes wrong.
      MODPOST
      CC      drivers/net/8139cp.mod.o
    ....
    ---------------------------------------------

    then I run cxstart.sh and I get:
    ---------------------------------------------
    >>> Inits Conexant AccessRunner <<<

    >>> Loading firmware...
    Conexant AccessRunner microcode upload program. 6/9/2003
    Josep Comas <jcomas@gna.es>
    See credits in documentation

    I found ADSL modem with VendorID = 0572 & ProductID = cb00
    Loading and sending /usr/sbin/cxfirm4.bin...
    Firmware is sent!
    Setting configuration...
    Waiting ADSL line is up (until 90 seconds)...
    ............
    ADSL line is up (Downstream 832 Kbits/s, Upstream 192 Kbits/s)
    >>> Loading driver...
    Launching driver in normal mode...
    FATAL: Error inserting cxacru (/lib/modules/2.6.0-test9-mm2/kernel/drivers/usb/cxacru.ko): File exists
    -------------------------------------------------------

    if I try lsmod I get:
    Module                  Size  Used by
    cxacrudbg              22096  0
    crc32                   3968  1 cxacrudbg
    uhci_hcd               29960  0
    ohci_hcd               16576  0
    ehci_hcd               22656  0
    nls_iso8859_15          4480  2
    nls_cp437               5568  1

    This is strange 'cause in my /etc/cxacru I have:
    DRIVER_MODE=1  # 1 = normal, 2 = debug, 3 =

    this is what I have in dmesg:
    -----------------------------------------------------
    ....
    /tmp/cxacru/module2/xdslusb.c: udsl_usb_init: driver version 2.0pre1
    /tmp/cxacru/module2/xdslusb.c: udsl_usb_probe: trying device with vendor=0x572, product=0xcb00, ifnum 0
    /tmp/cxacru/module2/xdslusb.c: udsl_usb_probe: device accepted
    drivers/usb/core/usb.c: registered new driver xdslusb
    kobject_register failed for xdslusb (-17)
    Call Trace:
    [<c021f4d2>] kobject_register+0x52/0x60
    [<c0272b7a>] bus_add_driver+0x4a/0xa0
    [<c027300f>] driver_register+0x2f/0x40
    [<c02a6469>] usb_register+0x79/0xd0
    [<d18f9055>] udsl_usb_init+0x55/0x57 [cxacru]
    [<c013bb7c>] sys_init_module+0x12c/0x250
    [<c033bf93>] syscall_call+0x7/0xb

    drivers/usb/core/usb.c: problem -17 when registering driver xdslusb
    --------------------------------------------------

    this is an excerpt from lsusb -v:
    --------------------------------------------------
    ....
    Bus 001 Device 002: ID 0572:cb00 Conexant Systems (Rockwell), Inc.
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 Interface
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x0572 Conexant Systems (Rockwell), Inc.
      idProduct          0xcb00
      bcdDevice            0.01
      iManufacturer           1 -
      iProduct                2 ADSL USB MODEM
      iSerial                 3 67882636
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           67
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0x80
        MaxPower              500mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           7
          bInterfaceClass         0 Interface
          bInterfaceSubClass      0
          bInterfaceProtocol      0
          iInterface              0
    ....
    ------------------------------------------------------

    and finally this is the output of uname -a
    Linux localhost 2.6.0-test9-mm2 #1 Thu Nov 20 16:25:29 CET 2003 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux

    I hope this helps you to find the problem.
    Actually I have to use kernel 2.4.20. I really was unable to make cxacru work under test9.

    Hope this helps.

    Best, Luca

     
    • Josep Comas

      Josep Comas - 2003-11-20

      Hello,

      First you try to remove cxacru modules:
      rmmod cxacru
      rmmod cxacrudbg
      then you load cxstart.sh

      There are a lot of changes about USB in last kernel 2.4 and 2.6. I recommend that you put USB in debug mode (you need compile a new kernel with USB debug activated. Also you need put /etc/cxacru in debug mode). Then, you can send me information that it appears in /var/log/messages and with dmesg command.

      Regards,
        Josep

       
      • Luca Rosellini

        Luca Rosellini - 2003-11-21

        Ok, I compiled test9-mm2 with usb in debug mode and I used
        # Driver mode
        DRIVER_MODE=2.
        in /etc/cxacru

        as usual cxstart.sh:
        --------------------------------
        ....
        Waiting ADSL line is up (until 90 seconds)...
        .........
        ADSL line is up (Downstream 832 Kbits/s, Upstream 192 Kbits/s)
        >>> Loading driver...
        Launching driver in debug mode...
        FATAL: Module cxacrudbg already in kernel.

        these is dmesg aftercompiling cxstart.sh:
        --------------------------------------------------
        hub 2-0:1.0: port 1, status 100, change 3, 12 Mb/s
        hub 2-0:1.0: port 2, status 100, change 3, 12 Mb/s
        hub 2-0:1.0: port 1 enable change, status 100
        hub 2-0:1.0: port 2 enable change, status 100
        drivers/usb/host/uhci-hcd.c: dc00: suspend_hc
        usb 1-1: usb_disable_device nuking non-ep0 URBs
        usb 1-1: unregistering interface 1-1:1.0
        drivers/usb/core/usb.c: usb_hotplug
        usb 1-1: registering 1-1:1.0 (config #1, interface 0)
        drivers/usb/core/usb.c: usb_hotplug
        drivers/usb/core/usb.c: usbfs driver claimed interface cfd030c0
        /tmp/cxacru/module2/xdslusb.c: udsl_usb_init: driver version 2.0pre1
        xdslusb 1-1:1.0: usb_probe_interface
        xdslusb 1-1:1.0: usb_probe_interface - got id
        /tmp/cxacru/module2/xdslusb.c: udsl_usb_probe: trying device with vendor=0x572, product=0xcb00, ifnum 0
        /tmp/cxacru/module2/xdslusb.c: udsl_usb_probe: device accepted
        drivers/usb/core/usb.c: registered new driver xdslusb
        kobject_register failed for xdslusb (-17)
        Call Trace:
        [<c021f4d2>] kobject_register+0x52/0x60
        [<c0272b7a>] bus_add_driver+0x4a/0xa0
        [<c027300f>] driver_register+0x2f/0x40
        [<c02a64c9>] usb_register+0x79/0xd0
        [<d18fb055>] udsl_usb_init+0x55/0x57 [cxacru]
        [<c013bb7c>] sys_init_module+0x12c/0x250
        [<c033d013>] syscall_call+0x7/0xb

        drivers/usb/core/usb.c: problem -17 when registering driver xdslusb

        And the following is what I get in /var/log/everything/current (which in gentoo is the same of /var/log/messages in other distros):
        ----------------------------------------------------------
        ....
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.2: UHCI Host Controller
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.2: irq 5, io base 0000d800
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
        Nov 21 10:05:58 [kernel] drivers/usb/host/uhci-hcd.c: detected 2 ports
        Nov 21 10:05:58 [kernel] usb usb1: Product: UHCI Host Controller
        Nov 21 10:05:58 [kernel] usb usb1: Manufacturer: Linux 2.6.0-test9-mm2 uhci_hcd
        Nov 21 10:05:58 [kernel] usb usb1: SerialNumber: 0000:00:07.2
        Nov 21 10:05:58 [kernel] hub 1-0:1.0: USB hub found
        Nov 21 10:05:58 [kernel] hub 1-0:1.0: 2 ports detected
        Nov 21 10:05:58 [usb.agent] ... no modules for USB product 0/0/206
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.3: UHCI Host Controller
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.3: irq 5, io base 0000dc00
        Nov 21 10:05:58 [kernel] uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
        Nov 21 10:05:58 [kernel] drivers/usb/host/uhci-hcd.c: detected 2 ports
        Nov 21 10:05:58 [kernel] usb usb2: Product: UHCI Host Controller
        Nov 21 10:05:58 [kernel] usb usb2: Manufacturer: Linux 2.6.0-test9-mm2 uhci_hcd
        Nov 21 10:05:58 [kernel] usb usb2: SerialNumber: 0000:00:07.3
        Nov 21 10:05:58 [usb.agent] ... no modules for USB product 0/0/206
        Nov 21 10:05:58 [kernel] hub 2-0:1.0: USB hub found
        Nov 21 10:05:58 [kernel] hub 2-0:1.0: 2 ports detected
        Nov 21 10:05:59 [usb.agent] ... no modules for USB product 0/0/0
        Nov 21 10:05:59 [kernel] hub 1-0:1.0: new USB device on port 1, assigned address 2
        Nov 21 10:05:59 [kernel] usb 1-1: Product: ADSL USB MODEM
        Nov 21 10:05:59 [kernel] usb 1-1: Manufacturer: -
        Nov 21 10:05:59 [kernel] usb 1-1: SerialNumber: 67882636
        Nov 21 10:05:59 [usb.agent] ... no modules for USB product 572/cb00/1
        Nov 21 10:05:59 [usb.agent] ... no modules for USB product 0/0/0
        Nov 21 10:05:59 [kernel] hub 1-0:1.0: new USB device on port 2, assigned address 3
        Nov 21 10:05:59 [kernel] usb 1-2: Product: USB HUB
        Nov 21 10:05:59 [kernel] hub 1-2:1.0: 4 ports detected
        Nov 21 10:05:59 [usb.agent] ... no modules for USB product 0/e01/4
        Nov 21 10:05:59 [cron] (CRON) STARTUP (fork ok)_
        Nov 21 10:06:04 [login(pam_unix)] session opened for user root by (uid=0)
        Nov 21 10:07:35 [kernel] drivers/usb/core/usb.c: registered new driver xdslusb
        Nov 21 10:07:35 [kernel] kobject_register failed for xdslusb (-17)
        Nov 21 10:07:35 [modprobe] FATAL: Error inserting cxacru (/lib/modules/2.6.0-test9-mm2/kernel/drivers/usb/cxacru.ko): File exists_
        Nov 21 10:07:35 [usb.agent] ... can't load module cxacru
        Nov 21 10:07:35 [usb.agent] missing kernel or user mode driver cxacru
        Nov 21 10:07:39 [login(pam_unix)] session opened for user root by (uid=0)

        Let me know if you need other tests. I'll be glad to help the development.

        Best, Luca

         
    • Luca Rosellini

      Luca Rosellini - 2003-11-21

      sorry I forgot to mention that before loading cxstart.sh I've done:
      rmmod cxacru
      rmmod cxacrudbg

      so this was my lsmod:
      Module                  Size  Used by
      uhci_hcd               30664  0
      ohci_hcd               28608  0
      ehci_hcd               33984  0
      nls_iso8859_15          4480  2
      nls_cp437               5568  1
      ide_cd                 37504  0
      sr_mod                 13536  0
      scsi_mod               65316  1 sr_mod
      cdrom                  33120  2 ide_cd,sr_mod

       
    • Josep Comas

      Josep Comas - 2003-11-23

      Hello,

      You can try use xdslusb.c file from last amedyn package of http://sourceforge.net/projects/zyxel630-11 and you try to use this values:
      #define UDSL_DEFAULT_RCV_BUF_SIZE 64
      #define UDSL_DEFAULT_SND_BUF_SIZE 32

      There are a lot of problems with USB implementation in last kernel 2.6 version. You can see in linux-usb-devel mailing list. I hope this problems can be solved in next kernel versions.

      Regards,
        Josep

       
    • Luca Rosellini

      Luca Rosellini - 2003-11-23

      I tryed with no success. No problem, I'll wait for 2.6 final. Thanks anyway

      Best, Luca

       

Log in to post a comment.

MongoDB Logo MongoDB