Mua hàng tại Link Shopee hoặc Hotline 0345-148-136.

FreeBSD / OPNsense on NanoPi R2S

My main router still running OPNsense, it is an x86 mini-pc. I have though that I can run FreeBSD / OPNsense on my NanoPi R2S because I’m not a fan of OpenWrt. I want a router / firewall that just works, and no wifi.

Since AArch64 (arm64) is well supported by FreeBSD, I think it is possible.

My progress will be (still waiting for UART adapter..)

  • Write ROCK64 image to SD Card.
  • Overwrite u-boot by NanoPi R2S u-boot
  • UART: b=1500000

LAN Ethernet (RTL8153B) didn’t work out of the box.

[if_ure] Add support for RTL8153B, RTL8156 and RTL8156B

I did the trick here. and it works but the ethernet driver seems not good as Linux, the speed is around 200-300mbps for both ports.

I think I will stick with OpenWRT :(.

root@generic:~ # usbconfig
ugen4.1: <Synopsys XHCI root HUB> at usbus4, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen3.1: <Generic OHCI root HUB> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen2.1: <Generic EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <DWCOTG OTG Root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen4.2: <Realtek USB 10/100/1000 LAN> at usbus4, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (72mA)
root@generic:~ # usbconfig -d 4.2 reset
ure0: at uhub0, port 2, addr 1 (disconnected)
rgephy2: detached
miibus1: detached
ure0: detached
ure0 on uhub0
ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 3.00/31.00, addr 1> on usbus4
root@generic:~ # ure0: MAC assigned randomly
miibus1: <MII bus> on ure0
rgephy2: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus1
rgephy2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto


Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *