From nobody Tue Feb 11 11:17:27 2025 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ysf776vztz5nQjM for ; Tue, 11 Feb 2025 11:17:39 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ysf773k8cz461C for ; Tue, 11 Feb 2025 11:17:39 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none Received: from skull.home.blih.net (mwc0868.ftth.cust.milkywan.net [45.13.107.196]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 796e7537 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 11 Feb 2025 11:17:30 +0000 (UTC) Date: Tue, 11 Feb 2025 12:17:27 +0100 From: Emmanuel Vadot To: "Nenhum_de_Nos" Cc: freebsd-arm@freebsd.org Subject: Re: Nanopi R5S and U-boot from Ports Message-Id: <20250211121727.290f4ddccf5aa4d901f681d7@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Ysf773k8cz461C X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] Hi, On Mon, 10 Feb 2025 23:05:01 -0000 "Nenhum_de_Nos" wrote: > Hi, > > have anyone ever tested this router and got to have all 3 NIC's? > > I am trying to use the u-boot r5s package from pkg, as opposed to using > edk2 firmware. Using edk2 firmware I get all three NIC's. With edk2 you likely booted in acpi-mode while with u-boot you booted in fdt mode and if_re-kmod doesn't have fdt attachement. Cheers, > I got to try the u-boot, but I just have the eqos0: > > root@OPNsense:~ # pciconf -vl > pcib1@pci0:0:0:0: class=0x060400 rev=0x01 hdr=0x01 vendor=0x1d87 > device=0x3566 subvendor=0x0000 subdevice=0x0000 > vendor = 'Rockchip Electronics Co., Ltd' > device = 'RK3568 Remote Signal Processor' > class = bridge > subclass = PCI-PCI > root@OPNsense:~ # cat /boot/loader.conf.local > # Realtek kmod R5S - version 1.98 > if_re_load="YES" > if_re_name="/boot/modules/if_re.ko" > root@OPNsense:~ # ifconfig > eqos0: flags=1008843 > metric 0 mtu 1500 > description: LAN (lan) > options=80008 > ether xxxxxxxxxxxx > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > inet6 fe80::2xxxxxx%eqos0 prefixlen 64 scopeid 0x1 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=21 > lo0: flags=1008049 metric 0 mtu 16384 > options=680003 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > groups: lo > nd6 options=21 > enc0: flags=0 metric 0 mtu 1536 > options=0 > groups: enc > nd6 options=23 > pflog0: flags=20100 metric 0 mtu 33152 > options=0 > groups: pflog > pfsync0: flags=0 metric 0 mtu 1500 > options=0 > maxupd: 128 defer: off version: 1400 > syncok: 1 > groups: pfsync > > root@OPNsense:~ # kldstat > Id Refs Address Size Name > 1 29 0xffff000000000000 13d6ba8 kernel > 2 1 0xffff0000013d7000 294d8 if_gre.ko > 3 1 0xffff000001401000 22f18 pflog.ko > 4 3 0xffff000001424000 8f488 pf.ko > 5 1 0xffff0000014b5000 2eee8 carp.ko > 6 1 0xffff0000014e4000 240f0 if_enc.ko > 7 1 0xffff000001509000 2e678 if_bridge.ko > 8 2 0xffff000001538000 27470 bridgestp.ko > 9 1 0xffff000001560000 31d88 if_lagg.ko > 10 2 0xffff000001592000 23460 if_infiniband.ko > 11 1 0xffff0000015b6000 305d8 pfsync.ko > 12 1 0xffff0000015e7000 a82b0 if_re.ko > 13 1 0xffff0000c4a00000 22000 hym8563.ko > 14 1 0xffff0000c4a22000 27000 nullfs.ko > > This is an opnsense for arm64 I built here at home. I use the > realtek-re-kmod198. > > I put some more info on the FreeBSD Forum: > https://forums.freebsd.org/threads/nanopi-r5s-and-freebsd-14.88967/ > > thanks, > > matheus > > -- Emmanuel Vadot