devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Nicolas Pitre <nicolas.pitre-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: Appended devicetree with Torvalds' HEAD
Date: Mon, 12 Sep 2011 14:15:58 +0200	[thread overview]
Message-ID: <CACRpkdaVL5L2-DR8gshN9b0sOn5rDY5QyP4fwZggXjFPmFr9-g@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1109061347410.20358-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>

On Tue, Sep 6, 2011 at 7:52 PM, Nicolas Pitre <nicolas.pitre-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> On Tue, 6 Sep 2011, Linus Walleij wrote:
>
>> Does anyone happen to run a mainline kernel with
>> zImage-appended device tree?
>>
>> Or:
>>
>> Are there out-of-tree patches required to do this?
>> (I guess so.)
>>
>> And:
>>
>> Do they actually work?
>
> They sure do, (or so I hope).
>
> My latest patchset is here:

I've tested this a bit now with U8500 and RealView
PB1176.

I'm using the clean patches on a clean tree, i.e.
just relying on the code already in mainline.

We add this to the MACHINE_START()

static const char * realview_dt_board_compat[] = {
       "arm,realview-pb1176",
       NULL
};

.dt_compat      = realview_dt_board_compat,

On kernel 3.1-rc4 the system hangs in early boot
(early printk does not help). But this is not related to
these patches at all, it happens as soon as you enable
CONFIG_USE_OF. (Any hints on how to fix that?)

So I tested a bit with just a plain v3.0 kernel.

Using the "supplementing DTB with traditional ATAG data"
patch totally hangs my systems, even if I don't enable
CONFIG_ATAG_DTB_COMPAT, so I think that patch
needs some scrutiny.

Removing that patch the system boots, and I can use
CONFIG_USE_OF with CONFIG_PROC_DEVICETREE
to inspect an empty tree in /proc/device-tree

If I then try to enable these patches it dies
by not finding any "compatible" property. (But it boots,
yay!)

Error: unrecognized/unsupported device tree compatible list:
[ ]
Available machine support:
ID (hex)	NAME
ffffffff	ARM-RealView PB1176
Please check your kernel config and/or bootloader.

(I know the MACHINE_TYPE isn't sane.)

Anyway, so the
prop = of_get_flat_dt_prop(dt_root, "compatible", &size);
returns NULL.

So it appears that the appended device tree does not
show up.

I don't quite know how to debug this further...
Given that the appended approach is generally
frowned upon maybe we are better off trying to fix
our U-Boot, getting a combo that is known to work
with device tree, than trying to get appended device
trees to work?

Yours,
Linus Walleij

  parent reply	other threads:[~2011-09-12 12:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06  9:35 Appended devicetree with Torvalds' HEAD Linus Walleij
     [not found] ` <CACRpkdb1iD2RkpmMkN1d5VNVr-M3KgrkE7Xg-Bxcr-xd2fcuPw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-06 12:28   ` Shawn Guo
2011-09-06 17:52   ` Nicolas Pitre
     [not found]     ` <alpine.LFD.2.00.1109061347410.20358-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-09-06 19:24       ` Linus Walleij
     [not found]         ` <CACRpkdZFT6+FNxupNT0xZN4ZvEx1rNF3=xiSo-0H4hOZwj4Ygg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-08  9:52           ` Linus Walleij
     [not found]             ` <CACRpkdZDxwkr4ybf6jWAAMpKd3MWfdi-p6uWR2tBx=h_=vkd1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-08 16:35               ` Nicolas Pitre
     [not found]                 ` <alpine.LFD.2.00.1109080927010.20358-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-09-08 21:46                   ` Linus Walleij
2011-09-07  6:46       ` David Brown
2011-09-12 12:15       ` Linus Walleij [this message]
     [not found]         ` <CACRpkdaVL5L2-DR8gshN9b0sOn5rDY5QyP4fwZggXjFPmFr9-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-12 13:25           ` Nicolas Pitre
     [not found]             ` <20110912155414.GA28954@glitch.intra.local>
     [not found]               ` <20110912155414.GA28954-DoxiOL6zdryAm1IiwMqfSqzUEOm+Xw19@public.gmane.org>
2011-09-12 16:15                 ` Nicolas Pitre
2011-09-13 18:42       ` David Brown
     [not found]         ` <20110913184207.GA20440-AOX6H5vLt3Uj8izMo0bVsAC/G2K4zDHf@public.gmane.org>
2011-09-18 10:34           ` Linus Walleij
     [not found]             ` <CACRpkdbvq2A_eJgCgq5JWgO-VDBd25D0qhrVTf9isnDxZ2k+4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-18 15:17               ` David Brown
     [not found]                 ` <20110918151755.GA1426-AOX6H5vLt3Uj8izMo0bVsAC/G2K4zDHf@public.gmane.org>
2011-09-19  7:34                   ` Linus Walleij
2011-09-18 17:31               ` Nicolas Pitre
     [not found]                 ` <alpine.LFD.2.00.1109181327000.20358-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-09-19  7:39                   ` Linus Walleij
2011-09-19  7:48                   ` Linus Walleij
     [not found]                     ` <CACRpkdZ9K8swOz_SS8LZnXrAUMWis1H5+vifsN3V82eoPhReCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-19 15:04                       ` Nicolas Pitre

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=CACRpkdaVL5L2-DR8gshN9b0sOn5rDY5QyP4fwZggXjFPmFr9-g@mail.gmail.com \
    --to=linus.walleij-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=nicolas.pitre-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).