[U-Boot-Users] compiling u-boot for ppc on i386

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

In message 20050830221228.75669.qmail@web60715.mail.yahoo.com 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.
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).
--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

I am using bash shell (3.0), and have gmake.
--- Wolfgang Denk wd@denx.de wrote:
In message 20050830221228.75669.qmail@web60715.mail.yahoo.com 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.
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).
--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
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de There are three things I always forget. Names, faces
- the third I
can't remember.
- Italo Svevo
-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs

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

In message 20050901170846.96710.qmail@web60711.mail.yahoo.com 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

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

I think I have to tell MACHINE_ARCH
make MACHINE_ARCH=powerpc
--- manju mahajan manjumail@yahoo.com wrote:
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
-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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
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/

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" manjumail@yahoo.com To: u-boot-users@lists.sourceforge.net Sent: Thursday, September 08, 2005 4:01 AM Subject: Re: [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
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/
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- 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

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

i have JTAG not BDI2000 is it possible ? ----- Original Message ----- From: "Wolfgang Denk" wd@denx.de To: "Harshapvstus" harsha@pvst.us Cc: "manju mahajan" manjumail@yahoo.com; u-boot-users@lists.sourceforge.net Sent: Thursday, September 08, 2005 2:32 PM Subject: Re: [U-Boot-Users] stage-2 loader hangs
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
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@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
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- 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

Please don't contents in the subject... was hoping I got some replies.....
--- Harshapvstus harsha@pvst.us wrote:
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" manjumail@yahoo.com To: u-boot-users@lists.sourceforge.net Sent: Thursday, September 08, 2005 4:01 AM Subject: Re: [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
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.
-------------------------------------------------------
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 *
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-- 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
-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/

In message 20050908154723.88678.qmail@web60721.mail.yahoo.com you wrote:
Please don't contents in the subject... was hoping I got some replies.....
--- Harshapvstus harsha@pvst.us 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
participants (3)
-
Harshapvstus
-
manju mahajan
-
Wolfgang Denk