mirror of
https://github.com/seanhungtw/belkin_rt1800_openwrt.git
synced 2025-12-16 15:01:45 +00:00
2.1 KiB
2.1 KiB
- (C) 2024 Sean.Hung https://github.com/seanhungtw/belkin_rt1800_openwrt_23052
- Extraordinary is you improve yourself do every day
belkin_rt1800_openwrt
A note for how to build a openwrt image for RT1800
CPU: MT7621
Wi-Fi chip: MT7915D (DBDC)
Refer:
https://openwrt.org/docs/guide-developer/toolchain/beginners-build-guide
Get the code
git clone https://git.openwrt.org/openwrt/openwrt.git # or https://github.com/openwrt/openwrt.git
cd openwrt
git checkout v23.05.2
git checkout -b rt1800_23052
update feeds
./scripts/feeds update -a
./scripts/feeds install -a
menuconfig
make menuconfig
#Select MediaTek Ralink MIPS => MT7621 based boards => Belkin RT1800
make defconfig
build the image
make -j$thread
Known issues
- MTK hardware nat may not working on Linux kernel 5.15.137
- The WAN to LAN speed can reach about 890~900 Mbps, but it will cost a lot of CPU power
- Some sone have try to porting mtk hnat to 5.10 (but 23.05 is using DSA, so it might have problems)
- https://forum.openwrt.org/t/use-mtk-sdk-hwnat-driver-to-replace-hw-flow-offload/128120
Troble shooting
git issue
you may want to set some git config to avoid git error
git config -l
git config --global http.postBuffer 1048576000
git config --global https.postBuffer 1048576000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
compile openwrt in WLS2
you need to disable windows PATH: or it will meet build errors
~/openwrt$ cat /etc/wsl.conf
[interop]
enabled = false
appendWindowsPath = false
Notes of MTK board customization
default /etc/config/network & eth nterface name (both openwrt 22 & 23)
you can configure interface name, mac here:
#file :target/linux/ramips/mt7621/base-files/etc/board.d/02_network
#for example
ucidef_set_interfaces_lan_wan "lan1, lan2, ..." "wan"
lan_mac="00:11:22:33:44:55"
wan_mac="00:11:22:33:44:56"
then it goes to the original Openwrt code to generate default /etc/config/network file:
package/base-files/files/bin/config_generate