R2S 自编译 OpenWrt

首先装好 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 进入目录

引用内容 引用内容
./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


在 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


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
[本日志由 parno 于 2021-01-26 01:27 AM 更新]
上一篇: InDesign 排版的一点记录
下一篇: [AD]5分钟学会如何玩转云数据库组件(迁移,审计,订阅)
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 0 | 引用: 0 | 查看次数: 1002
发表评论
昵 称:
密 码: 游客发言不需要密码.
邮 箱: 邮件地址支持Gravatar头像,邮箱地址不会公开.
网 址: 输入网址便于回访.
内 容:
验证码:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 500 字 | UBB代码 关闭 | [img]标签 关闭