All of lore.kernel.org
 help / color / mirror / Atom feed
From: David De Grave <david.degrave@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc
Date: Wed, 1 Aug 2018 12:36:16 +0200	[thread overview]
Message-ID: <CAD6XyYyJn23DXau0VfHOAL03ouY72Pt2GoFu8sQ3rU6xDugVgg@mail.gmail.com> (raw)
In-Reply-To: <20180801090548.0c92457b@windsurf>

Hi Thomas, Arnout,

On Wed, Aug 1, 2018 at 9:05 AM, Thomas Petazzoni <
thomas.petazzoni@bootlin.com> wrote:

> Hello,
>
> On Wed, 1 Aug 2018 00:14:08 +0200, Arnout Vandecappelle wrote:
>
> >  Oh yes, now I see it, it's indeed a bug in U-Boot. CONFIG_OF_LIST
> should either
> > depend on CONFIG_OF_CONTROL or select it, otherwise dtc is not built.
>
> Right, so it's indeed a bug in U-Boot. That being said, the change
> proposed by David is not too bad: it makes sense to use the host DTC if
> it was built, rather than the one built by U-Boot. It's just that the
> initial problem explanation wasn't really complete enough, so I was a
> bit confused.
>

In the other hand, using the host-dtc is working but lead to other problems:

- Version 1.4.4 don't handle most of the parameters issued by uboot like
the following:

FATAL ERROR: Unrecognized check name "simple_bus_reg"

=> this can be fixed by setting DTC_FLAGS to the ones who works (only 1 if
I remember well).

- If we upgrade DTC to version 1.4.7 (who is the case now I guess), then it
still can't find a "unset.dtb" target that I can't figure out from where it
comes:

  LDS     spl/u-boot-spl.lds
  OBJCOPY u-boot-nodtb.bin
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....
  OBJCOPY u-boot.srec
  SYM     u-boot.sym
  DTC     arch/arm/dts/am335x-boneblack.dtb
  LD      spl/drivers/core/built-in.o
FATAL ERROR: Unrecognized check name "simple_bus_reg"
make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/am335x-boneblack.dtb]
Error 1
make[3]: *** [dts/Makefile:62: arch-dtbs] Error 2
make[2]: *** [Makefile:876: dts/dt.dtb] Error 2
make[2]: *** Waiting for unfinished jobs....

Also I checked in the mainstream of u-boot and saw some patches for dtc...
I see a dtc bump to 1.4.6-9.
So, we can maybe reuse some patches from there to fix this ? Or try to fix
the bug that Arnout discovered ourself ?

Regards,
David.

-- 

*David De Grave*
Senior Embedded Software Developer
Gsm : +32(0)496.364.960 | Tel : +32-16-28.65.00 | Fax : +32-16-28a.65.01
Essensium-Mind <https://www.mind.be/> - Gaston Geenslaan 9, B-3001 Leuven,
Belgium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180801/17a751d6/attachment.html>

  reply	other threads:[~2018-08-01 10:36 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
2018-07-31 22:14         ` Arnout Vandecappelle
2018-08-01  7:05           ` Thomas Petazzoni
2018-08-01 10:36             ` David De Grave [this message]
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=CAD6XyYyJn23DXau0VfHOAL03ouY72Pt2GoFu8sQ3rU6xDugVgg@mail.gmail.com \
    --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.