From owner-freebsd-toolchain@freebsd.org Thu Jun 29 07:48:29 2017 Return-Path: Delivered-To: freebsd-toolchain@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 30D54D95C93; Thu, 29 Jun 2017 07:48:29 +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 39DBA79D93; Thu, 29 Jun 2017 07:48:27 +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 fa60e2d4; Thu, 29 Jun 2017 09:48:18 +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=QjgwgoXTXTe6gY8byXiDbnv1dNQ=; b=SPG/qNdrasbslzMLNDPU1lBRVfNO t5bEsEbTF0wjmyRjv5BLRGw1nvebl0abDsdaute43aPw0GOtzFXUWSorVe3YPf/v dqAn70iNb0BvT+D1VgvyRtBUdx7op98cVSwK9fcgvGerq5qlKlMyA43eDUfjKCGQ Ti6vOIA6VmejVUg= 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=VNwERX/USSLTVMecPM2D/GG0lZi/C5u29kh+2UeWU+sL/Wu0R3kP3gik AhISmLw0kGS+6nmVWXODBdlovS1bQA2PaaoxMcrJr1Wc/v3xPVd9JNXXg8PPi6V3 XugOvZAx+xhK4D+d1PSF8d8EHyiVEi5Yn0vfRG4xO1cVYW79O1w= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id e90134af TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 29 Jun 2017 09:48:18 +0200 (CEST) Date: Thu, 29 Jun 2017 09:48:18 +0200 From: Emmanuel Vadot To: Mark Millard Cc: Emmanuel Vadot , freebsd-arm , FreeBSD Toolchain , FreeBSD Ports Subject: Re: /usr/ports -r444615 (e.g.) & head -r320458 (e.g.): sysutils/u-boot-pine64 build fails for arch/arm/dts/pine64_plus.dtb source handling error (gic in a64.dtsi) Message-Id: <20170629094818.9c851cde402d80b2de30dc55@bidouilliste.com> In-Reply-To: <51D64AB6-5E0A-4210-B3B1-CB236F1C9B39@dsl-only.net> References: <746945FA-AFCD-40FE-AF7E-875B89EC1B4A@dsl-only.net> <51D64AB6-5E0A-4210-B3B1-CB236F1C9B39@dsl-only.net> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2017 07:48:29 -0000 Hello Mark, On Wed, 28 Jun 2017 20:52:17 -0700 Mark Millard wrote: > On 2017-Jun-28, at 7:44 PM, Mark Millard wrote: > > > Is the below a BSDL vs. GPL DTS issue? > > > > In my attempt to build sysutils/u-boot-pine64 I got: > > > > OBJCOPY u-boot.srec > > OBJCOPY u-boot-nodtb.bin > > start=$(aarch64-none-elf-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-none-elf-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x4a000000 $start $end > > SYM u-boot.sym > > DTC arch/arm/dts/pine64_plus.dtb > > Error at arch/arm/dts/.pine64_plus.dtb.dts.tmp:533:27: Expected unit address > > gic: interrupt-controller@{ > > ^ > > Error at arch/arm/dts/.pine64_plus.dtb.dts.tmp:533:27: Failed to find root node /. > > gic: interrupt-controller@{ > > ^ > > Failed to parse tree. > > gmake[3]: *** [scripts/Makefile.lib:299: arch/arm/dts/pine64_plus.dtb] Error 1 > > gmake[2]: *** [dts/Makefile:36: arch-dtbs] Error 2 > > gmake[1]: *** [Makefile:821: dts/dt.dtb] Error 2 > > gmake[1]: *** Waiting for unfinished jobs.... > > gmake[1]: Leaving directory '/usr/obj/portswork/usr/ports/sysutils/u-boot-pine64/work/u-boot-2016.05' > > > > > > > > Looking at the gic part of the source. . . > > > > # more /usr/obj/portswork/usr/ports/sysutils/u-boot-pine64/work/u-boot-2016.05/arch/arm/dts/a64.dtsi > > . . . > > gic: interrupt-controller@{ > > compatible = "arm,gic-400"; > > interrupt-controller; > > #interrupt-cells = <3>; > > #address-cells = <0>; > > > > reg = <0x01C81000 0x1000>, > > <0x01C82000 0x2000>, > > <0x01C84000 0x2000>, > > <0x01C86000 0x2000>; > > interrupts = > (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > > }; > > Yes the node is wrong but if gpl dtc can handle that maybe we should to, I'll try to find time to fix that. > > > > I'll be trying 3 other u-boot-*'s so I may have more to > > report later. > > The other 3 that I tried worked fine: > > Installation of sysutils/u-boot-rpi2 (u-boot-rpi2-2015.04) > Installation of sysutils/u-boot-rpi3 (u-boot-rpi3-2017.01) > Installation of sysutils/u-boot-sinovoip-bpi-m3 (u-boot-sinovoip-bpi-m3-2016.05) > > So this may be unique to a64.dtsi and its lack of > hexadecimal digits after the "@" in what I quoted. > > Still, sysutils/u-boot-pine64 used to build. So it may > be a BSDL vs. GPL DTS issue as far as the handling of > the notation goes. > > === > Mark Millard > markmi at dsl-only.net I also a patch waiting for comment on the u-boot mailing list that add the possibility to specify which dtc to use, this will be needed for the next u-boot for arm64 board as it uses 'incbin' directive which bsd dtc doesn't support yet (David is looking into it). Anyway, new u-boot should be out around july 10th so I'll update the port right after. Thanks for reporting. -- Emmanuel Vadot