Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2019 16:24:44 +0100
From:      Kaya Saman <kayasaman@optiplex-networks.com>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Pine64-LTS and UART ports
Message-ID:  <2a5fea7a-add1-99e2-262e-7ee025679eca@optiplex-networks.com>
In-Reply-To: <20190625082724.eb46a97c0c708f5dd033405e@bidouilliste.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> <20190624204216.GK2903@eldorado> <20aea57b-1ac5-15e9-ab2b-7230b81b8378@optiplex-networks.com> <20190624210245.GL2903@eldorado> <d50bb684-bc50-36a5-e6fe-d418e9d11a85@optiplex-networks.com> <20190625082724.eb46a97c0c708f5dd033405e@bidouilliste.com>

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

On 6/25/19 7:27 AM, Emmanuel Vadot wrote:
> On Mon, 24 Jun 2019 22:14:15 +0100
> Kaya Saman <kayasaman@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 th=
e
> 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=C2=A0 -j4 buildkernel KERNCONF=3DPPSGENERIC


Then installed with: make installkernel KERNCONF=3DPPSGENERIC


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


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


Running: ls -l /boot/dtb/allwinner/
total 140
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 19976 Jun 25 16:11 sun50i-a64-n=
anopi-a64.dtb
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20528 Jun 25 16:11 sun50i-a64-o=
linuxino.dtb
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20677 Jun 25 16:11 sun50i-a64-p=
ine64-plus.dtb
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20603 Jun 25 16:11 sun50i-a64-p=
ine64.dtb
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20585 Jun 25 16:11=20
sun50i-a64-sopine-baseboard.dtb
-r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 23227 Jun 25 16:11 sun50i-h5-or=
angepi-pc2.dtb


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


Unfortunately though nothing shows up in dmesg or /dev again outside of=20
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a5fea7a-add1-99e2-262e-7ee025679eca>