UPDATE:
Date: 24th June 2020
Link: https://github.com/jayanta525/openwrt-nanopi-r2s
-
Repository has been updated with the latest source from OpenWrt master.
-
Added CI/CD example for automated builds with cache enabled
-
LAN: rtl8152 (eth1)
-
WAN: rtl8211E (eth0)
CI/CD Guide with CircleCi:
Link: https://github.com/jayanta525/openwrt-nanopi-r2s/tree/circleci
-
Install CircleCi free plan from GitHub Marketplace
-
Enable repository in CircleCi Projects
-
The initial build will be on the default branch with dummy configuration.
-
Switch to branch "circleci"
-
Edit feeds.conf to your requirement (specify commit hash values or new feeds)
-
Edit config.seed file to your requirements (leave the default configuration as is, contains openssl enhancements)
-
Edit custom script in scripts/ if required.
-
Commit the changes.
-
Build in CircleCi will automatically start (if configured correctly, check for orange dot next to commit in GitHub)
-
Cache is enabled, i.e. toolchains and packages will be cached for faster subsequent compilations (~20mins).
-
To clear the cache, change $CACHE value in .circleci/config.yml
-
IRQ_optimize initscript is added, check scrips/adjust-feeds.sh
-
You'll find the compiled images in artifacts section:
Downloads:
GitHub Releases
- tag: v2.0
Build from sources:
-
Clone this repository: https://github.com/jayanta525/openwrt-nanopi-r2s.git (git pull won't work as i have force pushed some changes)
-
Follow these commands:
git clone --depth 1 https://github.com/jayanta525/openwrt-nanopi-r2s.git openwrt/
cd openwrt/
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j5 #where 5 is the number of cores in your build system + 1
You'll find the images in openwrt/bin/targets/armv8/
Issues
- You might come across a kernel config prompt (when verbosity is set), just ignore it with either Y or N, or you can build without verbosity to avoid this prompt.
Commits
-
Latest forced pushed commit: f70064a8feb0e4156665dba2e589dbc2c0607eb2
-
RK3328 target prerequisite commit: 12546a0da7d5c4031e8b270b49827e05728f0846
TO-DO:
- Wireless Dongle Drivers