之前刷入的是過時的快照版本,沒辦法更新元件來使用kmod-app-sqm,而且元件也因為核心版過就、檔案伺服器刪檔導致無法線上更新。
放了快半年,看openwrt的官網一直有那行不支援EON EN25QX128的標記。
放了快半年,看openwrt的官網一直有那行不支援EON EN25QX128的標記。
-
Warning 03/2022 OpenWrt will not work on units fitted with Eon EN25QX128 16MB flash chip at this time. Link for owrt forum Same issue affecting some R4A Gigabit models.
-
姑且自己編譯看看,不過遇到種種失敗:
WSL的大小寫問題→fsutil.exe file setCaseSensitiveInfo <path> enable →開了也是被後面問題絆住
WSL的大小寫問題→fsutil.exe file setCaseSensitiveInfo <path> enable →開了也是被後面問題絆住
MK檔案在windows下無法辨識→真的打不開,但是Linux下是一個目錄
Linux系統下的權限不足→編譯到一半就說權限不足
原始碼編譯失敗→ERROR: toolchain/kernel-headers failed to build. (22.03.03)
原始碼編譯失敗→ERROR: toolchain/kernel-headers failed to build. (22.03.03)
Image Builder卻發現4c這台缺少預設值→真的空的
dl包下載卡住→伺服器是連到weterloo大學,88mb載了2小時,讓我回想到撥接時代。
不騙!!真的這樣兩天消耗在這上面...
雖說官方網頁上有註記22.03不支援EON EN25QX128,
雖說官方網頁上有註記22.03不支援EON EN25QX128,
不過看下載回來的原始碼22.03.3有看到476和477的patch包含補上的晶片係數。
死馬當活馬醫...
(原本舊版快照是把476和477寫在一起。)
上firmware-selector.openwrt.org來編譯之後刷入韌體,
接上網路線後透過MobaXterm的SSH連上路由器,
接著用opkg指令把Luci安裝上去。
想當時在firmware-selector犯蠢了,原來當初忘記把luci 填進去,以為luci-base是本體。
想當時在firmware-selector犯蠢了,原來當初忘記把luci 填進去,以為luci-base是本體。
後來補齊,不然得再用web來修改。
luci luci-base luci-app-sqm luci-i18n-base-zh-tw luci-i18n-opkg-zh-tw luci-i18n-sqm-zh-tw luci-app-adblock luci-i18n-adblock-zh-tw luci-app-ttyd libiwinfo-lua luci-mod-system luci-theme-bootstrap luci-mod-status luci-app-firewall luci-proto-ppp rpcd-mod-iwinfo luci-mod-network luci-mod-admin-full luci-proto-ipv6 uhttpd rpcd-mod-rrdns uhttpd-mod-ubus luci-app-ttyd tcpdump-mini libpcap1
luci-theme-openwrt ←可有可無的theme
luci-compat ←相容舊版GUI元件
shadowsocks-libev-ss-server←翻牆元件
luci-app-shadowsocks-libev
luci-theme-openwrt ←可有可無的theme
luci-compat ←相容舊版GUI元件
shadowsocks-libev-ss-server←翻牆元件
luci-app-shadowsocks-libev
終於刷完機之後就能登入看到luci web !!!
接著:
- 自動排程寫上 (挑一種使用)
#每周一早上5點30分,延时70秒後自動啟動:
30 5 * * 1 sleep 70 && touch /etc/banner && reboot
#網路硬體重開啟
30 4 * * 0,3,5 /etc/init.d/network restart
#WIFI關閉5秒後 重啟
30 4 * * 0,3,5 /sbin/wifi down && sleep 5 && /sbin/wifi up
- 啟用了firewall下的NAT hardware acceleration ,但看不出來支援沒...
- SQM的裝置指向PPPoE (br-lan的話下載和上傳好像要填相反的)
- 關閉"無線"內的WMM功能,強制40MHz
- 移除Wan6 和關閉全部IPv6 功能,因為它真的會過度使用CPU造成區網傳輸崩潰。
- 介面>lan(br-lan)裡面的IP改為192.168.0.1,遮罩255.255.255.0;改成這樣可以連到光世代數據機。
- 最連線數32 (米家測出最大值)
- 關閉VLAN
- 已確認後續新版韌體可以從OpenWrt Firmware Selector下載後,直接在luci下更新使用。
繼續試用中...
愛惜生命,沒事別編譯這種...
真的這樣兩天消耗在這上面...
開啟大小寫文件區分
fsutil.exe file setCaseSensitiveInfo <path> enable
fsutil.exe file setCaseSensitiveInfo "E:\openwrt" enable
複製資料夾 而非 剪下貼上
adduser openwrt
usermod -a -G sudo openwrt
su openwrt
git clone -b openwrt-22.03 https://github.com/openwrt/openwrt.git
sudo ./scripts/feeds update -a
sudo ./scripts/feeds install -a
sudo make menuconfig
cd /mnt/e/openwrt/openwrt
make download
weterloo openwrt
make -j $(($(nproc)+1)) || make -j1 || make -j1 V=s
make V=s 2>&1 | tee build.log | grep -i error
-
sudo apt update
sudo apt upgrade
sudo apt-get install build-essential ccache ecj fastjar file g++ gawk gettext git java-propose-classpath libelf-dev libncurses5-dev libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget python3-distutils python3-setuptools python3-dev rsync subversion swig time xsltproc zlib1g-dev
sudo apt install build-essential clang flex g++ gawk gcc-multilib gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev file wget
sudo apt install p7zip-full p7zip-rar
sudo snap install p7zip-desktop
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
luci-app-sqm luci-i18n-base-zh-tw luci-i18n-opkg-zh-tw luci-i18n-sqm-zh-tw luci-app-adblock luci-i18n-adblock-zh-tw
---ERROR----
Makefile 'package/feeds/luci/luci-app-apinger/Makefile' has a dependency on 'apinger-rrd', which does not exist
ERROR: toolchain/kernel-headers failed to build.
ERROR: toolchain/musl failed to build.
make: *** [/home/vm/Downloads/openwrt/include/toplevel.mk:230: world] Interrupt
回頭看一下以前N300RT根本沒開過IPv6