All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Rajendra Nayak <rnayak-l0cyMroinI0@public.gmane.org>,
	devicetree-discuss
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Subject: Re: DT and endianness
Date: Wed, 18 May 2011 09:56:17 -0600	[thread overview]
Message-ID: <BANLkTi=7s0p8qXLoirSZksyfkx3vBhYCBQ@mail.gmail.com> (raw)
In-Reply-To: <4DD38BFA.7090904-l0cyMroinI0@public.gmane.org>

On Wed, May 18, 2011 at 3:06 AM, Rajendra Nayak <rnayak-l0cyMroinI0@public.gmane.org> wrote:
> Hey Grant,
>
> I have been working over the last few days trying to
> evaluate what part of the data files in OMAP can be moved
> to Device tree. One basic issue I am stuck with trying
> to extract data out of the device tree blob is the
> endianess differences. The dtb file seems to be in
> big-endian format while my kernel is compiled for
> little-endian. I know this might be quite a common
> issue with all ARM arch;s but I could not find any
> obvious pointers on how to get around this.
> Any help is greatly appreciated.

Yes, the dtb data is always big-endian encoded, regardless of
architecture.  This is on purpose so that any arch can parse any other
architecture's dtb format.  be32_to_cpu() is your friend.

g.


>
> Thanks,
> Rajendra
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

           reply	other threads:[~2011-05-18 15:56 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4DD38BFA.7090904-l0cyMroinI0@public.gmane.org>]

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='BANLkTi=7s0p8qXLoirSZksyfkx3vBhYCBQ@mail.gmail.com' \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=rnayak-l0cyMroinI0@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 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.