From owner-freebsd-current@FreeBSD.ORG Sun May 24 07:56:24 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE8BB9E; Sun, 24 May 2015 07:56:24 +0000 (UTC) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 692671F0A; Sun, 24 May 2015 07:56:24 +0000 (UTC) Received: from [12.144.165.244] (helo=climp-laptop.dolby.net) by id.bluezbox.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1YwQlg-000NUw-Es; Sun, 24 May 2015 00:56:22 -0700 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: am335x-bone.dts not exist From: Oleksandr Tymoshenko In-Reply-To: Date: Sun, 24 May 2015 00:55:46 -0700 Cc: Andrey Fesenko , "freebsd-arm@freebsd.org" , freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: References: <8FF14032-CAAA-41AD-A3A7-DBBAA69D2153@bluezbox.com> To: Garrett Cooper X-Mailer: Apple Mail (2.2098) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: > On May 24, 2015, at 12:12 AM, Garrett Cooper wrote: > > On May 24, 2015, at 0:07, Oleksandr Tymoshenko wrote: > >>> On May 23, 2015, at 7:21 PM, Andrey Fesenko wrote: >>> >>> # uname -a >>> FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat >>> May 23 11:56:46 MSK 2015 >>> root@des.local:/usr/obj/usr/src/sys/GENERIC amd64 >>> >>> I'm build BEAGLEBONE with crochet. >>> >>> build error >>> >>> Mounting UFS partition 1 at /usr/obj/_.mount.freebsd >>> Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone >>> Error: beaglebone.dts:29.1-2 syntax error >>> FATAL ERROR: Unable to parse input tree >>> >>> >>> file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include >>> "am335x-bone.dts" but this file not existence. Need use am335x-evm.dts >>> or else? >> >> >> am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI) >> >> I guess crochet does not have this path as include path when compiling >> dts files. > > Pardon me for being a bit daft potentially, but shouldn’t #include work for all dts files (look for #include in this doc: http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf )? > Thanks! > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: bluezbox.com] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 24 May 2015 07:56:25 -0000 > On May 24, 2015, at 12:12 AM, Garrett Cooper = wrote: >=20 > On May 24, 2015, at 0:07, Oleksandr Tymoshenko = wrote: >=20 >>> On May 23, 2015, at 7:21 PM, Andrey Fesenko = wrote: >>>=20 >>> # uname -a >>> FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat >>> May 23 11:56:46 MSK 2015 >>> root@des.local:/usr/obj/usr/src/sys/GENERIC amd64 >>>=20 >>> I'm build BEAGLEBONE with crochet. >>>=20 >>> build error >>>=20 >>> Mounting UFS partition 1 at /usr/obj/_.mount.freebsd >>> Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone >>> Error: beaglebone.dts:29.1-2 syntax error >>> FATAL ERROR: Unable to parse input tree >>>=20 >>>=20 >>> file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include >>> "am335x-bone.dts" but this file not existence. Need use = am335x-evm.dts >>> or else? >>=20 >>=20 >> am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by = vendor (TI) >>=20 >> I guess crochet does not have this path as include path when = compiling >> dts files. >=20 > Pardon me for being a bit daft potentially, but shouldn=92t #include = work for all dts files (look for #include in this doc: = http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-devi= ce-tree-dummies.pdf )? > Thanks! >=20 #include in dts file is handled by cpp(1). /include/ is handled by dtc I believe You can take a look at how FreeBSD compiles dts files in sys/tools/fdt/make_dtb.sh crochet does not have cpp stage of compilation and before my TI code/devicetree refactoring none of the dts files referenced in crochet used #include. That's why problem never appeared.=20 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh. If nobody beats me to it I'll try to fix it and submit pull request to = Tim.=20