Re: Call for Testing: Switching back to our BSD licensed dtc(1)

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Tue, 19 Jul 2016 21:49:47 +0200
 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.

 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!

 Cheers,

On Tue, 19 Jul 2016 15:12:02 -0400
Ed Maste <emaste_at_freebsd.org> wrote:

> dtc(1) is the Device Tree Compiler, used for embedded builds. We have
> two versions of dtc(1) in the FreeBSD tree: a GPLv2 one from
> https://git.kernel.org/cgit/utils/dtc/dtc.git and a BSD licensed one
> in https://svn.freebsd.org/base/head/usr.bin/dtc.
> 
> We switched back to the GPL one since device tree files in the most
> recent import required features not available in our own at the time.
> However, as of r292876 the BSD licensed dtc(1) is functional and we
> should be able to switch back to it.
> 
> I would encourage embedded users (primarily ARM boards) to test with
> WITHOUT_GPL_DTC in /etc/src.conf and report their success or failure.
> 
> -Ed
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"


-- 
Emmanuel Vadot
Received on Tue Jul 19 2016 - 17:56:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:06 UTC