[U-Boot-Users] New user question(s)

Hello,
I'm attempting to build u-boot for the evb64260 brd. I'm doing so on a WinNT4 host with a Cygwin environment and a powerpc-elf cross compiler ( a Linux env is not an option ). This is fun but it's become apparent that I don't know what the heck I'm doing :^). Most of my problems seem to occur as a result of include files missing, in the wrong place, or incorrect. Here's an example of warnings/errors;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++ make[1]: Entering directory `/cygdrive/d/uboot/uboot030/post/cpu' make[1]: `.depend' is up to date. make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/post/cpu' make[1]: Entering directory `/cygdrive/d/uboot/uboot030/examples' make[1]: `.depend' is up to date. make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/examples' make[1]: Entering directory `/cygdrive/d/uboot/uboot030/tools' gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c In file included from img2srec.c:60: ../include/elf.h:67: parse error before `Elf32_Sword' ../include/elf.h:67: warning: type defaults to `int' in declaration of `Elf32_Sw ord' ../include/elf.h:67: ANSI C forbids data definition with no type or storage clas s ../include/elf.h:419: parse error before `Elf32_Sword' ../include/elf.h:419: warning: no semicolon at end of struct or union ../include/elf.h:420: warning: type defaults to `int' in declaration of `Elf32_R ela' ../include/elf.h:420: ANSI C forbids data definition with no type or storage cla ss ../include/elf.h:464: parse error before `Elf32_Sword' ../include/elf.h:464: warning: no semicolon at end of struct or union ../include/elf.h:470: parse error before `}' ../include/elf.h:470: warning: type defaults to `int' in declaration of `Elf32_D yn' ../include/elf.h:470: ANSI C forbids data definition with no type or storage cla ss ../include/elf.h:472: parse error before `_DYNAMIC' ../include/elf.h:472: warning: type defaults to `int' in declaration of `_DYNAMI C' ../include/elf.h:472: ANSI C forbids data definition with no type or storage cla ss In file included from /usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/unistd.h :4, from img2srec.c:61: /usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: parse error before `ualarm' /usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: parse error before `__useconds' /usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: ANSI C forbi ds data definition with no type or storage class ../include/elf.h:472: warning: array `_DYNAMIC' assumed to have one element make[1]: *** [img2srec.o] Error 1 make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/tools' make: *** [subdirs] Error 1 ---------------------------------------------------------------------------- ----------------------------------------------------
So I'm thinking my Cygwin environment is not set up correctly, or I've missed something else. In any case, has anyone built u-boot in a Win/Cygwin environment, and if so, would you have any suggestions? Any general ideas or suggestions would be appreciated as well.
Thanx,
Anders
VMIC anders.eliasson@gefanuc.com

Dear Anders,
in message A9713061F01AD411B0F700D0B746CA6804B77676@vacho6misge.cho.ge.com you wrote:
I'm attempting to build u-boot for the evb64260 brd. I'm doing so on a WinNT4 host with a Cygwin environment and a powerpc-elf cross compiler ( a
Sincere condolences.
Linux env is not an option ). This is fun but it's become apparent that I
Please reconsider. The effort you will have to spend to get this working under Windoze is probably more expensive then investing in a standard PC running Linux.
Especially when you consider using Linux one day you will _have_ to go that route.
don't know what the heck I'm doing :^). Most of my problems seem to occur
I think you know perfectly what you're doing: not using the right OS.
Best regards,
Wolfgang Denk

On Tue, 22 Apr 2003, Eliasson, Anders (IndSys, GEFanuc, VMIC) wrote:
I'm attempting to build u-boot for the evb64260 brd. I'm doing so on a WinNT4 host with a Cygwin environment and a powerpc-elf cross compiler ( a Linux env is not an option ). This is fun but it's become apparent that I don't know what the heck I'm doing :^). Most of my problems seem to occur as a result of include files missing, in the wrong place, or incorrect. Here's an example of warnings/errors;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++ make[1]: Entering directory `/cygdrive/d/uboot/uboot030/post/cpu' make[1]: `.depend' is up to date. make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/post/cpu' make[1]: Entering directory `/cygdrive/d/uboot/uboot030/examples' make[1]: `.depend' is up to date. make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/examples' make[1]: Entering directory `/cygdrive/d/uboot/uboot030/tools' gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O
Please note that u-boot contains code that is supposed to run on the build host (rather than on the target), so you also need a native cygwin compiler which creates code for your x86-WinNT box. The "tools" directory above is such a directory containg tools for the host.
On a regular Linux system, you usually call the make like this:
make CROSS_COMPILE=powerpc-linux- all
The Makefiles then know where to use the "$(CROSS_COMPILE)gcc" and where to use the regular host "gcc". Be sure not to mix that up.
In general, I see no reason why u-boot should not be compilable under Cygwin. Getting there can well be a bit bumpy, though :-)
Regards, Marius
----------------------------------------------------------------------------- Marius Groeger SYSGO Real-Time Solutions AG mgroeger@sysgo.de Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
participants (3)
-
Eliasson, Anders (IndSys, GEFanuc, VMIC)
-
Marius Groeger
-
Wolfgang Denk