Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2019 21:58:44 +0100
From:      Kaya Saman <kayasaman@optiplex-networks.com>
To:        Sergey Manucharian <sm@ara-ler.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Pine64-LTS and UART ports
Message-ID:  <20aea57b-1ac5-15e9-ab2b-7230b81b8378@optiplex-networks.com>
In-Reply-To: <20190624204216.GK2903@eldorado>
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> <20190624204216.GK2903@eldorado>

next in thread | previous in thread | raw e-mail | index | archive | help

On 6/24/19 9:42 PM, Sergey Manucharian wrote:
> 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=C2=A0 /boot/loader.conf then reboo=
ted.
>> The result was nothing happened :-( no uart2 in the dmesg log at all a=
nd
>> 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 /tm=
p
>>
>>
>> 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.d=
ts
>
> Just replace "disabled" with "okay" in this section:
>
> ....
> /* On Pi-2 connector */
> &uart2 {
>      pinctrl-names =3D "default";
>      pinctrl-0 =3D <&uart2_pins>;
>      status =3D "disabled";
> };
> ....
>
> compile and copy the DTB over the original one.


Thanks for the advice! :-)


Unfortunately it 'core dumps' ??


:/usr/src/sys/gnu/dts/arm64/allwinner # dtc -@ -O dtb -I dts -o=20
sun50i-a64-pine64.dtb sun50i-a64-pine64.dts
Error at sun50i-a64-pine64.dts:106:22: Expected numbers in array of cells
 =C2=A0=C2=A0=C2=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>;
 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
Error at sun50i-a64-pine64.dts:106:22: Expected ; at end of property
 =C2=A0=C2=A0=C2=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>;
 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
Segmentation fault (core dumped)


I'll try Milan's method of using the helper script next for the building=20
and see if that helps.....


Regards,


Kaya




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20aea57b-1ac5-15e9-ab2b-7230b81b8378>