升级Ubuntu系统
sudo apt-get update
安装依赖
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
编译开始
git clone https://github.com/RabbitAkk/lede-2
CD lede-2
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
单编译
make -j1 V=s
多核编译
make V=s
install错误
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
修改文件权限
sudo chmod 777 lean/ -R
云编译
cd openwrt && make menuconfig
单独编译ipk插件
一、插件源码下载
1.锐捷
git clone https://github.com/KyleRicardo/MentoHUST-OpenWrt-ipk
2.Rosy主题
git clone https://github.com/rosywrt/luci-theme-rosy.git
二、下载存放路径
lede/lede/package
三、配置
make menuconfig
1.锐捷
-> Network
-> Ruijie <M> mentohust......................................... A Ruijie Client
Daemon
-> LuCI-> 3. Applications <M> luci-app-mentohust...................... MentoHUST 802.1X Client for LuCI
2.Rosy主题
-> LuCI -> 4. Themesluci-theme-rosy............................................... Rosy
Theme
四、编译
make package/luci-app-serverchan/compile V=99
五、ipk生成路径
路径:
bin/packages/mipsel_24kc/base
文件名
mentohust_0.3.1-1_mipsel_24kc.ipk
六、上传ipk至路由器
清除原有密钥
ssh-keygen -f "/home/cheng/.ssh/known_hosts" -R 192.168.10.1
拷贝至路由器
scp mentohust_0.3.1-1_mipsel_24kc.ipk root@192.168.10.1:/tmp
scp luci-app-mentohust_1.1.-0_all.ipk root@192.168.10.1:/tmp
scp luci-theme-rosy_git-19.069.38477-5ed9705-1_all.ipk root@192.168.10.1:/tmp
七、安装
ssh进入路由器
cd /tmp
opkg install luci-app-serverchan_1.39-5_all.ipk
八、安装状态
opkg install libncurses6_6.1-5_x86_64.ipk
版权属于:小杨的生活
本文链接:https://web.akkdiy.cn/archives/399/
转载时须注明出处及本声明