• Home
  • About
  • Metaphysical Farms
  • Contact

Openwrt (kamikaze)/Asterisk on a Netgear WGT634U

Lest Blood Be Shed

Cultivating community so that we may join in our human community in a way that is sustainable and filled with love for all creation. More »

Openwrt (kamikaze)/Asterisk on a Netgear WGT634U August 9. 2007

The most common problem with the Linksys WRT GS running openwrt and asterisk is the size limitation. A major drawback is the lack of being able to save voicemail to the box itself. The Netgear WGT634U is the solution (with its phat usb interface). This entry will be a step-by-step install howto for putting kamikaze openwrt onto the netgear wgt643u. The openwrt install from the wiki is here

Openwrt

What you will need:



  • A computer with a serial/usb2serial interface (running a kermit like program)

  • A serial to 4 pin serial cable (I snip off the end of a samsung data cable and splice it onto a floppy power cable)

  • A Netgear WGT634U

  • small flathead screwdriver

  • tftp server

  • usb jump/flash drive


The Serial Cable


The first thing you need to do is get a hold of an old floppy power supply cable. Snip it from an old computer case or an extension cable you might have or buy a new one. (Seriously who uses floppies anymore?) You'll notice on the picture to the right I've labeled how we are going to use to cable on the pinouts to the serial terminal on the wgt634u (click the image for a larger view). Yellow is ground, black next to the yellow is RX, black next to the red is TX and the red is unused.


Once you've clipped and stripped the floppy power cable you'll need to find a cellphone serial data cable that you can "upgrade". I use the sony cellphone serial data cable.


Splice together the floppy power cable and the serial cable. On my sony data cable that would be connecting the yellow/GRD to black, first-black/RX to white, and second-black/TX to blue. This leaves the red unused. You can just snip the red competely away. If you are using a regular serial cable the pin-outs are: Pin 5 connects to yellow/GND, Pin 2 connect to first-black/RX, Pin 3 connects to second-black/TX leaving all other pins disconnected. If you want to get fancy you can add a Max3232 RS232 Serial to 3.3v level converter

Floppy Power Cable

Serial 2 Floppy Connecton

Openwrt Kamikazi


The Image: You will want to either build your own kamikaze subversion of openwrt or you can use this (2007-08-06) pre-compiled image. Once you have your image, upload it to your tftp server. Double check the permissions so that the file is available.

The Netgear:Unscrew the four screws on the bottom of the netgear and remove the plastic coverings. Connect your modified serial cable to the netgear and to your computer. Connect the wan port of the netgear to your network (or your tftp server).


terminal settings:
With kermit:


  • set line /dev/ttyS0

  • set carrier-watch off

  • set speed 115200


Connect to the device. Hold ctrl-c in your terminal window as you plug the netgear. This will bring up a prompt "CFE>" If you don't get a CFE> prompt but the router boots, unplug the netgear and try again.


The CFE Prompt: At the CFE> prompt type the following commands:

ifconfig eth0 -addr=ip_address_on_your_network -mask=your_network_mask
flash -noheader ip_of_your_tftp_server:openwrt-wgt643u-2.6-squashfs.bin flash0.os


The netgear will download the image and then sit at a "Programming..." prompt for some time. Once finished the CFE> prompt will return. Type 'reboot' Be patient! The first time the netgear boots with openwrt it takes anywhere from 5-10 minutes. So, after typing reboot walk away and go make a cup of green tea.


Configuration: I like to configure the router as a simple bridging access-point. By default the wireless card is disabled. This is what you need to do to turn the router into a bridge (including the wireless).
cd /etc/config
vi network
# add 4 to the vlan0 line
# change "4 5" to "" on the vlan1 line (don't remove this line
# it causes a kernel panic)
# change IP/netmask on the lan block
# comment-out the wan block (with #)
# save

vi wireless
# change the channel from 5 to 06
# comment out the option disable line (with #)
# change ssid to sjcnet
# save
cd /etc/rc.d
# edit or remove the S45firewall
# edit or remove the S50qos
rm S50telnet
rm S50httpd
passwd
# set the root password

reboot
Put the netgear back together.


You can now access your netgear with the ip address you gave it via ssh


Asterisk


To Be Continued...

| Top Exits (0)

Vote for articles fresher than 14 days!
Current karma: -3, 19 vote(s) 3378 hits
David  Thursday, August 9. 2007 @ 16:34
6 Comments Link to entry

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

I used the firmware and updated my WGT634U from original Netgear firmware (with a config that enabled that).

But after reboot it want take telnet. SSH gives me a login with username and password. But I have not set any password and I have tried with diferent default passwords...
#1 CHR57 on 2007-08-28 14:04 (Reply)
You will want to boot the machine up connected to the serial port. Once you are booted and logged in via the serial, you can change the password.
#1.1 David (Homepage) on 2007-08-28 17:37 (Reply)
Thanks for the posting above. It is very helpful

What model is the sony cellphone serial data cable for?? since I want to copy you exactly!!

I am color blind so I will need some help from some non technical people who will match your pictures so I can solder the connections.

Because of that it is easiest if I print out the pictures and use the exact same cables to match.

I bricked one box because of one mistake and I cannot afford to make more.

Thanks
Aloha
#2 kawika on 2008-01-26 11:52 (Reply)
Can I edit the /etc/config/network file by the serial connection?

Marc
#3 Marc on 2008-05-27 12:42 (Reply)
Just click enter when finish loading!
#4 Marc on 2008-05-29 09:13 (Reply)
http://rootmybox.org/634u
http//rootmybox.org/wiki
#5 whoami (Homepage) on 2008-06-25 09:14 (Reply)

Add Comment

Enclosing [B][/B] marks text as bold ([B]some words[/B]), underscore are made via [U]some words[/U], italics are made via [I]some words[/I], hyper-links are made via [LINK]URI[/LINK].

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 
 
 

Google Ads

YouTube Videos

Loading...

I'm currently reading

Discipline & Punish: The Birth of the PrisonMichel Foucault. Discipline & Punish: The Birth of the Prison.

The First Urban Christians: The Social World of the Apostle PaulWayne A. Meeks. The First Urban Christians: The Social World of the Apostle Paul.

The History of Sexuality: The Care of the SelfMichel Foucault. The History of Sexuality Vol. 3: The Care of the Self.

Book of Common WorshipPresbyterian Church (USA). Book of Common Worship.

Places of Interest

Archives

July 2008
June 2008
May 2008
Recent...
Older...

Creative Commons

Creative Commons License - Some Rights Reserved
Original content in this work is licensed under a Creative Commons License

Syndicate This Blog

XML RSS 2.0 feed
ATOM/XML ATOM 0.3 feed
ATOM/XML ATOM 1.0 feed
XML RSS 2.0 Comments
XML OPML 1.0 feed

© David DeLauro | Impressum Design by ceejay | Powered by Serendipity | Login