Differences between revisions 25 and 26
Revision 25 as of 2005-09-19 09:03:30
Size: 7104
Editor: dude
Comment: gpsd.mk + another retailer
Revision 26 as of 2005-09-27 10:31:03
Size: 7094
Editor: dude
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
  * 9-15-05 - Sold out / on back order. (they may be "restocking" soon. 2 of 3 refurbs I ordered arrived broken: bad flash and severed antenna coax. The bad flash unit is on its way back to the shelves! ;-) -- RussellSenior).   * 9-26-05 - In stock.
  *
(they may be "restocking" soon. 2 of 3 refurbs I ordered arrived broken: bad flash and severed antenna coax. The bad flash unit is on its way back to the shelves! ;-) -- RussellSenior).

Netgear WGT634U

http://netgear.com/images/products/large/wgt634u.jpg TableOfContents

Introduction

A Linux router with a 200MHz MIPS32-like core with Atheros wireless and USB host supported by [http://pdos.csail.mit.edu/roofnet/doku.php MIT's Roofnet] project.

Where to buy

Source

Netgear has the source available here: BR http://kbserver.netgear.com/kb_web_files/n101238.asp BR ftp://downloads.netgear.com/files/GPL/ BR

  • boa
  • bpalogin-2.0.2
  • bridge-utils-0.9.6.orig
  • broadcom-src
  • busybox-0.60.5
  • check-4.2
  • debianutils-2.6.1
  • dhcpcd
  • dnsmasq-1.18.orig
  • e2fsprogs-1.27
  • ez-ipupdate-3.0.11b8
  • ifupdown-0.6.4
  • iproute2
  • iptables-1.2.7a
  • linux-2.4.x
    • Kernel 2.4.20 is used.
  • linuxigd
  • mawk-1.3.3
  • mtd
  • net-tools-1.60
  • nfqueue
  • pptp
  • procmail-3.22
  • proftpd-1.2.5
  • quagga-0.96.5
  • rp-pppoe-3.3
  • samba-1.9.16
  • sed-2.05
  • smtpclient-1.0.0
  • snarf
  • sysklogd-1.4.1
  • sysvinit-2.84.orig
  • tinylogin-1.2
  • uClibc
  • upnpsdk
  • wireless_tools.25

For this source code release, two toolchains are required:

1. A MIPS little-endian toolchain. For example, hndtools-mipsel-linux-3.0

  • from Broadcom Corporation. This toolchain is used to compile uClibc and Linux kernel.

2. A MIPS little-endian toolchain compiled with C++ and uClibc support.

  • This toolchain is used to compile linuxigd. CPP_STAGING_DIR in Makefile must be modified to indicate the exact path of this toolchain.

Then, a "make" should suffice to build all GPL components of WGT634U.

buildroot / OpenWGT

gpsd

gpsd.mk:

#############################################################
#
# gpsd
#
#############################################################
GPSD_SOURCE:=gpsd-2.9.tar.gz
GPSD_SITE:=http://download.berlios.de/gpsd
GPSD_DIR:=$(BUILD_DIR)/gpsd-2.9
GPSD_CAT:=zcat
GPSD_BINARY:=gpsd
GPSD_TARGET_BINARY:=bin/gpsd

$(DL_DIR)/$(GPSD_SOURCE):
         $(WGET) -P $(DL_DIR) $(GPSD_SITE)/$(GPSD_SOURCE)

gpsd-source: $(DL_DIR)/$(GPSD_SOURCE)

$(GPSD_DIR)/configure: $(DL_DIR)/$(GPSD_SOURCE)
        $(GPSD_CAT) $(DL_DIR)/$(GPSD_SOURCE) | tar -C $(BUILD_DIR) -xf -
        $(SOURCE_DIR)/patch-kernel.sh $(GPSD_DIR) $(SOURCE_DIR) gpsd-*.patch

$(GPSD_DIR)/Makefile: $(GPSD_DIR)/configure
        (cd $(GPSD_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                LDFLAGS="-lm" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --disable-fv18 \
                --disable-tripmate \
                --disable-earthmate \
                --disable-shared \
                --enable-static \
                --without-x \
                $(DISABLE_NLS) \
        );

$(GPSD_DIR)/$(GPSD_BINARY): $(GPSD_DIR)/Makefile
        $(MAKE) CC=$(TARGET_CC) -C $(GPSD_DIR)

$(TARGET_DIR)/$(GPSD_TARGET_BINARY): $(GPSD_DIR)/$(GPSD_BINARY)
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GPSD_DIR) install
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
                $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc

gpsd: uclibc $(TARGET_DIR)/$(GPSD_TARGET_BINARY)

gpsd-clean:
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GPSD_DIR) uninstall
        -$(MAKE) -C $(GPSD_DIR) clean

gpsd-dirclean:
        rm -rf $(GPSD_DIR)

USB

This device has a USB2.0 port.

CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI=m
CONFIG_USB_STORAGE=m

By default, it wants to mount a usb mass_storage device (/dev/sda) on /share/partition1

As you know, this allows one to add an external HDD/USB keychain, etc. [:GPS], BlueTooth?

Serial

There are actually 2 serial headers on the board. For more information on adding a port, see http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort

CONFIG_CMDLINE="root=/dev/ram console=ttyS1,115200"

http://www.personaltelco.net/albums/NetgearWGT634U/dscn3058.thumb.jpg BR

I simply added a serial cable to the outer-most header and booted the device. The bootlog (firmware 1.0.0.11?) can be found [http://personaltelco.net/~jason/wgt634u_bootlog here]. Another log from the latest version which has a number of fixes, including the addition of [http://atheros.com/pt/atheros_XR_whitepaper.pdf Atheros XR] and AR(Addaptive Radio) is located [http://personaltelco.net/~jason/wgt634u_bootlog-1.4.1.9 here].

Battery Power

Measured battery usage: 0.38Amps @12VDC BR Input 12VDC. I've been testing a 12V 4 amp-hour sealed lead-calcium (leadacid) battery. After 20 hours of charging with a 12v 200mAmp charger, the wgt634u was connected to the battery.--DonPark

Time

Volts

9:29pm

12.8

NetgearWgt634u (last edited 2008-02-02 09:56:35 by JasonMcArthur)