Author Message

<  Device Information  ~  Port sierra 881U to kernel 2.6.15 ?

PostPosted: Thu Jul 09, 2009 8:29 am Reply with quote
Posts: 5Joined: Wed Jun 24, 2009 4:55 am
HI..
i got a Sierra881U card working in a system 2.4 kernel version.
But strangely, i can't get this card to work in my 2.6.15 version of kernel.

Every time i do usb_modeswitch (version 1.0.2), it hang in there.
Code:
# usb_modeswitch -S -v 0x1199 -p 0x0fff &
 * usb_modeswitch: tool for controlling "flip flop" mode USB devices
 * Version 1.0.2 (C) Josua Dietze 2009
 * Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
 Found default devices (1)
Accessing device 003 on bus 002 ...
Using endpoints 0x05 (out) and 0x84 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

.....hangs here....

And nothing happen. and the usb interface is gone in the /proc/bus/usb/devices.

I googled and find that 2.6.19 above have a driver sierra.c in it. So i port the sierra.c (2.6.19 version) to my kernel 2.6.15, but the modeswitch still hangs.

Anybody ?


Offline Profile
PostPosted: Thu Jul 09, 2009 8:49 am Reply with quote
Site AdminPosts: 6267Joined: Sat Nov 03, 2007 12:30 am
Try to add the "-I" option to skip the inquiry and see what happens.

And why do you run in background with "&"?


Offline Profile
PostPosted: Thu Jul 09, 2009 9:12 am Reply with quote
Posts: 5Joined: Wed Jun 24, 2009 4:55 am
Yeah..you are right..
i tried it and it work..

Thx a lot ..

Previously i run in background just to prevent my system hangs after executing usb_modeswitch. (can't do ctrl+c when it hangs, strange..).


Offline Profile
PostPosted: Thu Jul 09, 2009 10:04 am Reply with quote
Posts: 5Joined: Wed Jun 24, 2009 4:55 am
I wonder..
lots of cards works just fine with option.c driver..

but the Sierra products must use sierra.c ?
Any chances that sierra cards work using option.c ?


Offline Profile
PostPosted: Thu Jul 09, 2009 10:45 am Reply with quote
Site AdminPosts: 6267Joined: Sat Nov 03, 2007 12:30 am
Sierra provided a complete set of patches to the kernel. I'm not sure if there is a fundamental difference to other serial devices.

If I were you, I'd try to work without the Sierra driver: first by using usb-serial and then - if that works - with the option driver (you need to add the IDs to the source though).

There are some hints on the USB_ModeSwitch page for doing all this.


Offline Profile
PostPosted: Thu Jul 09, 2009 12:49 pm Reply with quote
Posts: 5Joined: Wed Jun 24, 2009 4:55 am
yeah..
tried usb-generic serial driver...works OK..
modem device become 3 interfaces (ttyUSB0 ~ 2)

tried option.c driver ....works OK too ..
modem device become ONLY 1 interface (ttyUSB0)

Then, i checked the sierra.c driver version kernel 2.6.19, seems that the sierra driver just use the usb-generic serial driver.
But later in kernel 2.6.29, the sierra.c seems have been modified a lot from the version 2.6.19.

Thx alot btw..


Offline Profile
PostPosted: Thu Jul 09, 2009 4:19 pm Reply with quote
Site AdminPosts: 6267Joined: Sat Nov 03, 2007 12:30 am
I think the driver is special mostly because of the explicit Linux support for these devices. They sometimes have Linux software on the newer devices, along with the Windows drivers. And their Linux driver has to check for this.

Other than that, I suspect their optimizations against the plain serial driver are not very different from the "option" module. Some redundancy there, but at least they are serious about their Linux commitment; plus it's truly open.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
7 posts
Users browsing this forum: Bing [Bot] and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum