OpenWrt Forum Archive

Topic: sierrawireless on 2.4?

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am trying to get a USB EVDO modem to work with OpenWRT. From looking around it looks like what I need to make this happen is the kmod-usb-serial-sierrawireless package. The problem is, this package doesn't seem to be available for the 2.4 kernel which I'm using (it shows up in the package lists for at least most of the 2.6 builds, but not for the 2.4 build). Are there any plans to port this or any reason why it hasn't been ported to 2.4?

TIA

Anyone know where I can find the source for this package? I've tried looking through the packages on the source browser but it doesn't seem to be there.

Thanks for the patch. I'm trying to build with the latest trunk (11250) with your patches. I've added the first one to the patches directory and applied the second one (removing the 2.6 dependency from the usb.mk file) manually. However when building I get a warning "WARNING: kmod-usb-serial-sierrawireless is not available in the kernel config" and the package is not built. I thought maybe it was because I was building for the Asuswl500gp but when I changed it to your target platform I get the same result. Is there something else I need to do to get the patch to work?

The two patches are both against the root of trunk, the first is a 'meta' patch, adding patch files itself to the patches directory.

Thanks for the tip, I was able to get it to compile now.

Is that driver strictly for the PCMCIA cards that you can get for the G3G? I'm trying to get a USB modem (Sierra Wireless Compass 597) to work and no luck so far.

No, it should be for all of them.  I didn't write it, however, and only tested against PCMCIA cards, but all the modern Sierra Wireless modems are either USB or have an internal USB hub that uses the physical bus they connect over.  That particular driver may not have the right vendor & product ID for the "wireless compass 597", as I've never heard of it before.  Is it rather new?

It is quite new. It was introduced in April. Sprint has end-of-life'ed all of their other usb modems though. The only other option is the Novatel U727 which is more expensive and also quite new I think.

It did not have the right v/p ids. I added them in (v=0x1199,p=0x0023) but no luck.

I also heard that it is likely that the internal virtual cdrom drive the device has containing its windows drivers may be causing problems preventing the modem from being detected and installed properly. I haven't gone down that route very far yet, but it looks like the fix for that issue might involve adding an entry to the drivers/usb/storage/unusual_devs.h list to prevent the kernel from trying to load that virtual cdrom drive.

I suspect this is required to make this device work. Unfortunately it is only in the 2.6 kernel. The only symbol that is undefined in the 2.4 source is the US_FL_IGNORE_DEVICE.

found in http://git.kernel.org/?p=linux/kernel/g … .h;hb=HEAD

/* Reported by Kevin Lloyd <linux@sierrawireless.com>
 * Entry is needed for the initializer function override,
 * which instructs the device to load as a modem
 * device.
 */
UNUSUAL_DEV(  0x1199, 0x0fff, 0x0000, 0x9999,
        "Sierra Wireless",
        "USB MMC Storage",
        US_SC_DEVICE, US_PR_DEVICE, NULL,
        US_FL_IGNORE_DEVICE),
pric0112 wrote:

I suspect this is required to make this device work. Unfortunately it is only in the 2.6 kernel. The only symbol that is undefined in the 2.4 source is the US_FL_IGNORE_DEVICE.

Not having looked at the relevant code, I would venture a guess it's non-trivial to backport, as most code I've looked at has seemed to me.  Even so, you should be able to avoid problems with other drivers if you're careful about the loading order.

Why must you use the 2.4 kernel?

I guess I should have looked into this thread instead of starting a new one. http://forum.openwrt.org/viewtopic.php?id=15874
I believe he wants to use kernal 2.4 because 2.6 in the asus 500gp doesn't support the existing broadcom wireless card. I realized I am in the same vote. I might be wrong though.

The discussion might have continued from here.