All of lore.kernel.org
 help / color / mirror / Atom feed
From: David De Grave (Essensium/Mind) <david.degrave@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/1] boot/uboot: host-dtc is not used as expected
Date: Thu, 26 Jul 2018 12:36:29 +0200	[thread overview]
Message-ID: <20180726103630.8643-1-david.degrave@mind.be> (raw)

Hi,

U-Boot's build system (at least in 2018.01) does not use
$(HOST_DIR)/bin/dtc to compile custom dts files. Instead it tries to use
it's internal dtc who is not compiled by default and result in a build
failure:

  DTC     arch/arm/dts/foo.dtb
/bin/sh: ./scripts/dtc/dtc: No such file or directory
make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/foo.dtb] Error 127

To reproduce this error, use a uboot config that contains the following:

CONFIG_MULTI_DTB_FIT=y
CONFIG_OF_LIST="foo"

Unfortunately, even by applying the patch in this series to really use
host-dtc, it then fails with bunch of errors like the following:

FATAL ERROR: Unrecognized check name "simple_bus_reg"
make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/foo.dtb] Error 1

So, I though to just bump dtc to v1.4.7 who seems to supports these
parameters but then again, there is other errors with uboot & even with
linux:

In file included from output/host/include/libfdt.h:54:0, from
scripts/dtc/libfdt/fdt.c:54: output/host/include/libfdt_env.h:82:24:
error: redefinition of ?fdt16_to_cpu?
static inline uint16_t fdt16_to_cpu(fdt16_t x)

u-boot on his side is experiencing the same problem + a dependency that
it try to build and that doesn't exist in the tree:

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....

I never found from where that "unset.dts" is coming from...

In the meantime, Geoff submitted the same patch to bump to the v1.4.7
who leed to the same problem I was faced.

So... I'm a bit lost at that point and that's why I'm writing this RFC.

Thanks in advance for your feedbacks.

Regards,
David.


David De Grave (Essensium/Mind) (1):
  boot/uboot: Really use host-dtc

 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.6

             reply	other threads:[~2018-07-26 10:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26 10:36 David De Grave [this message]
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
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=20180726103630.8643-1-david.degrave@mind.be \
    --to=david.degrave@mind.be \
    --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.