forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rockpi4b uboot autoboot for revicer uart2
- Loading branch information
1 parent
44128ba
commit 4c20e5e
Showing
36 changed files
with
1,118 additions
and
20 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
config dnsmasq | ||
option domainneeded '1' | ||
option boguspriv '1' | ||
option filterwin2k '0' | ||
option localise_queries '1' | ||
option rebind_protection '1' | ||
option rebind_localhost '1' | ||
option local '/lan/' | ||
option domain 'lan' | ||
option expandhosts '1' | ||
option nonegcache '0' | ||
option authoritative '1' | ||
option readethers '1' | ||
option leasefile '/tmp/dhcp.leases' | ||
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto' | ||
option nonwildcard '1' | ||
option localservice '1' | ||
option ednspacket_max '1232' | ||
|
||
config dhcp 'lan' | ||
option interface 'lan' | ||
option start '100' | ||
option limit '150' | ||
option leasetime '12h' | ||
option dhcpv4 'server' | ||
option dhcpv6 'server' | ||
option ra 'server' | ||
option ra_slaac '1' | ||
list ra_flags 'managed-config' | ||
list ra_flags 'other-config' | ||
|
||
config dhcp 'wan' | ||
option interface 'wan' | ||
option ignore '1' | ||
|
||
config odhcpd 'odhcpd' | ||
option maindhcp '0' | ||
option leasefile '/tmp/hosts/odhcpd' | ||
option leasetrigger '/usr/sbin/odhcpd-update' | ||
option loglevel '4' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config dropbear | ||
option PasswordAuth 'on' | ||
option RootPasswordAuth 'on' | ||
option Port '22' | ||
# option BannerFile '/etc/banner' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
|
||
config defaults | ||
option input 'ACCEPT' | ||
option output 'ACCEPT' | ||
option forward 'REJECT' | ||
option synflood_protect '1' | ||
|
||
config zone | ||
option name 'lan' | ||
option input 'ACCEPT' | ||
option output 'ACCEPT' | ||
option forward 'ACCEPT' | ||
list network 'lan' | ||
|
||
config zone | ||
option name 'wan' | ||
option output 'ACCEPT' | ||
option masq '1' | ||
option mtu_fix '1' | ||
list network 'wan' | ||
list network 'wan6' | ||
list network 'wwan' | ||
option input 'ACCEPT' | ||
option forward 'ACCEPT' | ||
|
||
config forwarding | ||
option src 'lan' | ||
option dest 'wan' | ||
|
||
config rule | ||
option name 'Allow-DHCP-Renew' | ||
option src 'wan' | ||
option proto 'udp' | ||
option dest_port '68' | ||
option target 'ACCEPT' | ||
option family 'ipv4' | ||
|
||
config rule | ||
option name 'Allow-Ping' | ||
option src 'wan' | ||
option proto 'icmp' | ||
option icmp_type 'echo-request' | ||
option family 'ipv4' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-IGMP' | ||
option src 'wan' | ||
option proto 'igmp' | ||
option family 'ipv4' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-DHCPv6' | ||
option src 'wan' | ||
option proto 'udp' | ||
option dest_port '546' | ||
option family 'ipv6' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-MLD' | ||
option src 'wan' | ||
option proto 'icmp' | ||
option src_ip 'fe80::/10' | ||
list icmp_type '130/0' | ||
list icmp_type '131/0' | ||
list icmp_type '132/0' | ||
list icmp_type '143/0' | ||
option family 'ipv6' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-ICMPv6-Input' | ||
option src 'wan' | ||
option proto 'icmp' | ||
list icmp_type 'echo-request' | ||
list icmp_type 'echo-reply' | ||
list icmp_type 'destination-unreachable' | ||
list icmp_type 'packet-too-big' | ||
list icmp_type 'time-exceeded' | ||
list icmp_type 'bad-header' | ||
list icmp_type 'unknown-header-type' | ||
list icmp_type 'router-solicitation' | ||
list icmp_type 'neighbour-solicitation' | ||
list icmp_type 'router-advertisement' | ||
list icmp_type 'neighbour-advertisement' | ||
option limit '1000/sec' | ||
option family 'ipv6' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-ICMPv6-Forward' | ||
option src 'wan' | ||
option dest '*' | ||
option proto 'icmp' | ||
list icmp_type 'echo-request' | ||
list icmp_type 'echo-reply' | ||
list icmp_type 'destination-unreachable' | ||
list icmp_type 'packet-too-big' | ||
list icmp_type 'time-exceeded' | ||
list icmp_type 'bad-header' | ||
list icmp_type 'unknown-header-type' | ||
option limit '1000/sec' | ||
option family 'ipv6' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-IPSec-ESP' | ||
option src 'wan' | ||
option dest 'lan' | ||
option proto 'esp' | ||
option target 'ACCEPT' | ||
|
||
config rule | ||
option name 'Allow-ISAKMP' | ||
option src 'wan' | ||
option dest 'lan' | ||
option dest_port '500' | ||
option proto 'udp' | ||
option target 'ACCEPT' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
config core 'main' | ||
option lang 'auto' | ||
option mediaurlbase '/luci-static/bootstrap' | ||
option resourcebase '/luci-static/resources' | ||
option ubuspath '/ubus/' | ||
|
||
config extern 'flash_keep' | ||
option uci '/etc/config/' | ||
option dropbear '/etc/dropbear/' | ||
option openvpn '/etc/openvpn/' | ||
option passwd '/etc/passwd' | ||
option opkg '/etc/opkg.conf' | ||
option firewall '/etc/firewall.user' | ||
option uploads '/lib/uci/upload/' | ||
|
||
config internal 'languages' | ||
|
||
config internal 'sauth' | ||
option sessionpath '/tmp/luci-sessions' | ||
option sessiontime '3600' | ||
|
||
config internal 'ccache' | ||
option enable '1' | ||
|
||
config internal 'themes' | ||
option Bootstrap '/luci-static/bootstrap' | ||
option BootstrapDark '/luci-static/bootstrap-dark' | ||
option BootstrapLight '/luci-static/bootstrap-light' | ||
|
||
config internal 'apply' | ||
option rollback '90' | ||
option holdoff '4' | ||
option timeout '5' | ||
option display '1.5' | ||
|
||
config internal 'diag' | ||
option dns 'openwrt.org' | ||
option ping 'openwrt.org' | ||
option route 'openwrt.org' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
config interface 'loopback' | ||
option device 'lo' | ||
option proto 'static' | ||
option ipaddr '127.0.0.1' | ||
option netmask '255.0.0.0' | ||
|
||
config globals 'globals' | ||
option ula_prefix 'fd9c:d0e1:aa02::/48' | ||
|
||
config device | ||
option name 'br-lan' | ||
option type 'bridge' | ||
list ports 'eth0' | ||
|
||
config interface 'lan' | ||
option device 'br-lan' | ||
option proto 'static' | ||
option ipaddr '192.168.1.1' | ||
option netmask '255.255.255.0' | ||
option ip6assign '60' | ||
|
||
config interface 'wwan' | ||
option proto 'dhcp' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
config rpcd | ||
option socket /var/run/ubus/ubus.sock | ||
option timeout 30 | ||
|
||
config login | ||
option username 'root' | ||
option password '$p$root' | ||
list read '*' | ||
list write '*' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
config system | ||
option hostname 'OpenWrt' | ||
option timezone 'UTC' | ||
option ttylogin '0' | ||
option log_size '64' | ||
option urandom_seed '0' | ||
|
||
config timeserver 'ntp' | ||
option enabled '1' | ||
option enable_server '0' | ||
list server '0.openwrt.pool.ntp.org' | ||
list server '1.openwrt.pool.ntp.org' | ||
list server '2.openwrt.pool.ntp.org' | ||
list server '3.openwrt.pool.ntp.org' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
config network | ||
option init network | ||
list affects dhcp | ||
|
||
config wireless | ||
list affects network | ||
|
||
config firewall | ||
option init firewall | ||
list affects luci-splash | ||
list affects qos | ||
list affects miniupnpd | ||
|
||
config olsr | ||
option init olsrd | ||
|
||
config dhcp | ||
option init dnsmasq | ||
list affects odhcpd | ||
|
||
config odhcpd | ||
option init odhcpd | ||
|
||
config dropbear | ||
option init dropbear | ||
|
||
config httpd | ||
option init httpd | ||
|
||
config fstab | ||
option exec '/sbin/block mount' | ||
|
||
config qos | ||
option init qos | ||
|
||
config system | ||
option init led | ||
option exec '/etc/init.d/log reload' | ||
list affects luci_statistics | ||
list affects dhcp | ||
|
||
config luci_splash | ||
option init luci_splash | ||
|
||
config upnpd | ||
option init miniupnpd | ||
|
||
config ntpclient | ||
option init ntpclient | ||
|
||
config samba | ||
option init samba | ||
|
||
config tinyproxy | ||
option init tinyproxy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
config uhttpd 'main' | ||
list listen_http '0.0.0.0:80' | ||
list listen_http '[::]:80' | ||
list listen_https '0.0.0.0:443' | ||
list listen_https '[::]:443' | ||
option redirect_https '0' | ||
option home '/www' | ||
option rfc1918_filter '1' | ||
option max_requests '3' | ||
option max_connections '100' | ||
option cert '/etc/uhttpd.crt' | ||
option key '/etc/uhttpd.key' | ||
option cgi_prefix '/cgi-bin' | ||
list lua_prefix '/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua' | ||
option script_timeout '60' | ||
option network_timeout '30' | ||
option http_keepalive '20' | ||
option tcp_keepalive '1' | ||
option ubus_prefix '/ubus' | ||
|
||
config cert 'defaults' | ||
option days '730' | ||
option key_type 'ec' | ||
option bits '2048' | ||
option ec_curve 'P-256' | ||
option country 'ZZ' | ||
option state 'Somewhere' | ||
option location 'Unknown' | ||
option commonname 'OpenWrt' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
config wifi-device 'radio0' | ||
option type 'mac80211' | ||
option path 'platform/fe310000.mmc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1' | ||
option channel '36' | ||
option band '5g' | ||
option htmode 'VHT80' | ||
option cell_density '0' | ||
|
||
config wifi-iface 'wifinet0' | ||
option device 'radio0' | ||
option mode 'sta' | ||
option network 'wwan' | ||
option ssid 'TSKG-M' | ||
option encryption 'psk2' | ||
option key '00000000' | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root:x:0: | ||
daemon:x:1: | ||
adm:x:4: | ||
mail:x:8: | ||
dialout:x:20: | ||
audio:x:29: | ||
www-data:x:33: | ||
ftp:x:55: | ||
users:x:100: | ||
network:x:101:network | ||
nogroup:x:65534: | ||
ntp:x:123:ntp | ||
dnsmasq:x:453:dnsmasq | ||
logd:x:514:logd | ||
ubus:x:81:ubus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
127.0.0.1 localhost | ||
|
||
::1 localhost ip6-localhost ip6-loopback | ||
ff02::1 ip6-allnodes | ||
ff02::2 ip6-allrouters |
Oops, something went wrong.