public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
@ 2004-01-28 20:37 Jerry Walden
  2004-01-28 21:33 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Jerry Walden @ 2004-01-28 20:37 UTC (permalink / raw)
  To: u-boot

Hello:

I have three issues.  The exisiting distro uses the "mips-4KC-gcc", I am
using "mipsel-gnu-linux-gcc".  There are 2 command line options:

1) -mcpu=
2) -mabicall

For "-mcpu=" I substituted "-march=mips32" - is this correct?

For -mabicall - what should I substitute?


Also - I get an error building cpu/mips/start.s

On line 242 there is a label "memsetup" - the error is "cannot branch to
undefined symbol". Any ideas?

Thanks Much!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
  2004-01-28 20:37 Jerry Walden
@ 2004-01-28 21:33 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-01-28 21:33 UTC (permalink / raw)
  To: u-boot

In message <603BA0CFF3788E46A0DB0918D9AA95100A0E2F18@sj580004wcom.int.lantronix.com> you wrote:
> For "-mcpu=" I substituted "-march=mips32" - is this correct?

If this is a MIPS32 processor, yes.

> For -mabicall - what should I substitute?

Dunno. Does your compiler documentation mention this keyword?

> Also - I get an error building cpu/mips/start.s
> 
> On line 242 there is a label "memsetup" - the error is "cannot branch to
> undefined symbol". Any ideas?

Yes. The file board/<yourname>/memsetup.S is missing / incorrect.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Einstein argued that there must be simplified explanations of nature,
because God is not capricious or arbitrary. No  such  faith  comforts
the software engineer.                             - Fred Brooks, Jr.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
@ 2004-01-28 21:40 Jerry Walden
  2004-01-28 21:55 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Jerry Walden @ 2004-01-28 21:40 UTC (permalink / raw)
  To: u-boot

>Yes. The file board/<yourname>/memsetup.S is missing / incorrect.

I do not understand the response.  Are you saying that something is
wrong with my file layout?  Should I not be compiling this file?
Basically - how do I fix the problem?

Thanks

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de] 
Sent: Wednesday, January 28, 2004 1:33 PM
To: Jerry Walden
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-boot for MIPS - problem using latest gcc 


In message
<603BA0CFF3788E46A0DB0918D9AA95100A0E2F18@sj580004wcom.int.lantronix.com
> you wrote:
> For "-mcpu=" I substituted "-march=mips32" - is this correct?

If this is a MIPS32 processor, yes.

> For -mabicall - what should I substitute?

Dunno. Does your compiler documentation mention this keyword?

> Also - I get an error building cpu/mips/start.s
> 
> On line 242 there is a label "memsetup" - the error is "cannot branch 
> to undefined symbol". Any ideas?

Yes. The file board/<yourname>/memsetup.S is missing / incorrect.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Einstein argued that there must be simplified explanations of nature,
because God is not capricious or arbitrary. No  such  faith  comforts
the software engineer.                             - Fred Brooks, Jr.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
  2004-01-28 21:40 Jerry Walden
@ 2004-01-28 21:55 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-01-28 21:55 UTC (permalink / raw)
  To: u-boot

In message <603BA0CFF3788E46A0DB0918D9AA95100A0E2F33@sj580004wcom.int.lantronix.com> you wrote:
> >Yes. The file board/<yourname>/memsetup.S is missing / incorrect.
> 
> I do not understand the response.  Are you saying that something is
> wrong with my file layout?  Should I not be compiling this file?
> Basically - how do I fix the problem?

You got an error because "memsetup" was  undefined;  "memsetup"  gets
defined  in  board/<yourname>/memsetup.S  - so obviously this file is
missing or incorrect for your board configuration.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Everybody is talking about the  weather  but  nobody  does  anything
about it."                                               - Mark Twain

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
@ 2004-01-28 22:04 Jerry Walden
  2004-01-28 22:48 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Jerry Walden @ 2004-01-28 22:04 UTC (permalink / raw)
  To: u-boot

First - I downloaded u-boot v1.0

Then - I unzipped it.

Then - I changed CROSS_COMPILE to be the latest MIPS compiler

Then - I did a make dbau1x00_config

Then - I did a make all.

Memsetup.S is definitely in board/dbau1x00/

So - the file is not missing.

You said:

>missing or incorrect for your board configuration.

Since it is not missing - it must be "incorrect".  What would "incorrect
be"?

Thanks much


-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de] 
Sent: Wednesday, January 28, 2004 1:56 PM
To: Jerry Walden
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-boot for MIPS - problem using latest gcc 


In message
<603BA0CFF3788E46A0DB0918D9AA95100A0E2F33@sj580004wcom.int.lantronix.com
> you wrote:
> >Yes. The file board/<yourname>/memsetup.S is missing / incorrect.
> 
> I do not understand the response.  Are you saying that something is 
> wrong with my file layout?  Should I not be compiling this file? 
> Basically - how do I fix the problem?

You got an error because "memsetup" was  undefined;  "memsetup"  gets
defined  in  board/<yourname>/memsetup.S  - so obviously this file is
missing or incorrect for your board configuration.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Everybody is talking about the  weather  but  nobody  does  anything
about it."                                               - Mark Twain

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
  2004-01-28 22:04 [U-Boot-Users] U-boot for MIPS - problem using latest gcc Jerry Walden
@ 2004-01-28 22:48 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-01-28 22:48 UTC (permalink / raw)
  To: u-boot

In message <603BA0CFF3788E46A0DB0918D9AA95100A0E2F3D@sj580004wcom.int.lantronix.com> you wrote:
> First - I downloaded u-boot v1.0

I could ask wy you use an old version, but it does not matter here.

> Then - I changed CROSS_COMPILE to be the latest MIPS compiler

See below.

> Then - I did a make dbau1x00_config
> Then - I did a make all.
> Memsetup.S is definitely in board/dbau1x00/
> So - the file is not missing.

Indeed. And actually this is building fine:

	-> tar jxf /opt/tarballs/u-boot-1.0.0.tar.bz2 
	-> cd u-boot-1.0.0
	-> MAKEALL dbau1x00
	rm -f include/config.h include/config.mk
	Configuring for dbau1x00 board...
	net.c: In function `NetStartAgain':
	net.c:492: warning: integer overflow in expression
	   text    data     bss     dec     hex filename
	 112120    4760   17252  134132   20bf4 u-boot

> Since it is not missing - it must be "incorrect".  What would "incorrect
> be"?

Since all of your  steps  except  one  work  fine  here  I  can  only
speculate  that  the  problem  must be in the step where we do things
differently: I use a working compiler.

Seems your toolchain has some problems?


Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"I haven't lost my mind - it's backed up on tape somewhere."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] U-boot for MIPS - problem using latest gcc
@ 2004-01-29  1:02 Jerry Walden
  0 siblings, 0 replies; 7+ messages in thread
From: Jerry Walden @ 2004-01-29  1:02 UTC (permalink / raw)
  To: u-boot

My toolchain builds the latest mips kernel and the kernel runs
perfectly.

If you look in start.S - there is a branch to memsetup.  In start.S
there is NO definition of this symbol (i.e. as an external or
otherwise).  

The start.S file includes some files, none of which have any reference
to memsetup.  Does the toolchain in ELDK assume that any symbol which is
not defined as an extern, or is not defined in the file as a direct
label, must be external?  Makes no sense to me.


-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de] 
Sent: Wednesday, January 28, 2004 2:48 PM
To: Jerry Walden
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] U-boot for MIPS - problem using latest gcc 


In message
<603BA0CFF3788E46A0DB0918D9AA95100A0E2F3D@sj580004wcom.int.lantronix.com
> you wrote:
> First - I downloaded u-boot v1.0

I could ask wy you use an old version, but it does not matter here.

> Then - I changed CROSS_COMPILE to be the latest MIPS compiler

See below.

> Then - I did a make dbau1x00_config
> Then - I did a make all.
> Memsetup.S is definitely in board/dbau1x00/
> So - the file is not missing.

Indeed. And actually this is building fine:

	-> tar jxf /opt/tarballs/u-boot-1.0.0.tar.bz2 
	-> cd u-boot-1.0.0
	-> MAKEALL dbau1x00
	rm -f include/config.h include/config.mk
	Configuring for dbau1x00 board...
	net.c: In function `NetStartAgain':
	net.c:492: warning: integer overflow in expression
	   text    data     bss     dec     hex filename
	 112120    4760   17252  134132   20bf4 u-boot

> Since it is not missing - it must be "incorrect".  What would 
> "incorrect be"?

Since all of your  steps  except  one  work  fine  here  I  can  only
speculate  that  the  problem  must be in the step where we do things
differently: I use a working compiler.

Seems your toolchain has some problems?


Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de "I
haven't lost my mind - it's backed up on tape somewhere."

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-29  1:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 22:04 [U-Boot-Users] U-boot for MIPS - problem using latest gcc Jerry Walden
2004-01-28 22:48 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-01-29  1:02 Jerry Walden
2004-01-28 21:40 Jerry Walden
2004-01-28 21:55 ` Wolfgang Denk
2004-01-28 20:37 Jerry Walden
2004-01-28 21:33 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox