Update README.md for correct Readme.md format

This commit is contained in:
seanhungtw 2024-01-11 13:28:48 +08:00 committed by GitHub
parent c43ec44f73
commit e44836f14b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
# belkin_rt1800_openwrt_23052
A note for how to build a openwrt 23.05.2 image for RT1800
- (C) 2024 Sean.Hung <https://github.com/seanhungtw/belkin_rt1800_openwrt_23052>
# belkin_rt1800_openwrt
A note for how to build a openwrt image for RT1800
CPU: MT7621
@ -9,60 +11,54 @@ Refer:
https://openwrt.org/docs/guide-developer/toolchain/beginners-build-guide
# Get the code
#===== 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
## 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=====
```
### update feeds
```
./scripts/feeds update -a
./scripts/feeds install -a
#====menuconfig=====
```
### menuconfig
```
make menuconfig
#Select MediaTek Ralink MIPS => MT7621 based boards => Belkin RT1800
make defconfig
```
### build the image
```
make -j$thread
```
### Known issues
#====build the image=====
- 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
make
## Troble shooting
#====know issues====
### git issue
#MTK hardware nat may not working on Linux kernel 5.15.137
you may want to set some git config to avoid git error
#The WAN to LAN speed can reach about 890~900 Mbps, but it will cost a lot of CPU power
```
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
```
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
# compile openwrt in WLS2
#you need to disable windows PATH: or it will meet build errors
### compile openwrt in WLS2
you need to disable windows PATH: or it will meet build errors
```
~/openwrt$ cat /etc/wsl.conf
[interop]
@ -70,3 +66,4 @@ https://forum.openwrt.org/t/use-mtk-sdk-hwnat-driver-to-replace-hw-flow-offload/
enabled = false
appendWindowsPath = false
```