belkin_rt1800_openwrt-seanh.../README.md
2024-01-11 13:57:54 +08:00

2.1 KiB

belkin_rt1800_openwrt

A note for how to build a openwrt image for RT1800

CPU: MT7621

Wi-Fi chip: MT7615D (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

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