Hello!

I've just tried the usb backport patch, as found at
http://www.suse.cz/development/usb-backport/, against the 2.2.15
kernel, just to see if I could make it work against my SMC EZ Connect
USB 2102USB/ETH ethernet converter.

The patch installed fine after that I had made some small changes to
it in order to avoid collision with the (previously applied) devfs
patch.

The changes done was:
 - removed the adding of the "include/linux/devfs_fs_kernel.h" file
 - commented out the following #define statements from the
   "include/linux/kcomp.h" file:
     TTY_DRIVER_NO_DEVFS
     tty_register_devfs
     tty_unregister_devfs

After that the compilation and installation of the modules went fine.

After reboot I noticed that "depmod -a" during boot did not included
any of the usb modules in the modules.dep file (all the usb code where
compiled as modules).

>From the information given at http://www.linux-usb.org/ I suspected that
the modules usbcore.o usb-uhci.o pegasus.o where the one that was most
likely to make the ethernet converter work.

First I installed the modules:

 insmod /lib/modules/2.2.15/usb/usbcore.o
 insmod /lib/modules/2.2.15/usb/usb-uhci.o
 insmod /lib/modules/2.2.15/usb/pegasus.o

This gave the following messages in /var/log/messages:

 ... : usb.c: registered new driver usbdevfs
 ... : usb.c: registered new driver hub

 ... : usb-uhci.c: $Revision: 1.228 $ time 21:30:13 May 13 2000
 ... : usb-uhci.c: High bandwidth mode enabled
 ... : usb-uhci.c: Intel USB controller: setting latency timer to 0
 ... : usb-uhci.c: USB UHCI at I/O 0x9000, IRQ 9
 ... : usb-uhci.c: Detected 2 ports
 ... : usb.c: new USB bus registered, assigned bus number 1
 ... : usb.c: USB new device connect, assigned device number 1
 ... : hub.c: USB hub found
 ... : hub.c: 2 ports detected
 ... : usb.c: USB new device connect, assigned device number 2
 ... : usb.c: This device is not recognized by any installed USB driver.

 ... : pegasus.c: v0.3.9 2000/04/11 Written by Petko Manolov ([EMAIL PROTECTED])
 ... : usb.c: registered new driver pegasus

Next I confimed that all the modules where loaded with lsmod

 pegasus                 5696   0  (unused)
 usb-uhci               20952   0  (unused)
 usbcore                39912   0  [pegasus usb-uhci]

Then I mounted the usbdevds filesystem with

 mount -t usbdevfs none /proc/bus/usb

and got the following from /proc/bus/usb/devices

 T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
 B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
 D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=0000 ProdID=0000 Rev= 0.00
 S:  Product=USB UHCI Root Hub
 S:  SerialNumber=9000
 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
 E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
 T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
 D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=0707 ProdID=0100 Rev= 0.02
 S:  Manufacturer=SMC, Inc.
 S:  Product=EZ Connect USB/Ethernet Converter
 S:  SerialNumber=00800F8E36F6
 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=110mA
 I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
 E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
 E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
 E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=  1ms

As the above shows, the usb subsystem seems to be able to make contact
with the converter, but in spite of that it does not shows up as a
network device (absent both from the "ifconfig -a" and "cat
/proc/net/dev" listings).

The "insmod" of the usb modules does not creates any new "devices"
under /dev either (note, controlled by devfs). I'm not sure if that
should happen?

Also if I try to remove the modules with rmmod I get the following
messages in /var/log/messages:

 ... : de_put: deferred delete of usb
 ... : usb.c: USB disconnect on device 1
 ... : usb.c: USB disconnect on device 2
 ... : usb.c: USB bus 1 deregistered
 ... : kmem_shrink: Invalid cache addr cbfefb60
 ... : kmem_destroy: Can't free all objects cbfefb60
 ... : usb-uhci.c: uhci_desc_kmem remained
 ... : kmem_shrink: Invalid cache addr cbfefbc0
 ... : kmem_destroy: Can't free all objects cbfefbc0
 ... : usb-uhci.c: urb_priv_kmem remained
 ... : usb.c: deregistering driver pegasus
 ... : usb.c: deregistering driver usbdevfs
 ... : hub.c: usb_hub_thread exiting
 ... : usb.c: deregistering driver hub

The modules gets removed but I have to reboot again before trying to
install them again (insmod fails).

Has anyone any ideas to what I might try in order to make the
converter work or to find out more about where the problem are? The
(brief) documentation that I've found regarding the pegasus module
does not lists the above converter, but it lists a similar one.
Perhaps all that is needed is some small changes to the pegaus code
in order to make it detect the converter?

Or could it be that the packport patch does not works with the devfs
patch applied?

I'm totally new to the usb subsystem so any comments around this would
be most helpful.

best regards,
kmm

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to