From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc
Date: Tue, 31 Jul 2018 20:51:54 +0200 [thread overview]
Message-ID: <20180731205154.62967de8@windsurf> (raw)
In-Reply-To: <CAD6XyYyrv809pmGMg3M_9wFekQ2c1JfnKRQ3w8bvqFhG4tVYeA@mail.gmail.com>
Hello,
On Tue, 31 Jul 2018 20:12:29 +0200, David De Grave wrote:
> So, to reproduce that problem, I did the following:
>
> mkdir test && cd test
> git clone git://git.buildroot.net/buildroot.git buildroot
> cd buildroot && git checkout 2018.05-1 && cd ..
>
> make -C buildroot O=$PWD/output defconfig
> BR2_DEFCONFIG=../beaglebone_defconfig
> make -C buildroot O=$PWD/output menuconfig
>
> changed:
> BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am335x_boneblack"
> BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="../uboot.fragment"
>
> uboot.fragment:
> CONFIG_MULTI_DTB_FIT=y
> CONFIG_OF_LIST="am335x-boneblack"
>
> make -C buildroot O=$PWD/output uboot
> make: Entering directory '/home/ddg/test/buildroot'
> /usr/bin/make -j1 O=/home/ddg/test/output HOSTCC="/usr/lib64/ccache/gcc"
> HOSTCXX="/usr/lib64/ccache/g++" silentoldconfig
> GEN /home/ddg/test/output/Makefile
> >>> host-skeleton Extracting
> [...]
> >>> uboot 2018.01 Extracting
> [...]
> >>> uboot 2018.01 Building
> [...]
> CC spl/lib/libfdt/fdt_overlay.o
> CC spl/lib/libfdt/fdt_ro.o
> OBJCOPY u-boot-nodtb.bin
> CC spl/lib/linux_compat.o
> make[3]: *** No rule to make target 'arch/arm/dts/unset.dts', needed by
> 'arch/arm/dts/unset.dtb'. Stop.
> make[3]: *** Waiting for unfinished jobs....
> DTC arch/arm/dts/am335x-boneblack.dtb
> CC spl/drivers/core/fdtaddr.o
> /bin/sh: ./scripts/dtc/dtc: No such file or directory
> make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/am335x-boneblack.dtb]
> Error 127
> make[3]: *** [dts/Makefile:62: arch-dtbs] Error 2
> make[2]: *** [Makefile:876: dts/dt.dtb] Error 2
> make[2]: *** Waiting for unfinished jobs....
> CC spl/drivers/gpio/gpio-uclass.o
> CC spl/lib/libfdt/fdt_rw.o
> CC spl/drivers/gpio/omap_gpio.o
> CC spl/drivers/core/lists.o
> make[1]: *** [package/pkg-generic.mk:226:
> /home/ddg/test/output/build/uboot-2018.01/.stamp_built] Error 2
> make: *** [Makefile:79: _all] Error 2
> make: Leaving directory '/home/ddg/test/buildroot'
>
> ls output/build/uboot-2018.01/scripts/dtc/dtc
> ls: cannot access 'output/build/uboot-2018.01/scripts/dtc/dtc': No such
> file or directory
Thanks for the detailed instructions, I'll try to reproduce.
> If I remove the uboot.fragment, all is building well up to the end.
> Moreover, why do he use ./scripts/dtc/dtc ? It should use
> $(HOST_DIR)/bin/dtc at the moment host-dtc is build, no ?
I think the optional dependency on host-dtc depends from a time where
U-Boot did not have its own copy of DTC. I'm not sure it makes a lot of
sense now.
If U-Boot tries to use ./scripts/dtc/dtc, then it should have built it.
If it didn't build it but tries to use it nonetheless, it sounds like a
bug in U-Boot.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-07-31 18:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 10:36 [Buildroot] [PATCH 0/1] boot/uboot: host-dtc is not used as expected David De Grave
2018-07-26 10:36 ` [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc David De Grave
2018-07-28 19:48 ` Thomas Petazzoni
2018-07-31 18:12 ` David De Grave
2018-07-31 18:51 ` Thomas Petazzoni [this message]
2018-07-31 22:14 ` Arnout Vandecappelle
2018-08-01 7:05 ` Thomas Petazzoni
2018-08-01 10:36 ` David De Grave
2018-08-01 10:43 ` Thomas Petazzoni
2018-08-01 14:36 ` David De Grave
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180731205154.62967de8@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.