[U-Boot] uboot under cygwin
Stas Desyatnlkov
stas at tech-mer.com
Mon Jun 1 09:37:11 CEST 2009
Hi All,
My first post here. Sorry if it was asked before and I couldn't find it.
I need to build uboot for my own board based on 5121ads design from Freescale. My board is different from the reference as it has no CPLD, so I have to change a few things in the uboot code.
I use Windows based CodeWarrior and USB tap to burn images on the board. The easiest thing for me is using cygwin so I won't have to copy binary images between OSes. Tried to compile uboot on cygwin with numerous errors mostly conflicting types in uboot tools.
So I guess my question is - does anyone have any success building uboot under cygwin?
Here is a sample of my compiler output
make[1]: Entering directory `/cygdrive/d/temp/Freescale/u-boot-2008.10/tools'
gcc -Wall -pedantic -ansi -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include2 -idirafter /cygdr
0/include -DTEXT_BASE=0xFFF00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -ansi -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include2 -idirafter /cygdr
0/include -DTEXT_BASE=0xFFF00000 -DUSE_HOSTCC -O -o img2srec.exe img2srec.o
strip img2srec.exe
gcc -g -Wall -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include -idirafter /cygdrive/d/temp/Freescale/u-boot-2008.10/include2 -idirafter /cygdrive/d/temp/Fr
EXT_BASE=0xFFF00000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
In file included from ../include/libfdt.h:54,
from fdt_host.h:25,
from mkimage.h:36,
from mkimage.c:25:
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/libfdt_env.h:50: error: conflicting types for 'uintptr_t'
/usr/include/stdint.h:62: error: previous declaration of 'uintptr_t' was here
In file included from fdt_host.h:25,
from mkimage.h:36,
from mkimage.c:25:
../include/libfdt.h: In function `fdt_set_magic':
../include/libfdt.h:162: warning: implicit declaration of function `__cpu_to_be32'
In file included from mkimage.c:26:
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/image.h: At top level:
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/image.h:193: error: parse error before "ulong"
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/image.h:195: error: parse error before "load"
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/image.h:197: error: parse error before '}' token
/cygdrive/d/temp/Freescale/u-boot-2008.10/include/image.h:211: error: parse error before "ulong"
More information about the U-Boot
mailing list