make u-boot

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
chkbox
Erleuchteter
Erleuchteter
Beiträge: 440
Registriert: Samstag 10. April 2004, 15:17

make u-boot

Beitrag von chkbox »

make u-boot und alles, was davon abhängig ist endet mit:

Code: Alles auswählen

( rm -rf u-boot-1.1.1 || /bin/true ) && bunzip2 -cd Archive/u-boot-1.1.1.tar.bz2
 | TAPE=- tar -x && ( cd u-boot-1.1.1; patch -p1 < ../Patches/u-boot-1.1.1.diff
)
patching file Makefile
patching file common/Makefile
patching file common/cmd_flash.c
patching file common/cmd_net.c
patching file common/cmd_nvedit.c
patching file common/devices.c
patching file common/env_common.c
patching file common/main.c
patching file cpu/mpc8xx/cpu_init.c
patching file cpu/mpc8xx/start.S
patching file fs/Makefile
patching file fs/cramfs/cramfs.c
patching file fs/cramfs/uncompress.c
patching file fs/jffs2/compr_rtime.c
patching file fs/jffs2/compr_rubin.c
patching file fs/jffs2/compr_zlib.c
patching file fs/jffs2/jffs2_1pass.c
patching file fs/jffs2/mini_inflate.c
patching file include/cmd_confdefs.h
patching file include/commproc.h
patching file include/devices.h
patching file include/flash.h
patching file include/jffs2/load_kernel.h
patching file include/lcd.h
patching file include/version.h
patching file lib_generic/crc32.c
patching file net/bootp.c
patching file net/net.c
patching file net/tftp.c
patching file tools/Makefile
cp -pR /home/chkbox/tuxbox-cvs/boot/u-boot-tuxbox/* u-boot-1.1.1
cp -p /home/chkbox/tuxbox-cvs/boot/u-boot-config/u-boot.config u-boot-1.1.1/incl
ude/configs/dbox2.h
make -C u-boot-1.1.1 dbox2_config
make[1]: Entering directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1'
Configuring for dbox2 board...
make[1]: Leaving directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1'
make -C u-boot-1.1.1 CROSS_COMPILE=powerpc-tuxbox-linux-gnu- u-boot.stripped
make[1]: Entering directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1'
Makefile:50: /home/chkbox/tuxbox-cvs/cdk/config.mk: No such file or directory
make[1]: *** No rule to make target `/home/chkbox/tuxbox-cvs/cdk/config.mk'.  St
op.
make[1]: Leaving directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1'
make: *** [.deps/u-boot] Error 2
Irgendwelche Ideen, wo "/home/chkbox/tuxbox-cvs/cdk/config.mk" ist oder wie ich sie erstelle?
chkbox
Erleuchteter
Erleuchteter
Beiträge: 440
Registriert: Samstag 10. April 2004, 15:17

Beitrag von chkbox »

So, habe jetzt selber was rausgefunden:

Wenn ich das Makefile noch zusätlich mit

Code: Alles auswählen

@@ -39,7 +39,7 @@
 
 #########################################################################
 
-TOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+TOPDIR	:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)/u-boot-1.1.1
 export	TOPDIR
 
 ifeq (include/config.mk,$(wildcard include/config.mk))
patche, läuft es erstmal. Dann kommt aber:

Code: Alles auswählen

make -C tools all
make[2]: Entering directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1/tools'
gcc -Wall -pedantic -D__WIN32__ -I../include -I.. -DTEXT_BASE=0x40000 -DUSE_HOST
CC -O -c -o img2srec.o img2srec.c
In file included from img2srec.c:60:
../include/elf.h:46: warning: redefinition of `uint8_t'
/usr/include/stdint.h:24: warning: `uint8_t' previously declared here
../include/elf.h:47: warning: redefinition of `uint16_t'
/usr/include/stdint.h:25: warning: `uint16_t' previously declared here
../include/elf.h:48: error: conflicting types for `uint32_t'
/usr/include/stdint.h:28: error: previous declaration of `uint32_t'
make[2]: *** [img2srec.o] Error 1
make[2]: Leaving directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1/tools'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/home/chkbox/tuxbox-cvs/cdk/u-boot-1.1.1'
make: *** [.deps/u-boot] Error 2
Liegt das auch an einem falschen Pfad? Kann aber eigentlich nicht sein, denn elf.h gibts sonst nur im Kernel und von da sollte er sie ja eigentlich nicht laden. Irgendwelche Ideen? Fehlt ein Patch? Oder ist das ein Problem mit cygwin?
chkbox
Erleuchteter
Erleuchteter
Beiträge: 440
Registriert: Samstag 10. April 2004, 15:17

Beitrag von chkbox »

Na endlich:

Der fehler ist das "typedef unsigned long uint32_t;" auf meinem Athlon64 nicht das gleiche wie "typedef unsigned int uint32_t;" ist. Das ist der ganze Hintegrund....
Npq
Senior Member
Beiträge: 1339
Registriert: Donnerstag 24. April 2003, 12:12

Beitrag von Npq »

Da gibt's schon einen Thread zu. Cygwin hat da einen Bug beim Setzen der PWD-Variable. Das mit der Typendoppeldeklaration hab ich mir nie angesehen (ich habe kein Cygwin), sollte natürlich auch nicht passieren.

http://forum.tuxbox-cvs.sourceforge.net ... 9&start=20