Pine64-LTS and UART ports

Kaya Saman kayasaman at optiplex-networks.com
Mon Jun 24 20:58:48 UTC 2019


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  /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.


Thanks for the advice! :-)


Unfortunately it 'core dumps' ??


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


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


Regards,


Kaya



More information about the freebsd-arm mailing list