forked from freifunk-franken/firmware
Restructuring firmware direkctories, work in progress!
This commit is contained in:
parent
4092c53558
commit
15387dddb0
3329
build_configuration/ramips_rt3050/.config
Normal file
3329
build_configuration/ramips_rt3050/.config
Normal file
File diff suppressed because it is too large
Load Diff
11
build_patches/dir300b/fix_network.patch
Normal file
11
build_patches/dir300b/fix_network.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: target/linux/ramips/base-files/etc/uci-defaults/network
|
||||
===================================================================
|
||||
--- target/linux/ramips/base-files/etc/uci-defaults/network (Revision 25878)
|
||||
+++ target/linux/ramips/base-files/etc/uci-defaults/network (Arbeitskopie)
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-RT305X=`cat /proc/cpuinfo | grep RT305`
|
||||
+RT305X=`cat /proc/cpuinfo | grep RT3.5`
|
||||
[ -z "${RT305X}" ] || {
|
||||
uci batch <<EOF
|
||||
set network.lan.ifname=eth0.1
|
9
build_patches/dir300b/fix_wifi_kernel.patch
Normal file
9
build_patches/dir300b/fix_wifi_kernel.patch
Normal file
|
@ -0,0 +1,9 @@
|
|||
Index: target/linux/ramips/rt305x/config-2.6.36
|
||||
===================================================================
|
||||
--- target/linux/ramips/rt305x/config-2.6.36 (Revision 25878)
|
||||
+++ target/linux/ramips/rt305x/config-2.6.36 (Arbeitskopie)
|
||||
@@ -101,3 +101,4 @@
|
||||
# CONFIG_USB_ARCH_HAS_OHCI is not set
|
||||
CONFIG_USB_SUPPORT=y
|
||||
CONFIG_ZONE_DMA_FLAG=0
|
||||
+CONFIG_RFKILL=y
|
68
build_patches/dir300b/fix_wifi_mac80211.patch
Normal file
68
build_patches/dir300b/fix_wifi_mac80211.patch
Normal file
|
@ -0,0 +1,68 @@
|
|||
Index: package/mac80211/patches/015-remove-rt2x00-options.patch
|
||||
===================================================================
|
||||
--- package/mac80211/patches/015-remove-rt2x00-options.patch (Revision 25878)
|
||||
+++ package/mac80211/patches/015-remove-rt2x00-options.patch (Arbeitskopie)
|
||||
@@ -1,20 +0,0 @@
|
||||
---- a/config.mk
|
||||
-+++ b/config.mk
|
||||
-@@ -304,7 +304,7 @@ CONFIG_RTL8180=m
|
||||
-
|
||||
- CONFIG_ADM8211=m
|
||||
-
|
||||
--CONFIG_RT2X00_LIB_PCI=m
|
||||
-+# CONFIG_RT2X00_LIB_PCI=m
|
||||
- CONFIG_RT2400PCI=m
|
||||
- CONFIG_RT2500PCI=m
|
||||
- ifdef CONFIG_CRC_CCITT
|
||||
-@@ -444,7 +444,7 @@ CONFIG_RT2800USB=m
|
||||
- # CONFIG_RT2800USB_RT35XX=y
|
||||
- CONFIG_RT2800USB_UNKNOWN=y
|
||||
- endif #CONFIG_CRC_CCITT
|
||||
--CONFIG_RT2X00_LIB_USB=m
|
||||
-+# CONFIG_RT2X00_LIB_USB=m
|
||||
- NEED_RT2X00=y
|
||||
- # RT73USB requires firmware
|
||||
- ifdef CONFIG_CRC_ITU_T
|
||||
Index: package/mac80211/patches/002-disable_rfkill.patch
|
||||
===================================================================
|
||||
--- package/mac80211/patches/002-disable_rfkill.patch (Revision 25878)
|
||||
+++ package/mac80211/patches/002-disable_rfkill.patch (Arbeitskopie)
|
||||
@@ -1,38 +0,0 @@
|
||||
---- a/config.mk
|
||||
-+++ b/config.mk
|
||||
-@@ -74,7 +74,7 @@ endif # build check
|
||||
- endif # kernel Makefile check
|
||||
-
|
||||
- # These both are needed by compat-wireless || compat-bluetooth so enable them
|
||||
-- CONFIG_COMPAT_RFKILL=y
|
||||
-+# CONFIG_COMPAT_RFKILL=y
|
||||
-
|
||||
- ifeq ($(CONFIG_MAC80211),y)
|
||||
- $(error "ERROR: you have MAC80211 compiled into the kernel, CONFIG_MAC80211=y, as such you cannot replace its mac80211 driver. You need this set to CONFIG_MAC80211=m. If you are using Fedora upgrade your kernel as later version should this set as modular. For further information on Fedora see https://bugzilla.redhat.com/show_bug.cgi?id=470143. If you are using your own kernel recompile it and make mac80211 modular")
|
||||
-@@ -623,10 +623,10 @@ endif #CONFIG_COMPAT_KERNEL_27
|
||||
- # We need the backported rfkill module on kernel < 2.6.31.
|
||||
- # In more recent kernel versions use the in kernel rfkill module.
|
||||
- ifdef CONFIG_COMPAT_KERNEL_31
|
||||
--CONFIG_RFKILL_BACKPORT=m
|
||||
-+# CONFIG_RFKILL_BACKPORT=m
|
||||
- ifdef CONFIG_LEDS_TRIGGERS
|
||||
--CONFIG_RFKILL_BACKPORT_LEDS=y
|
||||
-+# CONFIG_RFKILL_BACKPORT_LEDS=y
|
||||
- endif #CONFIG_LEDS_TRIGGERS
|
||||
--CONFIG_RFKILL_BACKPORT_INPUT=y
|
||||
-+# CONFIG_RFKILL_BACKPORT_INPUT=y
|
||||
- endif #CONFIG_COMPAT_KERNEL_31
|
||||
-
|
||||
---- a/include/linux/rfkill.h
|
||||
-+++ b/include/linux/rfkill.h
|
||||
-@@ -3,6 +3,10 @@
|
||||
-
|
||||
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))
|
||||
-
|
||||
-+#undef CONFIG_RFKILL
|
||||
-+#undef CONFIG_RFKILL_LEDS
|
||||
-+#undef CONFIG_RFKILL_MODULE
|
||||
-+
|
||||
- #include_next <linux/rfkill.h>
|
||||
-
|
||||
- #else
|
8
root_file_system/default/config/batman-adv
Normal file
8
root_file_system/default/config/batman-adv
Normal file
|
@ -0,0 +1,8 @@
|
|||
config 'mesh' 'bat0'
|
||||
option 'interfaces' 'ath1'
|
||||
option 'orig_interval'
|
||||
option 'log_level'
|
||||
option 'aggregated_ogms'
|
||||
option 'bonding'
|
||||
option 'fragmentation'
|
||||
option 'vis_mode'
|
33
root_file_system/default/config/dhcp
Normal file
33
root_file_system/default/config/dhcp
Normal file
|
@ -0,0 +1,33 @@
|
|||
config dnsmasq
|
||||
option domainneeded 1
|
||||
option boguspriv 1
|
||||
option filterwin2k '0' #enable for dial on demand
|
||||
option localise_queries 1
|
||||
option local '/lan/'
|
||||
option domain 'lan'
|
||||
option expandhosts 1
|
||||
option nonegcache 0
|
||||
option authoritative 0
|
||||
option readethers 1
|
||||
option leasefile '/tmp/dhcp.leases'
|
||||
option resolvfile '/tmp/resolv.conf.auto'
|
||||
#list server '/mycompany.local/1.2.3.4'
|
||||
#option nonwildcard 1
|
||||
#list interface br-lan
|
||||
#list notinterface lo
|
||||
|
||||
#config dhcp mesh
|
||||
# option interface mesh
|
||||
# option start X.10
|
||||
# option limit 100
|
||||
# option leasetime 6h
|
||||
|
||||
config dhcp lan
|
||||
option interface lan
|
||||
option start 100
|
||||
option limit 150
|
||||
option leasetime 12h
|
||||
|
||||
config dhcp wan
|
||||
option interface wan
|
||||
option ignore 1
|
4
root_file_system/default/config/dropbear
Normal file
4
root_file_system/default/config/dropbear
Normal file
|
@ -0,0 +1,4 @@
|
|||
config dropbear
|
||||
option PasswordAuth 'on'
|
||||
option Port '22'
|
||||
# option BannerFile '/etc/banner'
|
96
root_file_system/default/config/firewall
Normal file
96
root_file_system/default/config/firewall
Normal file
|
@ -0,0 +1,96 @@
|
|||
config defaults
|
||||
option syn_flood 1
|
||||
option input ACCEPT
|
||||
option output ACCEPT
|
||||
option forward REJECT
|
||||
|
||||
config zone
|
||||
option name lan
|
||||
option input ACCEPT
|
||||
option output ACCEPT
|
||||
option forward REJECT
|
||||
|
||||
config zone
|
||||
option name wan
|
||||
option input REJECT
|
||||
option output ACCEPT
|
||||
option forward REJECT
|
||||
option masq 1
|
||||
option mtu_fix 1
|
||||
|
||||
config forwarding
|
||||
option src lan
|
||||
option dest wan
|
||||
|
||||
# We need to accept udp packets on port 68,
|
||||
# see https://dev.openwrt.org/ticket/4108
|
||||
config rule
|
||||
option src wan
|
||||
option proto udp
|
||||
option dest_port 68
|
||||
option target ACCEPT
|
||||
|
||||
#Allow ping
|
||||
config rule
|
||||
option src wan
|
||||
option proto icmp
|
||||
option icmp_type echo-request
|
||||
option target ACCEPT
|
||||
|
||||
# include a file with users custom iptables rules
|
||||
config include
|
||||
option path /etc/firewall.user
|
||||
|
||||
|
||||
### EXAMPLE CONFIG SECTIONS
|
||||
# do not allow a specific ip to access wan
|
||||
#config rule
|
||||
# option src lan
|
||||
# option src_ip 192.168.45.2
|
||||
# option dest wan
|
||||
# option proto tcp
|
||||
# option target REJECT
|
||||
|
||||
# block a specific mac on wan
|
||||
#config rule
|
||||
# option dest wan
|
||||
# option src_mac 00:11:22:33:44:66
|
||||
# option target REJECT
|
||||
|
||||
# block incoming ICMP traffic on a zone
|
||||
#config rule
|
||||
# option src lan
|
||||
# option proto ICMP
|
||||
# option target DROP
|
||||
|
||||
# port redirect port coming in on wan to lan
|
||||
#config redirect
|
||||
# option src wan
|
||||
# option src_dport 80
|
||||
# option dest lan
|
||||
# option dest_ip 192.168.16.235
|
||||
# option dest_port 80
|
||||
# option proto tcp
|
||||
|
||||
|
||||
### FULL CONFIG SECTIONS
|
||||
#config rule
|
||||
# option src lan
|
||||
# option src_ip 192.168.45.2
|
||||
# option src_mac 00:11:22:33:44:55
|
||||
# option src_port 80
|
||||
# option dest wan
|
||||
# option dest_ip 194.25.2.129
|
||||
# option dest_port 120
|
||||
# option proto tcp
|
||||
# option target REJECT
|
||||
|
||||
#config redirect
|
||||
# option src lan
|
||||
# option src_ip 192.168.45.2
|
||||
# option src_mac 00:11:22:33:44:55
|
||||
# option src_port 1024
|
||||
# option src_dport 80
|
||||
# option dest_ip 194.25.2.129
|
||||
# option dest_port 120
|
||||
# option proto tcp
|
37
root_file_system/default/config/network
Normal file
37
root_file_system/default/config/network
Normal file
|
@ -0,0 +1,37 @@
|
|||
config 'interface' 'loopback'
|
||||
option 'ifname' 'lo'
|
||||
option 'proto' 'static'
|
||||
option 'ipaddr' '127.0.0.1'
|
||||
option 'netmask' '255.0.0.0'
|
||||
|
||||
#config 'interface' 'lan'
|
||||
# option 'proto' 'dhcp'
|
||||
# option 'ifname' 'eth0.1'
|
||||
|
||||
config 'interface' 'wlanmesch'
|
||||
option 'ifname' 'ath1'
|
||||
option 'mtu' '1527'
|
||||
|
||||
config 'interface' 'mesh'
|
||||
option 'type' 'bridge'
|
||||
option 'ifname' 'eth0.1 ath0 bat0 tap0'
|
||||
option 'stp' '1'
|
||||
|
||||
config 'switch' 'eth0'
|
||||
option 'name' 'eth0'
|
||||
option 'reset' '1'
|
||||
option 'enable_vlan' '1'
|
||||
|
||||
config 'switch_vlan' 'eth0_1'
|
||||
option 'device' 'eth0'
|
||||
option 'vlan' '1'
|
||||
option 'ports' '0 1 2 3 5t'
|
||||
|
||||
config 'switch_vlan' 'eth0_2'
|
||||
option 'device' 'eth0'
|
||||
option 'vlan' '2'
|
||||
option 'ports' '4 5t'
|
||||
|
||||
config 'interface' 'wan'
|
||||
option 'ifname' 'eth0.2'
|
||||
option 'proto' 'dhcp'
|
24
root_file_system/default/config/nodewatcher
Normal file
24
root_file_system/default/config/nodewatcher
Normal file
|
@ -0,0 +1,24 @@
|
|||
config 'script'
|
||||
option 'version' '15'
|
||||
option 'error_level' '0'
|
||||
option 'logfile' '/var/log/nodewatcher.log'
|
||||
|
||||
config 'api'
|
||||
option 'ipv4_address' '1'
|
||||
option 'ipv6_interface' 'br-mesh'
|
||||
option 'ipv6_address' 'fe80::201:2ff:fe03:405'
|
||||
|
||||
config 'update'
|
||||
option 'autoupdate' '1'
|
||||
|
||||
config 'crawl'
|
||||
option 'method' 'hash'
|
||||
option 'nickname' '1'
|
||||
option 'password' '1'
|
||||
option 'router_id' '1'
|
||||
option 'update_hash' '1'
|
||||
option 'login_string' '1'
|
||||
|
||||
config 'network'
|
||||
option 'mesh-interface' 'br-mesh'
|
||||
option 'client-interfaces' 'ath0'
|
86
root_file_system/default/config/qos
Normal file
86
root_file_system/default/config/qos
Normal file
|
@ -0,0 +1,86 @@
|
|||
# QoS configuration for OpenWrt
|
||||
|
||||
# INTERFACES:
|
||||
config interface wan
|
||||
option classgroup "Default"
|
||||
option enabled 1
|
||||
option overhead 1
|
||||
option upload 128
|
||||
option download 1024
|
||||
|
||||
# RULES:
|
||||
config classify
|
||||
option target "Bulk"
|
||||
option layer7 "edonkey"
|
||||
config classify
|
||||
option target "Bulk"
|
||||
option layer7 "bittorrent"
|
||||
config classify
|
||||
option target "Priority"
|
||||
option ports "22,53"
|
||||
config classify
|
||||
option target "Normal"
|
||||
option proto "tcp"
|
||||
option ports "20,21,25,80,110,443,993,995"
|
||||
config classify
|
||||
option target "Express"
|
||||
option ports "5190"
|
||||
config default
|
||||
option target "Express"
|
||||
option proto "udp"
|
||||
option pktsize "-500"
|
||||
config reclassify
|
||||
option target "Priority"
|
||||
option proto "icmp"
|
||||
config default
|
||||
option target "Bulk"
|
||||
option portrange "1024-65535"
|
||||
config reclassify
|
||||
option target "Priority"
|
||||
option proto "tcp"
|
||||
option pktsize "-128"
|
||||
option mark "!Bulk"
|
||||
option tcpflags "SYN"
|
||||
config reclassify
|
||||
option target "Priority"
|
||||
option proto "tcp"
|
||||
option pktsize "-128"
|
||||
option mark "!Bulk"
|
||||
option tcpflags "ACK"
|
||||
|
||||
|
||||
# Don't change the stuff below unless you
|
||||
# really know what it means :)
|
||||
|
||||
config classgroup "Default"
|
||||
option classes "Priority Express Normal Bulk"
|
||||
option default "Normal"
|
||||
|
||||
|
||||
config class "Priority"
|
||||
option packetsize 400
|
||||
option maxsize 400
|
||||
option avgrate 10
|
||||
option priority 20
|
||||
config class "Priority_down"
|
||||
option packetsize 1000
|
||||
option avgrate 10
|
||||
|
||||
|
||||
config class "Express"
|
||||
option packetsize 1000
|
||||
option maxsize 800
|
||||
option avgrate 50
|
||||
option priority 10
|
||||
|
||||
config class "Normal"
|
||||
option packetsize 1500
|
||||
option packetdelay 100
|
||||
option avgrate 10
|
||||
option priority 5
|
||||
config class "Normal_down"
|
||||
option avgrate 20
|
||||
|
||||
config class "Bulk"
|
||||
option avgrate 1
|
||||
option packetdelay 200
|
3
root_file_system/default/config/system
Normal file
3
root_file_system/default/config/system
Normal file
|
@ -0,0 +1,3 @@
|
|||
config system
|
||||
option hostname OpenWrt
|
||||
option timezone "CET-1CEST,M3.5.0,M10.5.0/3"
|
2
root_file_system/default/config/timeserver
Normal file
2
root_file_system/default/config/timeserver
Normal file
|
@ -0,0 +1,2 @@
|
|||
config timeserver
|
||||
option hostname time.fu-berlin.de
|
21
root_file_system/default/config/wireless
Normal file
21
root_file_system/default/config/wireless
Normal file
|
@ -0,0 +1,21 @@
|
|||
config 'wifi-device' 'wifi0'
|
||||
option 'type' 'atheros'
|
||||
option 'disabled' '0'
|
||||
option 'channel' '6'
|
||||
option 'txpower' '15'
|
||||
option 'bgscan' '0'
|
||||
option 'diversity' '1'
|
||||
|
||||
config 'wifi-iface'
|
||||
option 'device' 'wifi0'
|
||||
option 'mode' 'adhoc'
|
||||
option 'ssid' 'batman.oldenburg.freifunk.net'
|
||||
option 'bssid' '02:CA:FF:EE:BA:BE'
|
||||
option 'encryption' 'none'
|
||||
option 'hidden' '1'
|
||||
|
||||
config 'wifi-iface'
|
||||
option 'device' 'wifi0'
|
||||
option 'mode' 'ap'
|
||||
option 'ssid' 'oldenburg.freifunk.net'
|
||||
option 'encryption' 'none'
|
Loading…
Reference in New Issue
Block a user