openwrteth02down
Ⅰ TP-LINK WR703N刷OPENWRT 有線介面eth0一直為離線狀態
你直接由原帶固件升級的話,要選對固件類型,選帶factory字樣的
比如:openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
Ⅱ 極貳openwrt 編譯 7620a+7621e,能夠開啟 2.4G,5G 該怎麼打開
操作步驟如下:
1.下載openwrt最新代碼
2. 下載openwrt官方的7621e驅動
3. 參考 打上hc5761的補丁,使用其hc5761的config,並開啟mtk-wifi-gpl
4. 編譯完成通過ttl,sysupgrade -F -n
openwrt-ramips-mt7620a-hiwifi-hc5761-squashfs-sysupgrade.bin刷機
5. 完成重啟,2.4G能夠開啟
dmesg的輸出:
[ 21.160000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 21.190000] xt_time: kernel timezone is -0000
[ 21.190000] cfg80211: Calling CRDA to update world regulatory domain
[ 21.190000] cfg80211: World regulatory domain updated:
[ 21.190000] cfg80211: DFS Master region: unset
[ 21.190000] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[ 21.190000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[ 21.190000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[ 21.190000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000
mBm), (N/A)
[ 21.190000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0
mBm), (N/A)
[ 21.190000] PPP generic driver version 2.4.2
[ 21.190000] PPP MPPE Compression mole registered
[ 21.190000] NET: Registered protocol family 24
[ 21.530000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 21.560000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev
0500 detected
[ 21.570000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620
detected
[ 21.580000] ieee80211 phy0: Selected rate control algorithm
'minstrel_ht'
[ 29.030000] device eth0.1 entered promiscuous mode
[ 29.050000] device eth0 entered promiscuous mode
[ 29.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 29.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 31.380000] br-lan: port 1(eth0.1) entered forwarding state
[ 32.800000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 32.800000] device wlan0 entered promiscuous mode
[ 32.800000] br-lan: port 2(wlan0) entered forwarding state
[ 32.820000] br-lan: port 2(wlan0) entered forwarding state
[ 32.820000] br-lan: port 2(wlan0) entered disabled state
[ 33.310000] br-lan: port 2(wlan0) entered forwarding state
[ 33.310000] br-lan: port 2(wlan0) entered forwarding state
[ 33.320000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 35.310000] br-lan: port 2(wlan0) entered forwarding state
[ 202.070000] nf_conntrack: automatic helper assignment is deprecated and
it will be removed soon. Use the iptables CT target to attach helpers
instead.
[ 341.460000] br-lan: port 2(wlan0) entered disabled state
[ 341.460000] br-lan: port 1(eth0.1) entered disabled state
[ 341.470000] device eth0.1 left promiscuous mode
[ 341.480000] device eth0 left promiscuous mode
[ 341.480000] br-lan: port 1(eth0.1) entered disabled state
[ 341.510000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 341.540000] device wlan0 left promiscuous mode
[ 341.540000] br-lan: port 2(wlan0) entered disabled state
[ 341.580000] device eth0.1 entered promiscuous mode
[ 341.580000] device eth0 entered promiscuous mode
[ 341.590000] device wlan0 entered promiscuous mode
[ 341.600000] br-lan: port 2(wlan0) entered forwarding state
[ 341.600000] br-lan: port 2(wlan0) entered forwarding state
[ 341.600000] br-lan: port 1(eth0.1) entered forwarding state
[ 341.620000] br-lan: port 1(eth0.1) entered forwarding state
[ 343.600000] br-lan: port 2(wlan0) entered forwarding state
[ 343.620000] br-lan: port 1(eth0.1) entered forwarding state
[ 450.680000] ralink_soc_eth 10100000.ethernet eth0: port 0 link down
[ 450.700000] br-lan: port 1(eth0.1) entered disabled state
[ 455.570000] ralink_soc_eth 10100000.ethernet eth0: port 0 link up
(100Mbps/Full plex)
[ 455.590000] br-lan: port 1(eth0.1) entered forwarding state
[ 455.590000] br-lan: port 1(eth0.1) entered forwarding state
[ 456.340000] ralink_soc_eth 10100000.ethernet eth0: port 0 link down
[ 456.670000] br-lan: port 1(eth0.1) entered disabled state
[ 467.680000] ralink_soc_eth 10100000.ethernet eth0: port 1 link up
(100Mbps/Full plex)
[ 467.700000] br-lan: port 1(eth0.1) entered forwarding state
[ 467.700000] br-lan: port 1(eth0.1) entered forwarding state
[ 469.770000] br-lan: port 1(eth0.1) entered forwarding state
Ⅲ openWRT如何修改MAC地址
1、修改 eth0 mac地址:
編輯 /etc/rc.local,ifconfig eth0 down;ifconfig eth0 hw ether d8:64:c7:5e:f1:c6;ifconfig eth0 up。
2、修改wireless mac地址。
這就最糾結了直接修改 /etc/config/wireless中的mac是沒用的,並且修改後無線網路會無法啟動。
在研究了/sbin/wifi腳本後,只能通過迂迴戰術來進行解決。
編輯 /sbin/wifi;修改如下一段,增加內容。
set_wifi_up() {
echo wifi_up;ls /tmp/run/*.conf
kill `cat /var/run/wifi-phy0.pid`
sed -i s/^bssid=.*/bssid=d8:64:c7:5f:f1:c6/ /var/run/hostapd-phy0.conf
hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
local cfg="$1"
echo wifi_up 2;ls /tmp/run/*.conf
local ifname="$2"
echo wifi_up 3;ls /tmp/run/*.conf
uci_set_state wireless "$cfg" up 1
uci_set_state wireless "$cfg" ifname "$ifname"
}
3、修改完成 。
sync;reboot 重啟,就能看到所有修改都生效了。