OPNSense & NanoPi R4S (RK3399)

Started by Kuroko, December 04, 2020, 05:05:47 AM

Previous topic - Next topic
Quote from: spikerguy on August 30, 2021, 01:31:00 AM
Do you mean it doesn't boot at all?  Coz r4s have 2 types of ram used so maybe it have different uboot for it. 

I have R4S with 4 GB ram. It doesn't boot at all. How long until it boots btw? I read that I need to wait for a long time but I already did this. Do I also need to connect R4S directly to my PC and login then edit the mac address?

I finally made it work. The mac address of LAN is 00:00:00... so you won't be able to connect to the admin page and get a connection if you have: R4S -> a switch or a router -> your pc. You must connect your pc directly to R4S and update the mac address of LAN.

I have a 1 Gigabit internet, unfortunately I can only get 500 mbps download speed. R4S has a Realtek nic and custom nic which is pci-e based.

If you have 1gb internet than no arm device can handle it atm unless you use macchiatobin or clearfog as most sbc are low end cpu soc with limited IO like the gigabit Ethernet are not powerful enough to give you full performance. 

Best option for you is to use x86_64 device

I think the Hardened BSD drivers are not just optimized for the NICs of R4S.

I'm back to using OpenWRT snapshot and I am able to get 937 Mbps download without Software Flow Offloading. Note that I also tried the official firmware FriendlyWRT, and some other custom WRTs version and all are able to get past 900+ Mbps.

The drivers will get better overtime, when I switch to a lower speed plan I'll use opnsense.

Is anyone having cert issues with this?  I cant update or fetch plugins.

Please share which image are you using? 
Which device? 

How are you trying to update? 
You will have to manual change the source link to get updated pkgs if your using image made by sleepwalker as he have created a new repo to maintain all bsd builds.

It seems to have cleared itself up.  I noticed I couldn't access the personalbsd site while this was broken so it was likely a glitch at the other side.

Unfortunately, I have another problem.  the LAN interface disconnects and reconnects repeatedly after the nano has been running for a day or two.  rebooting it resolves the problem.  It also seems hotter than usual.  Has anyone else noticed this issue?

Hello

I have just installed OPNsense-21.7.5-OpenSSL-aarch64-NanoPi-R4S-20211130.img.xz from personalbsd.org.
It seems to be getting a DHCP adress on the WAN as well as the LAN interface. It is also accepting ssh on the lan interface. However I dont find a login that works + I also cant see a web interface. Does anyone know the standard login. I already tried alot of combinations, amongst others opnsense/opnsense, root/root, admin/admin, freebsd/freebsd and any combinations of those.

thank you for the help

kind regards

root/opnsense

By default, though, on FreeBSD (inherited by most derivatives...) you cannot log in as root via SSH. On mine, I had to enable both "enable root login" and "enable password login" on the GUI to be able to log in.

The GUI allows you to create additional users, which is much preferred over allowing root logins directly. Also highly recommend using SSH keys instead (but you'll need to be in the GUI for that)...

May 04, 2022, 09:06:29 PM #40 Last Edit: May 04, 2022, 09:37:47 PM by EduardCH
Hello

I've tested OPNSense on my NanoPi R4S. As I can see there is the same problem with speed as in OpenWRT when it's doesn't use IRQ to correct CPU Core pinning (cpu affinity). When I tested my board with Iperf3 I got CPU utilization on A53 cores insted of A72. That is why it is not possible to utilize full gigabit speed in OPNSense. I know that it's possible to do the same trick with IRQ to CPU pinning in FreeBSD, but nothing that I've tried worked. Does anybody knows how to correctly do this in FreeBSD? It would be a great home router, if it will work on full gigabit and OPNSense.

May 09, 2022, 05:29:12 AM #41 Last Edit: June 04, 2022, 10:08:06 PM by rcat
Quote from: EduardCH on May 04, 2022, 09:06:29 PM
Hello

I've tested OPNSense on my NanoPi R4S. As I can see there is the same problem with speed as in OpenWRT when it's doesn't use IRQ to correct CPU Core pinning (cpu affinity). When I tested my board with Iperf3 I got CPU utilization on A53 cores insted of A72. That is why it is not possible to utilize full gigabit speed in OPNSense. I know that it's possible to do the same trick with IRQ to CPU pinning in FreeBSD, but nothing that I've tried worked. Does anybody knows how to correctly do this in FreeBSD? It would be a great home router, if it will work on full gigabit and OPNSense.

I don't really have anything good to add in terms of actual help but, I've been using a RockPro64 with FreeBSD as my router for about a year now. I just checked iperf, and it used all cores.

I built OPNsense for the RockPro64 and the PCI slot doesn't seem to work. It seems hardware support isn't a direct match with FreeBSD 13. I had to add relevant device tree binaries to the MSDOSBOOT partition and everything works well on the RockPro64 now.

I'm not saying this is the issue in your case, but something to consider.

Quote from: spikerguy on September 11, 2021, 12:43:05 AM
If you have 1gb internet than no arm device can handle it atm unless you use macchiatobin or clearfog as most sbc are low end cpu soc with limited IO like the gigabit Ethernet are not powerful enough to give you full performance. 

Best option for you is to use x86_64 device

Sorry, but that's simply not the case. It may be true for OPNsense-based (FreeBSD kernel), but the linux-based OpenWRT works at ~940mbps bidirectionally without breaking a sweat.

I've seen posts where folks running FBSD kernel can get 940mbps, so it's quite possible that the problem lies with something poorly configured in HBSD, but I don't have the resources to purchase a second device just to troubleshoot. I don't realistically have the time, even if someone buys me one, to dig into this, but I really hate when folks say things that are clearly not the case.

I see that Sergey now has a 22.1-based image over on PersonalBSD I may try just to see if it's any better, but setting everything up over and over gets tedious...

Quote from: roninxt on September 01, 2021, 10:19:54 AM
I finally made it work. The mac address of LAN is 00:00:00... so you won't be able to connect to the admin page and get a connection if you have: R4S -> a switch or a router -> your pc. You must connect your pc directly to R4S and update the mac address of LAN.

How do you do this?

How do you guys install the img from personalbsd? I tried using balenaetcher to write it to a sd card, but my r4s won't boot...

I put the sd card on the r4s and turn it on, the red led will light up and after some moments the lan and wan led will light up together for like 1-2 seconds then they will turn off to never turn on again and the system led will never turn on.

Quote from: justdontask on May 22, 2022, 06:26:13 AM
Quote from: roninxt on September 01, 2021, 10:19:54 AM
I finally made it work. The mac address of LAN is 00:00:00... so you won't be able to connect to the admin page and get a connection if you have: R4S -> a switch or a router -> your pc. You must connect your pc directly to R4S and update the mac address of LAN.

How do you do this?

How do you guys install the img from personalbsd? I tried using balenaetcher to write it to a sd card, but my r4s won't boot...

I put the sd card on the r4s and turn it on, the red led will light up and after some moments the lan and wan led will light up together for like 1-2 seconds then they will turn off to never turn on again and the system led will never turn on.

Try replacing the sd card