From nobody Tue Feb 11 12:12:08 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 4YsgL30XZ9z5nV1V for ; Tue, 11 Feb 2025 12:12:11 +0000 (UTC) (envelope-from lojas@arroway.org) Received: from hobbes.arroway.org (hobbes.arroway.org [173.199.118.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4YsgL14NQdz3STx for ; Tue, 11 Feb 2025 12:12:09 +0000 (UTC) (envelope-from lojas@arroway.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=arroway.org header.s=hobbes header.b=F6Z6jv6u; spf=pass (mx1.freebsd.org: domain of lojas@arroway.org designates 173.199.118.77 as permitted sender) smtp.mailfrom=lojas@arroway.org; dmarc=none Received: from [10.1.7.91] (unknown [187.61.252.101]) by hobbes.arroway.org (Postfix) with ESMTPA id A9B1714D223 for ; Tue, 11 Feb 2025 09:12:07 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arroway.org; s=hobbes; t=1739275929; bh=flRuJWpxLa3yjrQ+BUJuprXOKO22fkhwldd+Zxd0TkY=; h=In-Reply-To:References:Date:Subject:From:To; b=F6Z6jv6uMlMxQRlTDIX8KULsLGZxK4eAYpESClY1dypf7PpRInlvrwXC+OiC98Khv NYBNuxhhS9Pv1NTOgbucd7caifaO8N9/8IZRqGKeEVLF5imdV46H56b0Yu3hAwnqfL 251AJsJuVIkta8rtlshA2hqinwdb0hnc4Y1aX7N8= Received: from 172.16.0.6 (SquirrelMail authenticated user matheus) by 10.1.7.91 with HTTP; Tue, 11 Feb 2025 12:12:08 -0000 Message-ID: In-Reply-To: <20250211121727.290f4ddccf5aa4d901f681d7@bidouilliste.com> References: <20250211121727.290f4ddccf5aa4d901f681d7@bidouilliste.com> Date: Tue, 11 Feb 2025 12:12:08 -0000 Subject: Re: Nanopi R5S and U-boot from Ports From: "Nenhum_de_Nos" To: freebsd-arm@freebsd.org User-Agent: SquirrelMail/1.4.23 [SVN] 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=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spamd-Result: default: False [-1.40 / 15.00]; MID_BARE_IP(2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[arroway.org:s=hobbes]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[arroway.org]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:173.199.116.0/22, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; HAS_X_PRIO_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DKIM_TRACE(0.00)[arroway.org:+] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4YsgL14NQdz3STx > > 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, Hi Emmanuel, so there is nothing I can do for now, but wait till the if_re driver to work on ftd mode? thanks for the help. matheus >> 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 > >