This document describes the tftp flashing process for CrySP's Buffalo WZR-HP-G300NH2 router. The router and switch are kept in the cabinet between the lab door and the lounge. If you plan to use the router to establish a wireless access point, you should first request permission from CSCF.
The OpenWRT image can be found here: http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
sudo ifconfig eth0 192.168.11.2
(the interface name (eth0) should be updated appropriately)
sudo arp -s 192.168.11.1 02:AA:BB:CC:DD:1A
Execute the following command, and then immediately plug the power cable into the router: tftp -m binary 192.168.11.1 -c put openwrt-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
I believe the network switch requirement is to ensure the network connection is online while configuring the static IP address and adding the ARP entry.
On campus there are MAC address filtering rules in place and usually routers are not allowed on the network. So in order to get around this, you can change the MAC address of the WAN interface to something that is already registered on the network, using the following commands:
The followings have great walk-throughs on how to cross compile on OpenWRT SDK:
http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300nh2
How to upgrade router firmware: http://wiki.openwrt.org/doc/howto/generic.sysupgrade