OPNsense 20.1 on RaspberryPI 3

Started by rene_, November 05, 2019, 11:16:59 AM

Previous topic - Next topic
Please let me know if its working now :)


Oh, okay ... just asking, because theoretically this image should also run on a pi4, which has a lot more power, but i also don't ordered one yet ^^

November 11, 2019, 10:17:09 AM #16 Last Edit: November 11, 2019, 12:48:53 PM by monstermania
Hi René,
on Friday i do another quick test with the new image offered by you.
My USB2LAN Adapter (AX88772B) was recognized and driver was loaded! That is fine.  :)
I tried also a RALINK wifi stick (RT5370). The stick are recognized but no driver was loaded! I used the same stick on my x86 hw some time ago. It is supported by the run driver: https://www.freebsd.org/cgi/man.cgi?run(4)
best regards
Dirk

Hi Dirk,

thanks for the feedback  :)

Regarding wifi ... i thought it should be covered with the rtwn driver  ::)

i updated my kernel config, will upload the new image later and inform you :)

(Waiting for black friday to get some nvme ssd's for my build host  ;D)

Best regards,
René

November 11, 2019, 03:03:10 PM #18 Last Edit: November 11, 2019, 04:03:03 PM by rene_
Hi Dirk,

i uploaded the new image: https://opnsense.rene.network/FreeBSD%3A12.1%3Aaarch64/20.1/
run driver should now work :)

all the best,
René

Hi René,
now it seems to work.
My Ralink wifi stick was regognized and driver (run) was loaded.  :)
Into gui shows all near wifi networks. Of course only with 802.11g speed. But i have too less time to test connection.

best regards
Dirk

November 12, 2019, 08:44:32 AM #20 Last Edit: November 12, 2019, 09:24:56 AM by rene_
Good morning Dirk,

thanks a lot for the tests, i am glad that everything seems to work so far, hopefully my wlan adapters will arrive today :)

In the meanwhile i uploaded a new image, and the following stuff changed:

  • the image to be written onto the sd card has now only 2GB
  • the root filesystem is now automatically resized on first boot
  • the package set is updated to the latest source
  • source is now fully migrated to freebsd 12.1 stable

All the best,
René

November 13, 2019, 08:46:07 PM #21 Last Edit: November 13, 2019, 11:24:07 PM by origin
Hello Rene ;),amazing work. I searched for long time pfsense public arm build compatible with rpi3 and found this post 4 days ago.

is it the latest run driver ? Also, is it possible you add urtw and urtwn drivers  :'( ? It seems their are missing, as kldload urtw and kldload urtwn return "not found" error.
Xtools says it is possible to compile kernel only,but how to install it after on rpi3b+ ?


i have just test your latest release on my rpi3b+ and my usb lan appears now. Really great work. :D


Hi Rene,

First off thanks very much for doing this and sharing it with the world. I got the image up and running on my RPi 3 Model B and can see that it is just like the OPNSense instances I have run elsewhere. (I have only recently started labbing with pfSense and OPNSense)

I have connected in a USB to Ethernet device and that was recognise immediately and worked fine (https://plugable.com/products/usb2-e100/ - I got a few of these as they support VLAN tagging with my GNS3 setup)

When I have tried to connect a second one of these it recognises the device but then the system appears to reboot (when watched from the console it just goes blank and then the boot sequence starts). Unfortunately I don't have any other USB NICs to test with. Just thought I would share my experience.

(The reason for having multiple interface was to have a play with the load balancing)

All the best

DeeTee

Just as a precaution about this:

> the image to be written onto the sd card has now only 2GB

The purpose of the minimum 3GB policy is that you have the added benefit of being able to perform upgrades between major versions or even difficult minor version updates. 2GB can and will fail in this regard.


Cheers,
Franco

Quote from: deetee on November 14, 2019, 12:52:07 PM

First off thanks very much for doing this and sharing it with the world. I got the image up and running on my RPi 3 Model B and can see that it is just like the OPNSense instances I have run elsewhere. (I have only recently started labbing with pfSense and OPNSense)

Your welcome  :)

Quote from: deetee on November 14, 2019, 12:52:07 PM
When I have tried to connect a second one of these it recognises the device but then the system appears to reboot (when watched from the console it just goes blank and then the boot sequence starts). Unfortunately I don't have any other USB NICs to test with. Just thought I would share my experience.

Can you find anythin in the logs after the reboot?


Quote from: origin on November 13, 2019, 08:46:07 PM
is it the latest run driver ? Also, is it possible you add urtw and urtwn drivers  :'( ? It seems their are missing, as kldload urtw and kldload urtwn return "not found" error.
Xtools says it is possible to compile kernel only,but how to install it after on rpi3b+ ?

Yes, its the latest run driver.

A first try to build the kernel with urtwn enabled failed, i will look closer in the next days.

To build your own image you need a working build environment, explained here: https://github.com/opnsense/tools


Quote from: franco on November 14, 2019, 01:14:48 PM
The purpose of the minimum 3GB policy is that you have the added benefit of being able to perform upgrades between major versions or even difficult minor version updates. 2GB can and will fail in this regard.

Thanks for the hint, will change that in further builds.

(But the images a build, will anyways resize the root partition on first boot  ;) )

Greets,
René

November 15, 2019, 07:54:36 PM #25 Last Edit: November 15, 2019, 08:34:14 PM by chemlud
Quote from: deetee on November 14, 2019, 12:52:07 PM
...When I have tried to connect a second one of these it recognises the device but then the system appears to reboot (when watched from the console it just goes blank and then the boot sequence starts). Unfortunately I don't have any other USB NICs to test with. Just thought I would share my experience.

Try a stronger power supply (3A). If you have a power supply with variable output, adjust to 5.3V. There is a limit to max. power consumption for USB-ports, at least in raspbian.

I use various raspis with raspbian or opensuse and two USB-RJ45 adapters (in bridge mode) for wiresharking here and there. Never had problems with power on these devices.
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Quote from: rene_ on November 15, 2019, 04:05:32 PM
Can you find anythin in the logs after the reboot?

After having seen the information from Chemlud (which is below) the issue was resolved so I haven't been through the logs. Thank you forgetting back to me on this.

Quote from: chemlud on November 15, 2019, 07:54:36 PM
Try a stronger power supply (3A). If you have a power supply with variable output, adjust to 5.3V. There is a limit to max. power consumption for USB-ports, at least in raspbian.

Thank you for this, the power supply I was using was only 750mA, I didn't have a more powerful supply to hand so used a powered USB hub instead and now there are three adapters connected with no issues.

So now I will try to have a proper play with this during the week.

Thanks very much.

November 18, 2019, 09:14:17 AM #27 Last Edit: November 18, 2019, 09:21:55 AM by monstermania
Hi René,
i got some trouble to configure the ralink wifi stick as wan connection into OPNsense. In the end i can't connect to wifi networks with wpa/wpa2 encryption.  >:(
So configured a new wifi network with no encrytion on my AP. With an open wifi the connection succeed! I get a stable 54Mbit wifi connection on wan. A short speed test shows that the RPI3 goes up to a bit over 20 Mbit up/down. Not too bad for an 54Mbit wifi connection.
Temp. is 50-55°C with a small passive heatsink at the cpu.

I'll test in the next days if the wpa/wpa2 connection problems based on the arm image or i get the same problems on x86 too. In the past i only used this wifi stick into ap mode on my OPNsense.

best regards
Dirk 

PS: I use the original RasPi3 power supply (2,5A). I use a usb2lan and usb wifi stick on my pi. So far no problems.

Hi Dirk,

i already noticed that, and described it here: https://github.com/opnsense/core/issues/3818

i have no idea how to fix that currently  :(

i use a case with a small fan builtin + heat sink, the raspberry is running smoothly on  about 37°C :)


Greets,
René

November 23, 2019, 03:51:45 PM #29 Last Edit: November 23, 2019, 07:10:18 PM by DJ_Mic
Thank you very much for this port.

I want to add my usb lan adapter, so i could bridge it with the onboard port, for better perfomance.
But i noticed, it doesnt recognize my adapter in opnsense.

When i plug the usb port into the pi, i got there a message like: "ugen0.5: <Realtek USB 10/100/1000 LAN> at usbus0>"
And when i try to asign the interface, it wont show up.

Edit: Firewall - Live View doesnt work