grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raspberry pi support


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: Raspberry pi support
Date: Mon, 08 Apr 2013 21:58:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

> 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: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]