From nobody Fri Jun 24 12:57:15 2022 X-Original-To: freebsd-net@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 42B86867B21 for ; Fri, 24 Jun 2022 12:57:19 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from fc.opsec.eu (fc.opsec.eu [IPv6:2001:14f8:200:4::4]) (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 4LTxwY6NMKz4YFX for ; Fri, 24 Jun 2022 12:57:17 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by fc.opsec.eu with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1o4is7-000IvU-NU for freebsd-net@freebsd.org; Fri, 24 Jun 2022 14:57:15 +0200 Date: Fri, 24 Jun 2022 14:57:15 +0200 From: Kurt Jaeger To: freebsd-net@freebsd.org Subject: Building driver for BCM57504 from Broadcom? Message-ID: List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4LTxwY6NMKz4YFX X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 2001:14f8:200:4::4 is neither permitted nor denied by domain of pi@freebsd.org) smtp.mailfrom=pi@freebsd.org X-Spamd-Result: default: False [1.50 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[pi]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.99)[0.989]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.61)[0.607]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; TO_DOM_EQ_FROM_DOM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi! For more details, see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263046 Problem: Getting a BCM57504 card to work on FreeBSD Current state of affairs: There's a driver from Broadcom: https://www.broadcom.com/products/ethernet-connectivity/network-adapters/p425g as version 222.0.74.0. It's source, so I tried to build it on 13.1, after I disabled -Werror in share/mk/bsd.sys.mk sys/conf/kern.pre.mk Now it builds, but fails to load, with those error messages: link_elf_obj: symbol if_multiaddr_count undefined linker_load_file: /usr/obj/usr/src/amd64.amd64/sys/modules/bnxt/if_bnxt.ko - unsupported file type I've tried to find that if_multiaddr_count() function in the source tree (either 13.1 or current), but failed 8-( Does anyone have an idea where that function might come from ? Or should I fake it ? -- pi@FreeBSD.org +49 171 3101372 Now what ?