PLATFORM_CPPFLAGS for CPU=pxa and ixp
Hello all,
I'm using U-Boot-1.2.0 on a board from Phytec with PXA270 processor (ARCH=arm, CPU=pxa, board=pcm027).
During compilation with gcc-4.1.2, I get one compiler warning for each source file, for instance:
asm.S:0: warning: target CPU does not support interworking cmp.c:0: warning: target CPU does not support interworking
...
It seems for me, the compiler thinks that the actual cpu is not able to mix original 32 bit ARM code with 16 bit thumb code. Currently compiler flags for CPU=pxa (in cpu/pxa/config.mk) are:PLATFORM_CPPFLAGS += -march=armv5 -mtune=xscale .
When I change it toPLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale
all of this warnings disappear.
The manual says, all generations of XScale processors comply with the "armv5te" architecture.
For comparison I have looked in another XScale cpu/ixp/config.mk:PLATFORM_CPPFLAGS +=
-mbig-endian -march=armv5te -mtune=strongarm1100
Here we have "-march=armv5te".
I don't have a IXP cpu, but from theory: is it better to set "-mtune=xscale" here to for the CPU=ixp :PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=xscale because Strongarm1100 was the predecessor of XScale ?
There are no changes of PLATFORM_CPPFLAGS for CPU=pxa and ixp between U-Boot-1.2.0 and U-Boot-1.3.0-rc2.
Therefore my question: are there special reasons to use
-march=armv5 for pxa and -mtune=strongarm1100 for ixp ?
Kind regards
Wolfgang Gartz
Development engineer
Aastra DeTeWe GmbH
Zeughofstr. 1
D-10997 Berlin
Quoted 2 lines · Wolfgang Gartz
I'm using U-Boot-1.2.0 on a board from Phytec with PXA270 processor (ARCH=arm, CPU=pxa, board=pcm027).
Are you using the patches we provide for Phytec plus OSELAS.Toolchain-1.1.0, or is it your own patch stack?
Is there a reason why you don't use an iwmmxt toolchain for the PXA270? That way you can use one toolchain for u-boot, kernel and userland.
Robert
Signature · 2 lines
Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord http://www.pengutronix.de
Quoted 3 lines · In message <[email protected]> you wrote:
Are you using the patches we provide for Phytec plus OSELAS.Toolchain-1.1.0, or is it your own patch stack?
Have these patches been submitted here on the list?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Uncontrolled power will turn even saints into savages. And we can all be counted on to live down to our lowest impulses. -- Parmen, "Plato's Stepchildren", stardate 5784.3
Quoted 6 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
Are you using the patches we provide for Phytec plus OSELAS.Toolchain-1.1.0, or is it your own patch stack?
Have these patches been submitted here on the list?
No. So the OSELAS.Phytec mailing list might be a better forum.
http://www.pengutronix.de/mailinglists/index_de.html
Robert
Signature · 2 lines
Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord http://www.pengutronix.de
Quoted 7 lines · Robert Schwebel
Quoted 4 lines · Wolfgang Denk
Quoted 2 lines · In message <[email protected]> you wrote:
Are you using the patches we provide for Phytec plus OSELAS.Toolchain-1.1.0, or is it your own patch stack?
Have these patches been submitted here on the list?
No. So the OSELAS.Phytec mailing list might be a better forum.
Together with the Phytec board "pcm027" I received a patch based on U-Boot-1.1.4. I have adapted this patch to U-Boot-1.2.0..
Robert, how do you think about submitting this patch to the U-Boot list ? (Advantages for us all don't must be explained.)
The Pengutronix patch for the Phytec board "pcm027" don't touches the PLATFORM_CPPFLAGS from my origin question. The question should be right here on the U-Boot list. The question concerns the CPUs "pxa" and "ixp" and can be reproduced with each other board based on this CPUs.
Kind regards
Wolfgang Gartz
Development engineer
Aastra DeTeWe GmbH, Zeughofstr. 1, D-10997 Berlin
Quoted 2 lines · Wolfgang Gartz
Together with the Phytec board "pcm027" I received a patch based on U-Boot-1.1.4. I have adapted this patch to U-Boot-1.2.0..
Note that we'll update the board support for the phyCORE-PXA270CE to u-boot-v2 during the next weeks.
Quoted 8 lines
Robert, how do you think about submitting this patch to the U-Boot list? (Advantages for us all don't must be explained.)
The Pengutronix patch for the Phytec board "pcm027" don't touches the
PLATFORM_CPPFLAGSfrom my origin question. The question should be right here on the U-Boot list. The question concerns the CPUs "pxa" and "ixp" and can be reproduced with each other board based on this CPUs.
I'll post our current patch series here.
Robert
Signature · 2 lines
Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord http://www.pengutronix.de
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 5 lines
Quoted 3 lines
Are you using the patches we provide for Phytec plus OSELAS.Toolchain-1.1.0, or is it your own patch stack?
Have these patches been submitted here on the list?
No. So the OSELAS.Phytec mailing list might be a better forum.
Actually it would be even better if U-Boot patches were posted on the U-Boot mailing list.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Things are not as simple as they seem at first. - Edward Thorp
Quoted 2 lines · Wolfgang Denk
Actually it would be even better if U-Boot patches were posted on the U-Boot mailing list.
Right you are; unfoartunately, not every project has the budget to go through the mailing list review, so in this case there was simply nobody who had enough spare time to make things ready for mainline.
Robert
Signature · 2 lines
Pengutronix - Linux Solutions for Science and Industry Entwicklungszentrum Nord http://www.pengutronix.de