Index: build/bin/build =================================================================== --- build/bin/build (revision 233) +++ build/bin/build (working copy) @@ -41,6 +41,9 @@ 'dlink') ${SCRIPT_DIR}/build_dlink ${CFGNAME} || exit 1 ;; + 'airstation') + ${SCRIPT_DIR}/build_airstation ${CFGNAME} || exit 1 + ;; 'uboot') ${SCRIPT_DIR}/build_uboot ${CFGNAME} || exit 1 ;; Index: build/bin/build_airstation =================================================================== --- build/bin/build_airstation (revision 0) +++ build/bin/build_airstation (working copy) @@ -0,0 +1,36 @@ +#!/bin/sh + +SCRIPT_NAME="`basename $0`" +SCRIPT_DIR="`dirname $0`" +CUR_DIR="`pwd`" + +# suck in the per-device options +CFGNAME=$1 +shift +. ${SCRIPT_DIR}/../cfg/${CFGNAME} || exit 1 + +# include the config variable generation code +. ${SCRIPT_DIR}/../lib/cfg.sh || exit 1 + +# This builds a tplink system image from the given kernel and MFS. + +# lzma the kernel image +# Use the lzma from ports (/usr/local/bin/lzma) rather than the lzma +# from base, as EOS (end of stream) markers aren't allowed for uboot. + +/usr/local/bin/lzma e ${X_KERNEL} /tftpboot/kernel.${KERNCONF}.lzma || exit 1 + +# Create the firmware +mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C lzma \ + -a ${UBOOT_KERN_LOADADDR} -e ${UBOOT_KERN_STARTADDR} \ + -n "FreeBSD" -d /tftpboot/kernel.${KERNCONF}.lzma \ + /tftpboot/kernel.${KERNCONF}.lzma.uImage \ + || exit 1 + +( + printf "# Airstation Public Fmt1\0\0\0\0\0\0\0\0" + dd if=/tftpboot/kernel.${KERNCONF}.lzma.uImage bs=1048576 conv=sync; + dd if=${X_FSIMAGE}${X_FSIMAGE_SUFFIX} +) > /tftpboot/${CFGNAME}-tftp.bin + +exit 0 Property changes on: build/bin/build_airstation ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: build/cfg/wzr300hp =================================================================== --- build/cfg/wzr300hp (revision 0) +++ build/cfg/wzr300hp (working copy) @@ -0,0 +1,24 @@ +BUILDNAME=mipseb +TARGET=mips +TARGET_ARCH=mipseb +TARGET_CPUTYPE=mips32 +KERNCONF=WZR-300HP +LOCAL_DIRS="tools/tools/ath tools/tools/net80211/wlanstats tools/tools/net80211/wlanwatch" + +# The configuration load/save script needs to know the +# configuration partition name and location. +BIN_CFG_PARTITION="/dev/map/cfg" +BIN_CFG_SIZE="65536" + +# Modules need to be included +MFSROOT_INC_MODULES="YES" + +# Uboot stuff +UBOOT_ARCH="mips" +UBOOT_KERN_LOADADDR="0x80050000" +UBOOT_KERN_STARTADDR="0x80050100" + +# Make a ulzma image +X_FSIMAGE_CMD="mkulzma" +X_FSIMAGE_ARGS="-s 131072 -v" +X_FSIMAGE_SUFFIX=".ulzma"