printf and MPC8540
When compiling u-boot 1.1.2 for a MPC8540 board. I have a crash in the printf function. After looking at the assembler code generated I found the "stswi" instruction which is not supported by the e500 core. The config file I use is based on the MPC8540ADS config file which has the following defines:
/* High Level Configuration Options */
#define CONFIG_BOOKE 1 /* BOOKE */ #define CONFIG_E500 1 /* BOOKE e500 family */ #define CONFIG_MPC85xx 1 /* MPC8540/MPC8560 */ #define CONFIG_MPC8540 1 /* MPC8540 specific */ #define CONFIG_MPC8540ADS 1 /* MPC8540ADS board specific */
I use ELDK3.1 and CROSS_COMPILE = ppc_6xx-
What should I do ?
Quoted 1 line · In message <[email protected]> you wrote:
When compiling u-boot 1.1.2 for a MPC8540 board. I have a crash in the
...
Quoted 1 line
What should I do ?
Use a recent version of U-Boot. It is nearly always a bad idea to use old versions for current work.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Everyting looks interesting until you do it. Then you find it's just another job. - Terry Pratchett, _Moving Pictures_
Quoted 5 lines · Wolfgang Denk
Quoted 1 line · In message <[email protected]> you wrote:
When compiling u-boot 1.1.2 for a MPC8540 board.
Use a recent version of U-Boot. It is nearly always a bad idea to use old versions for current work.
Well, according to the U-Boot page at SF, 1.1.2 is the most recent official version.
What am I missing?
Detlef
Signature · 2 lines
Detlef Vollmann vollmann engineering gmbh Linux and C++ for Embedded Systems http://www.vollmann.ch/
Quoted 3 lines · In message <[email protected]> you wrote:
Well, according to the U-Boot page at SF, 1.1.2 is the most recent official version.
It's the latest officially _released_ version.
Quoted 1 line
What am I missing?
The latest version is top-of-tree in CVS.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "A dirty mind is a joy forever." - Randy Kunkee
Quoted 11 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:
Well, according to the U-Boot page at SF, 1.1.2 is the most recent official version.
It's the latest officially _released_ version.
Quoted 1 line
What am I missing?
The latest version is top-of-tree in CVS.
I know that. But I was referring to this:
Quoted 2 lines · Wolfgang Denk
It is nearly always a bad idea to use
old versions for current work.
Normally, it is a bad idea to use the latest CVS source for important work. Instead, you normally use the latest official release. Is this different for U-Boot?
Detlef
Signature · 2 lines
Detlef Vollmann vollmann engineering gmbh Linux and C++ for Embedded Systems http://www.vollmann.ch/
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 2 lines · Wolfgang Denk
It is nearly always a bad idea to use
old versions for current work.Normally, it is a bad idea to use the latest CVS source for important work. Instead, you normally use the latest official release. Is this different for U-Boot?
For any _current_ work you really better use current sources, i. e. top of tree. So far (*), U-Boot gets release only very infrequently. If you stick with a "release" version you will have serious problems at the time when you try to get your patches merged into the official source tree.
So if you start any new project I really recommend not only to start with top of tree, but also to update your sources regularly.
(*) This will hopefully change Really Soon Now.
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
: 1. What is the possibility of this being added in the future?
In the near future, the probability is close to zero. In the distant
future, I'll be dead, and posterity can do whatever they like... :-)
- lwallQuoted 11 lines · Detlef Vollmann
Quoted 5 lines · Wolfgang Denk
Quoted 1 line · In message <[email protected]> you wrote:
When compiling u-boot 1.1.2 for a MPC8540 board.
Use a recent version of U-Boot. It is nearly always a bad idea to use old versions for current work.
Well, according to the U-Boot page at SF, 1.1.2 is the most recent official version.
What am I missing?Detlef
The top of CVS?
Also make sure that the -mno-string option is in your build.
jdl
Quoted 4 lines · In message <[email protected]> you wrote:
The top of CVS?
Also make sure that the -mno-string option is in your build.
This has been default option in cpu/mpc85xx/config.mk since March 15.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de We call our dog Egypt, because in every room he leaves a pyramid.
Hello, Wolfgang, Jon!
Quoted 1 line
Quoted 1 line
Also make sure that the -mno-string option is in your build.
Oh, good to know. Can some of you please explain more in detail, when this is needed? I guess, gcc 3.4.x+, binutils 2.15+, right? I ran into some compiling problems while using some modified (and non published stuff I need) u-boot-2004-08-18-2000 which shows up as 1.1.2 also :-(
Don't ask me why it wasn't published...
I'll ask our vendor, first.
Quoted 1 line
This has been default option in
cpu/mpc85xx/config.mksince March 15.
Great :-|
Best greets,
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19