[U-Boot-Users] 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 to PLATFORM_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

On Sat, Oct 06, 2007 at 07:42:30PM +0200, Wolfgang Gartz wrote:
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

In message 20071006183510.GC23573@pengutronix.de 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

On Mon, Oct 08, 2007 at 12:25:15AM +0200, Wolfgang Denk wrote:
In message 20071006183510.GC23573@pengutronix.de 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

Robert Schwebel wrote:
On Mon, Oct 08, 2007 at 12:25:15AM +0200, Wolfgang Denk wrote:
In message 20071006183510.GC23573@pengutronix.de 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

On Mon, Oct 08, 2007 at 09:47:11AM +0200, Wolfgang Gartz wrote:
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.
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.
I'll post our current patch series here.
Robert

In message 20071008054359.GH23573@pengutronix.de 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.
Actually it would be even better if U-Boot patches were posted on the U-Boot mailing list.
Best regards,
Wolfgang Denk

On Mon, Oct 08, 2007 at 02:44:28PM +0200, Wolfgang Denk wrote:
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
participants (3)
-
Robert Schwebel
-
Wolfgang Denk
-
Wolfgang Gartz