Date: Mon, 24 Jun 2019 14:42:16 -0600 From: Sergey Manucharian <sm@ara-ler.com> To: Kaya Saman <kayasaman@optiplex-networks.com> Cc: freebsd-arm@freebsd.org Subject: Re: Pine64-LTS and UART ports Message-ID: <20190624204216.GK2903@eldorado> In-Reply-To: <75d6afff-8d83-57da-0a13-a4977d12cb87@optiplex-networks.com> References: <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com> <20190623235732.4439b707@zeta.dino.sk> <ae92ac02-ce53-18fe-9eab-8b17e8d52cd2@optiplex-networks.com> <20190624133017.5a9689b7@zeta.dino.sk> <62ba1a30-25bc-af65-beb2-0e05dfc76c79@optiplex-networks.com> <20190624164512.0ea5c4d3@zeta.dino.sk> <75d6afff-8d83-57da-0a13-a4977d12cb87@optiplex-networks.com>
index | next in thread | previous in thread | raw e-mail
Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:22:
> I tried the dtc method - using this example from the man page:
>
> dtc -@ -O dtb -I dts -o device_overlay.dtbo device_overlay.dts
>
> Actual command used: dtc -@ -O dtb -I dts -o sun50i-a64-uart2.dtbo
> sun50i-a64-uart2.dtso
>
>
> then copied the resulting dtbo file into the /boot/dtb/overlays
> directory, and added the entry into /boot/loader.conf then rebooted.
> The result was nothing happened :-( no uart2 in the dmesg log at all and
> no extra ttyu(x) either
>
> I've just also attempted: /usr/src/sys/tools/fdt/make_dtbo.sh
> /usr/src/sys /usr/src/sys/dts/arm64/overlays/sun50i-a64-uart2.dtso /tmp
>
>
> then copied the .dtbo file into /boot/dtb/overlays and rebooted. Again
> nothing??
I used to have similar issues with overlays, and ended up with editing the
main DTS file, in your case it will be (I believe) sun50i-a64-pine64.dts
Just replace "disabled" with "okay" in this section:
....
/* On Pi-2 connector */
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
status = "disabled";
};
....
compile and copy the DTB over the original one.
--
Ϟϻ
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190624204216.GK2903>
