Date: Tue, 12 Feb 2019 23:56:46 -0200 From: "Dr. Rolf Jansen" <rj@obsigna.com> To: freebsd-arm@freebsd.org Subject: Re: FreeBSD 13.0-CURRENT on BBB: cpswss0: failed to get PHY address from FDT Message-ID: <7DF4ED54-FD6E-4851-AA74-0CA02FBAE9C5@obsigna.com> In-Reply-To: <20190212161757.da2dda0e9b643d2a1390a4ce@bidouilliste.com> References: <FD96E7EF-0E61-41D2-BFCD-46B727E21627@obsigna.com> <20190212161757.da2dda0e9b643d2a1390a4ce@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Am 12.02.2019 um 13:17 schrieb Emmanuel Vadot <manu@bidouilliste.com>: > On Mon, 11 Feb 2019 21:54:06 -0200 "Dr. Rolf Jansen" <rj@obsigna.com> = 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DF4ED54-FD6E-4851-AA74-0CA02FBAE9C5>