Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1487873

Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection

From Paul Kocialkowski <contact@paulk.fr>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions for proper detection
Date 2016-09-21 09:50 +0200
Message-ID <sjKs2-68g-5@gated-at.bofh.it> (permalink)
References (2 earlier) <sjxl8-64Q-9@gated-at.bofh.it> <sjxuO-689-13@gated-at.bofh.it> <sjxuO-689-15@gated-at.bofh.it> <sjxEt-6rD-17@gated-at.bofh.it> <sjKim-64W-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Le mercredi 21 septembre 2016 à 08:34 +0100, Jon Hunter a écrit :
> On 20/09/16 19:02, Paul Kocialkowski wrote:
> > 
> > * PGP Signed by an unknown key
> > 
> > Le mardi 20 septembre 2016 à 18:56 +0100, Jon Hunter a écrit :
> > > 
> > > On 20/09/16 18:53, Paul Kocialkowski wrote:
> > > > 
> > > > 
> > > > > 
> > > > > Old Signed by an unknown key
> > > > 
> > > > Le mardi 20 septembre 2016 à 18:41 +0100, Jon Hunter a écrit :
> > > > > 
> > > > > 
> > > > > On 28/08/16 18:32, Paul Kocialkowski wrote:
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Depthcharge (the payload used with cros devices) will attempt to
> > > > > > detect
> > > > > > boards using their revision. This includes all the known revisions
> > > > > > for
> > > > > > the nyan-big board so that the dtb can be selected preferably.
> > > > > 
> > > > > May be I am missing something here, but for the mainline there is only
> > > > > one dtb available and so why is this needed for the mainline?
> > > > 
> > > > There is indeed a single dts in mainline, but depthcharge will use the
> > > > revision
> > > > to match the compatible string (e.g. it will look for google,nyan-big-
> > > > rev5,
> > > > not
> > > > google,nyan-big), so we need to list them all in that single dts.
> > > > Otherwise,
> > > > depthcharge will fall back to the default config, which may or may not
> > > > be
> > > > suitable for nyan.
> > > 
> > > Is tegra124-nyan-big.dtb not the default?
> > 
> > You can't expect that to always be the case. The image format allows many
> > different dts to be provided, so I could easily build with
> > multi_v7_defconfig
> > and have various dts for various devices in the same image, and just select
> > a
> > random one as default.
> 
> Really? Sounds odd. I was hoping that tegra124-nyan-big.dtb would be a
> catch all.

Yes, the image format (FIT) allows specifying multiple dtb and zImage
combinations in the same image[0].

See depthcharge[|1] for how the "compatible" property is being matched against.

> > Here, default is really a fallback, the right one is expected to be detected
> > by
> > this mechanism. And it really doesn't hurt to provide that information for
> > proper detection.
> > 
> > Note that this is done with many other cros devices in mainline (such as
> > rk3288
> > veyrons).
> 
> Yes, I guess the same is true for the tegra210-smaug and we do define
> all the revs for that one. May be extend the changelog comment to say
> what may happen without this change and the problem that this is fixing.

Allright, will do!

Thanks

[0]: http://www.denx.de/wiki/pub/U-Boot/Documentation/multi_image_booting_scenarios.pdf
[1]: https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/master/src/boot/fit.c#39

-- 
Paul Kocialkowski, developer of low-level free software for embedded devices

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Jon Hunter <jonathanh@nvidia.com> - 2016-09-20 19:50 +0200
  Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Jon Hunter <jonathanh@nvidia.com> - 2016-09-20 20:00 +0200
    Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Paul Kocialkowski <contact@paulk.fr> - 2016-09-20 20:10 +0200
      Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Jon Hunter <jonathanh@nvidia.com> - 2016-09-21 09:40 +0200
        Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Paul Kocialkowski <contact@paulk.fr> - 2016-09-21 09:50 +0200
          Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Jon Hunter <jonathanh@nvidia.com> - 2016-09-21 11:20 +0200
            Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Paul Kocialkowski <contact@paulk.fr> - 2016-09-21 11:40 +0200
  Re: [PATCH 3/4] ARM: tegra: nyan-big: Include compatible revisions  for proper detection Paul Kocialkowski <contact@paulk.fr> - 2016-09-20 20:00 +0200

csiph-web