Skip to contentSkip to conversation

compiling u-boot for ppc on i386

U-Boot-Users manju mahajan 3 participants 13 messages Aug 30, 2005 – Sep 11, 2005

lore
Share & tools
lore
#0 lore raw

I have host os: netbsd, host arch=i386, target platform is powerpc405, and targtos =netbsd.

I am trying to compile the using :
make walnut_config.

But it is failing with
line 35:Need an operator,
line 43:need an operator
line 45:need an operator
line 47:need an operator

what I am missing ?>

---------------------------------
Start your day with Yahoo! - make it your home page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050830/0af1dbde/attachment.htm

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

I have host os: netbsd, host arch=i386, target platform is powerpc405, and targtos =netbsd.

I am trying to compile the using :
make walnut_config.

Quoted 7 lines

But it is failing with
line 35:Need an operator,
line 43:need an operator
line 45:need an operator
line 47:need an operator

what I am missing ?>

You probably have to use GNU make (and eventually the bash as shell).

Quoted 5 lines

--0-1531297710-1125439948=:73515
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>I have host os: netbsd, host arch=i386, target platform is powerpc405, and targtos =netbsd.</DIV>

And please don't post HTML on this list.

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
There are three things I always forget. Names, faces -  the  third  I
can't remember.                                         - Italo Svevo
#2 lore raw

I am using bash shell (3.0), and have gmake.

Quoted 26 lines · --- Wolfgang Denk

In message <[email protected]>

Quoted 2 lines · you

I have host os: netbsd, host arch=i386, target

platform is powerpc405, and targtos =netbsd.

Quoted 11 lines

I am trying to compile the using :
make walnut_config.

But it is failing with
line 35:Need an operator,
line 43:need an operator
line 45:need an operator
line 47:need an operator

what I am missing ?>

You probably have to use GNU make (and eventually the bash as shell).

Quoted 5 lines

--0-1531297710-1125439948=:73515
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>I have host os: netbsd, host arch=i386,

Quoted 21 lines

target platform is powerpc405, and targtos =netbsd.</DIV>

And please don't post HTML on this list.

Best regards,

Wolfgang Denk

Signature · 8 lines
Software Engineering:  Embedded and Realtime
Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80
Email: wd at denx.de
There are three things I always forget. Names, faces
-  the  third  I
can't remember.                                     
   - Italo Svevo

-------------------------------------------------------

Quoted 12 lines

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users

Quoted 1 line

____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

#3 lore raw

I have
host os: netbsd2.0.2, host arch=i386,
target platform: powerpc405,targetos =netbsd.

I am getting this error
bash3.0# gmake CPU=CONFIG_405GP BOARD=CONFIG_WALNUT CROSS_COMPILE=powerpc-netbsd

under gmake -C examples
powerpc-netbsd-gcc -g -Os -D__KERNEL__ -DTEXT_BASE= -I/root/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/pkg/cross/lib/gcc-lib/powerpc-netbsd/egcs-2.91.60/include -pipe -D__PPC__ -DCONFIG_PPC -D__powerpc__ -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c Share object "libopcodes-2.9.1.so" not found hello_world.c: In function 'hello_world':
*****Error 1

I have binutils2.16 installed,
I used ./configure --target=powerpc-netbsd, this one builds fine...

under /usr/pkg/cross/lib/libopcodes.a, and
libopcodes.la is already present. How do I get
libopcodes-2.9.1.so ?

thanks

____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

#4 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I am getting this error
bash3.0# gmake CPU=CONFIG_405GP BOARD=CONFIG_WALNUT CROSS_COMPILE=powerpc-netbsd

I don't know where have this command from; you are not supposed to set CPU and BOARED on the command line.

Please follow the instructions.

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
Those who do not  understand  Unix  are  condemned  to  reinvent  it,
poorly.              - Henry Spencer, University of Toronto Unix hack
#5 lore raw

[U-Boot-Users] loading netbsd image

In reply to Wolfgang Denk

Host OS : netbsd, Target OS: netbsd
Host Arch =i386 Target arch : powerpc405

I have u-boot up and now I want to load my netbsd
kernel image.
According to u-boot readme, I need ppcboot

I downloaded ppcboot_stage from denx.de
I downloaded it in my root directory, when untarred it I found that it needs refernce to some netbsd files libkern.

Then I moved it the directory under netbsd source tree :
/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot

I ran make image under ppcboot/

this is the output I got.

Don;t understand why it is picking up
i386-netbsdelf-gcc to compile.
I think it should pickup powerpc--netbsd-gcc

Am I missing any declaration ?

Is there any README for this stage-2 loader, explaining where to put this directory and what to set up before compilation.

making sure the sa library is up to date...
# compile sa/alloc.o
/home/src/nbsrc/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-gcc
-g -Os -fomit-frame-pointer -ffixed-r14 -ffixed-r2
-fno-builtin -mcpu=860 -mstring -Werror
-I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../lib/libsa -I../../. -I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../arch -I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../.. -nostdinc -D_LKM
-DPPC_INTR_IMPL="<powerpc/ibm4xx/ibm4xx_intr.h>" -DPPC_PCI_MACHDEP_IMPL="<powerpc/ibm4xx/pci_machdep.h>"
-nostdinc -isystem /usr/include -DCOMPAT_UFS
-D__INTERNAL_LIBSA_CREAD -nostdinc -isystem
/usr/include -c /home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../lib/libsa/alloc.c -o alloc.o.tmp /home/src/nbsrc/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-gcc:
not found
*** Error code 127

Stop.
make: stopped in /home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/lib/sa *** Error code 1

Stop.
make: stopped in /home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#6 lore raw

[U-Boot-Users] loading netbsd image

I think I have to tell MACHINE_ARCH

make MACHINE_ARCH=powerpc

Quoted 29 lines · --- manju mahajan

Host OS : netbsd, Target OS: netbsd Host Arch =i386 Target arch : powerpc405

I have u-boot up and now I want to load my netbsd kernel image.
According to u-boot readme, I need ppcboot

I downloaded ppcboot_stage from denx.de
I downloaded it in my root directory, when untarred it
I found that it needs refernce to some netbsd files libkern.

Then I moved it the directory under netbsd source tree
:
/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot

I ran make image under ppcboot/

this is the output I got.

Don;t understand why it is picking up i386-netbsdelf-gcc to compile.
I think it should pickup powerpc--netbsd-gcc

Am I missing any declaration ?

Quoted 9 lines

Is there any README for this stage-2 loader, explaining where to put this directory and what to set
up before compilation.

making sure the sa library is up to date...
# compile sa/alloc.o

/home/src/nbsrc/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-gcc

Review

Quoted 3 lines
(quoted diff) +0 -2
-g -Os -fomit-frame-pointer -ffixed-r14 -ffixed-r2
-fno-builtin -mcpu=860 -mstring   -Werror 

-I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../lib/libsa

Quoted 2 lines

-I../../.

-I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../arch

Quoted 1 line

-I/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../..

Review

Quoted 3 lines
(quoted diff) +0 -2
-nostdinc -D_LKM
-DPPC_INTR_IMPL="<powerpc/ibm4xx/ibm4xx_intr.h>"

-DPPC_PCI_MACHDEP_IMPL="<powerpc/ibm4xx/pci_machdep.h>"

Quoted 4 lines
(quoted diff) +0 -2
-nostdinc -isystem /usr/include   -DCOMPAT_UFS 
-D__INTERNAL_LIBSA_CREAD   -nostdinc -isystem

/usr/include -c

/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/../../../../../lib/libsa/alloc.c

Quoted 2 lines

-o alloc.o.tmp

/home/src/nbsrc/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-gcc:

Quoted 6 lines

not found
*** Error code 127

Stop.
make: stopped in

/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2/lib/sa

Quoted 5 lines

*** Error code 1

Stop.
make: stopped in

/home/src/nbsrc/sys/arch/evbppc/stand/ppcboot/ppcboot_stage2

Quoted 4 lines
Quoted 8 lines

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------

Quoted 12 lines

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users

Quoted 1 line

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#7 lore raw

[U-Boot-Users] stage-2 loader hangs

I don't know how to use ppcboot_stage2 loader. As I could not get it compiled in my environment. Not sure if I should use it or not.

I have netbsd Image with me for WALNUT board

I used :

mkimage -A ppc -O netbsd -T kernel -C gzip -a 0 -e 0 -n "MyNetbsd" -d netbsd-WALNUT.gz

Quoted 3 lines

loadb 400000

bootm 400000

## Booting image at 00400000 ...

   Image Name:   Netbsd Manju
   Created:      2005-09-06  21:17:01 UTC
   Image Type:   PowerPC NetBSD Kernel Image (gzip

compressed)
Data Size: 2006672 Bytes = 1.9 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 00000000) ...

it hangs here.

______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

#8 lore raw

[U-Boot-Users] stage-2 loader hangs

Hi,

I have burned the FLASH for U-boot, I would like to debug the u-boot code. how can i do.

Thanks
----- Original Message -----
From: "manju mahajan" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 08, 2005 4:01 AM
Subject: Re: [U-Boot-Users] stage-2 loader hangs

Quoted 37 lines

I don't know how to use ppcboot_stage2 loader. As I could not get it compiled in my environment. Not sure if I should use it or not.

I have netbsd Image with me for WALNUT board

I used :

mkimage -A ppc -O netbsd -T kernel -C gzip -a 0 -e 0 -n "MyNetbsd" -d netbsd-WALNUT.gz

Quoted 3 lines

loadb 400000

bootm 400000

## Booting image at 00400000 ...

   Image Name:   Netbsd Manju
   Created:      2005-09-06  21:17:01 UTC
   Image Type:   PowerPC NetBSD Kernel Image (gzip

compressed)
Data Size: 2006672 Bytes = 1.9 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 00000000) ...

it hangs here.

Quoted 8 lines

______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle

Practices

Quoted 14 lines

Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Signature · 3 lines
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 9/7/2005
#9 lore raw

[U-Boot-Users] stage-2 loader hangs

Quoted 4 lines · In message <011401c5b433$ca758b80$0510a8c0@pvst6novr74bnd> you wrote:

I have burned the FLASH for U-boot,
I would like to debug the u-boot code.
how can i do.

Read the manual at http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot

Then attach your BDI2000 and start your GDB session.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
People are very flexible and learn to adjust to strange  surroundings
--  they can become accustomed to read Lisp and Fortran programs, for
example.   - Leon Sterling and Ehud Shapiro, Art of Prolog, MIT Press
#10 lore raw

[U-Boot-Users] stage-2 loader hangs

i have JTAG not BDI2000 is it possible ?
----- Original Message -----
From: "Wolfgang Denk" <[email protected]>
To: "Harshapvstus" <[email protected]>
Cc: "manju mahajan" <[email protected]>;
<[email protected]>
Sent: Thursday, September 08, 2005 2:32 PM
Subject: Re: [U-Boot-Users] stage-2 loader hangs

Quoted 6 lines
Quoted 4 lines · In message <011401c5b433$ca758b80$0510a8c0@pvst6novr74bnd> you wrote:

I have burned the FLASH for U-boot,
I would like to debug the u-boot code.
how can i do.

Quoted 19 lines

Read the manual at http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot

Then attach your BDI2000 and start your GDB session.

Best regards,

Wolfgang Denk

Signature · 10 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
People are very flexible and learn to adjust to strange  surroundings
--  they can become accustomed to read Lisp and Fortran programs, for
example.   - Leon Sterling and Ehud Shapiro, Art of Prolog, MIT Press


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle

Practices

Quoted 14 lines

Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Signature · 3 lines
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 9/7/2005
#11 lore raw

[U-Boot-Users] stage-2 loader hangs

In reply to Harshapvstus

Please don't contents in the subject...
was hoping I got some replies.....

Quoted 45 lines · --- Harshapvstus

Hi,

I have burned the FLASH for U-boot, I would like to debug the u-boot code. how can i do.

Thanks
----- Original Message -----
From: "manju mahajan" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 08, 2005 4:01 AM
Subject: Re: [U-Boot-Users] stage-2 loader hangs

Quoted 1 line

I don't know how to use ppcboot_stage2 loader. As

I

Quoted 1 line

could not get it compiled in my environment. Not

sure

Quoted 8 lines

if I should use it or not.

I have netbsd Image with me for WALNUT board

I used :

mkimage -A ppc -O netbsd -T kernel -C gzip -a 0 -e

0

Quoted 11 lines

-n "MyNetbsd" -d netbsd-WALNUT.gz

Quoted 3 lines

loadb 400000

bootm 400000

## Booting image at 00400000 ...

   Image Name:   Netbsd Manju
   Created:      2005-09-06  21:17:01 UTC
   Image Type:   PowerPC NetBSD Kernel Image (gzip
Quoted 7 lines

compressed)
Data Size: 2006672 Bytes = 1.9 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader

Quoted 12 lines

(at

Quoted 10 lines

address 00000000) ...

it hangs here.

______________________________________________________

Quoted 7 lines
Quoted 1 line

Click here to donate to the Hurricane Katrina

relief effort.

Quoted 4 lines

http://store.yahoo.com/redcross-donate3/

-------------------------------------------------------

Quoted 14 lines
Quoted 1 line

SF.Net email is Sponsored by the Better Software

Conference & EXPO

Quoted 1 line

September 19-22, 2005 * San Francisco, CA *

Development Lifecycle
Practices

Quoted 1 line

Agile & Plan-Driven Development * Managing

Projects & Teams * Testing & QA

Quoted 1 line

Security * Process Improvement & Measurement *

http://www.sqe.com/bsce5sf

Quoted 4 lines

_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users

Quoted 13 lines
Quoted 6 lines
Signature · 4 lines
-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 -

Release Date: 9/7/2005

Quoted 2 lines

-------------------------------------------------------

Quoted 12 lines

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users

Quoted 1 line

______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

#12 lore raw

[U-Boot-Users] stage-2 loader hangs

Quoted 4 lines · In message <[email protected]> you wrote:

Please don't contents in the subject...
was hoping I got some replies.....

--- Harshapvstus <[email protected]> wrote:

[Full quote deleted.]

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No
Q: Should I leave quotes after my own reply?

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
If you fail to plan, plan to fail.