OPNsense Forum

English Forums => Hardware and Performance => Topic started by: tsgan on December 18, 2019, 01:36:05 pm

Title: OPNsense 20.1 on NanoPI R1S (H5)
Post by: tsgan on December 18, 2019, 01:36:05 pm
Was able to build OPNSense 20.1 (FreeBSD 13.0-CURRENT) and run on NanoPI-R1S-H5 board.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: n764sense on December 23, 2019, 03:20:43 pm
How is this working out? Is it fast enough? I was interested in doing this. If it's working well for you, would you be willing to do a quick write-up of the steps you took to get this working? Thanks!
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: tsgan on December 24, 2019, 02:47:45 am
Second ethernet is via USB so not so good performance:

https://people.freebsd.org/~ganbold/iperp3-nanopi-h5-r1s-ure.txt

awg0 has:

https://people.freebsd.org/~ganbold/iperp3-nanopi-h5-r1s-awg.txt

Above are done in FreeBSD current. So for home use maybe it is ok but for other cases it depends.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: tsgan on January 02, 2020, 06:31:27 am
The image is at:

https://people.freebsd.org/~ganbold/OPNsense-201912171639-OpenSSL-arm-aarch64-nanopi-r1s-h5.img.xz

It is preconfigured, so better set it to default and start the configuration as needed.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: kradalby on March 04, 2020, 08:20:09 pm
Info about R2S with dual proper gbit has started to surface:
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_R2S

But its not on their shop yet.

How feasible would it be to build for this? Seems like it uses Rockchip instead of Allwinner.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: tsgan on March 05, 2020, 03:37:07 am
Info about R2S with dual proper gbit has started to surface:
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_R2S

But its not on their shop yet.

How feasible would it be to build for this? Seems like it uses Rockchip instead of Allwinner.

2 things needed, we need proper u-boot and if_ure needs support for rtl8153b chipset. On u-boot side rock64 u-boot can be used for testing. At least thj@ and ganbold@ (me) from FreeBSD developers have this boards so I hope we will make something workable, but hard to tell when it will be done.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: banana999 on March 26, 2020, 10:47:29 am
Will it work on the new one? https://www.friendlyarm.com/index.php?route=product/product&product_id=282
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: domingocooler on March 31, 2020, 03:20:09 pm
Info about R2S with dual proper gbit has started to surface:
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_R2S

But its not on their shop yet.

How feasible would it be to build for this? Seems like it uses Rockchip instead of Allwinner.

2 things needed, we need proper u-boot and if_ure needs support for rtl8153b chipset. On u-boot side rock64 u-boot can be used for testing. At least thj@ and ganbold@ (me) from FreeBSD developers have this boards so I hope we will make something workable, but hard to tell when it will be done.
Thank you so much for your effort been put on the  R2S.
I placed an pre-order online, hope it will arrive soon, and I'm willing to test things out if there is need.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: Webladen31 on April 26, 2020, 09:42:07 am
Have you received yours?
Mine is on the way and I will received it next week.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: aesth on April 26, 2020, 07:40:19 pm
The new one looks very interesting considering the price. Does it have an issue with heatsink installation as it says in the review on the site? I would rather not order it if I have to solder.

Thanks.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on April 27, 2020, 03:52:26 pm
Hi tsgan@

I was about to place the order for this device but I stopped as no one replied to me in their forum and that made me feel like its a dead community.

Thanks to your work I see that you're working on freebsd and opnsense support. Radxa have confirmed to send me some engineering sample to work on, I can send one to you, I am familiar with u-boot but on the linux side of the world :p
Radxa RockPi-E is Rk3328 which is similar to NanoPi-R2S, So I will wait for my boards to arrive and gather some uboot information.

Also the topic says NanoPi-R1S(H5) so I can order this for testing while I have neo2 on the way which is also H5 SOC.

I have read that you build natively on T4 which is RK3399 which means you must be having Opnsense for Rk3399 also.

In short I would like to collaborate with you in developing Porting/maintaining Opnsense for Arm devices Current I can work on H5, RK3328 and RK3399. I also have BPi-R2 which is ARMv7 and Rey have been working on its freebsd support since long time but not everything is ready for that device and its an older arch which increases the work :(

Looking forward in helping you with my time and resources.

Thanks.
Furkan K.


Update: Radxa is ready to send you sample @tsgan please pm me if you would like to receive one for development.

Thanks
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: aesth on April 30, 2020, 06:16:28 pm
This is hardware chaining heaven. Looking forward to messing with this.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: mipsH on October 26, 2020, 11:34:35 am
Hello.

Are there any update for NanoPi R2S ?.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: mipsH on November 23, 2020, 02:05:25 pm
Does OPNSense made for Rock PI E works on NanoPI R2S ?

https://forum.radxa.com/t/opnsense-20-7-for-rock-pi-e/4104

In theory it should - any testing/results ?
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on December 11, 2020, 07:18:35 pm
Yes it does work but only 1 lan is visible as I need to update the right dtb for it to recognize the second lan card.

Will be looking into it soon.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on January 29, 2021, 06:43:19 pm
There is not driver available for RTL8153B yet so we will have to wait for the drivers, until then we will have to use usb-Lan adapter.

Good luck for those who have R2S
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: nabrog87 on February 09, 2021, 06:04:58 pm
There is not driver available for RTL8153B yet so we will have to wait for the drivers, until then we will have to use usb-Lan adapter.

Good luck for those who have R2S

Hi @spikerguy,
I've installed the opnsense Rock-Pi-E image on sd card and tried to boot my Nanopi R2S but i received the below error via UART.
Do you have a working image for Nanopi R2S? Can you provide me a link to it?
BR

<debug_uart>

U-Boot TPL 2020.10 (Oct 13 2020 - 17:21:54)
data training error
col error
data training error
DDR3, 333MHz
BW=16 Col=12 Bk=8 CS0 Row=16 CS=1 Die BW=8 Size=4096MB

Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on March 24, 2021, 10:50:08 pm
There is not driver available for RTL8153B yet so we will have to wait for the drivers, until then we will have to use usb-Lan adapter.

Good luck for those who have R2S

Hi @spikerguy,
I've installed the opnsense Rock-Pi-E image on sd card and tried to boot my Nanopi R2S but i received the below error via UART.
Do you have a working image for Nanopi R2S? Can you provide me a link to it?
BR

<debug_uart>

U-Boot TPL 2020.10 (Oct 13 2020 - 17:21:54)
data training error
col error
data training error
DDR3, 333MHz
BW=16 Col=12 Bk=8 CS0 Row=16 CS=1 Die BW=8 Size=4096MB


Both the device have different dram.
You need to flash r2s image or just flash r2s uboot on rockpiE image.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on June 19, 2021, 01:34:28 am
NanoPi R2S image is available for testing.

For those who have the device can test the performance using this image and share the feedback.

https://personalbsd.org/images/OPNsense-21.1-OpenSSL-aarch64-NanoPi-R2S-20210612.img.xz
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: ryker@utanet.at on July 12, 2021, 09:17:24 am
Thanks for providing the R2S image.

I am using R2S hardware revision "1.0 1912" (it was shipped last year with yellow plastic enclosure instead of metal and micro-usb instead of USB-C).

When trying to boot from OPNsense-21.1-OpenSSL-aarch64-NanoPi-R2S-20210612.img the red sys LED stays on for a few seconds, but then LED goes off and the device does not react anymore.

On the same device I can boot into rk3328-sd-friendlywrt-5.10-20210618 and FreeBSD-aarch64-13.0-RELEASE-NanoPi-R2S-20210702.img without any problems.

Any idea how I could make OPNSense work on my R2S? Unfortunately I do not have the possibility to debug via GPIO.

BR
Ryker
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on August 30, 2021, 01:28:25 am
Thanks for providing the R2S image.

I am using R2S hardware revision "1.0 1912" (it was shipped last year with yellow plastic enclosure instead of metal and micro-usb instead of USB-C).

When trying to boot from OPNsense-21.1-OpenSSL-aarch64-NanoPi-R2S-20210612.img the red sys LED stays on for a few seconds, but then LED goes off and the device does not react anymore.

On the same device I can boot into rk3328-sd-friendlywrt-5.10-20210618 and FreeBSD-aarch64-13.0-RELEASE-NanoPi-R2S-20210702.img without any problems.

Any idea how I could make OPNSense work on my R2S? Unfortunately I do not have the possibility to debug via GPIO.

BR
Ryker

It is very hard to know what is going wrong without the debug logs. 
Will always need debug logs to help.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: ryker@utanet.at on October 25, 2021, 08:45:50 am
I have now tried latest OPNsense-21.7.3-OpenSSL-aarch64-NanoPi-R2S-20211012.img.xz image at it works perfectly with R2S.

Thanks a lot for your work and continued community support!

Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: spikerguy on November 06, 2021, 02:30:30 am
Please do donate to personalbsd.org project.

Thanks.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: mnoga on November 17, 2021, 01:07:17 pm
Thank you for the R2S images on personalbsd.org. Whoever is responsible for it, great job.
I would like to give some personal feedback, as I am trying to setup transparent firewall using opnsense.
In order to do so I plugged in external USB gigabit adapter into my R2S, and it works when hot plugged. However when the device is reset with the USB adapter, it's not coming up correctly. I cannot connect to it all, neither on embedded LAN iface nor the USB adapter and the LAN LED is not lit. I am not sure where can I find logs to troubleshoot it.

Secondly, I tried using CP2102 Serial to USB adapter to get some insight into working/booting machine but I only get gibberish on the screen. I tried various baud rates etc, and it's not of any use. I can use it with dietpi and it works.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: Kptainflintt on December 11, 2021, 06:32:11 pm
Hi,

What about the last NanoPi R2C?

Is someone has tried to make it work with OPNSense?

Tried with R2S image but only one LAN is working...

Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: Grimboid on December 21, 2021, 10:54:57 pm
AFAIK The Nano Pi R2S and R2C are almost identical except for one important aspect - the ethernet controller chip is different in the R2C. So using an R2S image you will still get the traffic through the ethernet port that is controlled by the USB (because it's the same chip in both), but the software probably needs adapting to account for the new controller chip in the R2C.

These boxes are still a great investment for the price if you're prepared to wait for the software to catch up, which at the moment seems down to the herculean efforts of a (very) small number of developers. I'm sure it would be appreciated if you were able to subscribe to the project at personalbsd.org.
Title: Re: OPNsense 20.1 on NanoPI R1S (H5)
Post by: Kptainflintt on December 31, 2021, 11:39:06 am
Hi,

Yes, this is what I understood from forum to forum...

I would have been better off buying a R2S, because only FriedlyWRT from FriendlyARM is working on this board.

You're right, few developpers but big work done, I'll check for subscription.