Linksys WRT54G3G + Huawei E600 + OpenWRT Kamikaze = Internet at summer house

Spending vacation at the summer house without Internet connectivity? Unthinkable.

Linksys WRT54G3GHuawei E600

The first few days, I connected the laptop to my cell phone using Bluetooth, and then to the Internet using 3G/UMTS.

However, we have more than one laptop here, and the range of bluetooth is limited. I ended up setting up a wireless access point with a PCMCIA slot for a 3G/UMTS card. It has worked flawlessly for several days.

The writeup on how to do this is long, so I put it at a separate page:
http://josefsson.org/openwrt/internet.html

Update: I have written a similar howto for OpenWRT 8.09 and Huawei E220, see http://josefsson.org/openwrt/dongle.html

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

72 Responses to “Linksys WRT54G3G + Huawei E600 + OpenWRT Kamikaze = Internet at summer house”

  1. Matthew says:

    Hi,

    First of all - I must say thanks for the howto - got me going on ‘taking control’ of my WRT54G3G!

    What I’m interested to know is if anyone has succesfully increased the RAM in the unit?

    I’ve come across a couple of references to people achieving this but as yet have not come across any clear instructions.

    Another question;
    How easy is it to have the WAN port connected to ADSL as the primary internet connection, with the 3G as backup in the case of ADSL problems?
    (Here in South Africa, we constantly have problems with stolen copper and as such often have sites down)!

    Any help would be appreciated.

    Thanks,

    Matthew

  2. Karel Janssens says:

    The Sierra Wireless 875U USB on a WL500Gp sage continues…
    Finally I made a connection on a Ubuntu 7.10
    Tried chat, kppp, nothing seemed to be able to establish a connection
    but after generating hundreds of wvdial.conf files (wvdial-generator.php :-) )
    I made it. It’s working!
    Now how can I get this wvdial on my OpenWRT box?
    Anyone?

  3. Assasin says:

    Hi
    Refering to post
    peter Says:

    November 21st, 2007 at 1:42

    The usbserial.o file is no longer available at the specified location
    Could someone please assist me in getting a copy of it for kamakaze 7.09 on a Linksys openWRT3g3

    I would live to get the speeds where they need to be

    Thanks in advance

  4. peter says:

    try here assasin:
    http://rapidshare.de/files/38950667/usbserial.o.html
    if not work ask simon for webspace ???? @simon ??
    or give email.
    greets peter

  5. simon says:

    Thanks Peter!

    I placed a copy at:

    http://josefsson.org/tmp/usbserial.o

    SHA-1 d4346bb4356a77cb9841abc9642677548125fa88

    Naturally, keep in mind that in general you shouldn’t download untrusted binaries from the net and run them.

    Finally, I have no idea whether this works or not, since I haven’t run across this problem.

    /Simon

  6. [...] you are interested in using OpenWRT with a 3G connection, you may find my summer house internet writeup more [...]

  7. Assasin says:

    Hi

    I would Just like to thank you all (Peter, Simon and especially http://josefsson.org/) for all the write ups and how to’s.
    I have learnt a lot, and built some interesting things.

    Thank you again!
    Cheers
    Assasin

  8. Alex says:

    Hi,

    My WRT54G3G works fine with Kamikaze 0.9 and x-wrt. My data card is a Option Ge0301 with HSUPA. I followed the writeup of Simon. Then I had to change the usbserial.o to the new one to patch the small data rate. Now I get my fullspeed I got with the original Linksys firm.

    Now one question. I miss a “dial on demand” function. I use a vodafone flat and I wish an auto connect. Has someone a solution?

    Thanks a lot,
    alex

  9. ferdie says:

    Just saw this site. I am interested to try this out. Just a few questions guys, so I can get my hands dirty on this later.

    Which of the WRT54G3G I have to buy?
    I saw three flavors of this in Linksys site.
    WRT54G3G-AT
    WRT54G3G-ST
    WRT54G3G-VN

    Can use this as hotspot once installed with OpenWRT?
    Are there any list of supported PCMCIA cards?
    I’m from Asia, any online store I can buy this router?

    That’s it for now =)

  10. simon says:

    Hi ferdie. I think all three would work, but I don’t know for sure. Actually, what IS the difference between those devices? The data sheets on the linksys looks just the same to me.

    It should work fine as a hotspot, but you may need additional software if you want to configure it for authentication. Such as Chili Hotspot.

    Linksys has a list of supported devices, but it is rather short, and OpenWRT should support any PCMCIA 3G card that emulates serial ports. My huawei E600 isn’t supported by linksys, but it works fine with OpenWRT.

    However, keep in mind that a cheaper choice may be to buy a normal wireless router with a USB port. I have several ASUS WL-500gP’s which should handle this fine. You can then buy a separate USB-based 3G modem. They tend to be cheaper then the PCMCIA 3G modems too.

    Good luck,
    Simon

  11. Assasin says:

    Hi Simon,

    I really hope you can help me
    I am having a problem with a data card, I have been every where and can not seem to find the problem,
    I had the router working great with an Option data card on vendor=0xaf0 product=0×6701
    I have got a new E600 card, with the same setting as listed by you.
    vendor=0×12d1 product=0×1001

    I built and image with the old card settings, that I loaded onto a new router, and installed the new card in that one

    But now i get the error as listed in DMESG
    usb-ohci.c: usb-02:00.0, PCI device 1131:1561
    usb.c: new USB bus registered, assigned bus number 2
    hub.c: USB hub found
    hub.c: 2 ports detected
    hub.c: new USB device 02:00.0-1, assigned address 2
    usbserial.c: Generic converter detected
    usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
    usbserial.c: Generic converter detected
    usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
    usbserial.c: Generic converter detected
    usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
    hub.c: new USB device 02:00.0-2, assigned address 3
    usb.c: USB device not accepting new address=3 (error=-145)
    hub.c: new USB device 02:00.0-2, assigned address 4
    usb.c: USB device not accepting new address=4 (error=-145)

    How do I get around this as the card no longer initilases?
    I am totaly stumped,

    This is from a working one:
    root@OpenWrt:/proc# cat modules
    usbserial 23884 1
    wlcompat 14944 0 (unused)
    usb-ohci 19252 0 (unused)
    ds 7420 0 (unused)
    yenta_socket 10668 1
    pcmcia_core 44064 0 [ds yenta_socket]
    ip_conntrack_tftp 1712 0 (unused)
    ip_nat_irc 2336 0 (unused)
    ip_conntrack_irc 3128 1
    ip_nat_ftp 2960 0 (unused)
    ip_conntrack_ftp 4272 1
    ppp_async 7884 2
    ppp_generic 22300 6 [ppp_async]
    slhc 6064 0 [ppp_generic]
    wl 630776 0 (unused)
    usbcore 71296 1 [usbserial usb-ohci]
    switch-robo 4540 0 (unused)
    switch-core 4864 0 [switch-robo]
    diag 25520 0 (unused)

    And this from a not working one?
    usbserial 23516 0
    wlcompat 9504 0 (unused)
    usb-ohci 19252 0 (unused)
    ppp_synctty 6332 0 (unused)
    ds 7420 0 (unused)
    yenta_socket 10668 1
    pcmcia_core 44064 0 [ds yenta_socket]
    ip_conntrack_tftp 1712 0 (unused)
    ip_nat_irc 2336 0 (unused)
    ip_conntrack_irc 3128 1
    ip_nat_ftp 2960 0 (unused)
    ip_conntrack_ftp 4272 1
    ppp_async 8044 0 (unused)
    ppp_generic 22380 0 [ppp_synctty ppp_async]
    slhc 6064 0 [ppp_generic]
    wl 666224 0 (unused)
    usbcore 71296 1 [usbserial usb-ohci]
    switch-robo 5052 0 (unused)
    switch-core 4928 0 [switch-robo]
    diag 28032 0 (unused)

    Please help??
    Thanks
    Assasin

  12. simon says:

    Assasin, it looks as if there is some USB problem. Either your card has a broken USB chip, or there is a software error. Let’s assume the latter.. :)

    I’ve run into USB problems sometimes that had to do with OHCI vs EHCI vs UHCI. Could you try unload the usb-ohci driver and load ‘uhci’ instead? or some ehci* driver. Look in /lib/modules/ for the available drivers.

    Good luck…

    /Simon

  13. Keith says:

    For those needing to authenticate themselves to an APN / private APN:
    add the following lines (obviously with your own username and password) to your /etc/ppp/options file:

    user myusername
    password mypassword

    and possibly add these too:
    defaultroute
    usepeerdns

    to watch the log, uncomment the “debug” line and use the command
    logread -f &
    to do the equivalent of a tail -f /var/log/messages in linux. (Or just use logread on its own to see the most recent log messages)

  14. anon says:

    Another way you can improve performance is by adjusting..

    the ammount of address your router can handle.
    which explains here.
    link

    You can also set your dns settings to a more better server…

    which a list can be found here.
    link

  15. Oussy says:

    Thanks for the easy instructions, could you explain how to install the Telstra MF332 Card, is there anything special about installing different cards.

  16. simon says:

    Hi Oussy. As long as the card simulates serial ports over USB, there is no difference between different card. And as far as I know, all 3G modems for PCs out there simulates serial ports over USB. So any card should work with OpenWRT.

  17. John says:

    To use the WRT54G3G as a hotspot with billing, you can use CoovaAP which is based on OpenWRT with a company http://www.hotspotsystem.com .

  18. vanity says:

    Hi Simon, unlike all of you guys, i’m quite oblivious to all this tech/programming stuff so i hope you will be patient while i use layman terms to describe my situation. thanks in advance and here goes!:

    i was given a Linksys WRT54G3G v1.1 router and an Option GX0201 datacard by a friend. before he handed this gadgets to me, we were able to surf the Net wireless-ly on a Singapore’s mobile broadband provider on the same router and datacard, however now i’m in Australia and i tried to replace sim cards in the data card and tried to surf the internet but to no avail. the pink/purple led on the data card keeps blinking.

    with this if i were to follow your summer house howto super closely, can i achieve wireless internet connectivity? otherwise, what can you recommend?

  19. simon says:

    Hi Vanity. You could follow my howto, but if you aren’t at all familiar with linux I think it will be challenging. However it sounds as if your problem is a simple one such as the wrong pin, the wrong APN setting, or something similar. So double check all the settings for the 3G card in your router. If you change SIM card you will need to configure the new pin code and the new APN address. You get the APN address from your SIM card provider if you don’t know it (it is typically something like ‘internet.foocorp.com’).

    Also, try using the PCMCIA card with the new SIM card in a normal laptop first.

    Good luck,
    Simon

  20. Vinyols says:

    This is another theme and similar uitility.

    PLease help-me cheeck this:

    http://forum.openwrt.org/viewtopic.php?id=20320

  21. Angus says:

    I successfully followed this on my wrt54g3g but i now want to put it on my wrt54g3gv2 (has 3 usb ports in addition to pcmcia).
    It seems reluctant to accept any firmware i throw at it (with modified headers to 3G2V).

    Firmware i’ve tried:

    * Openwrt kamikaze brcm2.4 8.09
    * Openwrt kamikaze brcm47xx 8.09
    * Openwrt whiterussian brcm2.4
    * Openwrt whiterussian brcm47xx
    * DD-WRT v24
    * DD-WRT v24sp1

    The router will complete the update status with all of these firmware’s and then during reboot it starts flashing all it’s lights and will copy a backup image from flash2 to flash1 (the unit has an 8mb parallel flash with 32mb ram).

    Does dropbear require any busybox configuration or any configuration to start on boot or once compiled and installed will it start automatically?

    Upon looking through some of the web interface files, I noticed that the web interface folder is called cisco_wrt350n_m (maybe the _m means mobile?) so i thought it was maybe a variant of the wrt350n but branded as a wrt54g. Reading up on the wrt350n, apparantly you have to flash the unit with dd-wrt and then openwrt, which again didn’t help me.
    The unit definately has a broadcom board because of the dedicated broadcom folders in the gpl code.

    Setting the router up once i have the firmware on there isn’t a problem following this guide, it’s just getting the firmware on there in the first place!

    Help will be greatly appreciated!!!

Leave a Reply


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.