From owner-freebsd-current@freebsd.org Sat Jul 23 13:26: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 86515BA21E7 for ; Sat, 23 Jul 2016 13:26: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 A665B1C18; Sat, 23 Jul 2016 13:26: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 d13e334d; Sat, 23 Jul 2016 15:26:25 +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=rTn4S9ImrlskducIf5acQ7lcOTg=; b=FXxCNIhUZ+IWu8Cv+T+3BVW/XsMi ko8dZiUbTASaLJBHI7dPAseqbVNPPEIGuhtW5kcGes9PtkzoOI9yIiDtJbWSEY+1 wb1Ck65sXasoC6JySvbs+NF782ssHBncKW7/fgjlGblLURsSTtk1InNuq9gWUPFj MvGhLYN0mhncbdQ= 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=K6m5w+SgabUfPS5BM+xJ1rm6+q3WA+mKr+86EiqjsseFjgcMG0Qvu3aS MnrWhugpAOATsBFW2xzSRFFepzFK4aGiDEn9ag+TeL0GZgCiLYgRDoeh8cFiNk7E 1QmiCzTUykCYa0NKaPDS1ex9b75o7WeBH6YmXZ057uV8v3KMnwI= 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 f2bb5da8 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 23 Jul 2016 15:26:25 +0200 (CEST) Date: Sat, 23 Jul 2016 15:26:21 +0200 From: Emmanuel Vadot To: Warner Losh Cc: David Chisnall , Ed Maste , FreeBSD Current Subject: Re: Call for Testing: Switching back to our BSD licensed dtc(1) Message-Id: <20160723152621.f5d86620141651ebaba57628@bidouilliste.com> In-Reply-To: References: <10FBB716-E0BA-4146-92FD-F90AB4F8987C@FreeBSD.org> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Sat, 23 Jul 2016 13:26:35 -0000 On Fri, 22 Jul 2016 22:16:41 -0600 Warner Losh wrote: > On Fri, Jul 22, 2016 at 1:03 AM, David Chisnall wr= ote: > > On 22 Jul 2016, at 03:40, Warner Losh wrote: > >> > >> On Wed, Jul 20, 2016 at 9:51 AM, David Chisnall = wrote: > >>> On 20 Jul 2016, at 16:46, Warner Losh wrote: > >>>> > >>>> I've been trying to get the final spec for it. Right now it's a > >>>> disorganized series > >>>> of patches, some of which have been merge some that haven't. I'll se= nd you a > >>>> copy when I can find something better than "here's the code." > >>> > >>> Thanks. From the information I can find, it looks as if most of the = machinery required to implement it is already in dtc, so it should (hopeful= ly) just be a matter of adding a new keyword to detect plugins, a scan to f= ind the cross-references (or possibly reusing the existing one) and then a = little bit of extra logic. > >> > >> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/D= ocumentation/devicetree/overlay-notes.txt > >> has the specs. > > > > Hmm, that?s even less complete than the docs that I?d found. >=20 > Can you share that then? >=20 > >From that, it seems as if the only thing that dtc needs to do is support= the /plugin/ syntax and emit a section describing unresolved references? >=20 > I believe so, yes. >=20 > >Or is dtc also expected to be able to do the merging? >=20 > I think that's TBD. We'll need, at the very least, an update libfdt > from upstream that knows how to do the merging, as well as changes to > /boot/loader to be able to pick and choose which plugins to add to the > base. If we can do all that with the BSDL DTC and it passes all the > other GPL test cases, then we may have a winner and we can get started > integrating plugin support to /boot/loader. I know my RPi would be > happier if it had a 'standard' DTB with a plugin for whatever 1-wire > stuff I'm playing with today. >=20 > Warner ubldr already support dtb overlays as of r298821. Also support might come to uboot directly soon. --=20 Emmanuel Vadot