Date: Mon, 25 May 2015 09:25:43 -0600 From: Warner Losh <imp@bsdimp.com> To: Tim Kientzle <tim@kientzle.com> Cc: Oleksandr Tymoshenko <gonzo@bluezbox.com>, Garrett Cooper <yaneurabeya@gmail.com>, Andrey Fesenko <f0andrey@gmail.com>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD current <freebsd-current@freebsd.org> Subject: Re: am335x-bone.dts not exist Message-ID: <142808D5-D628-4FCF-BDF4-BBC96D91E118@bsdimp.com> In-Reply-To: <4F170567-59B8-477B-8524-D15AF58288C2@kientzle.com> References: <CA%2BK5SrNykSa4n0MykuEQ52nYdh5uXfqsv7=pdAkrW2_1kbDpzQ@mail.gmail.com> <8FF14032-CAAA-41AD-A3A7-DBBAA69D2153@bluezbox.com> <D1360633-5229-4FDF-8098-D585BE7481D2@gmail.com> <B97E9F41-7CCD-4C47-A887-A446EED7456E@bluezbox.com> <4F170567-59B8-477B-8524-D15AF58288C2@kientzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_86C046A8-1C04-4587-9359-A5FEA6C79D27 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > On May 24, 2015, at 7:44 PM, Tim Kientzle <tim@kientzle.com> wrote: >=20 >>=20 >> On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko = <gonzo@bluezbox.com> wrote: >>=20 >>=20 >>> On May 24, 2015, at 12:12 AM, Garrett Cooper <yaneurabeya@gmail.com> = wrote: >>>=20 >>> On May 24, 2015, at 0:07, Oleksandr Tymoshenko <gonzo@bluezbox.com> = wrote: >>>=20 >>>>> On May 23, 2015, at 7:21 PM, Andrey Fesenko <f0andrey@gmail.com> = 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 >>=20 >>=20 >> #include in dts file is handled by cpp(1). /include/ is handled >> by dtc I believe >>=20 >> You can take a look at how FreeBSD compiles dts files in >> sys/tools/fdt/make_dtb.sh >>=20 >> 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 > I=92m testing a fix for this now. >=20 > Thanks for providing such detailed information. Is there any reason the standard dts to dtb script isn=92t being used = instead of enshrining another copy of that outside the tree which may = break if/when we need to enhance the current script? Warner --Apple-Mail=_86C046A8-1C04-4587-9359-A5FEA6C79D27 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVYz73AAoJEGwc0Sh9sBEAA90QAKECOUVVECwuUrC+NA76Z8x+ +b2sUb3Rsurkxtuz5sJFvZitVH6GOHd/fQivMoTheItamtkVWbkaLSI2i4PG82jJ zmGjRYG67NF1KKqMhM4YCm/e4KJmM5yy0Ujc472R/OH8fRnxzCTrJQ6+cKCX4B0a Q6kt7Cq9tr0L2wgcbT9QaHVJX7DwAED30v5UMxlFIZgiW/CDJXmQA5Z3aT9IxseD /xe2l3GLK1Exbv17YyovqocoXPUiEckfYmNBVwa/NrXUBpoWlaWqtGXhZJ0ETt/W kWEKUq8IqSDunlKUm5gCDgmLlyE5BruHzyz8Qx/HZR6AJSpApWglyf/oNytydbGQ crCVY1UfiLIa4UkTF3q55fFUAfbBIhhYjbB+EWluIUcqmr2qduynW5Uterfip/fH /U9n77kpWJJ5VyUNKCDRDWGNCS58UDosix/VdQd8FM61j1W5BbKjObcMg+vLyt1g E1Upz3+ABRvUi0AH1oWPJeFogkncjWASH5akGX+FMzNUyFKyFDPdytPLC5zuCrVi ee6CtIEcnPkNN2bHkK2HIB53mXkH0iB//8CBDkeG3GSe0j9w8h4id2zmdDbYLe5s tr4EfT6XtntIE/0thZxncSUEMkF/D6SncfI62Wvdg8oJ84KMp0IqbCAwsIw6FEt6 1MA1O1rNFxaoGnwCEWyE =UDqe -----END PGP SIGNATURE----- --Apple-Mail=_86C046A8-1C04-4587-9359-A5FEA6C79D27--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?142808D5-D628-4FCF-BDF4-BBC96D91E118>