OpenWrt support for NanoPi R2C

I emailed FriendlyElec 4 days ago and they still have yet to respond. I'm a bit discouraged purchasing from them again; all their forums / community has very old posts and is unmaintained - seemly support is non-existent. I think my next SBC purchase will be a radxa board.

I will post back if they ever respond; at the moment I think I corrupted my eMMC and I cant seem to get the board to boot from SD. I did try to short circuit the Maskrom round silver holes with the GRN hole from my picture here: Guidance on UART debugging "Card did not respond to voltage select" - #3 by robhancock

How are you shorting the maskrom; you turn off usb power then connect GRN to the "MASK" holes then plug it back in?

I just short the two mask rom contacts then apply power to the board and it boots from sd-card.( Holding it until it starts booting)
I had the same problem I flashed a rom following the user guide to install a third party rom.
I used e-flasher edited the config so it installs the selected ROM.
And after that the devices did not boot.
Downloaded the e-flasher friendly-wrt installed on the sd-card inserted the sd-card.
Shorted the 2 contacts applied power and the board starts with flashing the emmc.
Wait untill it blinks constantly and reboot the board using the power cord.

1 Like

Thanks! What I was missing is that I had flashed my SD card with the eFlasher friendlywrt image. Your comment led me to using rk3328-sd-friendlywrt-5.15-20220125.img which did boot from SD card after shorting MASK and from there I wiped out the mmblk2 eMMC storage. Now it's back :slight_smile:

I was trying to build armbian for R2C since there's a motorcom driver issue - I tried your build today on the R2C and the motorcom NIC works there. I didn't do a lot more testing than that :slight_smile:

@anaelorlinski I contacted you a while ago for support for the R2C.
I thought I had a standard R2C but received the plus.
I tested your build and i was not able to boot from a sd-card. (only by shortig the mask-rom contacts)
Today i gave it another shot and with the method discribed in the wiki it works i now can boot your latest build.
What i dit was this:
The following situations will always start from eMMC:
If the system in the eMMC, or the system in the TF card uses the first Loader type U-Boot TPL/SPL, it will always boot from the eMMC;
If you want to boot from the TF card, there are the following methods:
Method 1: Clear the Loader on the eMMC, the clearing method is as follows, after starting from the eMMC, enter the following command on the command line to clear the Loader on the eMMC:

dd if=/dev/zero of=/dev/mmcblk2 bs=8M count=1

In serted the sd-card and then powerd the device.

Thank you for this build I can now finally get rid off openwrt lol.

!An update!
I installed everything what i normally use with my R4S and everything works.
The R2C is my backup unit and i use it to experiment. Will use the R2C overnight to see if it is usable as a dailly router (and for me to see if i can use it as a reliable backup solution).

Orderd the R5S hope to see support for this device aswell in the future. :slight_smile:

Ohh @TheLinuxGuy i do not know why but i am able to boot from sd-card suddenly.
I booted from the buildin storage - used putty and enterd the code to clear the loader -then powerd off the device (pulled the plug) - then tested if could boot from sd with the friendly-wrt sd version. that worked - then booted the @anaelorlinski build. Witch booted and also when i reboot etc.

1 Like

It's 2023 now, anybody still uses this board?
I have created a PR for it, I'd be glad if you can test it :wink:

OK, thank you for snapshot, will it be in next official release?

Yep, it will be included in recent 23.05 release.

How to flash it correctly? I have tried squashfs image with Balena Etcher, it does not work: initially sys led blinks, after that device hangs, both lan, and sys are glowing with constant light. 'Native' image from FriendlyElec works normally. r4s image from OpenWRT works normally for r4s.

give me system log, or i can do nothing with it.
you may need a TTL serial cable to catch log.

I flashed the squashfs image of 23.05-rc1 with dd and had the same results. The SYS and LAN leds light up solid. The WAN port status leds are off even with a cable connected. The LAN port yellow status light turns solid when a cable is connected and turns off when the cable is unplugged. I can't ping the device at all. Sorry, I don't have a cable to provide logs.

fine, i got that issue, let me see how to fix it

fk it just forget to add network setup

patch is available at:

Tried this patch with v23-05.0-rc1 and the R2C works now.

Has anyone tested it on R2C Plus? I tried using v23-05.0-rc2 but it only works on sd card, when I install on emmc it doesn't work.

I also have R2C Plus.

v23-05.0-rc2 would not boot from EMMC. Only SD card works.

I tried another build below.

This one does not boot from EMMC either.

eMMC is not enabled in R2C dts, see:

https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/arch/arm64/boot/dts/rockchip?id=d211665c5a833873ee37e501af58adbf028e6b5f&h=for-next

However I don't have this board to test, please check if the image here works, and dump a serial/TTL log.

1 Like

Just tried this image and it works booting from eMMC, i don't have a USB to serial/TTL adapter (ordered one should arrive soon), but here are the system and kernel logs:

system.log
kernel.log

what about expanding the filesystem to use the 8GB?

Well these logs are good enough, thank you.

I will submit r2c plus support to upstream u-boot recently then we can backport it to openwrt.