CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ARM_S3C = n
CONFIG_PLATFORM_ARM_PXA = n
CONFIG_PLATFORM_MIPS_RMI = y
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_RTD2880B = n
CONFIG_PLATFORM_MSTAR389 = n
CONFIG_PLATFORM_ARM_TCC8900 = n
Итак все по порядку:
в home директории текущего пользователя (nikel) создаю директорию tv, в ней еще 2 субдиректории: drv, kernel.
Захожу в /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9, выполняю: make prepare; make modules_prepare (выполняется без ошибок, все ок).
Захожу в /home/nikel/tv/drv - редактирую Makefile (можно посмотреть выше), выполняю: make clean; make - заканчивается все ошибкой, приведенной в шапке.
Я не знаю как собрал уважаемый Fat-Zer, но у меня c параметром V=1 не проходит тест, хотя файлы явно существуют:
Показать
text
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- -C /home/aliaksei/tv/kernel/2.6.28.9 M=/home/aliaksei/tv/drv modules
make[1]: Вход в каталог `/home/aliaksei/tv/kernel/2.6.28.9'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/aliaksei/tv/drv/.tmp_versions ; rm -f /home/aliaksei/tv/drv/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/aliaksei/tv/drv
~/tv/build/toolchain/bin/mips-linux-gnu-gcc -mel -mglibc -Wp,-MD,/home/aliaksei/tv/drv/cmd/.rtl871x_cmd.o.d -nostdinc -isystem /home/aliaksei/tv/build/toolchain/bin/../lib/gcc/mips-linux-gnu/4.3.3/include -D__KERNEL__ -Iinclude -I/home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -ffunction-sections -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding -EL -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ -march=mips32r2 -Wa,-mips32r2 -Wa,--trap -I/home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/mach-malta -I/home/aliaksei/tv/kernel/2.6.28.9/arch/mips/mips-boards/titania3 -I/home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/mach-generic -D"VMLINUX_LOAD_ADDRESS=0xffffffff80400000" -fno-stack-protector -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-uninitialized -I/home/aliaksei/tv/drv/include -Wno-unused -Wno-unused-function -DCONFIG_LITTLE_ENDIAN -DMODULE -mlong-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rtl871x_cmd)" -D"KBUILD_MODNAME=KBUILD_STR(8712u)" -c -o /home/aliaksei/tv/drv/cmd/.tmp_rtl871x_cmd.o /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/sem.h:81,
from /home/aliaksei/tv/drv/include/osdep_service.h:49,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from include/linux/percpu.h:5,
from include/linux/rcupdate.h:39,
from include/linux/sem.h:81,
from /home/aliaksei/tv/drv/include/osdep_service.h:49,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/mmzone.h:277: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from /home/aliaksei/tv/drv/include/byteorder/little_endian.h:30,
from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/swab.h:24: error: redefinition of typedef '__u16'
include/asm-generic/int-ll64.h:21: error: previous declaration of '__u16' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:28: error: redefinition of typedef '__u32'
include/asm-generic/int-ll64.h:24: error: previous declaration of '__u32' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:32: error: redefinition of typedef '__u8'
include/asm-generic/int-ll64.h:18: error: previous declaration of '__u8' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:36: error: redefinition of typedef '__u64'
include/asm-generic/int-ll64.h:28: error: previous declaration of '__u64' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:40: error: redefinition of '___swab16'
include/linux/swab.h:47: error: previous definition of '___swab16' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:50: error: redefinition of '___swab32'
include/linux/swab.h:56: error: previous definition of '___swab32' was here
/home/aliaksei/tv/drv/include/byteorder/swab.h:60: error: redefinition of '___swab64'
include/linux/swab.h:65: error: previous definition of '___swab64' was here
In file included from /home/aliaksei/tv/drv/include/byteorder/little_endian.h:30,
from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/swab.h:103:1: warning: "__swab16" redefined
In file included from include/linux/byteorder.h:5,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/swab.h:99:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/byteorder/little_endian.h:30,
from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/swab.h:104:1: warning: "__swab32" redefined
In file included from include/linux/byteorder.h:5,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/swab.h:108:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/byteorder/little_endian.h:30,
from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/swab.h:105:1: warning: "__swab64" redefined
In file included from include/linux/byteorder.h:5,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/swab.h:117:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:32:1: warning: "__constant_htonl" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:69:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:33:1: warning: "__constant_ntohl" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:70:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:34:1: warning: "__constant_htons" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:71:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:35:1: warning: "__constant_ntohs" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:72:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:36:1: warning: "__constant_cpu_to_le64" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:83:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:37:1: warning: "__constant_le64_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:76:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:38:1: warning: "__constant_cpu_to_le32" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:82:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:39:1: warning: "__constant_le32_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:75:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:40:1: warning: "__constant_cpu_to_le16" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:81:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:41:1: warning: "__constant_le16_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:74:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:42:1: warning: "__constant_cpu_to_be64" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:86:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:43:1: warning: "__constant_be64_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:79:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:44:1: warning: "__constant_cpu_to_be32" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:85:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:45:1: warning: "__constant_be32_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:78:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:46:1: warning: "__constant_cpu_to_be16" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:84:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:47:1: warning: "__constant_be16_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:77:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:48:1: warning: "__cpu_to_le64" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:39:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:49:1: warning: "__le64_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:36:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:50:1: warning: "__cpu_to_le32" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:38:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:51:1: warning: "__le32_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:35:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:52:1: warning: "__cpu_to_le16" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:37:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:53:1: warning: "__le16_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:34:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:54:1: warning: "__cpu_to_be64" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:46:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:55:1: warning: "__be64_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:43:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:56:1: warning: "__cpu_to_be32" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:45:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:57:1: warning: "__be32_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:42:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:58:1: warning: "__cpu_to_be16" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:44:1: warning: this is the location of the previous definition
In file included from /home/aliaksei/tv/drv/include/rtl871x_byteorder.h:31,
from /home/aliaksei/tv/drv/include/osdep_service.h:316,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
/home/aliaksei/tv/drv/include/byteorder/little_endian.h:59:1: warning: "__be16_to_cpu" redefined
In file included from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
from /home/aliaksei/tv/kernel/2.6.28.9/arch/mips/include/asm/bitops.h:21,
from include/linux/bitops.h:17,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from /home/aliaksei/tv/drv/include/osdep_service.h:39,
from /home/aliaksei/tv/drv/cmd/rtl871x_cmd.c:23:
include/linux/byteorder.h:41:1: warning: this is the location of the previous definition
make[2]: *** [/home/aliaksei/tv/drv/cmd/rtl871x_cmd.o] Ошибка 1
make[1]: *** [_module_/home/aliaksei/tv/drv] Ошибка 2
make[1]: Выход из каталога `/home/aliaksei/tv/kernel/2.6.28.9'
make: *** [modules] Ошибка 2
уверен, что архитектура та? я собирал с CONFIG_PLATFORM_MSTAR389 = y т.к. там по дефолту префикс был задан нужный и конфиг ядра под неё.
если уверен, то по идее ядро нужно переконфигурировать... ну и конфиг ядра в студию...
тулчейн скорей всего тоже другой нужен [в этом не уверен]...
"aliaksei1818" написал:
Я не знаю как собрал уважаемый Fat-Zer, но у меня c параметром V=1 не проходит тест, хотя файлы явно существуют:
это не ошибка... он только саму команду вывел...
"Nikel2007" написал:
Захожу в /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ARM_S3C = n
CONFIG_PLATFORM_ARM_PXA = n
@@ -19,7 +19,7 @@
CONFIG_PLATFORM_RTK_DMP = n
CONFIG_PLATFORM_MIPS_PLM = n
CONFIG_PLATFORM_RTD2880B = n
-CONFIG_PLATFORM_MSTAR389 = n
+CONFIG_PLATFORM_MSTAR389 = y
CONFIG_PLATFORM_ARM_TCC8900 = n
Попробовал скомпилить драйвер для платформы CONFIG_PLATFORM_MSTAR389, и таки да, он скомпилился без ошибок, правда установиться в телевизор так и не захотел. Та же ошибка что и свашим вариантом.
text
insmod /dtv/usb/sda1/8712u.ko
insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error
Замечу также, что собрать драйвер удалось на CentOS 5.0
а что не так было, неизвестно? у меня гипотеза была, что надо ядро собрать было....
Как мне кажется, драйвер надо было собирать имеено на CentOS 5/6, а также в конце, когда драйвер уже собрался надо было также выполнить еще одну команду: