Thanks, On 19 Jul 2016, at 20:49, Emmanuel Vadot <manu_at_bidouilliste.com> wrote: > > > Hello, > > 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 : > > $ export SRCROOT=/path/to/fbsd/src > $ export MACHINE=arm > $ 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-clocks.dtsi'. > No such file or directory Unable to open file > '/home/elbarto/Work/freebsd/freebsd.git//sys/boot/fdt/dts/arm/tps65217.dtsi'. > No such file or directory > > 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’t, even when it subsequently found the correct file. > > 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 = <&{/cpus/cpu_at_0}>, > ^ > Error on line 1214: Expected ; at end of property > interrupt-affinity = <&{/cpus/cpu_at_0}>, > ^ > Failed to parse tree. Unhappy face! There was a FIXME relating to this in the code. I’ve now fixed both of these in the version here: https://github.com/davidchisnall/dtc I’ll 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
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC