WGT634U Tips & Tricks

From
Jump to navigation Jump to search

New Kernel Howto

OpenWgt offers the choice of a 2.6.12-rc3 for the linux 2.6 series. This kernel comes from the Tuxap project and is slightly outdated by now. Here's how to get a more recent kernel up and running:

  1. Get a new kernel (I'll go with 2.6.16) from kernel.org (I used linux-mips.org, but kernel.org should be fine) and unpack it.
  2. Get the patches for bcm947xx support from OpenWrt's Kamikaze branch at https://dev.openwrt.org/browser/trunk/openwrt/target/linux/brcm-2.6/patches/
  3. Apply the patches:
    $ cd linux-2.6.16
    $ patch -p1 < /path/to/001-bcm947xx.patch
    $ patch -p1 < /path/to/002-flash-map.patch
    $ patch -p1 < /path/to/003-bcm4710_cache_fixes.patch
    $ patch -p1 < /path/to/004-b44_bcm47xx_support.patch
  4. You may use the .config file from the old kernel (it's in /proc/config.gz), but there are some tweaks to do:
    1. Machine selection -> System type: Support for BCM947xx based boards
    2. Device drivers -> Network device support: [*] Ethernet (10 or 100Mbit), [*] EISA, VLB, PCI and on board controller -> <*> Broadcom 4400 ethernet support (EXPERIMENTAL)
    3. (Do not enable Device drivers -> Input device support -> Hardware I/O ports -> Serial I/O support -> i8042 PC Keyboard controller, the kernel would hang while probing for a keyboard controller.)
    4. Device drivers -> Character devices -> Serial drivers -> <*> 8250/16550 and compatible serial support, [*] Console on 8250/16550 and compatible serial port
    5. Attention: Kernel hacking -> Default kernel command string, the 2.6.12-rc3 needed console=ttyS1,115200 while the 2.6.16 needs console=ttyS0,115200 for the serial console. Also: /etc/inittab should be changed to give a shell on tts/0.
  5. Big change: OpenWgt used devfs for its device file system which has been deprecated for some time and is completely removed by now. For the time being you'll need to set up a static /dev directory on your root file system. Simply use tar to pack up a copy of your old /dev and untar it in your root. Note: your root will most likely be readonly, but the logger wants to create its /dev/log socket on startup. Thus you should create a symlink that links /dev/log to /tmp/log (for example).