[Work In Progress] OPNsense Ported into ARM Devices

Started by nekoprog, March 25, 2019, 11:55:58 AM

Previous topic - Next topic
I am attempting to boot that image on a pi 4 CM but getting PHY startup failed -110 messages. :(. any ideas?


Is there any work toward building an Apple Silicon version of Opnsense?

Quote from: roninxt on August 19, 2021, 11:39:45 AM
Can anyone build and share the R4S image from https://github.com/yrzr/opnsense-tools/tree/22.1/r4s?

You can download it from here.  Sergey is the guy maintaining it for aarch64.
His website
https://personalbsd.org/?page_id=2

Please donate to his work if you like the built.  I am using the built images on my RockPiE and R4S since long time. 
Check both devices working for me on how built images.
Images attached.



Has anyone succesfully built an OPNSense imagine for RPI 4?

To use opnsense on rpi you will need a usb to lan adaptor and not all devices are supported in freebsd .


Also performance will not be good with usb adaptor, hence many no one is working on it.

September 12, 2021, 01:34:25 AM #276 Last Edit: September 13, 2021, 08:59:32 PM by sparticle
Quote from: spikerguy on September 11, 2021, 12:40:13 AM
To use opnsense on rpi you will need a usb to lan adaptor and not all devices are supported in freebsd .


Also performance will not be good with usb adaptor, hence many no one is working on it.

I was under the impression that the USB3 type adaptors were essentially running at Gb speed and the Pi4 native Gb adaptor is not limited by the USB sussystem as on previous generation of pi's.

UPDATE:

just for a bit of fun and mainly because I can. I built a new rpi4 running Ubuntu Server 21.04 and attached a Jcreate USB Adaptor.

Which result is the USB3 Adaptor?

iperf3 -p 5201 -c 192.168.0.18
Connecting to host 192.168.0.18, port 5201
[  4] local 192.168.0.105 port 60016 connected to 192.168.0.18 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   113 MBytes   952 Mbits/sec    0    631 KBytes       
[  4]   1.00-2.00   sec   108 MBytes   904 Mbits/sec    0    631 KBytes       
[  4]   2.00-3.00   sec   108 MBytes   902 Mbits/sec    0    631 KBytes       
[  4]   3.00-4.00   sec   108 MBytes   904 Mbits/sec    0    631 KBytes       
[  4]   4.00-5.00   sec   108 MBytes   905 Mbits/sec    0    631 KBytes       
[  4]   5.00-6.00   sec   108 MBytes   902 Mbits/sec    0    631 KBytes       
[  4]   6.00-7.00   sec   111 MBytes   932 Mbits/sec    0    631 KBytes       
[  4]   7.00-8.00   sec   111 MBytes   932 Mbits/sec    0    631 KBytes       
[  4]   8.00-9.00   sec   111 MBytes   935 Mbits/sec    0    631 KBytes       
[  4]   9.00-10.00  sec   111 MBytes   935 Mbits/sec    0    631 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.07 GBytes   920 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  1.07 GBytes   917 Mbits/sec                  receiver

iperf Done.
iperf3 -p 5201 -c 192.168.0.20
Connecting to host 192.168.0.20, port 5201
[  4] local 192.168.0.105 port 40788 connected to 192.168.0.20 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   112 MBytes   941 Mbits/sec   13    305 KBytes       
[  4]   1.00-2.00   sec   110 MBytes   925 Mbits/sec    0    378 KBytes       
[  4]   2.00-3.00   sec   110 MBytes   924 Mbits/sec    0    386 KBytes       
[  4]   3.00-4.00   sec   110 MBytes   920 Mbits/sec    0    386 KBytes       
[  4]   4.00-5.00   sec   109 MBytes   916 Mbits/sec    0    386 KBytes       
[  4]   5.00-6.00   sec   110 MBytes   919 Mbits/sec    0    386 KBytes       
[  4]   6.00-7.00   sec   110 MBytes   921 Mbits/sec    0    390 KBytes       
[  4]   7.00-8.00   sec   110 MBytes   919 Mbits/sec    0    390 KBytes       
[  4]   8.00-9.00   sec   110 MBytes   921 Mbits/sec    0    393 KBytes       
[  4]   9.00-10.00  sec   110 MBytes   923 Mbits/sec    0    393 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.07 GBytes   923 Mbits/sec   13             sender
[  4]   0.00-10.00  sec  1.07 GBytes   921 Mbits/sec                  receiver

Just needs decent drivers on BSD!

Cheers
Spart

November 14, 2021, 04:32:49 PM #277 Last Edit: November 15, 2021, 07:31:59 PM by efetropy
I am trying to built an arm64 image with the stable/22.1 source on a native arm64 (RPi CM4) FreeBSD 13 STABLE host, but keep running into the same issue as stated here:

https://github.com/opnsense/tools/pull/222#issuecomment-948657705

Has anyone tried the same or actually knows a solution for that?

If someone has a working image, I would be happy to have a look at it.


EDIT: After another run, I managed to build the world and kernel successfully. Currently compiling packages – stay tuned for further updates.
Packages also compiled (and took quite a long time) and required a lot of space.
With some little changes, I managed to make an image. Booting worked on my CM4. I won't provide an image here as this was just to see whether compilation works or not

I'm trying to create a OPNSense VM on Proxmox with diry image from @yrzr without success. Anyone have tried it and successfully installed it ?

December 03, 2021, 09:10:23 PM #279 Last Edit: December 03, 2021, 09:14:13 PM by efetropy
Quote from: quiOt on December 03, 2021, 05:58:37 PM
I'm trying to create a OPNSense VM on Proxmox with diry image from @yrzr without success. Anyone have tried it and successfully installed it ?

What do you mean by dirty image? I recall there being a 21.7 version with the kernel from FreeBSD 13 for the RPi 4. Is that the one you are talking about?

Would be great if you provide more information. I can probably help you out :)


Quote from: quiOt on December 04, 2021, 03:25:09 PM
Hey @efetropy, I used this one - https://ftp.yrzr.tk/opnsense/FreeBSD%3A12%3Aaarch64/21.1/images/dirty/ but VM didn't boot

Ahh that's not a VM image actually. If you like to, I can try to create a qcow2 or raw image for you. Maybe that will help

@efetropy ok. I would be grateful if you could send me the correct file or help me how I can do it.

Quote from: quiOt on December 05, 2021, 12:42:58 PM
@efetropy ok. I would be grateful if you could send me the correct file or help me how I can do it.

You can try building an image yourself, but I guess that would take a long time. If you are interested in the current beta (based on FreeBSD 13 which has support for RPi4), have a look in this thread:
https://forum.opnsense.org/index.php?topic=25705.0

You will find a VMDK image there with some other instructions. You can of course convert the VMDK image to whatever format you want (qcow2, raw, etc.)

December 07, 2021, 11:04:33 AM #284 Last Edit: December 07, 2021, 01:40:42 PM by quiOt
@efetropy thank you so much! I'll try it later.

edit: I posted my results on your topic.