
Zitat von
Joergle
Hallo,
danke für deinen Tipp! Mir war auch klar dass man nicht das ganze Paket braucht, aber auf die Idee, sich vom mkimage durch zu hangeln bin ich nicht gekommen
Jedenfalls wenn du deine Angaben geringfügug modifizierst, dann passt es:
Code:
1. cd ...../u-boot-1.0.0/lib_generic
2. gcc crc32.c -I../include -c
3. cd ...../u-boot-1.0.0/tools
4. gcc mkimage.c ../lib_generic/crc32.o -I../include -o mkimage
... jedenfalls hat es bei mir so geklappt!
Danke!
Hallo,
ich habe es probiert, aber ohne Erfolg:
Code:
gcc crc32.c -I../include -c
In file included from crc32.c:12:
../include/common.h:35:20: error: config.h: No such file or directory
In file included from ../include/common.h:37,
from crc32.c:12:
../include/linux/types.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dev_t’
In file included from ../include/common.h:80,
from crc32.c:12:
../include/flash.h:36: error: ‘CFG_MAX_FLASH_SECT’ undeclared here (not in a function)
../include/common.h:93:64: error: asm/u-boot.h: No such file or directory
../include/common.h:94:74: error: asm/global_data.h: No such file or directory
In file included from crc32.c:12:
../include/common.h:157: error: expected ‘)’ before ‘*’ token
../include/common.h:308: error: expected declaration specifiers or ‘...’ before ‘gd_t’
../include/common.h:476: warning: conflicting types for built-in function ‘puts’
../include/common.h:477: warning: conflicting types for built-in function ‘printf’
../include/common.h:478: warning: conflicting types for built-in function ‘vprintf’
../include/common.h:494: warning: conflicting types for built-in function ‘fprintf’
../include/common.h:495: warning: conflicting types for built-in function ‘fputs’
../include/common.h:496: warning: conflicting types for built-in function ‘fputc’
Ich habe dann probiert:
Code:
cd ..../u-boot-1.0.0
MAKEALL
cd lib_generic/
gcc crc32.c -I../include -c
Es hat geklappt - allerdings mit vielen warnings:
Code:
In file included from ../include/common.h:38,
from crc32.c:12:
../include/linux/string.h:15: warning: conflicting types for built-in function ‘strspn’
In file included from ../include/linux/string.h:21,
from ../include/common.h:38,
from crc32.c:12:
../include/asm/string.h:17: warning: conflicting types for built-in function ‘strncasecmp’
../include/asm/string.h:19: warning: conflicting types for built-in function ‘strncpy’
../include/asm/string.h:20: warning: conflicting types for built-in function ‘strlen’
../include/asm/string.h:23: warning: conflicting types for built-in function ‘memset’
../include/asm/string.h:24: warning: conflicting types for built-in function ‘memcpy’
../include/asm/string.h:25: warning: conflicting types for built-in function ‘memmove’
../include/asm/string.h:26: warning: conflicting types for built-in function ‘memcmp’
In file included from ../include/common.h:38,
from crc32.c:12:
../include/linux/string.h:33: warning: conflicting types for built-in function ‘strncat’
../include/linux/string.h:39: warning: conflicting types for built-in function ‘strncmp’
In file included from crc32.c:12:
../include/common.h:476: warning: conflicting types for built-in function ‘puts’
../include/common.h:477: warning: conflicting types for built-in function ‘printf’
../include/common.h:478: warning: conflicting types for built-in function ‘vprintf’
../include/common.h:494: warning: conflicting types for built-in function ‘fprintf’
../include/common.h:495: warning: conflicting types for built-in function ‘fputs’
../include/common.h:496: warning: conflicting types for built-in function ‘fputc’

War es bei Ihnen auch so?
Dann schon ohne Probleme:
Code:
cd ../tools/
gcc mkimage.c ../lib_generic/crc32.o -I../include -o mkimage
Ist es so richtig? Kann ich die Warnings ignorieren? 
Danke!
Jiri