From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: Leif Lindholm <leif.lindholm@linaro.org>,
The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Raspberry pi support
Date: Mon, 08 Apr 2013 21:58:12 +0200 [thread overview]
Message-ID: <51632154.2050004@gmail.com> (raw)
In-Reply-To: <20130408144048.GT23069@rocoto.smurfnet.nu>
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
> Then I need to add a configure test for this, causing a failure if the
> option is missing. A toolchain that does not support this option cannot
> be used to build a reliable bare-metal image for ARM.
>
> FSF GCC 4.7 onwards (and some distribution-patched 4.6) support this flag.
>
Why? According to
http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=eb04cafba3a6f1eddbdb5ec031d8a7074930d5b9
older version simply have "implicit" -mno-unaligned-access and we
support only GCC.
>>> And for reasons stated above, -march= should be set to whatever your
>>> target architecture is. Extracted by configure, I suppose?
>>
>> Hence --target-cpu=armv[67] proposal.g
>
> I think it is a bit overkill, since CFLAGS can cover it.
>
The difference is that for all other targets you can compile for the
lowest supported CPU and use it for all devices with this target but if
I understand correctly on armv7 you need to insert some opcodes which
would cause a crash on armv6. Is only cache flushing displays such kind
of backward incompatibility?
Another question:
I see that efi/startup.S transitions to thumb but not uboot/startup.S.
Was uboot compiled as arm in your port as well or do I miss sth?
> /
> Leif
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2013-04-08 19:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-07 17:20 Raspberry pi support Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-08 11:44 ` Leif Lindholm
2013-04-08 12:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-08 14:40 ` Leif Lindholm
2013-04-08 19:58 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2013-05-01 10:25 ` Leif Lindholm
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=51632154.2050004@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
--cc=leif.lindholm@linaro.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.