NanoPI R2S is a great OpenWrt device

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

  1. Fork the on repository

  2. Install CircleCi free plan from GitHub Marketplace

  3. Enable repository in CircleCi Projects

  4. The initial build will be on the default branch with dummy configuration.

  5. Switch to branch "circleci"

  6. Edit feeds.conf to your requirement (specify commit hash values or new feeds)

  7. Edit config.seed file to your requirements (leave the default configuration as is, contains openssl enhancements)

  8. Edit custom script in scripts/ if required.

  9. Commit the changes.

  10. Build in CircleCi will automatically start (if configured correctly, check for orange dot next to commit in GitHub)

  11. Cache is enabled, i.e. toolchains and packages will be cached for faster subsequent compilations (~20mins).

  12. To clear the cache, change $CACHE value in .circleci/config.yml

  13. IRQ_optimize initscript is added, check scrips/adjust-feeds.sh

  14. You'll find the compiled images in artifacts section:

Downloads:

  • ext4 image: link
  • squashfs image (prefered): link
  • config.seed: link

GitHub Releases

Build from sources:

  1. Clone this repository: https://github.com/jayanta525/openwrt-nanopi-r2s.git (git pull won't work as i have force pushed some changes)

  2. 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

TO-DO:

  • Wireless Dongle Drivers
6 Likes