mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Dr. Patrick Langfeld" <patrick.langfeld@optimeas.de>
Cc: barebox@lists.infradead.org
Subject: Re: Error when starting kernel with devicetree on tx53
Date: Mon, 13 May 2013 14:44:52 +0200	[thread overview]
Message-ID: <20130513124452.GR32299@pengutronix.de> (raw)
In-Reply-To: <em693f4276-887c-4945-ba22-230c24dc89b1@plh001-think>

On Mon, May 13, 2013 at 08:43:58AM +0000, Dr. Patrick Langfeld wrote:
> Thanks Sascha,
> but whats wrong with the devicetree blob?
> I mean the same dtb is working, when I boot the board with uboot.
> 
> I use ptxdist to build the kernel image and to build the tx53.dtb
> from tx53.dts
> 
> Are there some special settings to build the dtb for use with barebox?
> 
> What can be wrong with the dtb.

A dtb must have 0xd00dfeed (big endian) in the first 4 bytes. Your dtb
seems to have 0x0000f085 instead so barebox doesn't recognize this as
dtb.

You could do a:

md -s /mnt/tftp/tx53.dtb

on the commandline. You should see the magic.

Then afterwards you can add the following to commands/bootm.c just below
the line printing "...is not an oftree but...":

	memory_display(fdt, 0, 0x100, 4, 0);

The result should be identical and both should have 0xedfe0dd0 as the
first value.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2013-05-13 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <emde4cb769-926c-4395-89e6-073d8c931261@plh001-think>
2013-05-12 18:12 ` Dr. Patrick Langfeld
2013-05-13  4:59   ` Sascha Hauer
2013-05-13  8:43     ` Re[2]: " Dr. Patrick Langfeld
2013-05-13 12:44       ` Sascha Hauer [this message]

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=20130513124452.GR32299@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=patrick.langfeld@optimeas.de \
    /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