
도와주세요!!
글 수 15,339
2005.10.13 16:46:32 (*.141.101.107)
7011
안녕하세요...
Toolchain에서 커널 컴파일 관련 크로스 컴파일러 선택은 다음과 같이 하라고 명시를 한것 같은데..
혹시 보지 못하신건가요??
커널 2.6은 GCC-3.4.3
커널 2.4는 GCC-3.3.4 또는 GCC-3.2.1
이렇게 되어 있습니다...
이 커널 버젼은 배포판의 커널 버젼이 아닙니다.. 컴파일 할 커널의 버젼입니다..
따라서 2.4.19의 커널이면.. GCC-3.3.4 또는 GCC-3.2.1를 이용하셔야 합니다..
저희도 GCC-3.4.3대로 해보았지만 실패 했습니다. 만약 성공한다고 해도 ramdisk에서 발생하는 문제도
전부 처리 해 주셔야 합니다...
굳이 2.4.19 커널을 3.4.3 대로 하셔야 한다면 말리지는 않겠지만...별로 추천은 하고 싶지 않습니다...
차라리 커널 2.6으로 다시 포팅하는것이 좋을 듯 싶합니다..
그럼 수고하세요..
>make zImage를 하면 아래와 같은 오류를 발생합니다.
>
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -msoft-float -Uarm -nostdinc -I /usr/lib/gcc/arm-linux/3.4.3/include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB -c ksyms.c
>arm-linux-gcc -D__KERNEL__ -I/kernel/linux-2.4.19-x5-v07-128M/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -msoft-float -Uarm -nostdinc -I /usr/lib/gcc/arm-linux/3.4.3/include -DKBUILD_BASENAME=cpufreq -DEXPORT_SYMTAB -c cpufreq.c
>cpufreq.c: In function `cpufreq_setup':
>cpufreq.c:97: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:98: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c: In function `cpufreq_set':
>cpufreq.c:284: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c: At top level:
>cpufreq.c:413: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:413: error: initializer element is not constant
>cpufreq.c:413: error: (near initialization for `ctl_cpu_vars[0].data')
>cpufreq.c:417: error: initializer element is not constant
>cpufreq.c:417: error: (near initialization for `ctl_cpu_vars[0]')
>cpufreq.c:421: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:421: error: initializer element is not constant
>cpufreq.c:421: error: (near initialization for `ctl_cpu_vars[1].data')
>cpufreq.c:425: error: initializer element is not constant
>cpufreq.c:425: error: (near initialization for `ctl_cpu_vars[1]')
>cpufreq.c:432: error: initializer element is not constant
>cpufreq.c:432: error: (near initialization for `ctl_cpu_vars[2]')
>cpufreq.c:435: error: initializer element is not constant
>cpufreq.c:435: error: (near initialization for `ctl_cpu_vars[3]')
>cpufreq.c: In function `cpufreq_init':
>cpufreq.c:514: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:516: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:519: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:528: warning: use of compound expressions as lvalues is deprecated
>make[2]: *** [cpufreq.o] 오류 1
>make[2]: Leaving directory `/kernel/linux-2.4.19-x5-v07-128M/kernel'
>make[1]: *** [first_rule] 오류 2
>make[1]: Leaving directory `/kernel/linux-2.4.19-x5-v07-128M/kernel'
>make: *** [_dir_kernel] 오류 2
>
>
>크로스 컴파일은 falinux에서 제공하는
>
>페도라 코어 2, 코어 3 ARM GCC 3.4.3
>
>-- Fedora Core 2 또는 Fedora Core 3
>-- linux-2.6.8-rc2
>-- GLIBC-2.3.3
>-- BINUTILS-2.15.91.0.1
>-- GCC-3.4.3
>
>입니다.
>
>그리고 커널 버전은 PI용 커널 linux-2.4.9-x5-v07 입니다.
>
>쓰는 리눅스는 페도라 4입니다.
>
>아시는분 답변 부탁드립니다.
Toolchain에서 커널 컴파일 관련 크로스 컴파일러 선택은 다음과 같이 하라고 명시를 한것 같은데..
혹시 보지 못하신건가요??
커널 2.6은 GCC-3.4.3
커널 2.4는 GCC-3.3.4 또는 GCC-3.2.1
이렇게 되어 있습니다...
이 커널 버젼은 배포판의 커널 버젼이 아닙니다.. 컴파일 할 커널의 버젼입니다..
따라서 2.4.19의 커널이면.. GCC-3.3.4 또는 GCC-3.2.1를 이용하셔야 합니다..
저희도 GCC-3.4.3대로 해보았지만 실패 했습니다. 만약 성공한다고 해도 ramdisk에서 발생하는 문제도
전부 처리 해 주셔야 합니다...
굳이 2.4.19 커널을 3.4.3 대로 하셔야 한다면 말리지는 않겠지만...별로 추천은 하고 싶지 않습니다...
차라리 커널 2.6으로 다시 포팅하는것이 좋을 듯 싶합니다..
그럼 수고하세요..
>make zImage를 하면 아래와 같은 오류를 발생합니다.
>
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -msoft-float -Uarm -nostdinc -I /usr/lib/gcc/arm-linux/3.4.3/include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB -c ksyms.c
>arm-linux-gcc -D__KERNEL__ -I/kernel/linux-2.4.19-x5-v07-128M/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -msoft-float -Uarm -nostdinc -I /usr/lib/gcc/arm-linux/3.4.3/include -DKBUILD_BASENAME=cpufreq -DEXPORT_SYMTAB -c cpufreq.c
>cpufreq.c: In function `cpufreq_setup':
>cpufreq.c:97: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:98: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c: In function `cpufreq_set':
>cpufreq.c:284: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c: At top level:
>cpufreq.c:413: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:413: error: initializer element is not constant
>cpufreq.c:413: error: (near initialization for `ctl_cpu_vars[0].data')
>cpufreq.c:417: error: initializer element is not constant
>cpufreq.c:417: error: (near initialization for `ctl_cpu_vars[0]')
>cpufreq.c:421: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:421: error: initializer element is not constant
>cpufreq.c:421: error: (near initialization for `ctl_cpu_vars[1].data')
>cpufreq.c:425: error: initializer element is not constant
>cpufreq.c:425: error: (near initialization for `ctl_cpu_vars[1]')
>cpufreq.c:432: error: initializer element is not constant
>cpufreq.c:432: error: (near initialization for `ctl_cpu_vars[2]')
>cpufreq.c:435: error: initializer element is not constant
>cpufreq.c:435: error: (near initialization for `ctl_cpu_vars[3]')
>cpufreq.c: In function `cpufreq_init':
>cpufreq.c:514: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:516: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:519: warning: use of compound expressions as lvalues is deprecated
>cpufreq.c:528: warning: use of compound expressions as lvalues is deprecated
>make[2]: *** [cpufreq.o] 오류 1
>make[2]: Leaving directory `/kernel/linux-2.4.19-x5-v07-128M/kernel'
>make[1]: *** [first_rule] 오류 2
>make[1]: Leaving directory `/kernel/linux-2.4.19-x5-v07-128M/kernel'
>make: *** [_dir_kernel] 오류 2
>
>
>크로스 컴파일은 falinux에서 제공하는
>
>페도라 코어 2, 코어 3 ARM GCC 3.4.3
>
>-- Fedora Core 2 또는 Fedora Core 3
>-- linux-2.6.8-rc2
>-- GLIBC-2.3.3
>-- BINUTILS-2.15.91.0.1
>-- GCC-3.4.3
>
>입니다.
>
>그리고 커널 버전은 PI용 커널 linux-2.4.9-x5-v07 입니다.
>
>쓰는 리눅스는 페도라 4입니다.
>
>아시는분 답변 부탁드립니다.