From owner-freebsd-current@freebsd.org Tue Jul 19 19:56:35 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49D66B9E7D6 for ; Tue, 19 Jul 2016 19:56:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 86E1E1645; Tue, 19 Jul 2016 19:56:33 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 15ad6ca1; Tue, 19 Jul 2016 21:49:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=M+h3xajkr4tgzi6x34ylvlogBq8=; b=q6rY0FhebBVodbH5YgXnEsQrAvKd z7kUBzm/U6R/rElNqwha+CEpTUJw6pWY6bNuB1IIf/juzFLie1dYO5g7EbpIsuww T1BwmlYY2aIK/P6pGLZhdagtlKxVfifabqs+cZzpwnZExCBYiodVQzYvgu0SMktE gnh+L+ejOgYA8a4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=rkcMD+If5MJvgHDVUUkvuMoQHHAwaKAVtmzh51q2v4os5TeuAnpZ762V W0qq+jxB5qS5STVuqFA4KFsqcE0dyKDTFil9n3fqQfjvJxktYGEue/9Zk6M4Kisp n0td48U6nUwu3xYjMQetKHLl3IK+CQ4mbibeKkoI9qA6dSGlUNo= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id d60c536d TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 19 Jul 2016 21:49:51 +0200 (CEST) Date: Tue, 19 Jul 2016 21:49:47 +0200 From: Emmanuel Vadot To: Ed Maste Cc: FreeBSD Current Subject: Re: Call for Testing: Switching back to our BSD licensed dtc(1) Message-Id: <20160719214947.ae2edc38528eaaab1388403f@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 19 Jul 2016 20:10:03 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 19:56:35 -0000 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@0}>, ^ Error on line 1214: Expected ; at end of property interrupt-affinity = <&{/cpus/cpu@0}>, ^ Failed to parse tree. Unhappy face! Cheers, On Tue, 19 Jul 2016 15:12:02 -0400 Ed Maste 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Emmanuel Vadot