안녕하세요...

학습을 위하여 커널 패치를 한것인가요?? 아니면 메뉴얼 대로 따라하기를 하시는 중인가요??
먼저 메뉴얼대로 하시면 대부분이 에러가 발생합니다. 저희도 따라하기를 하면 5번중 1~2번 성공합니다.
대부분이 오타이거나 어떤 부분을 빠뜨린 경우입니다.
첫번째 학습의 경우에는 패치가 모두된 커널을 가지고, 저희가 어떤 부분에 패치를 하였는지를 거꾸로 찾아 보는 방법이 제일 빠릅니다.
두번째의 경우에는 제공된 CD의 sw/kernel/linux-2.4.19-x5-v07.tar.gz 의 파일을 압축을 푸시고 바로 사용하시면 됩니다. 이미 모든 패치가 된 커널입니다. 아니면 홈페이지의 자료실에서 커널을 다운받으시면 됩니다.

그럼 수고하세요..




>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... 하루종일 고민했습니다. 어떻게 하면 좋을가요?