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

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 Jun 2019 22:14:15 +0100
Kaya Saman <kayasaman@optiplex-networks.com> wrote:

>=20
> On 6/24/19 10:02 PM, Sergey Manucharian wrote:
> > Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:58:
> >> :/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 ce=
lls
> >>   =A0=A0=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>;
> >>   =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 ^
> >> Error at sun50i-a64-pine64.dts:106:22: Expected ; at end of property
> >>   =A0=A0=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>;
> >>   =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 ^
> >> Segmentation fault (core dumped)
> > Use DTC from ports: sysutils/dtc, it's slightly different from the one
> > from base.
> >
> > ??
> >
>=20
> Thanks for the hint Sergey.
>=20
>=20
> I ran:
>=20
>=20
> :/usr/src/sys/gnu/dts/arm64/allwinner # /usr/local/bin/dtc -f -b0 -@ -O=20
> dtb -I dts -o sun50i-a64-pine64.dtb sun50i-a64-pine64.dts
> Error: sun50i-a64-pine64.dts:45.1-9 syntax error
> FATAL ERROR: Unable to parse input tree
>=20
>=20
> If I am correct in the syntax error being on line 45 then it is the call=
=20
> to sun50i-a64.dtsi
>=20
>=20
> Regards,
>=20
>=20
> Kaya

 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.

--=20
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190625082724.eb46a97c0c708f5dd033405e>