Date: Sun, 24 May 2015 18:44:01 -0700 From: Tim Kientzle <tim@kientzle.com> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: 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: <4F170567-59B8-477B-8524-D15AF58288C2@kientzle.com> In-Reply-To: <B97E9F41-7CCD-4C47-A887-A446EED7456E@bluezbox.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>
next in thread | previous in thread | raw e-mail | index | archive | help
> On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: > > >> On May 24, 2015, at 12:12 AM, Garrett Cooper <yaneurabeya@gmail.com> wrote: >> >> On May 24, 2015, at 0:07, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: >> >>>> On May 23, 2015, at 7:21 PM, Andrey Fesenko <f0andrey@gmail.com> 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! >> > > > #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. > > 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. I’m testing a fix for this now. Thanks for providing such detailed information. Cheers, Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F170567-59B8-477B-8524-D15AF58288C2>
