Date: Sat, 23 Jul 2016 11:37:56 +0100 From: David Chisnall <theraven@FreeBSD.org> To: Warner Losh <imp@bsdimp.com> Cc: Ed Maste <emaste@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Call for Testing: Switching back to our BSD licensed dtc(1) Message-ID: <8502419A-2BC9-4893-ACCA-E6EB359FB7F5@FreeBSD.org> In-Reply-To: <CANCZdfqhnZpxyBn6mXW6tps0mc1cKV0AEu5zwr6ujKSxJJ24WA@mail.gmail.com> References: <CAPyFy2A71h5WYXR4cNoDRZ-sB2FWmJva6FFNX4jtSZqH=JxpMg@mail.gmail.com> <CANCZdfppxV0uB37nSaCPW2xLWPpTyzY5UZUkF6FkNoMAg_HsOg@mail.gmail.com> <FBCA88F4-4F31-44A9-AE76-54191FB8F8B3@FreeBSD.org> <CANCZdfr8AOd%2B2%2BRY1jpmOfADxhXd3CjXF4nnjJhgNqdBo2v7ZA@mail.gmail.com> <CANCZdfpfrbuZ1ZC1y=rY9WtoSPVE2rgoQ16eRLszkg%2BB246Hrg@mail.gmail.com> <DED81BE3-8084-4127-A408-4110F2814AAD@FreeBSD.org> <CANCZdfqXCOQ=mOP415%2BtO5jRRWn7wWYM-3CjQzuMB=8Q=0%2BqCA@mail.gmail.com> <10FBB716-E0BA-4146-92FD-F90AB4F8987C@FreeBSD.org> <CANCZdfqhnZpxyBn6mXW6tps0mc1cKV0AEu5zwr6ujKSxJJ24WA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 23 Jul 2016, at 05:16, Warner Losh <imp@bsdimp.com> wrote: > > On Fri, Jul 22, 2016 at 1:03 AM, David Chisnall <theraven@freebsd.org> wrote: >> On 22 Jul 2016, at 03:40, Warner Losh <imp@bsdimp.com> wrote: >>> >>> On Wed, Jul 20, 2016 at 9:51 AM, David Chisnall <theraven@freebsd.org> wrote: >>>> On 20 Jul 2016, at 16:46, Warner Losh <imp@bsdimp.com> 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 send 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 (hopefully) just be a matter of adding a new keyword to detect plugins, a scan to find 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/Documentation/devicetree/overlay-notes.txt >>> has the specs. >> >> Hmm, that’s even less complete than the docs that I’d found. > > Can you share that then? I only found tutorial-style things: https://www.raspberrypi.org/documentation/configuration/device-tree.md https://learn.adafruit.com/introduction-to-the-beaglebone-black-device-tree/device-tree-overlays I was hoping for something a bit more like a spec. >> 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? > > I believe so, yes. That sounds like it should be easy. > >> Or is dtc also expected to be able to do the merging? > > 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. Patrick Wildt was running the GPL’d dtc test suite and I fixed all of the things that he reported broken. We’re now using a less-efficient algorithm for calculating the cross-references so that we resolve things in the same order, which makes doing a diff on the dts produced by the two tools easier. David [-- Attachment #2 --] 0 *H 010 + 0 *H 00"kg}0z$F`0 *H 0u10 UIL10U StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA0 160419092742Z 170419092742Z0D10Utheraven@freebsd.org1#0! *H theraven@freebsd.org0"0 *H 0 !htֆ[J ^=*':#Y6"ӊ ؊cR_0WZ=Rx4 asPm&0:P2>u=NbLn]E}$$ xS4ǖRI68RpO֔{\oz;)D=SOM^#;Ԡ*Y߆ mbf/+hBӅuQ@ڭʫ&8@Xm 00U0U%0++0 U0 0Us[Ddp =0U#0$l9aIF+('Hmh0o+c0a0$+0http://ocsp.startssl.com09+0-http://aia.startssl.com/certs/sca.client1.crt08U10/0-+)'http://crl.startssl.com/sca-client1.crl0U0theraven@freebsd.org0#U0http://www.startssl.com/0FU ?0=0;+70,0*+http://www.startssl.com/policy0 *H R1m =.A#6n-B;w5'zGL:=E44hOaŹi}l}{f!_Fh+MDZu!K&ECE~PWѥftB+UcEKD&3V]g,}{-)M[_!8jJ&a͒N"jԫt2ךz0ζ=|E?<viA2W9&_u{:u۲\E00ʠk} Q Y0 *H 0}10 UIL10U StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0 151216010005Z 301216010005Z0u10 UIL10U StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA0"0 *H 0 }â}[[_u$Wy5 |̔ vnqY)\aL$dYG|B"QǤĩVD#'F k9O_]*ςz_kU.u3r #:C<ogT)K Xah8v[\KqdlO)3+u7J5";[vfL/"2ϩJ#4ד[U TB,a˖a7H< =q d0`0U0U%0++0U0 02U+0)0'%#!http://crl.startssl.com/sfsca.crl0f+Z0X0$+0http://ocsp.startssl.com00+0$http://aia.startssl.com/certs/ca.crt0U$l9aIF+('Hmh0U#0N@[i04hCA0?U 80604U 0,0*+http://www.startssl.com/policy0 *H [#'#4pnRۡЗN⛭`]K"#H*߷Թψ;UA8Ҟeg{ozmYE60A)wXRK6c^-Al^k[':G=;oLv{$B5;8b,ZP4{o[-j m)[땭[4 s.c|ҴvYLJ<|ӯgu0jD2 @hl+:j\ze_ևa@HyMHINxpK?% 㤺RC:=?^&7m´)A2;E~VB1$EvcKj؝(OoپU`"$a;ҡj0$&<$ۊ+/xjzb,7}W*1ܺtDv#8K %^P>/i?)yRuQg^z`~sP91N0J00u10 UIL10U StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0 + 0 *H 1 *H 0 *H 1 160723103756Z0# *H 1&"yoxb2yXK$00 +7100u10 UIL10U StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0*H 10u10 UIL10U StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0 *H Yn+jSd,(?7k1zN!zUC=dC:,y9 IUwMaߖV/Qm8 ?8,}QdR!tg3$><rZ~\U#?{ŪD5SdHX8烟YD_4AZ֦Wo'kc8dT'64%pV;A,ej&0/2a^s/%s#|P\Na I~on
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8502419A-2BC9-4893-ACCA-E6EB359FB7F5>
