bsp/ubnt-nano-m: Support for NanoStation-Loco-M2

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2015-01-18 22:05:52 +01:00
parent 3fe725e1a4
commit 1419a08d5d
3 changed files with 2707 additions and 0 deletions

25
bsp/board_ubnt-nano-m.bsp Normal file
View File

@ -0,0 +1,25 @@
machine=ubnt-nano-m
target=$builddir/$machine
board_prepare() {
echo "nothing todo" > /dev/null
}
board_prebuild() {
echo "nothing todo" > /dev/null
}
board_postbuild() {
cp $target/bin/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-factory.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin ./bin/
}
board_flash() {
echo "nothing implemented"
}
board_clean() {
/bin/rm -rf $target bin/*$machine*
}

2647
bsp/ubnt-nano-m/.config Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS=""
WAN_PORTS=""
BATMAN_PORTS=""
CLIENTIF="w2ap"
ETHMESHMAC=
ROUTERMAC=w2mesh
uci set network.$SWITCHDEV=interface
uci set network.$SWITCHDEV.ifname=$SWITCHDEV
uci set network.mesh.ifname="bat0"
################
## If you want to change the behavior of eth0, you can change it here.
## After that you have to reset the config with following commands.
#cp /rom/etc/sysctl.conf /etc/sysctl.conf
#cp /rom/etc/config/network /etc/config/network
#reboot
################
## Activate for WAN:
#echo "net.ipv6.conf.$WANDEV.accept_ra_defrtr = 1" >> /etc/sysctl.conf
#echo "net.ipv6.conf.$WANDEV.accept_ra_pinfo = 1" >> /etc/sysctl.conf
#echo "net.ipv6.conf.$WANDEV.autoconf = 1" >> /etc/sysctl.conf
#echo "net.ipv6.conf.$WANDEV.accept_ra_rtr_pref = 1" >> /etc/sysctl.conf
#uci set network.wan.ifname=$WANDEV
## Activate for BATMAN:
uci set network.ethmesh.ifname="$SWITCHDEV"
## Activate for Client:
#CLIENTIF="w2ap eth0"
#uci set network.mesh.ifname="bat0 $SWITCHDEV"