From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Big endian working?
Date: Wed, 09 Apr 2014 09:09:36 +0200 [thread overview]
Message-ID: <7521814.ApkjdzgJjE@wuerfel> (raw)
In-Reply-To: <20140409073016.72060cd3@skate>
On Wednesday 09 April 2014 07:30:16 Thomas Petazzoni wrote:
> On Tue, 8 Apr 2014 21:46:05 -0700, Victor Kamensky wrote:
>
> > > If I remember correctly, those are for booting a BE kernel on hardware
> > > that initializes in LE mode and expects a LE kernel. Since the zImage
> > > header values are defined to be words, those must be swapped so they
> > > read as LE even if the kernel is BE. Of course the kernel is then
> > > responsible for switching the endian mode when entered.
> >
> > My understanding is that CPU_BE8_BOOT_LE was needed only for
> > atags boot case. Since now practically nobody uses atags, but rather
> > fdt those patches were not pushed into main stream.
>
> Well it would still be nice to have ATAGs support, as a few people are
> still using old, non fdt-capable bootloaders.
My point was actually that it should never be wrong to use
CPU_BE8_BOOT_LE on a BE8 kernel. We have at no point supported
a boot loader that uses a big-endian boot protocol for ARMv6/v7
upstream kernel, and there is a danger of people expecting it
to work in the future if the kernel does it now.
If we ensure that we only support boot loaders that expect
little-endian numbers in these fields, any kernel (DT or ATAGS,
little-endian or big-endian) should work on any boot loader
that has matching boot data.
Arnd
next prev parent reply other threads:[~2014-04-09 7:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-08 7:54 Big endian working? Thomas Petazzoni
2014-04-08 9:14 ` Taras Kondratiuk
2014-04-08 19:03 ` Arnd Bergmann
2014-04-09 3:44 ` Nicolas Pitre
2014-04-09 4:46 ` Victor Kamensky
2014-04-09 5:30 ` Thomas Petazzoni
2014-04-09 7:09 ` Arnd Bergmann [this message]
2014-04-09 9:04 ` Taras Kondratiuk
2014-04-09 9:38 ` Arnd Bergmann
2014-04-09 16:17 ` Victor Kamensky
2014-04-09 16:35 ` Marc Zyngier
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=7521814.ApkjdzgJjE@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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