From owner-freebsd-arm@freebsd.org Wed Feb 13 01:57:03 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8C0114DDF1C for ; Wed, 13 Feb 2019 01:57:03 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from projectstore.net (ec2-18-228-164-192.sa-east-1.compute.amazonaws.com [18.228.164.192]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39F3868146 for ; Wed, 13 Feb 2019 01:57:00 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mail.obsigna.com (unknown [189.29.185.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by projectstore.net (Postfix) with ESMTPSA id CD69C1E149C; Tue, 12 Feb 2019 23:56:48 -0200 (-02) Received: from rolf-mini.obsigna.com (rolf-mini.obsigna.com [192.168.222.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id D89C01350FB1C; Tue, 12 Feb 2019 23:56:46 -0200 (-02) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: FreeBSD 13.0-CURRENT on BBB: cpswss0: failed to get PHY address from FDT From: "Dr. Rolf Jansen" In-Reply-To: <20190212161757.da2dda0e9b643d2a1390a4ce@bidouilliste.com> Date: Tue, 12 Feb 2019 23:56:46 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7DF4ED54-FD6E-4851-AA74-0CA02FBAE9C5@obsigna.com> References: <20190212161757.da2dda0e9b643d2a1390a4ce@bidouilliste.com> To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 39F3868146 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rj@obsigna.com designates 18.228.164.192 as permitted sender) smtp.mailfrom=rj@obsigna.com X-Spamd-Result: default: False [-1.76 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.948,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:projectstore.net]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[obsigna.com]; NEURAL_HAM_LONG(-0.97)[-0.969,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[obsigna.com,mail.obsigna.com]; RCPT_COUNT_TWO(0.00)[2]; FROM_NAME_HAS_TITLE(1.00)[dr]; IP_SCORE(-0.28)[asn: 16509(-1.33), country: US(-0.07)]; NEURAL_HAM_SHORT(-0.75)[-0.755,0]; RECEIVED_SPAMHAUS_PBL(0.00)[66.185.29.189.zen.spamhaus.org : 127.0.0.11]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:18.228.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2019 01:57:04 -0000 > Am 12.02.2019 um 13:17 schrieb Emmanuel Vadot : > On Mon, 11 Feb 2019 21:54:06 -0200 "Dr. Rolf Jansen" = wrote: >=20 >> I loaded the latest snapshot = FreeBSD-13.0-CURRENT-arm-armv7-BEAGLEBONE-20190207-r343862 on my = BeagleBone Black, and with that one the ethernet NIC does not work = anymore. In the startup log I see: >>=20 >> cpswss0: failed to get PHY address from FDT >>=20 >> What can/shall I do? >=20 > This is due to this commit in the DTS : > = https://github.com/torvalds/linux/commit/4d8b032d3c03f4e9788a18bbb51b10e6c= 9e8a56b >=20 > For a quick fix you can edit the DTS, revert this and recompile it. > (from a FreeBSD machine exec this from /usr/src : > MACHINE=3Darm sh sys/tools/fdt/make_dtb.sh `pwd`/sys > sys/gnu/dts/arm/am335x-boneblack.dts . ) >=20 > Someone will need to fix this in > our cpsw driver. Thank you very much for the hint. Using the diff of the commit which you = mentioned, I was able to create an overlay and it works fine. So, no = need to recompile the whole DTB. The overlay is: /dts-v1/; /plugin/; / { compatible =3D "ti,am335x-bone-black", "ti,am335x-bone", = "ti,am33xx"; part-number =3D "cpsw_emac0"; version =3D "0001"; }; &cpsw_emac0 { phy_id =3D <&davinci_mdio>, <0>; }; This is meant to be compiled as follows: dtc -I dts -O dtb -b0 -@ -o /boot/dtbo/am335x-boneblack-cpsw.dtbo = am335x-boneblack-cpsw.dtso Finally, I needed to add it to my other overlays in /boot/loader.conf: = fdt_overlays=3D=E2=80=9E/boot/dtbo/am335x-boneblack-tscadc.dtbo,/boot/dtbo= /am335x-boneblack-pruss.dtbo,/boot/dtbo/am335x-boneblack-i2c1.dtbo,/boot/d= tbo/am335x-boneblack-cpsw.dtbo" Problem solved, thank you very much again. Best regards Rolf