Pine64-LTS and UART ports

Kaya Saman kayasaman at optiplex-networks.com
Tue Jun 25 15:24:48 UTC 2019


On 6/25/19 7:27 AM, Emmanuel Vadot wrote:
> On Mon, 24 Jun 2019 22:14:15 +0100
> Kaya Saman <kayasaman at optiplex-networks.com> wrote:
>
>> On 6/24/19 10:02 PM, Sergey Manucharian wrote:
>>> Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:58:
>>> [snip]
>   DTS and DTSO needs to be pre-processed by cpp as they use #include
> directives, you can have a look at sys/tools/fdt/make_dtb.sh and
> make_dtbo.sh
>   If you modify the DTS simply running make buildkernel will compile the
> new one, just make sure to put it on the FAT32 partition in
> dts/allwinner as we need it loaded by u-boot and it can't read ufs.
>

Thanks Emmanuel!


I ran: make  -j4 buildkernel KERNCONF=PPSGENERIC


Then installed with: make installkernel KERNCONF=PPSGENERIC


The sun50i-a64-pine64.dts has the modification already suggested:


/* On Pi-2 connector */
&uart2 {
         pinctrl-names = "default";
         pinctrl-0 = <&uart2_pins>;
         status = "okay";
};


Running: ls -l /boot/dtb/allwinner/
total 140
-r--r--r--  1 root  wheel  19976 Jun 25 16:11 sun50i-a64-nanopi-a64.dtb
-r--r--r--  1 root  wheel  20528 Jun 25 16:11 sun50i-a64-olinuxino.dtb
-r--r--r--  1 root  wheel  20677 Jun 25 16:11 sun50i-a64-pine64-plus.dtb
-r--r--r--  1 root  wheel  20603 Jun 25 16:11 sun50i-a64-pine64.dtb
-r--r--r--  1 root  wheel  20585 Jun 25 16:11 
sun50i-a64-sopine-baseboard.dtb
-r--r--r--  1 root  wheel  23227 Jun 25 16:11 sun50i-h5-orangepi-pc2.dtb


The dtb files have been created and installed by the 'installkernel' 
command.


Unfortunately though nothing shows up in dmesg or /dev again outside of 
the standard uart0?


dmesg |grep uart
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 23 on simplebus0
uart0: console (115384,n,8,1)


Is there an additional step which needs to be done to get this to work?


Regards,


Kaya



More information about the freebsd-arm mailing list