参考 这里.
注意:其中所使用到的系统镜像需要替换为本仓库的
wifi config
reboot
管理 IP: 192.168.1.1
用户: root
密码: 无
网口信息:
| |
| |
+------+------+---+------+------+--+---+--+
| | | | | | | | |
| LAN | WAN | | USB | USB | | | | <---POWER
+------+------+---+------+------+--+---+--+
嘿嘿,不告诉你,,,
编译主机:Ubuntu 22.04, Debian 12 (理论上不限架构)
不能使用 root 用户进行编译!
bash build_all.sh
展开
sudo apt update
sudo apt install -y ack binutils bison build-essential \
ccache cmake device-tree-compiler flex gawk gettext \
git gperf intltool libelf-dev libglib2.0-dev \
libgmp3-dev libltdl-dev libncurses5-dev libssl-dev \
libreadline-dev libtool wget nano patch sudo \
pkgconf python3 python3-pyelftools xxd zlib1g-dev \
subversion swig texinfo unzip rsync
git clone https://github.com/chainsx/openwrt-th1520 --depth=1
cd openwrt-th1520/riscv-openwrt
./scripts/feeds update -a
./scripts/feeds install -a
cd ..
cp lpi4a.config riscv-openwrt/.config
cd riscv-openwrt && make defconfig
make menuconfig
make download V=s -j$(nproc) && make V=s -j$(nproc)