Power & Source of Big Ideas

OpenWrt for NanoPi R2S

Moderators: chensy, FATechsupport

Hello, i have ported OpenWrt for the NanoPi R2S. Networking perfomance is better than FriendlyWrt and openssl benchmarks are too good. https://github.com/jayanta525/openwrt-nanopi-r2s

Code: Select all

OpenSSL 1.1.1g  21 Apr 2020
built on: Wed May 20 21:35:46 2020 U,64) rc4(char) des(int) aes(partial) idea(int) blowfish(ptr)
compiler: aarch64-openwrt-linux-musl-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -Wno-error=unused-but-set-variable -Wno-error=unused-result -O3 -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DZLIB -DZLIB_SHARED -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-cbc     125389.79k   380230.29k   742168.83k  1011209.90k  1130659.84k  1138862.76k

benchmark numbers posted by testers, i don't have the r2s board.

WIP [ not ready for PR yet]

I am currently preparing for PR at openwrt and uboot.
Test builds here: https://github.com/jayanta525/jayantaji ... nwrt/forum, please test the build and let me know if there are any issues.

NanoPi boards are seems perfect for openwrt, i have already created a PR for NanoPi R1, and i will keep up the work to add support to NanoPi ZeroPi, Core2 and others board at openwrt. If you own any NanoPi board and needs to port openwrt to it, reply here.

Thanks.
Hi friend ... its posible to port openwrt to nanopi R1S-H3 with support for rlt8812au ? If the integrated wifi wil not work its not problem for me i need to work both LAN ports and USB wifi based on rlt8812au because i cant find any rlt8821 that is supported by friendlywrt.

Thanks
https://github.com/jayanta525/openwrt-n ... -r1s-h3-h5

Here is the source code for openwrt with NanoPi R1S-H3 added.
Follow the normal procedure of compiling OpenWrt.
You can also use Github Actions to compile builds:
Annotation 2020-06-01 193218.png
Annotation 2020-06-01 193218.png (121.93 KiB) Viewed 12383 times
Thanks ... i dont have x86 with linux ... so yestrday i start building on RPI4 (my first build openwrt :-D ), image are done. Today i will test them if they are OK.
I hat little problem on start because i overloked the diferent branch on GIT. But at the end i find my way eventualy.
Building on RPi4 would be super slow. I suggest you use GitHub actions with ssh or CircleCi with SSH. Meanwhile, you can also use:
https://github.com/jayanta525/build-openwrt-nanopi-r1

this NanoPi R1 build by me. It should work fine with the R1S-H3. Once you confirm it boots, you will need to compile the wireless drivers available seperately.
it was cca 7h so it was not so hard . I dont know how to use github action.
I only add luci , openssh and some additional small stuff . But i dont compile rlt8812 driver for now (for test) du i must compile it or it will be awalible to download like kmod ?
so id dosend work ... even you precompiled img dont work.... i can conect to device ... it gives mi wierd ip 169.254.56.172 web base luci dont running and ssh dont accept empty passwrd.
the r1s-h3-h5 build wifi dont runn so i think it dont boot properly.
Cool. I see in the screenshots of OpenWRT Statistics the ambient temperature is only ~30 degrees?!?

I think my R2S runs about 60-70 degrees all the time, doing nothing. Mind you this was on Armbian. I wonder if I have a heatsink problem.

I need to flash FriendlyWRT again and see what the temperatures are like.

Question, is there a way to install this OpenWRT image, without compiling it from source?
Sure, nanopi-r2s is available for download at https://downloads.openwrt.org/snapshots ... hip/armv8/
jayanta525 wrote:
Sure, nanopi-r2s is available for download at https://downloads.openwrt.org/snapshots ... hip/armv8/


awesome! Thanks.
arkadi wrote:
jayanta525 wrote:
Sure, nanopi-r2s is available for download at https://downloads.openwrt.org/snapshots ... hip/armv8/


awesome! Thanks.


I downloaded an image but the sha256sum doesn't match.

From the link:
openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz 6aa49c499f434e4697c2be4b438c09a233e0373dc03aeee4b33c1f790feb33d0

on my computer:
openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz

Code: Select all

$ sha256sum openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz 3837bef2221c312ad6daf7d6a11c0f92050b5e04e4bab044e0106387a0702c62  openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz


I downloaded using wget:

Code: Select all

$ wget https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz
--2020-07-30 23:13:36--  https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 176.9.48.73, 2a01:4f8:150:6449::2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8440643 (8.0M) [application/octet-stream]
Saving to: ‘openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz’

openwrt-rockchip-armv8-friendl  79%[======================================>           ]   6.42M  4.21KB/s    in 6m 37s 

2020-07-30 23:20:44 (16.6 KB/s) - Connection closed at byte 6733351. Retrying.

--2020-07-30 23:20:45--  (try: 2)  https://downloads.openwrt.org/snapshots/targets/rockchip/armv8/openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 8440643 (8.0M), 1707292 (1.6M) remaining [application/octet-stream]
Saving to: ‘openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz’

openwrt-rockchip-armv8-friendl 100%[+++++++++++++++++++++++++++++++++++++++==========>]   8.05M  14.5KB/s    in 80s     

2020-07-30 23:22:08 (20.8 KB/s) - ‘openwrt-rockchip-armv8-friendlyarm_nanopi-r2s-ext4-sysupgrade.img.gz’ saved [8440643/8440643]


Even though it didn't match, I flashed it to try it out. I can't get it working, so that's why I went back to check the file integrity.
strange, it should work normal.

just write the image with dd and login as root@openwrt.lan at port 22

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests