LinuxForum.Fans
Тема

Помогите собрать драйвер под MIPS

Автор: Nikel2007 33 сообщений 19256 просмотров
#287415
"Fat-Zer" написал:
не вывод его, а сам Makefile в студию... и пути по которым разложил всё. и на всякий случай ls -l в них.
наверняка где-то ошибся...

Makefile:

text

EXTRA_CFLAGS += -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-uninitialized
EXTRA_CFLAGS += -I$(src)/include  -Wno-unused -Wno-unused-function

CONFIG_RTL8711 = n CONFIG_RTL8712 = y

CONFIG_USB_HCI = y CONFIG_SDIO_HCI = n

CONFIG_MP_INCLUDED = y

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

CONFIG_MLME_EXT = n CONFIG_DRVEXT_MODULE = n

ifeq ($(CONFIG_RTL8711), y) RTL871X = rtl8711 MODULE_NAME = 8711 endif

ifeq ($(CONFIG_RTL8712), y)

RTL871X = rtl8712

ifeq ($(CONFIG_SDIO_HCI), y) MODULE_NAME = 8712s endif ifeq ($(CONFIG_USB_HCI), y) MODULE_NAME = 8712u endif

endif

ifeq ($(CONFIG_SDIO_HCI), y)

_OS_INTFS_FILES := os_intf/osdep_service.o \ os_intf/linux/os_intfs.o \ os_intf/osdep_sdio_intf.o \ os_intf/linux/sdio_intf.o \

_HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \ hal/$(RTL871X)/sdio_halinit.o \ hal/$(RTL871X)/sdio_ops.o \ hal/$(RTL871X)/sdio_ops_linux.o

endif

ifeq ($(CONFIG_USB_HCI), y)

_OS_INTFS_FILES := os_intf/osdep_service.o \ os_intf/linux/os_intfs.o \ os_intf/linux/usb_intf.o \ os_dep/linux/ioctl_cfg80211.o \ os_dep/linux/rtw_android.o \

_HAL_INTFS_FILES := hal/$(RTL871X)/hal_init.o \ hal/$(RTL871X)/usb_ops.o \ hal/$(RTL871X)/usb_ops_linux.o \ hal/$(RTL871X)/usb_halinit.o \ endif

ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) ARCH ?= $(SUBARCH) CROSS_COMPILE ?= KVER := $(shell uname -r) KSRC := /lib/modules/$(KVER)/build MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif

ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) ARCH := $(SUBARCH) CROSS_COMPILE := i686-unknown-linux-gnu- KSRC := /usr/src/froyo-x86/out/target/product/eeepc/obj/kernel MODULE_NAME = wlan endif

ifeq ($(CONFIG_PLATFORM_ARM_S3C), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN ARCH := arm CROSS_COMPILE := arm-linux- KVER := 2.6.24.7_$(ARCH) KSRC := /usr/src/kernels/linux-$(KVER) endif

ifeq ($(CONFIG_PLATFORM_RTD2880B), y) EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTD2880B ARCH:= CROSS_COMPILE:= KVER:= KSRC:= endif

ifeq ($(CONFIG_PLATFORM_MT53XX), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MT53XX ARCH:= arm CROSS_COMPILE:= arm11_mtk_le- KVER:= 2.6.27 KSRC:= /proj/mtk00802/BD_Compare/BDP/Dev/BDP_V301/BDP_Linux/linux-2.6.27 endif

ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN ARCH:=mips CROSS_COMPILE:=mips-linux-gnu- KVER:= 2.6.28.10 KSRC:= /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9 endif

ifeq ($(CONFIG_PLATFORM_RTK_DMP), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM ARCH:=mips CROSS_COMPILE:=mipsel-linux- KVER:= KSRC ?= /root/Desktop/SVN/linux-2.6.12 endif

ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y) EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN ARCH:=mips CROSS_COMPILE:=mipsisa32r2-uclibc- KVER:= KSRC:= /root/work/kernel_realtek endif

ifeq ($(CONFIG_PLATFORM_MSTAR389), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR389 ARCH:=mips CROSS_COMPILE:= mips-linux-gnu- KVER:= 2.6.28.10 KSRC:= /home/mstar/mstar_linux/2.6.28.9/ endif

ifeq ($(CONFIG_PLATFORM_ARM_TCC8900), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN #-DCONFIG_MINIMAL_MEMORY_USAGE ARCH ?= arm CROSS_COMPILE ?= /media/DATA-1/telechips/SDK_2302_20110425/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- KSRC ?=/media/DATA-1/telechips/SDK_2302_20110425/kernel MODULE_NAME := wlan endif

ifneq ($(KERNELRELEASE),)

$(MODULE_NAME)-y += cmd/rtl871x_cmd.o cmd/$(RTL871X)_cmd.o

$(MODULE_NAME)-y += crypto/rtl871x_security.o $(MODULE_NAME)-y += debug/rtl871x_debug.o

$(MODULE_NAME)-y += eeprom/rtl871x_eeprom.o efuse/rtl8712_efuse.o

$(MODULE_NAME)-y += $(_HAL_INTFS_FILES)

$(MODULE_NAME)-y += io/rtl871x_io.o \ io/$(RTL871X)_io.o

$(MODULE_NAME)-y += ioctl/rtl871x_ioctl_query.o \ ioctl/rtl871x_ioctl_set.o \ ioctl/rtl871x_ioctl_linux.o \ ioctl/rtl871x_ioctl_rtl.o

$(MODULE_NAME)-y += led/rtl8712_led.o

$(MODULE_NAME)-y += mlme/ieee80211.o mlme/rtl871x_mlme.o $(MODULE_NAME)-$(CONFIG_MLME_EXT) += mlme/rtl871x_mlme_ext.o mlme/rtl871x_wlan_mlme.o mlme/rtl871x_wlan_sme.o

$(MODULE_NAME)-$(CONFIG_MP_INCLUDED) += mp/rtl871x_mp.o \ mp/rtl871x_mp_ioctl.o

$(MODULE_NAME)-y += os_dep/linux/io_linux.o \ os_dep/linux/xmit_linux.o \ os_dep/linux/cmd_linux.o \ os_dep/linux/mlme_linux.o \ os_dep/linux/recv_linux.o

$(MODULE_NAME)-y += $(_OS_INTFS_FILES)

$(MODULE_NAME)-y += pwrctrl/rtl871x_pwrctrl.o

$(MODULE_NAME)-y += recv/rtl871x_recv.o recv/$(RTL871X)_recv.o

$(MODULE_NAME)-y += rf/rtl871x_rf.o rf/$(RTL871X)_rf.o $(MODULE_NAME)-y += sta_mgt/rtl871x_sta_mgt.o

$(MODULE_NAME)-y += xmit/rtl871x_xmit.o xmit/$(RTL871X)_xmit.o

obj-$(CONFIG_RTL8712U) := $(MODULE_NAME).o

else

export CONFIG_RTL8712U = m

all: modules

modules: $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules

install: install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR) /sbin/depmod -a ${KVER}

uninstall: rm -f $(MODDESTDIR)/$(MODULE_NAME).ko /sbin/depmod -a ${KVER} config_r: @echo "make config" /bin/bash script/Configure script/config.in .PHONY: modules clean

clean: rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~ rm .tmp_versions -fr ; rm Module.symvers -fr cd cmd ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd crypto ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd debug ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd eeprom ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd hal/$(RTL871X) ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd io ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd ioctl ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd mlme ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd mp ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_intf ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_intf/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd pwrctrl ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd recv ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd rf ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd sta_mgt ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd xmit; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd efuse; rm -fr *.mod.c *.mod *.o .*.cmd *.ko

endif

ls -l [/home/nikel/tv]

text
drwxr-xr-x 21 nikel nikel 4096 2012-11-27 19:42 drv
drwxr-xr-x 16 nikel nikel 4096 2012-11-26 16:00 kernel

ls -l [/home/nikel/tv/drv]

text
-rwx------ 1 nikel nikel 3715 2012-04-05 05:42 autoconf_rtl8712_usb_linux.h
-rwx------ 1 nikel nikel  151 2012-04-05 05:42 clean
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:39 cmd
-rwx------ 1 nikel nikel  516 2012-04-05 05:42 config
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 crypto
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 debug
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 eeprom
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 efuse
drwxrwxrwx 3 nikel nikel 4096 2012-04-05 05:42 hal
-rwx------ 1 nikel nikel   54 2012-04-05 05:42 ifcfg-wlan0
drwxrwxrwx 4 nikel nikel 4096 2012-04-05 05:42 include
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 io
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 ioctl
-rwx------ 1 nikel nikel  107 2012-04-05 05:42 Kconfig
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 led
-rwx------ 1 nikel nikel 7256 2012-11-27 19:38 Makefile
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 mlme
drwxrwxrwx 2 nikel nikel 4096 2012-11-27 19:38 mp
drwxrwxrwx 3 nikel nikel 4096 2012-04-05 05:42 os_dep
drwxrwxrwx 3 nikel nikel 4096 2012-11-27 19:38 os_intf
drwxrwxrwx 2 nikel nikel 4096 2012-04-05 05:42 pwrctrl
drwxrwxrwx 2 nikel nikel 4096 2012-04-05 05:42 recv
drwxrwxrwx 2 nikel nikel 4096 2012-04-05 05:42 rf
-rwx------ 1 nikel nikel  423 2012-04-05 05:42 runwpa
drwxrwxrwx 2 nikel nikel 4096 2012-04-05 05:42 sta_mgt
-rwx------ 1 nikel nikel  294 2012-04-05 05:42 wlan0dhcp
-rwx------ 1 nikel nikel  338 2012-04-05 05:42 wpa1.conf
drwxrwxrwx 2 nikel nikel 4096 2012-04-05 05:42 xmit 

ls -l [/home/nikel/tv/kernel]

text
-rw-r--r--  1 nikel nikel 5389 2011-01-04 11:56 HOW_TO_BUILD.txt
-rw-r--r--  1 nikel nikel 7425 2011-01-04 11:57 HOW_TO_INSTALL.txt
drwxr-xr-x  7 nikel nikel 4096 2009-04-06 14:11 iptables-1.4.3.2
drwxr-xr-x  4 nikel nikel 4096 2011-09-29 10:32 LGPL_LIBGPHOTO2
drwxr-xr-x  4 nikel nikel 4096 2011-09-29 10:28 LGPL_LIBUSB
drwxr-xr-x 17 nikel nikel 4096 2003-05-22 23:20 libiconv-1.9.1
drwxr-xr-x  6 nikel nikel 4096 2010-05-27 03:21 libthai-0.1.6
drwxr-xr-x  9 nikel nikel 4096 2010-08-30 17:10 MBoot_SEC_AA
drwxr-xr-x  5 nikel nikel 4096 2010-06-10 05:28 NETIF
drwxr-xr-x 31 nikel nikel 4096 2010-03-25 03:12 selp_busybox-1.6.0-7.0.10-mstar-20100215
drwxr-xr-x  4 nikel nikel 4096 2010-06-10 05:28 UTIL
drwxr-xr-x  8 nikel nikel 4096 2010-02-13 09:32 VDLinux-mips34kc-toolchain-lite-20100223
drwxr-xr-x  4 nikel nikel 4096 2010-06-08 15:42 vdlinux-mstar-kernel
drwxr-xr-x 20 nikel nikel 4096 2011-09-29 10:49 VDLinux-mstar-src-mips-4.3-154-mips-linux-gnu
drwxr-xr-x  4 nikel nikel 4096 2010-06-10 07:13 wireless_tools.29
drwxr-xr-x 27 nikel nikel 4096 2010-02-19 13:35 xfsprogs-3.0.5 

ls -l [/home/nikel/tv/kernel/vdlinx-mstar-kernel/2.6.28.9]

text
drwxr-xr-x  4 nikel nikel   4096 2010-02-18 10:35 arch
drwxr-xr-x  2 nikel nikel   4096 2010-08-30 16:18 block
-rwxr-xr-x  1 nikel nikel   3362 2010-02-13 10:30 boot.sh
drwxr-xr-x  2 nikel nikel   4096 2010-06-08 15:27 configs
-rwxr-xr-x  1 nikel nikel  18693 2010-02-13 10:30 COPYING
-rwxr-xr-x  1 nikel nikel  93212 2010-02-13 10:30 CREDITS
drwxr-xr-x  3 nikel nikel   4096 2010-08-30 16:18 crypto
drwxr-xr-x 82 nikel nikel   4096 2010-02-13 10:31 Documentation
drwxr-xr-x 84 nikel nikel   4096 2010-08-30 16:18 drivers
drwxr-xr-x 18 nikel nikel   4096 2010-08-30 16:18 firmware
drwxr-xr-x 66 nikel nikel   4096 2010-08-30 16:18 fs
drwxr-xr-x 23 nikel nikel   4096 2012-11-26 16:42 include
drwxr-xr-x  2 nikel nikel   4096 2010-08-30 16:18 init
drwxr-xr-x  2 nikel nikel   4096 2010-08-30 16:18 ipc
-rwxr-xr-x  1 nikel nikel   2430 2010-02-13 10:30 Kbuild
drwxr-xr-x  7 nikel nikel   4096 2012-11-26 16:42 kernel
drwxr-xr-x  6 nikel nikel   4096 2010-08-30 16:18 lib
-rwxr-xr-x  1 nikel nikel 106036 2010-02-13 10:30 MAINTAINERS
-rwxr-xr-x  1 nikel nikel  57989 2010-03-11 07:09 Makefile
-rwxr-xr-x  1 nikel nikel    505 2010-02-13 10:30 make.sh
drwxr-xr-x  2 nikel nikel   4096 2010-08-30 16:18 mm
-rw-r--r--  1 nikel nikel   9843 2010-08-30 16:18 Module.symvers
drwxr-xr-x 45 nikel nikel   4096 2010-08-30 16:18 net
-rwxr-xr-x  1 nikel nikel  16930 2010-02-13 10:30 README
-rwxr-xr-x  1 nikel nikel   3172 2010-02-13 10:30 REPORTING-BUGS
drwxr-xr-x  7 nikel nikel   4096 2010-02-13 10:31 samples
drwxr-xr-x 10 nikel nikel   4096 2012-11-26 16:42 scripts
drwxr-xr-x  5 nikel nikel   4096 2010-08-30 16:18 security
drwxr-xr-x 20 nikel nikel   4096 2010-08-30 16:18 sound
drwxr-xr-x  3 nikel nikel   4096 2010-08-30 16:18 usr
-rwxr-xr-x  1 nikel nikel    310 2010-03-10 05:53 version_mk.sh
drwxr-xr-x  3 nikel nikel   4096 2010-02-13 10:31 virt 

Итак все по порядку:
в 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 - заканчивается все ошибкой, приведенной в шапке.

#287428

Я не знаю как собрал уважаемый 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

#287431
"Nikel2007" написал:
CONFIG_PLATFORM_MIPS_RMI = y

уверен, что архитектура та? я собирал с CONFIG_PLATFORM_MSTAR389 = y т.к. там по дефолту префикс был задан нужный и конфиг ядра под неё.
если уверен, то по идее ядро нужно переконфигурировать... ну и конфиг ядра в студию...
тулчейн скорей всего тоже другой нужен [в этом не уверен]...

"aliaksei1818" написал:
Я не знаю как собрал уважаемый Fat-Zer, но у меня c параметром V=1 не проходит тест, хотя файлы явно существуют:

это не ошибка... он только саму команду вывел...

"Nikel2007" написал:
Захожу в /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9

а тут инклюду у какого-то алексея ищет:

"aliaksei1818" написал:
-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

лучше удали всё и распакуй из архивов заново....

"Nikel2007" написал:
KVER:= 2.6.28.10

я KVER сменил на 2.6.28.9, но думаю. что это не существенно.

я так Makefile отредактировал:

text
$ diff -u {rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/,rtl871-driver/}Makefile
--- rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405/Makefile       2012-04-05 06:42:09.000000000 +0400
+++ rtl871-driver/Makefile      2012-11-27 23:32:51.182403639 +0400
@@ -11,7 +11,7 @@

CONFIG_MP_INCLUDED = y

-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_MLME_EXT = n @@ -149,9 +149,9 @@ ifeq ($(CONFIG_PLATFORM_MSTAR389), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_MSTAR389 ARCH:=mips -CROSS_COMPILE:= mips-linux-gnu- -KVER:= 2.6.28.10 -KSRC:= /home/mstar/mstar_linux/2.6.28.9/ +CROSS_COMPILE:= /tmp/VDLinux-mips34kc-toolchain-lite-20100223/bin/mips-linux-gnu- +KVER:= 2.6.28.9 +KSRC:= /tmp/vdlinux-mstar-kernel/$(KVER)/ endif

ifeq ($(CONFIG_PLATFORM_ARM_TCC8900), y)

#287439

Спасибо Fat-Zer, буду пробовать по вашей инструкции.

#287443
"Fat-Zer" написал:
наверняка где-то ошибся...

Попробовал скомпилить драйвер для платформы 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

#287449
"Nikel2007" написал:
insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error

в dmesg подробностей не насыпало?

#287450
Fat-Zer написал:
в dmesg подробностей не насыпало?

Да есть немного (гуглю как раз):

text
8712u: no symbol version for struct_module
#287457

Finita la komedia!!! Ура, ура, ура.... товарищи!!! Дррайвер скомпилен и установлен в телек успешно!!! СПАСИБО Fat-Zer.

И да, хост система - CentOS 5.0 (только в ней получилось скомпилить драйвер без проблем).

Если вдруг кому понадобится - http://rghost.ru/41857889, телек Samsung LE32C530 (модель меняем на C550).

#287523
"Nikel2007" написал:
Ура, ура, ура.... товарищи!!!

а что не так было, неизвестно? у меня гипотеза была, что надо ядро собрать было....

#287595
"Fat-Zer" написал:
а что не так было, неизвестно? у меня гипотеза была, что надо ядро собрать было....

Как мне кажется, драйвер надо было собирать имеено на CentOS 5/6, а также в конце, когда драйвер уже собрался надо было также выполнить еще одну команду:

text
mips-linux-gnu-strip --strip-unneeded 8712u.ko
#288068

Кстати, да, если у Вас не получится с текущей версией драйвера от Realtek - попробуйте вот эти: http://rghost.ru/41929437

#288106

не могу собрать wpa_supplicant, не могли бы вы мне помочь :)?
Собрать пытаюсь тот wpa_supplicant, который идет вместе с драйверами для rtl8191SU.

#288309
"Nikel2007" написал:
не могу собрать wpa_supplicant, не могли бы вы мне помочь ?
Собрать пытаюсь тот wpa_supplicant, который идет вместе с драйверами для rtl8191SU.

забыл ответить сразу...
a) Don't ask to ask
b) в отдельный тред...

Войдите или зарегистрируйтесь, чтобы ответить.