도와주세요!!
글 수 15,339
2006.01.16 17:31:12 (*.254.33.151)
6661
EZ-X5를 구매했구요, 메뉴얼에 적힌대로 실행해보고 있는데요,
커널을 컴파일 하는데서 문제가 발생했습니다.
메뉴얼 116쪽의 make ez-x5_config 랑 make oldconfig 는 잘 됐습니다.
그런데 그 다음 페이지의 커널 컴파일 옵션을 수정할 수 있는 부분에서부터 막히더라구요
make menuconfig 라고 치면,
(생략)
checklist.c:343: warning: incompatible implicit declaration of built-in function ‘fprintf’
checklist.c:345: warning: incompatible implicit declaration of built-in function ‘fprintf’
make[1]: *** [checklist.o] 오류 1
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/scripts/lxdialog'
make: *** [menuconfig] 오류 2
이런 에러가 뜹니다. 그래도 이건 옵션이니까 일단 스킵하고 넘어갔는데그 다음에 119쪽에 나오는
make dep, make clean, make zImage 를 해보면
차마 에러가 너무 길어서 다 올릴 순 없고, make zImage를 쳤을 때의 에러만 보이자면
[root@serene linux]# make zImage
. scripts/mkversion > .tmpversion
armv5l-linux-gcc -D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm -DUTS_MACHINE='"arm"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
make[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/arch/arm/tools'
cmp constants.h /project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include/asm-arm/constants.h >/dev/null 2>&1 || cp -p constants.h /project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include/asm-arm/constants.h
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/arch/arm/tools'
make CFLAGS="-D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm " -C kernelmake[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make all_targets
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make[2]: `all_targets'를 위해 할 일이 없습니다
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make CFLAGS="-D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm " -C drivers
make[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers'
make -C block
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make -C ../acorn/block
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make all_targets
make[4]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make[4]: `all_targets'를 위해 할 일이 없습니다
make[4]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make[3]: `all_targets'를 위해 할 일이 없습니다
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make -C cdrom
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make[3]: `all_targets'를 위해 할 일이 없습니다
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make -C char
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'
make -C ../acorn/char
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make all_targets
make[4]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make[4]: `all_targets'를 위해 할 일이 없습니다
make[4]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'
armv5l-linux-gcc -D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm -nostdinc -I /usr/lib/gcc-lib/armv5l-linux/3.2.1/include -DKBUILD_BASENAME=mk712 -c -o mk712.o mk712.c
mk712.c:110: `MK712_DEFAULT_IO' undeclared here (not in a function)
mk712.c:111: `MK712_DEFAULT_IRQ' undeclared here (not in a function)
mk712.c: In function `mk712_interrupt':
mk712.c:381: `debug_proc' undeclared (first use in this function)
mk712.c:381: (Each undeclared identifier is reported only once
mk712.c:381: for each function it appears in.)
mk712.c:319: warning: unused variable `xl'
mk712.c:319: warning: unused variable `yl'
mk712.c:319: warning: unused variable `xh'
mk712.c:319: warning: unused variable `yh'
mk712.c: In function `mk712_init':
mk712.c:542: warning: implicit declaration of function `set_GPIO_IRQ_edge'
mk712.c:542: `MK712_DEFAULT_GPIO_IRQ' undeclared (first use in this function)
mk712.c:542: `GPIO_RISING_EDGE' undeclared (first use in this function)
make[3]: *** [mk712.o] 오류 1
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'make[2]: *** [first_rule] 오류 2
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'make[1]: *** [_subdir_char] 오류 2
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers'
make: *** [_dir_drivers] 오류 2
이런 에러가 뜹니다. 물론 zImage는 생성되지도 않구요..orz... 하루종일 고민했습니다. 어떻게 하면 좋을가요?
커널을 컴파일 하는데서 문제가 발생했습니다.
메뉴얼 116쪽의 make ez-x5_config 랑 make oldconfig 는 잘 됐습니다.
그런데 그 다음 페이지의 커널 컴파일 옵션을 수정할 수 있는 부분에서부터 막히더라구요
make menuconfig 라고 치면,
(생략)
checklist.c:343: warning: incompatible implicit declaration of built-in function ‘fprintf’
checklist.c:345: warning: incompatible implicit declaration of built-in function ‘fprintf’
make[1]: *** [checklist.o] 오류 1
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/scripts/lxdialog'
make: *** [menuconfig] 오류 2
이런 에러가 뜹니다. 그래도 이건 옵션이니까 일단 스킵하고 넘어갔는데그 다음에 119쪽에 나오는
make dep, make clean, make zImage 를 해보면
차마 에러가 너무 길어서 다 올릴 순 없고, make zImage를 쳤을 때의 에러만 보이자면
[root@serene linux]# make zImage
. scripts/mkversion > .tmpversion
armv5l-linux-gcc -D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm -DUTS_MACHINE='"arm"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
make[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/arch/arm/tools'
cmp constants.h /project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include/asm-arm/constants.h >/dev/null 2>&1 || cp -p constants.h /project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include/asm-arm/constants.h
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/arch/arm/tools'
make CFLAGS="-D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm " -C kernelmake[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make all_targets
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make[2]: `all_targets'를 위해 할 일이 없습니다
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/kernel'
make CFLAGS="-D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm " -C drivers
make[1]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers'
make -C block
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make -C ../acorn/block
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make all_targets
make[4]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make[4]: `all_targets'를 위해 할 일이 없습니다
make[4]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/block'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make[3]: `all_targets'를 위해 할 일이 없습니다
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/block'
make -C cdrom
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make[3]: `all_targets'를 위해 할 일이 없습니다
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/cdrom'
make -C char
make[2]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'
make -C ../acorn/char
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make all_targets
make[4]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make[4]: `all_targets'를 위해 할 일이 없습니다
make[4]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/acorn/char'
make all_targets
make[3]: Entering directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'
armv5l-linux-gcc -D__KERNEL__ -I/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=3 -march=armv3 -mshort-load-bytes -msoft-float -Uarm -nostdinc -I /usr/lib/gcc-lib/armv5l-linux/3.2.1/include -DKBUILD_BASENAME=mk712 -c -o mk712.o mk712.c
mk712.c:110: `MK712_DEFAULT_IO' undeclared here (not in a function)
mk712.c:111: `MK712_DEFAULT_IRQ' undeclared here (not in a function)
mk712.c: In function `mk712_interrupt':
mk712.c:381: `debug_proc' undeclared (first use in this function)
mk712.c:381: (Each undeclared identifier is reported only once
mk712.c:381: for each function it appears in.)
mk712.c:319: warning: unused variable `xl'
mk712.c:319: warning: unused variable `yl'
mk712.c:319: warning: unused variable `xh'
mk712.c:319: warning: unused variable `yh'
mk712.c: In function `mk712_init':
mk712.c:542: warning: implicit declaration of function `set_GPIO_IRQ_edge'
mk712.c:542: `MK712_DEFAULT_GPIO_IRQ' undeclared (first use in this function)
mk712.c:542: `GPIO_RISING_EDGE' undeclared (first use in this function)
make[3]: *** [mk712.o] 오류 1
make[3]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'make[2]: *** [first_rule] 오류 2
make[2]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers/char'make[1]: *** [_subdir_char] 오류 2
make[1]: Leaving directory `/project/ez-x5/test/kernel/linux-2.4.19-rmk7-pxa1-ez-x5/drivers'
make: *** [_dir_drivers] 오류 2
이런 에러가 뜹니다. 물론 zImage는 생성되지도 않구요..orz... 하루종일 고민했습니다. 어떻게 하면 좋을가요?