Hi there, Having download the latest 2009 version, I made some changes to Makefile, tools/Makefile. I encouter the following errors. Would someone please help. I have had compiled successfully on 1.1.6 and 1.2 version of u-boot. But haven't much luck on 1.3.4 or the latest.
Thanks in advance. vib make all Generating include/autoconf.mk.dep for dir in tools examples api_examples ; do make -C $dir _depend ; done ln -s ../common/env_embedded.c env_embedded.c ln -s ../include/zlib.h zlib.h ln -s ../lib_generic/crc32.c crc32.c ln -s ../lib_generic/md5.c md5.c ln -s ../lib_generic/sha1.c sha1.c ln -s ../common/image.c image.c if [ ! -f mkimage.h ] ; then \ ln -s ../tools/mkimage.h mkimage.h; \ fi if [ ! -f fdt_host.h ] ; then \ ln -s ../tools/fdt_host.h fdt_host.h; \ fi In file included from ../include/libfdt.h:54, from fdt_host.h:25, from mkimage.h:36, from image.c:71: /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:27:20: error: endian.h: No such file or directory /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:28:22: error: byteswap.h: No such file or directory In file included from ../include/libfdt.h:54, from fdt_host.h:25, from mkimage.h:36, from mkimage.c:25: /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:27:20: error: endian.h: No such file or directory /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:28:22: error: byteswap.h: No such file or directory make[1]: Circular env_embedded.c <- env_embedded.c dependency dropped. ln -s ../common/env_embedded.c env_embedded.c make[1]: Circular crc32.c <- crc32.c dependency dropped. make[1]: Circular md5.c <- md5.c dependency dropped. make[1]: Circular sha1.c <- sha1.c dependency dropped. make[1]: Circular img2srec.c <- img2srec.c dependency dropped. make[1]: Circular envcrc.c <- envcrc.c dependency dropped. make[1]: Circular ubsha1.c <- ubsha1.c dependency dropped. make[1]: Circular gen_eth_addr.c <- gen_eth_addr.c dependency dropped. make[1]: Circular bmp_logo.c <- bmp_logo.c dependency dropped. make[1]: Nothing to be done for `_depend'. make[1]: Circular hello_world.c <- hello_world.c dependency dropped. make[1]: Circular stubs.c <- stubs.c dependency dropped. make[1]: Nothing to be done for `_depend'. make[1]: Nothing to be done for `_depend'. Generating include/autoconf.mk make -C tools all make[1]: Circular env_embedded.c <- env_embedded.c dependency dropped. ln -s ../common/env_embedded.c env_embedded.c make[1]: Circular crc32.c <- crc32.c dependency dropped. make[1]: Circular md5.c <- md5.c dependency dropped. make[1]: Circular sha1.c <- sha1.c dependency dropped. make[1]: Circular img2srec.c <- img2srec.c dependency dropped. make[1]: Circular envcrc.c <- envcrc.c dependency dropped. make[1]: Circular ubsha1.c <- ubsha1.c dependency dropped. make[1]: Circular gen_eth_addr.c <- gen_eth_addr.c dependency dropped. make[1]: Circular bmp_logo.c <- bmp_logo.c dependency dropped. cc -no-cpp-precomp -Wall -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include2 -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -DTEXT_BASE=0x0CF80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c cc -no-cpp-precomp -Wall -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include2 -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -DTEXT_BASE=0x0CF80000 -DUSE_HOSTCC -O -o img2srec img2srec.o strip img2srec cc -g -Wall -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include2 -idirafter /Users/ibookg4test/Downloads/u-boot-2009.01/include -DTEXT_BASE=0x0CF80000 -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: /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:27:20: error: endian.h: No such file or directory /Users/ibookg4test/Downloads/u-boot-2009.01/include/libfdt_env.h:28:22: error: byteswap.h: No such file or directory 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 ‘bswap_32’ In file included from mkimage.c:26: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: At top level: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:191: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:193: error: syntax error before ‘load’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:195: error: syntax error before ‘}’ token /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:209: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:262: error: syntax error before ‘}’ token /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:380: error: syntax error before ‘image_get_data’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: In function ‘image_get_data’: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:382: error: ‘ulong’ undeclared (first use in this function) /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:382: error: (Each undeclared identifier is reported only once /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:382: error: for each function it appears in.) /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:382: error: syntax error before ‘hdr’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: At top level: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:389: error: syntax error before ‘image_get_image_end’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: In function ‘image_get_image_end’: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:391: error: ‘ulong’ undeclared (first use in this function) /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:391: error: syntax error before ‘hdr’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: At top level: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:448: error: syntax error before ‘image_multi_count’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:449: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:523: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:525: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:539: error: syntax error before ‘fit_get_size’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:551: error: syntax error before ‘fit_get_end’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: In function ‘fit_get_end’: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:553: error: ‘ulong’ undeclared (first use in this function) /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:553: error: syntax error before ‘fit’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h: At top level: /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:578: error: syntax error before ‘ulong’ /Users/ibookg4test/Downloads/u-boot-2009.01/include/image.h:579: error: syntax error before ‘ulong’ make[1]: *** [mkimage.o] Error 1 make: *** [tools] Error 2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot