Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mnoga

#1
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.
#2
Can you point me at the ethernet patch in mainline please?
#3
Here you go; dmesg for Ganbold's NanoPI R2S image:
https://pastebin.com/mu5hkLRG


uname -a
FreeBSD generic 13.0-CURRENT FreeBSD 13.0-CURRENT #98 r357147:357497M: Fri Feb  7 14:30:10 +08 2020     tsgan@
beastie.mstride.com:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64
#4
@spikerguy
I would like to contribute to porting to NanoPiR2S. I managed so far:

  • Run Ganbold's freebsd image - 1 interface comes up - info posted above
  • Run Armbian/FriendlyWrt
  • Cross Compile various forks of Opnsense from github - so I have at this point cross compiling workflow working - wilmardo's looks promising but it fails when building image due to missing arm_install_uboot
  • Got myself some other usb to uart dongles: one on PL2303HX, other on CP2104
  • Reviewed various videos about u-boot on YT, i get the gist of it but got lost on details what is really required when porting. I have no idea what is uboot missing in here to get it running on R2S: https://github.com/opnsense/tools/compare/master...wilmardo:nanopi-r2s#diff-bd6443d009b4e5cb4bb4487c64127585
  • I have looked at Armbian boot directory for some clues
  • I have examined Armbian images with kpartx to get some ideas

I was thinking about either building upstream u-boot, or getting u-boot image from Armbian and sticking it all together. But still my understanding of u-boot is quite poor.
And then we have a problem with 1 ethernet coming up and the usb one being down.
If someone could point me in the right direction on the above, then maybe I can make some progress.
#5
It's very much work in progress with some attempts on github. To produce working image you'd need to cross compile and build it yourself and since nobody has shared any image yet I am not sure if the existing code will produce something that works.
#6
Can somebody smarter than me tell how to use serial console with NanoPi R2S?
I use macos Catalina and USB to TTL dongle (CP2102) from ebay. I installed drivers from https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

and get following devices show up:
crw-rw-rw-  1 root       wheel   18,   2 14 Jul 08:27 /dev/tty.SLAB_USBtoUART
crw-rw-rw-  1 root  wheel   18,   5 14 Jul 08:27 /dev/cu.usbserial-0001
crw-rw-rw-  1 root       wheel   18,   4 14 Jul 08:27 /dev/tty.usbserial-0001


When i try to connect to any of them with screen:
screen /dev/tty.SLAB_USBtoUART 152000 8N1

Gibberish shows up:
���������m��������������R�������������ϓɖegr��γt�����������������������������������������������������������������������?���������������������������������������������������������������������������������������������������B��1���6���[���o�2��?����y�O����������������������������������������������������������������������������������������~�������������������������}�������������������_�ᾟ��������������Y�����������������y����������������������������

Edit: turns out the USB to UART I have is CP2102 based which cannot do baud rates higher than 921600 and friendly elec's wiki talks about using 1500000 baud rate. Guess i need a different dongle.
#7
The only thing that runs for me on NanoPi R2S is ganbold's image of FreeBSD 13 and that's with a caveat that only one ethernet port works, USB ethernet fails with:
ure0: attaching PHYs failed

Full dmesg attached.

I tried armbian and friendly elec's images of friendlywrt and friendly core. They do not even boot. I have a decent 16GB Transcend microsd card and I think I know how to use dd because FreeBSD boots. What can I try next?

Edit: i have managed to run friendlywrt and armbian on NanoPi R2S in the end.
#8
I am new here.
Got myself NanoPI R2S, please let me know if you'd like me to test any OPNSense Image.

BTW: something seems to be preventing download of https://people.freebsd.org/~ganbold/OPNsense-201912171639-OpenSSL-arm-aarch64.img.xz

Getting lots of these errors, to the point when it just dies:
2020-06-22 15:40:24 (5.81 MB/s) - Connection closed at byte 20316160. Retrying.

--2020-06-22 15:40:24--  (try: 6)  https://people.freebsd.org/~ganbold/OPNsense-201912171639-OpenSSL-arm-aarch64.img.xz
Connecting to people.freebsd.org (people.freebsd.org)|96.47.72.75|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 398789268 (380M), 378473108 (361M) remaining [application/octet-stream]
Saving to: 'OPNsense-201912171639-OpenSSL-arm-aarch64.img.xz.2'

OPNsense-201912171639-OpenSSL-arm-aarch64.img.xz.2           15%[+++++++=============>                                                                                                                     ]  59.58M  12.6MB/s    in 3.9s

2020-06-22 15:40:28 (10.2 MB/s) - Connection closed at byte 62472192. Retrying.


Thanks