R2S 自编译 OpenWrt
作者:parno 日期:2021-01-26
首先装好 Ubuntu 64bit,推荐 Ubuntu 18 LTS x64
命令行输入 sudo apt-get update ,然后输入 sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 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 g++-multilib antlr3 gperf wget curl swig rsync
使用 git clone https://github.com/coolsnowwolf/lede 命令下载好源代码,然后 cd lede 进入目录
在 tools-$(CONFIG_TARGET_tegra) += cbootimage cbootimage-configs
下加 tools-y += ucl upx
在 $(curdir)/cbootimage/compile += $(curdir)/automake/compile
下加 $(curdir)/upx/compile := $(curdir)/ucl/compile
cd ../ 到 ~/friendlywrt-rk3328
Targe System 选 rockchip rk3328 (aarch64)
Targe Image 选 squashfs,不选 tar.gz
Base system 选 dnsmasq-full,不选 dnsmsq
Luc 推荐 adbyby-plus,aria2,autoreboot,filetransfer,firewall,flowoffload, hd-idle,openvpn,ramfree,ssr-plus,ttyd,unblockmusic,upnp
命令行输入 sudo apt-get update ,然后输入 sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 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 g++-multilib antlr3 gperf wget curl swig rsync
使用 git clone https://github.com/coolsnowwolf/lede 命令下载好源代码,然后 cd lede 进入目录
引用内容
./scripts/feeds update -a
./scripts/feeds install -a
git clone https://github.com/friendlyarm/repo
sudo cp -rf repo/repo /usr/bin/
cd ~/friendlywrt-rk3328
repo sync -l --no-clone-bundle
repo sync --no-clone-bundle
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
cp -rf ~/lede/feeds.conf.default ~/friendlywrt-rk3328
cp -rf ~/lede/package/lean ~/friendlywrt-rk3328/package
cp -rf ~/lede/tools/ucl ~/friendlywrt-rk3328/tools
cp -rf ~/lede/tools/upx ~/friendlywrt-rk3328/tools
cd ~/friendlywrt-rk3328/tools
vi ./Makefile
./scripts/feeds install -a
git clone https://github.com/friendlyarm/repo
sudo cp -rf repo/repo /usr/bin/
cd ~/friendlywrt-rk3328
repo sync -l --no-clone-bundle
repo sync --no-clone-bundle
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
cp -rf ~/lede/feeds.conf.default ~/friendlywrt-rk3328
cp -rf ~/lede/package/lean ~/friendlywrt-rk3328/package
cp -rf ~/lede/tools/ucl ~/friendlywrt-rk3328/tools
cp -rf ~/lede/tools/upx ~/friendlywrt-rk3328/tools
cd ~/friendlywrt-rk3328/tools
vi ./Makefile
在 tools-$(CONFIG_TARGET_tegra) += cbootimage cbootimage-configs
下加 tools-y += ucl upx
在 $(curdir)/cbootimage/compile += $(curdir)/automake/compile
下加 $(curdir)/upx/compile := $(curdir)/ucl/compile
cd ../ 到 ~/friendlywrt-rk3328
引用内容
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
./scripts/feeds install -a
make menuconfig
Targe System 选 rockchip rk3328 (aarch64)
Targe Image 选 squashfs,不选 tar.gz
Base system 选 dnsmasq-full,不选 dnsmsq
Luc 推荐 adbyby-plus,aria2,autoreboot,filetransfer,firewall,flowoffload, hd-idle,openvpn,ramfree,ssr-plus,ttyd,unblockmusic,upnp
引用内容
make -j1 download v=s
./build.sh nanopi_r2s.mk
./build.sh nanopi_r2s.mk
[本日志由 parno 于 2021-01-26 01:27 AM 更新]
上一篇: InDesign 排版的一点记录下一篇: [AD]5分钟学会如何玩转云数据库组件(迁移,审计,订阅)
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 0 | 引用: 0 | 查看次数: 1298
发表评论