Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2016 12:42:54 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        Ed Maste <emaste@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Call for Testing: Switching back to our BSD licensed dtc(1)
Message-ID:  <A4DA73D1-D2F8-4E15-AD10-F9263396A9E1@FreeBSD.org>
In-Reply-To: <20160719214947.ae2edc38528eaaab1388403f@bidouilliste.com>
References:  <CAPyFy2A71h5WYXR4cNoDRZ-sB2FWmJva6FFNX4jtSZqH=JxpMg@mail.gmail.com> <20160719214947.ae2edc38528eaaab1388403f@bidouilliste.com>

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

--Apple-Mail=_5535C2D6-60F8-47F4-84C0-9C639C942496
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Thanks,

On 19 Jul 2016, at 20:49, Emmanuel Vadot <manu@bidouilliste.com> wrote:
>=20
>=20
> Hello,
>=20
> I've just tried bsd dtc on all arm dts that we have.
> It doesn't seems to handle multiple include directories.
> Here is how to reproduce :
>=20
> $ export SRCROOT=3D/path/to/fbsd/src
> $ export MACHINE=3Darm
> $ cd $SRCROOT/sys/boot/fdt/dts/arm
> $ $SRCROOT/sys/tools/fdt/make_dtb.sh $SRCROOT/sys
> beaglebone-black.dts . converting beaglebone-black.dts
> -> ./beaglebone-black.dtb Unable to open file
> =
'/home/elbarto/Work/freebsd/freebsd.git//sys/boot/fdt/dts/arm/am33xx-clock=
s.dtsi'.
> No such file or directory Unable to open file
> =
'/home/elbarto/Work/freebsd/freebsd.git//sys/boot/fdt/dts/arm/tps65217.dts=
i'.
> No such file or directory
>=20
> Both dtsi files are include with /include/ (i.e. not handled by cpp).
> make_dtb.sh specify : -i $S/boot/fdt/dts/${MACHINE} -i
> $S/gnu/dts/${MACHINE}, it looks like the second one isn't added to the
> list.

It actually is added to the list and found.  The bug here is in error =
reporting - it was reporting an error for each file that it tried to =
open but couldn=E2=80=99t, even when it subsequently found the correct =
file.

>=20
> Trying tegra124-jetson-tk1-fbsd.dts give this :
> converting tegra124-jetson-tk1-fbsd.dts
> -> /tmp/bsd_dtb//tegra124-jetson-tk1-fbsd.dtb Error on line 1214:
> Expected node name interrupt-affinity =3D <&{/cpus/cpu@0}>,
>                         ^
> Error on line 1214: Expected ; at end of property
>  interrupt-affinity =3D <&{/cpus/cpu@0}>,
>                         ^
> Failed to parse tree.  Unhappy face!

There was a FIXME relating to this in the code. =20

I=E2=80=99ve now fixed both of these in the version here:

https://github.com/davidchisnall/dtc

I=E2=80=99ll push the changes to FreeBSD svn soon, but in the meantime =
anyone wanting to test can just clone that repo over the dtc directory =
in their src checkout.

David


--Apple-Mail=_5535C2D6-60F8-47F4-84C0-9C639C942496
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIK5jCCBPww
ggPkoAMCAQICECJrrb9nBol9MHok/UZg/AYwDQYJKoZIhvcNAQELBQAwdTELMAkGA1UEBhMCSUwx
FjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5MSMwIQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQTAeFw0xNjA0MTkw
OTI3NDJaFw0xNzA0MTkwOTI3NDJaMEQxHTAbBgNVBAMMFHRoZXJhdmVuQGZyZWVic2Qub3JnMSMw
IQYJKoZIhvcNAQkBFhR0aGVyYXZlbkBmcmVlYnNkLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBALsL5pEhrGjrswHVdMHWhgxb8ARKDYRePSqpDLmjJ40bpx+n1zrvIwjC2Vk2IpoD
04rg5Pog2Irhn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9kghjcG7gC2
eoe1QZFBSlFeEp10MMvO3DNIrO3tzIgX83LBdh/mWsN89gZzR9nkxw7envZdVP9+BzosRmnpAgCL
/3NMyAO2yqGlVc0Bw7t57Laj2k8DfQB4vKk7CvrAkiDWj8ncR6YhpvgOsYgAAAAAAAA=
--Apple-Mail=_5535C2D6-60F8-47F4-84C0-9C639C942496--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4DA73D1-D2F8-4E15-AD10-F9263396A9E1>