forked from freifunk-franken/firmware
Drop bsps for dir300b and wrt54g
They aren't supported anymore and nobody taking care for these machines. Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
parent
d1bcab12b6
commit
7b1c814071
|
@ -1,36 +0,0 @@
|
||||||
|
|
||||||
machine=dir300b_adhoc
|
|
||||||
target=$builddir/$machine
|
|
||||||
|
|
||||||
board_prepare() {
|
|
||||||
echo "nothing todo" > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
board_prebuild() {
|
|
||||||
cp ./bsp/$machine/.config $target/.config
|
|
||||||
cp -r ./bsp/$machine/root_file_system/* $target/files/
|
|
||||||
}
|
|
||||||
|
|
||||||
board_postbuild() {
|
|
||||||
#build webflash image
|
|
||||||
|
|
||||||
rm -rf ./bin/openwrt-$machine-squashfs-webflash.bin
|
|
||||||
|
|
||||||
./flash_tools/dir300b-flash/v2image -v \
|
|
||||||
-i $target/bin/ramips/openwrt-ramips-rt305x-dir-300-b1-squashfs-sysupgrade.bin \
|
|
||||||
-o bin/openwrt-$machine-squashfs-webflash.bin \
|
|
||||||
-d /dev/mtdblock/2 -s wrgn23_dlwbr_dir300b
|
|
||||||
}
|
|
||||||
|
|
||||||
board_flash() {
|
|
||||||
echo "* Press RESET on your router and power it on."
|
|
||||||
echo "* Now connect it to your Computer using the WAN interface"
|
|
||||||
echo "* Configure your Computer to use 192.168.0.2 as IP-Adress"
|
|
||||||
echo "* Go to http://192.168.0.1 and flash your router."
|
|
||||||
echo "* Happy Freifunk'ing! :-)"
|
|
||||||
}
|
|
||||||
|
|
||||||
board_clean() {
|
|
||||||
/bin/rm -rf $target bin/*$machine*
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
|
|
||||||
machine=dir300b_ap
|
|
||||||
target=$builddir/$machine
|
|
||||||
|
|
||||||
board_prepare() {
|
|
||||||
echo "nothing todo" > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
board_prebuild() {
|
|
||||||
cp ./bsp/$machine/.config $target/.config
|
|
||||||
cp -r ./bsp/$machine/root_file_system/* $target/files/
|
|
||||||
}
|
|
||||||
|
|
||||||
board_postbuild() {
|
|
||||||
#build webflash image
|
|
||||||
|
|
||||||
rm -rf ./bin/openwrt-$machine-squashfs-webflash.bin
|
|
||||||
|
|
||||||
./flash_tools/dir300b-flash/v2image -v \
|
|
||||||
-i $target/bin/ramips/openwrt-ramips-rt305x-dir-300-b1-squashfs-sysupgrade.bin \
|
|
||||||
-o bin/openwrt-$machine-squashfs-webflash.bin \
|
|
||||||
-d /dev/mtdblock/2 -s wrgn23_dlwbr_dir300b
|
|
||||||
}
|
|
||||||
|
|
||||||
board_flash() {
|
|
||||||
echo "* Press RESET on your router and power it on."
|
|
||||||
echo "* Now connect it to your Computer using the WAN interface"
|
|
||||||
echo "* Configure your Computer to use 192.168.0.2 as IP-Adress"
|
|
||||||
echo "* Go to http://192.168.0.1 and flash your router."
|
|
||||||
echo "* Happy Freifunk'ing! :-)"
|
|
||||||
}
|
|
||||||
|
|
||||||
board_clean() {
|
|
||||||
/bin/rm -rf $target bin/*$machine*
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
machine=wrt54g_adhoc
|
|
||||||
target=$builddir/$machine
|
|
||||||
|
|
||||||
board_prepare() {
|
|
||||||
echo "nothing todo" > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
board_prebuild() {
|
|
||||||
cp ./bsp/$machine/.config $target/.config
|
|
||||||
cp -r ./bsp/$machine/root_file_system/* $target/files/
|
|
||||||
}
|
|
||||||
|
|
||||||
board_postbuild() {
|
|
||||||
cp $target/bin/brcm47xx/openwrt-wrt54g-squashfs.bin ./bin/openwrt-$machine-squashfs.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
board_flash() {
|
|
||||||
echo "nothing implemented"
|
|
||||||
}
|
|
||||||
|
|
||||||
board_clean() {
|
|
||||||
/bin/rm -rf $target bin/*$machine*
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
machine=wrt54g_ap
|
|
||||||
target=$builddir/$machine
|
|
||||||
|
|
||||||
board_prepare() {
|
|
||||||
echo "nothing todo" > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
board_prebuild() {
|
|
||||||
cp ./bsp/$machine/.config $target/.config
|
|
||||||
cp -r ./bsp/$machine/root_file_system/* $target/files/
|
|
||||||
}
|
|
||||||
|
|
||||||
board_postbuild() {
|
|
||||||
cp $target/bin/brcm47xx/openwrt-wrt54g-squashfs.bin ./bin/openwrt-$machine-squashfs.bin
|
|
||||||
}
|
|
||||||
|
|
||||||
board_flash() {
|
|
||||||
echo "nothing implemented"
|
|
||||||
}
|
|
||||||
|
|
||||||
board_clean() {
|
|
||||||
/bin/rm -rf $target bin/*$machine*
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +0,0 @@
|
||||||
config 'mesh' 'bat0'
|
|
||||||
option 'interfaces' 'wlan0'
|
|
||||||
option 'orig_interval'
|
|
||||||
option 'log_level'
|
|
||||||
option 'aggregated_ogms'
|
|
||||||
option 'bonding'
|
|
||||||
option 'fragmentation'
|
|
||||||
option 'vis_mode'
|
|
|
@ -1,21 +0,0 @@
|
||||||
|
|
||||||
config 'interface' 'loopback'
|
|
||||||
option 'ifname' 'lo'
|
|
||||||
option 'proto' 'static'
|
|
||||||
option 'ipaddr' '127.0.0.1'
|
|
||||||
option 'netmask' '255.0.0.0'
|
|
||||||
|
|
||||||
config 'interface' 'wlanmesh'
|
|
||||||
option 'ifname' 'wlan0'
|
|
||||||
option 'mtu' '1527'
|
|
||||||
|
|
||||||
|
|
||||||
config 'interface' 'mesh'
|
|
||||||
option 'type' 'bridge'
|
|
||||||
option 'ifname' 'eth0.1 bat0 tap0'
|
|
||||||
option 'stp' '1'
|
|
||||||
|
|
||||||
config 'interface' 'wan'
|
|
||||||
option 'ifname' 'eth0.2'
|
|
||||||
option 'proto' 'dhcp'
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
config wifi-device radio0
|
|
||||||
option type mac80211
|
|
||||||
option channel 6
|
|
||||||
option macaddr 10:00:00:00:71:07
|
|
||||||
option hwmode 11ng
|
|
||||||
option htmode HT20
|
|
||||||
list ht_capab GF
|
|
||||||
list ht_capab SHORT-GI-20
|
|
||||||
list ht_capab SHORT-GI-40
|
|
||||||
list ht_capab TX-STBC
|
|
||||||
list ht_capab RX-STBC1
|
|
||||||
|
|
||||||
config 'wifi-iface'
|
|
||||||
option 'device' 'radio0'
|
|
||||||
option 'mode' 'adhoc'
|
|
||||||
option 'ssid' 'batman.oldenburg.freifunk.net'
|
|
||||||
option 'bssid' '02:CA:FF:EE:BA:BE'
|
|
||||||
option 'encryption' 'none'
|
|
||||||
option 'hidden' '1'
|
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
# Put your custom commands here that should be executed once
|
|
||||||
# the system init finished. By default this file does nothing.
|
|
||||||
|
|
||||||
#Set Mac-Addr of wifi interface if not right
|
|
||||||
HARDWARE_MACADDR=`cat /sys/class/ieee80211/phy0/macaddress`
|
|
||||||
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
|
|
||||||
|
|
||||||
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
|
|
||||||
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
|
|
||||||
uci commit
|
|
||||||
reboot
|
|
||||||
fi
|
|
||||||
|
|
||||||
ifconfig br-mesh down
|
|
||||||
ifconfig br-mesh up
|
|
||||||
|
|
||||||
ifdown lan
|
|
||||||
ifup lan
|
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
|
||||||
|
|
||||||
chown root.root /etc/crontabs/root
|
|
||||||
/etc/init.d/cron stop
|
|
||||||
/etc/init.d/cron start
|
|
||||||
|
|
||||||
sh /etc/firewall.user
|
|
||||||
|
|
||||||
/etc/init.d/qos disable
|
|
||||||
/etc/init.d/qos stop
|
|
||||||
|
|
||||||
#busybox-httpd for crawldata
|
|
||||||
mkdir /tmp/crawldata
|
|
||||||
httpd -h /tmp/crawldata
|
|
||||||
|
|
||||||
sh /etc/configurator.sh
|
|
||||||
|
|
||||||
exit 0
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +0,0 @@
|
||||||
config 'mesh' 'bat0'
|
|
||||||
option 'interfaces'
|
|
||||||
option 'orig_interval'
|
|
||||||
option 'log_level'
|
|
||||||
option 'aggregated_ogms'
|
|
||||||
option 'bonding'
|
|
||||||
option 'fragmentation'
|
|
||||||
option 'vis_mode'
|
|
|
@ -1,18 +0,0 @@
|
||||||
|
|
||||||
config 'interface' 'loopback'
|
|
||||||
option 'ifname' 'lo'
|
|
||||||
option 'proto' 'static'
|
|
||||||
option 'ipaddr' '127.0.0.1'
|
|
||||||
option 'netmask' '255.0.0.0'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
config 'interface' 'mesh'
|
|
||||||
option 'type' 'bridge'
|
|
||||||
option 'ifname' 'wlan0 tap0'
|
|
||||||
option 'stp' '1'
|
|
||||||
|
|
||||||
config 'interface' 'wan'
|
|
||||||
option 'ifname' 'eth0.2'
|
|
||||||
option 'proto' 'dhcp'
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
config wifi-device radio0
|
|
||||||
option type mac80211
|
|
||||||
option channel 6
|
|
||||||
option macaddr 10:00:00:00:71:07
|
|
||||||
option hwmode 11ng
|
|
||||||
option htmode HT20
|
|
||||||
list ht_capab GF
|
|
||||||
list ht_capab SHORT-GI-20
|
|
||||||
list ht_capab SHORT-GI-40
|
|
||||||
list ht_capab TX-STBC
|
|
||||||
list ht_capab RX-STBC1
|
|
||||||
|
|
||||||
|
|
||||||
config 'wifi-iface'
|
|
||||||
option 'device' 'radio0'
|
|
||||||
option 'mode' 'ap'
|
|
||||||
option 'ssid' 'oldenburg.freifunk.net'
|
|
||||||
option 'encryption' 'none'
|
|
|
@ -1,38 +0,0 @@
|
||||||
# Put your custom commands here that should be executed once
|
|
||||||
# the system init finished. By default this file does nothing.
|
|
||||||
|
|
||||||
#Set Mac-Addr of wifi interface if not right
|
|
||||||
HARDWARE_MACADDR=`cat /sys/class/ieee80211/phy0/macaddress`
|
|
||||||
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
|
|
||||||
|
|
||||||
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
|
|
||||||
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
|
|
||||||
uci commit
|
|
||||||
reboot
|
|
||||||
fi
|
|
||||||
|
|
||||||
ifconfig br-mesh down
|
|
||||||
ifconfig br-mesh up
|
|
||||||
|
|
||||||
ifdown lan
|
|
||||||
ifup lan
|
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
|
||||||
|
|
||||||
chown root.root /etc/crontabs/root
|
|
||||||
/etc/init.d/cron stop
|
|
||||||
/etc/init.d/cron start
|
|
||||||
|
|
||||||
sh /etc/firewall.user
|
|
||||||
|
|
||||||
/etc/init.d/qos disable
|
|
||||||
/etc/init.d/qos stop
|
|
||||||
|
|
||||||
#busybox-httpd for crawldata
|
|
||||||
mkdir /tmp/crawldata
|
|
||||||
httpd -h /tmp/crawldata
|
|
||||||
|
|
||||||
sh /etc/configurator.sh
|
|
||||||
|
|
||||||
exit 0
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +0,0 @@
|
||||||
|
|
||||||
config 'mesh' 'bat0'
|
|
||||||
option 'interfaces' 'wlan0'
|
|
||||||
option 'orig_interval'
|
|
||||||
option 'log_level'
|
|
||||||
option 'aggregated_ogms'
|
|
||||||
option 'bonding'
|
|
||||||
option 'fragmentation'
|
|
||||||
option 'vis_mode'
|
|
|
@ -1,41 +0,0 @@
|
||||||
#### VLAN configuration
|
|
||||||
config switch eth0
|
|
||||||
option enable 1
|
|
||||||
|
|
||||||
config switch_vlan eth0_0
|
|
||||||
option device "eth0"
|
|
||||||
option vlan 0
|
|
||||||
option ports "1 2 3 4 5"
|
|
||||||
|
|
||||||
config switch_vlan eth0_1
|
|
||||||
option device "eth0"
|
|
||||||
option vlan 1
|
|
||||||
option ports "0 5"
|
|
||||||
|
|
||||||
#### Loopback configuration
|
|
||||||
config interface loopback
|
|
||||||
option ifname "lo"
|
|
||||||
option proto static
|
|
||||||
option ipaddr 127.0.0.1
|
|
||||||
option netmask 255.0.0.0
|
|
||||||
|
|
||||||
#### LAN configuration
|
|
||||||
config interface lan
|
|
||||||
option type bridge
|
|
||||||
option ifname "eth0.0"
|
|
||||||
option proto static
|
|
||||||
option ipaddr 192.168.1.1
|
|
||||||
option netmask 255.255.255.0
|
|
||||||
|
|
||||||
|
|
||||||
#### WAN configuration
|
|
||||||
config interface wan
|
|
||||||
option ifname "eth0.1"
|
|
||||||
option proto dhcp
|
|
||||||
|
|
||||||
config interface wlan0
|
|
||||||
option mtu 1528
|
|
||||||
|
|
||||||
config interface mesh
|
|
||||||
option type bridge
|
|
||||||
option ifname "bat0 tap0"
|
|
|
@ -1,16 +0,0 @@
|
||||||
config wifi-device radio0
|
|
||||||
option type mac80211
|
|
||||||
option channel 6
|
|
||||||
option macaddr 00:12:17:cc:ef:0d
|
|
||||||
option hwmode 11g
|
|
||||||
|
|
||||||
# REMOVE THIS LINE TO ENABLE WIFI:
|
|
||||||
option disabled 0
|
|
||||||
|
|
||||||
config wifi-iface
|
|
||||||
option device radio0
|
|
||||||
option network wlan0
|
|
||||||
option mode adhoc
|
|
||||||
option ssid batman.oldenburg.freifunk.net
|
|
||||||
option encryption none
|
|
||||||
option bssid 02:CA:FF:EE:BA:BE
|
|
|
@ -1,22 +0,0 @@
|
||||||
*/5 * * * * killall klogd
|
|
||||||
*/5 * * * * killall syslogd
|
|
||||||
*/5 * * * * killall logger
|
|
||||||
|
|
||||||
*/5 * * * * sh /etc/tincstart.sh
|
|
||||||
*/5 * * * * sh /etc/nodewatcher.sh
|
|
||||||
*/5 * * * * sh /etc/configurator.sh
|
|
||||||
0 * * * * sh /etc/configurator.sh sync_hostname
|
|
||||||
|
|
||||||
15 01 * * * rdate -s time.fu-berlin.de > /dev/null
|
|
||||||
|
|
||||||
#Enable zapp script if you are running a gateway
|
|
||||||
#*/1 * * * * /etc/init.d/zapp
|
|
||||||
|
|
||||||
*/5 * * * * killall -HUP dnsmasq
|
|
||||||
#* * * * * /usr/sbin/ff_olsr_test_gw
|
|
||||||
#*/5 * * * * /usr/sbin/ff_olsr_watchdog
|
|
||||||
#0 */4 * * * /usr/sbin/ff_rdate
|
|
||||||
#17 * * * * /usr/sbin/ff_mapupdate
|
|
||||||
|
|
||||||
#Reboot wrt54g_adhoc every 5 days at 04:05
|
|
||||||
5 4 */5 * * reboot
|
|
|
@ -1,38 +0,0 @@
|
||||||
# Put your custom commands here that should be executed once
|
|
||||||
# the system init finished. By default this file does nothing.
|
|
||||||
|
|
||||||
#set fixed mac address that is 1 lower than eth0 mac on br-mesh so that the ipv6 addres does not change after every reboot
|
|
||||||
#This idea is stolen from freifunk lübeck set_hostname.sh
|
|
||||||
MAC="`ip link show eth0 | grep "link/ether" | \
|
|
||||||
sed "s/^[ ]*//" | cut -d' ' -f2 | sed "s/://g" | \
|
|
||||||
tr 'a-z' 'A-Z'`"
|
|
||||||
MAC="`printf "%012X\n" $((0x$MAC - 0x01))`"
|
|
||||||
|
|
||||||
uci set network.mesh.macaddr=$MAC
|
|
||||||
uci commit
|
|
||||||
|
|
||||||
ifconfig br-mesh down
|
|
||||||
ifconfig br-mesh up
|
|
||||||
|
|
||||||
ifdown lan
|
|
||||||
ifup lan
|
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
|
||||||
|
|
||||||
chown root.root /etc/crontabs/root
|
|
||||||
/etc/init.d/cron stop
|
|
||||||
/etc/init.d/cron start
|
|
||||||
|
|
||||||
sh /etc/firewall.user
|
|
||||||
|
|
||||||
/etc/init.d/qos disable
|
|
||||||
/etc/init.d/qos stop
|
|
||||||
|
|
||||||
#busybox-httpd for crawldata
|
|
||||||
mkdir /tmp/crawldata
|
|
||||||
httpd -h /tmp/crawldata
|
|
||||||
|
|
||||||
sh /etc/configurator.sh
|
|
||||||
|
|
||||||
exit 0
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue