Pine64-LTS and UART ports
Emmanuel Vadot
manu at bidouilliste.com
Tue Jun 25 06:27:32 UTC 2019
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:
> >> :/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)
> > Use DTC from ports: sysutils/dtc, it's slightly different from the one
> > from base.
> >
> > ??
> >
>
> Thanks for the hint Sergey.
>
>
> I ran:
>
>
> :/usr/src/sys/gnu/dts/arm64/allwinner # /usr/local/bin/dtc -f -b0 -@ -O
> 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
>
>
> If I am correct in the syntax error being on line 45 then it is the call
> to sun50i-a64.dtsi
>
>
> Regards,
>
>
> 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.
--
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>
More information about the freebsd-arm
mailing list