LinuxForum.Fans
Тема

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

Автор: Nikel2007 33 сообщений 19257 просмотров
#287046

Здравствуйте.

Есть телевизор: Samsung LE32C530F1W(XXH)
Версия прошивки - T-MSX5DEUC-2011.0;
Исходники ядра телека - http://www.ex.ua/view_storage/876808657120, а также http://opensource.samsung.com/ (если я ошибся);
Toolchain (хотя он есть и в исходниках ядра к телеку) - http://www.ex.ua/view_storage/537800365036, а также - http://opensource.samsung.com/;

Изначально в этот телек нельзя пихать WIFI свистки, но если поменять модель телека на C550 - то при следующем включении телека автоматически подгружаются модули для работы с WIFI картами. Что собственно я и сделал - поменял в сервисном меню телека модель c C530 на C550. После этого....

Команды выполненые на телеке:
cat /proc/cpuinfo:

text
system type        : MStar Titania3
processor        : 0
cpu model        : MIPS 34Kc V5.4
BogoMIPS        : 351.23
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 16
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0000, 0x06f8, 0x0240, 0x08f8]
ASEs implemented    : mips16 dsp mt
shadow register sets    : 1
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available 

df -h:

text
Filesystem                Size      Used Available Use% Mounted on
/dev/tbml0/4              3.2M      3.2M         0 100% /
tmpfs                    30.0M      3.2M     26.8M  11% /dtv
tmpfs                    10.0M         0     10.0M   0% /tmp
tmpfs                    12.0M         0     12.0M   0% /dsm
tmpfs                    20.0M         0     20.0M   0% /core
/dev/stl0/9               4.2M      1.6M      2.6M  39% /mtd_contents
/dev/stl0/10              9.2M      4.4M      4.8M  48% /mtd_rwarea
/dev/stl0/16              8.9M      7.4M      1.5M  84% /mtd_rwcommon
/dev/stl0/13             21.4M     21.4M         0 100% /mtd_exe
/dev/stl0/14              2.4M      2.4M         0 100% /mtd_appdata
/dev/stl0/15             17.5M     17.5M         0 100% /mtd_rocommon
/dev/sda1                 1.9G    616.2M      1.3G  32% /dtv/usb/sda1

dmesg:

Показать
text
Linux version 2.6.28.10 (jplee@localhost.localdomain) (gcc version 4.3.3 (VDLinux 1.1.x MIPS 2010-02-13) ) #82 PREEMPT Fri Apr 30 12:40:25 KST 2010

LINUX started... boot_command_line: console=ttyS2,115200 root=/dev/tfsr4 rootfstype=squashfs MS_MEM LX_MEM=0x2B00000 EMAC_MEM=0x100000 DRAM_LEN=0x10000000 BB_ADDR=0x27FFC00 LX_MEM2=0x4A800000,0x5800000 quiet

LX_MEM = 0x400000, 0x2B00000 LX_MEM2 = 0x4A800000, 0x5800000 CPHYSADDR(PFN_ALIGN(&_end))= 0x748000 EMAC_LEN= 0x100000 DRAM_LEN= 0x10000000 console [early0] enabled CPU revision is: 00019554 (MIPS 34Kc) Begin Titania3_setup Determined physical RAM map: memory: 02b00000 @ 00400000 (usable) memory: 05800000 @ 4a800000 (usable) Wasting 32768 bytes for tracking 1024 unused pages Zone PFN ranges: DMA 0x00000400 -> 0x00001000 Normal 0x00001000 -> 0x00020000 HighMem 0x00020000 -> 0x00050000 Movable zone start PFN for each node early_node_map[2] active PFN ranges 0: 0x00000400 -> 0x00002f00 0: 0x0004a800 -> 0x00050000 On node 0 totalpages: 33536 free_area_init_node: node 0, pgdat 806bb3e0, node_mem_map 81000000 DMA zone: 24 pages used for memmap DMA zone: 0 pages reserved DMA zone: 3048 pages, LIFO batch:0 Normal zone: 992 pages used for memmap Normal zone: 6944 pages, LIFO batch:0 HighMem zone: 1536 pages used for memmap HighMem zone: 20992 pages, LIFO batch:3 Movable zone: 0 pages used for memmap Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30984 Kernel command line: console=ttyS2,115200 root=/dev/tfsr4 rootfstype=squashfs MS_MEM LX_MEM=0x2B00000 EMAC_MEM=0x100000 DRAM_LEN=0x10000000 BB_ADDR=0x27FFC00 LX_MEM2=0x4A800000,0x5800000 quiet alloc ebase: 819fc000 Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes Writing ErrCtl register=00077a6d Readback ErrCtl register=00077a6d PID hash table entries: 256 (order: 8, 1024 bytes) CPU freq count = 264000000 CPU frequency 528.00 MHz Console: colour dummy device 80x25 =================================== FCR 0 =================================== console handover: boot [early0] -> real [ttyS2] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 120412k/44032k available (2148k kernel code, 13668k reserved, 655k data, 124k init, 90112k highmem) SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [SELP] preset_lpj manual setting 175616 Calibrating delay loop (skipped) preset value.. 351.23 BogoMIPS (lpj=175616) Mount-cache hash table entries: 512 net_namespace: 288 bytes NET: Registered protocol family 16 SCSI subsystem initialized NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 highmem bounce pool size: 64 pages squashfs: version 4.0 (2009/01/31) Phillip Lougher NTFS driver 2.1.29 [Flags: R/O]. msgmni has been set to 59 io scheduler noop registered (default) io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered brd: module loaded loop: module loaded [ONENAND] initializing Serial: 8250/16550 driver4 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0xbf201300 (irq = 8) is a 16550 serial8250: ttyS1 at I/O 0xbf220c00 (irq = 79) is a 16550 serial8250: ttyS2 at I/O 0xbf220d00 (irq = 90) is a 16550 Driver 'sd' needs updating - please use bus_type methods [BIF:IN ] ++FSR_BML_Init(nFlag: 0x0) [PAM: ] ++FSR_PAM_Init [PAM: ] OneNAND physical base address : 0x1fc00000 [PAM: ] OneNAND virtual base address : 0xbfc00000 [PAM: ] OneNAND nMID=0xec : nDID=0x35 [PAM: ] --FSR_PAM_Init FSR: Registered TinyFSR Driver. TCP cubic registered NET: Registered protocol family 17 VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 124k freed =================================== FCR 41 =================================== ================================================================================ SAMSUNG Mstar Kernel Version : 1004.84(RELEASE) ================================================================================ fsr: module license 'Samsung Proprietary' taints kernel. [BIF:IN ] ++FSR_BML_Init(nFlag: 0x0) BML: Registered BML Driver. FSR: Registered STL Driver. _mod_sys_init.176 ioctl Algorithmics/MIPS FPU Emulator v1.5 RPC: Registered udp transport module. RPC: Registered tcp transport module. _mod_sys_open.235 ioctl _mod_sys_open.235 ioctl ************* UART1 Request IRQ ************* =================================== FCR 41 =================================== =================================== FCR 41 =================================== _mod_sys_open.235 ioctl [GFLIP] GFLIP DRIVER OPEN [GFLIP] GFLIP DRIVER OPEN [GFLIP] GFLIP DRIVER OPEN [GFLIP] GFLIP DRIVER OPEN Wrong PHY Addr and reset to 0 Init EMAC error! [CIP_KERNEL] /bin/authuld can read (after=0) 1024 bit RSA Sign/Verify Test Success. [CIP_KERNEL] >>> (/bin/authuld) file is successfully authenticated <<< [CIP_KERNEL] (0)th waiting. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96 In ehci_hcd_mstar_drv_probe Mstar-ehci-2 H.W init Titania3_later_start_ehc2 start Mstar-ehci-2 Mstar-ehci-2.1: Mstar EHCI drivers/mstar/usb/core/inode.c: creating file 'devices' drivers/mstar/usb/core/inode.c: creating file '001' Mstar-ehci-2 Mstar-ehci-2.1: new USB bus registered, assigned bus number 1 Mstar-ehci-2 Mstar-ehci-2.1: park 0 Mstar-ehci-2 Mstar-ehci-2.1: irq 74, io mem 0xbf201a00 Mstar-ehci-2 Mstar-ehci-2.1: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT Mstar-ehci-2 Mstar-ehci-2.1: init command 010009 (park)=0 ithresh=1 period=256 RUN usb usb1: default language 0x0409 usb usb1: usb_probe_device usb usb1: configuration #1 chosen from 1 choice usb usb1: adding 1-0:1.0 (config #1, interface 0) usb_probe_interface, 196 hub 1-0:1.0: usb_probe_interface usb_probe_interface, 199 usb_probe_interface, 203 usb_probe_interface, 208 usb_probe_interface, 214 hub 1-0:1.0: usb_probe_interface - got id usb_probe_interface, 221 usb_probe_interface, 226 usb_probe_interface, 234 usb_probe_interface, 240 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: standalone hub hub 1-0:1.0: no power switching (usb 1.0) hub 1-0:1.0: individual port over-current protection hub 1-0:1.0: power on to power good time: 20ms hub 1-0:1.0: local power source is good hub 1-0:1.0: trying to enable port power on non-switchable hub hub 1-0:1.0: trying to enable port power on non-switchable hub usb_probe_interface, 256 usb_probe_interface, 260 drivers/mstar/usb/core/inode.c: creating file '001' usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: Mstar EHCI usb usb1: Manufacturer: Linux 2.6.28.10 ehci_hcd usb usb1: SerialNumber: mstar ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96 In ehci_hcd_mstar_drv_probe Mstar-ehci-1 H.W init Titania3_later_start_ehc1 start Mstar-ehci-1 Mstar-ehci-1.0: Mstar EHCI drivers/mstar/usb/core/inode.c: creating file '002' Mstar-ehci-1 Mstar-ehci-1.0: new USB bus registered, assigned bus number 2 Mstar-ehci-1 Mstar-ehci-1.0: park 0 Mstar-ehci-1 Mstar-ehci-1.0: irq 15, io mem 0xbf204800 Mstar-ehci-1 Mstar-ehci-1.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT Mstar-ehci-1 Mstar-ehci-1.0: init command 010009 (park)=0 ithresh=1 period=256 RUN usb usb2: default language 0x0409 usb usb2: usb_probe_device usb usb2: configuration #1 chosen from 1 choice usb usb2: adding 2-0:1.0 (config #1, interface 0) usb_probe_interface, 196 hub 2-0:1.0: usb_probe_interface usb_probe_interface, 199 usb_probe_interface, 203 usb_probe_interface, 208 usb_probe_interface, 214 hub 2-0:1.0: usb_probe_interface - got id usb_probe_interface, 221 usb_probe_interface, 226 usb_probe_interface, 234 usb_probe_interface, 240 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected hub 2-0:1.0: standalone hub hub 2-0:1.0: no power switching (usb 1.0) hub 2-0:1.0: individual port over-current protection hub 2-0:1.0: power on to power good time: 20ms hub 2-0:1.0: local power source is good hub 2-0:1.0: trying to enable port power on non-switchable hub hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 hub 2-0:1.0: trying to enable port power on non-switchable hub usb_probe_interface, 256 usb_probe_interface, 260 drivers/mstar/usb/core/inode.c: creating file '001' usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: Mstar EHCI usb usb2: Manufacturer: Linux 2.6.28.10 ehci_hcd usb usb2: SerialNumber: mstar Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. Mstar-ehci-1 Mstar-ehci-1.0: GetStatus port 1 status 000803 sig=j CSC CONNECT hub 2-0:1.0: port 1: status 0401 change 0001 hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0000 hub 2-0:1.0: port 1, status 0401, change 0000, 480 Mb/s ====> hub_port_init 1 Plug in USB Port1 Mstar-ehci-1 Mstar-ehci-1.0: GetStatus port 1 status 00000d sig=se0 PEC PE CONNECT udev->speed: 3 usb 2-1: new high speed USB device using Mstar-ehci-1 and address 2 usb 2-1: default language 0x0409 usb 2-1: usb_probe_device usb 2-1: configuration #1 chosen from 1 choice usb 2-1: adding 2-1:1.0 (config #1, interface 0) usb_probe_interface, 196 hub 2-1:1.0: usb_probe_interface usb_probe_interface, 199 usb_probe_interface, 203 usb_probe_interface, 208 usb_probe_interface, 214 hub 2-1:1.0: usb_probe_interface - got id usb_probe_interface, 221 usb_probe_interface, 226 usb_probe_interface, 234 usb_probe_interface, 240 hub 2-1:1.0: USB hub found hub 2-1:1.0: 4 ports detected hub 2-1:1.0: standalone hub hub 2-1:1.0: ganged power switching hub 2-1:1.0: global over-current protection hub 2-1:1.0: Single TT hub 2-1:1.0: TT requires at most 8 FS bit times (666 ns) hub 2-1:1.0: power on to power good time: 100ms hub 2-1:1.0: local power source is good hub 2-1:1.0: no over-current condition exists hub 2-1:1.0: enabling power on all ports hub 2-1:1.0: enabling power on all ports usb_probe_interface, 256 usb_probe_interface, 260 drivers/mstar/usb/core/inode.c: creating file '002' usb 2-1: New USB device found, idVendor=1a40, idProduct=0101 usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 2-1: Product: USB 2.0 Hub hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002 Mstar-ehci-1 Mstar-ehci-1.0: GetStatus port 1 status 00000d sig=se0 PEC PE CONNECT hub 2-0:1.0: port 1 enable change, status 00000403 hub 2-1:1.0: port 1: status 0101 change 0001 usb 2-1: link qh256-0001/a0e8f100 start 255 [1/0 us] hub 2-1:1.0: state 7 ports 4 chg 0002 evt 0000 hub 2-1:1.0: port 1, status 0101, change 0000, 12 Mb/s ====> hub_port_init 1 udev->speed: 3 usb 2-1.1: new high speed USB device using Mstar-ehci-1 and address 3 usb 2-1.1: default language 0x0409 usb 2-1.1: usb_probe_device usb 2-1.1: configuration #1 chosen from 1 choice usb 2-1.1: adding 2-1.1:1.0 (config #1, interface 0) usb_probe_interface, 196 usb-storage 2-1.1:1.0: usb_probe_interface usb_probe_interface, 199 usb_probe_interface, 203 usb_probe_interface, 208 usb_probe_interface, 214 usb-storage 2-1.1:1.0: usb_probe_interface - got id usb_probe_interface, 221 usb_probe_interface, 226 usb_probe_interface, 234 usb_probe_interface, 240 usb-storage: This device (058f,6387,0100 S 06 P 50) has unneeded SubClass and Protocol entries in unusual_devs.h (kernel 2.6.28.10) Please send a copy of this message to <linux-usb@vger.kernel.org> and <usb-storage@lists.one-eyed-alien.net> scsi0 : SCSI emulation for USB Mass Storage devices usb_probe_interface, 256 usb_probe_interface, 260 drivers/mstar/usb/core/inode.c: creating file '003' usb 2-1.1: New USB device found, idVendor=058f, idProduct=6387 usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 2-1.1: Product: Mass Storage Device usb 2-1.1: Manufacturer: JetFlash usb 2-1.1: SerialNumber: VN4RD6FB hub 2-1:1.0: state 7 ports 4 chg 0000 evt 0002 usb-storage: device found at 3 usb-storage: waiting for device to settle before scanning scsi 0:0:0:0: Direct-Access JetFlash Transcend 2GB 8.07 PQ: 0 ANSI: 2 sd 0:0:0:0: [sda] 3944446 512-byte hardware sectors: (2.01 GB/1.87 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] 3944446 512-byte hardware sectors: (2.01 GB/1.87 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1 Poller thread started for sda, PID = 695 sd 0:0:0:0: [sda] Attached SCSI removable disk sdp->removable:1 usb-storage: device scan complete FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

lsmod:

text
Module                  Size  Used by    Tainted: P  
rt3572sta 682816 0 - Live 0xe066b000 (P)
rtutil3572sta 37216 1 rt3572sta, Live 0xe0562000
usb_storage 48352 1 - Live 0xe0540000
ehci_hcd 64144 0 - Live 0xe0513000
usbcore 169280 4 rtutil3572sta,usb_storage,ehci_hcd, Live 0xe04ca000
nfs 171616 0 - Live 0xe043d000
lockd 77616 1 nfs, Live 0xe03dc000
sunrpc 223456 2 nfs,lockd, Live 0xe037c000
cifs 272240 0 - Live 0xe02de000
samsung_mstar 79280 0 - Live 0xe0260000
rfs 90832 3 - Live 0xe0166000 (P)
fsr_stl 257520 6 - Live 0xe00fc000 (P)
fsr 288592 2 fsr_stl, Live 0xe0067000 (P)

Есть USB WIFI: Netsys NET300N на чипе Realtek 8191SU;
Исходники - http://www.ex.ua/view_storage/406168350691, а также - http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true;

В VMWare + Ubuntu 12.04
пробую собрать драйвер к этому свистку по readme - не получается, выкидывает с ошибкой при вызове make.

make:

Показать
text
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- -C /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9 M=/home/nikel/tv/drv  modules
make[1]: Entering directory `/home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9'
  CC [M]  /home/nikel/tv/drv/cmd/rtl871x_cmd.o
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/nikel/tv/drv/include/osdep_service.h:49,
                 from /home/nikel/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/nikel/tv/drv/include/osdep_service.h:49,
                 from /home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/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/nikel/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/nikel/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/nikel/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/nikel/tv/drv/include/byteorder/swab.h:40: error: redefinition of '___swab16'
include/linux/swab.h:47: error: previous definition of '___swab16' was here
/home/nikel/tv/drv/include/byteorder/swab.h:50: error: redefinition of '___swab32'
include/linux/swab.h:56: error: previous definition of '___swab32' was here
/home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:103:1: warning: "__swab16" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:104:1: warning: "__swab32" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:105:1: warning: "__swab64" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:32:1: warning: "__constant_htonl" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:33:1: warning: "__constant_ntohl" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:34:1: warning: "__constant_htons" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:35:1: warning: "__constant_ntohs" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:36:1: warning: "__constant_cpu_to_le64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:37:1: warning: "__constant_le64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:38:1: warning: "__constant_cpu_to_le32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:39:1: warning: "__constant_le32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:40:1: warning: "__constant_cpu_to_le16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:41:1: warning: "__constant_le16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:42:1: warning: "__constant_cpu_to_be64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:43:1: warning: "__constant_be64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:44:1: warning: "__constant_cpu_to_be32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:45:1: warning: "__constant_be32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:46:1: warning: "__constant_cpu_to_be16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:47:1: warning: "__constant_be16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:48:1: warning: "__cpu_to_le64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:49:1: warning: "__le64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:50:1: warning: "__cpu_to_le32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:51:1: warning: "__le32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:52:1: warning: "__cpu_to_le16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:53:1: warning: "__le16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:54:1: warning: "__cpu_to_be64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:55:1: warning: "__be64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:56:1: warning: "__cpu_to_be32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:57:1: warning: "__be32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:58:1: warning: "__cpu_to_be16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:59:1: warning: "__be16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/cmd/rtl871x_cmd.o] Error 1
make[1]: *** [_module_/home/nikel/tv/drv] Error 2
make[1]: Leaving directory `/home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9'
make: *** [modules] Error 2 

Проделал все то же самое и на CentOS 5.0 - результат тот же!

ПОМОГИТЕ СОБРАТЬ ДРАЙВЕР, пожалуйста.

Skype: Nikel2008;

#287047
"Nikel2007" написал:
выкидывает с ошибкой при вызове make.

вывод хоть покажите, на что ругается

#287066
redgy92 написал:
вывод хоть покажите, на что ругается

Обновил описание.

#287110
"Nikel2007" написал:
error: linux/bounds.h: No such file or directory

Похоже в системе не установлен пакет kernel headers.

#287138
pitdron написал:
Похоже в системе не установлен пакет kernel headers.

sudo apt-get install linux-kernel-headers:

text
Reading package lists...
Building dependency tree...
Reading state information...
linux-libc-dev is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
#287144

Немного погуглив, установил build-essential, затем:
Зашел в директорию с исходниками ядра (/home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9), выполнил комманды:

text
make prepare
make modules_prepare

После этого в директории /home/nikel/tv/drv выполнил опять make:

Показать
text
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- -C /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9 M=/home/nikel/tv/drv  modules
make[1]: Entering directory `/home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9'
  CC [M]  /home/nikel/tv/drv/cmd/rtl871x_cmd.o
In file included from /home/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:24: error: redefinition of typedef ‘__u16’
include/asm-generic/int-ll64.h:21: note: previous declaration of ‘__u16’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:28: error: redefinition of typedef ‘__u32’
include/asm-generic/int-ll64.h:24: note: previous declaration of ‘__u32’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:32: error: redefinition of typedef ‘__u8’
include/asm-generic/int-ll64.h:18: note: previous declaration of ‘__u8’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:36: error: redefinition of typedef ‘__u64’
include/asm-generic/int-ll64.h:28: note: previous declaration of ‘__u64’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:40: error: redefinition of ‘___swab16’
include/linux/swab.h:46: note: previous definition of ‘___swab16’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:50: error: redefinition of ‘___swab32’
include/linux/swab.h:55: note: previous definition of ‘___swab32’ was here
/home/nikel/tv/drv/include/byteorder/swab.h:60: error: redefinition of ‘___swab64’
include/linux/swab.h:64: note: previous definition of ‘___swab64’ was here
In file included from /home/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:103:1: warning: "__swab16" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:104:1: warning: "__swab32" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/byteorder/little_endian.h:30,
                 from /home/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/swab.h:105:1: warning: "__swab64" redefined
In file included from include/linux/byteorder.h:5,
                 from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:32:1: warning: "__constant_htonl" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:33:1: warning: "__constant_ntohl" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:34:1: warning: "__constant_htons" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:35:1: warning: "__constant_ntohs" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:36:1: warning: "__constant_cpu_to_le64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:37:1: warning: "__constant_le64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:38:1: warning: "__constant_cpu_to_le32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:39:1: warning: "__constant_le32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:40:1: warning: "__constant_cpu_to_le16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:41:1: warning: "__constant_le16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:42:1: warning: "__constant_cpu_to_be64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:43:1: warning: "__constant_be64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:44:1: warning: "__constant_cpu_to_be32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:45:1: warning: "__constant_be32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:46:1: warning: "__constant_cpu_to_be16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:47:1: warning: "__constant_be16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:48:1: warning: "__cpu_to_le64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:49:1: warning: "__le64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:50:1: warning: "__cpu_to_le32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:51:1: warning: "__le32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:52:1: warning: "__cpu_to_le16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:53:1: warning: "__le16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:54:1: warning: "__cpu_to_be64" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:55:1: warning: "__be64_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:56:1: warning: "__cpu_to_be32" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:57:1: warning: "__be32_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:58:1: warning: "__cpu_to_be16" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/include/rtl871x_byteorder.h:31,
                 from /home/nikel/tv/drv/include/osdep_service.h:316,
                 from /home/nikel/tv/drv/cmd/rtl871x_cmd.c:23:
/home/nikel/tv/drv/include/byteorder/little_endian.h:59:1: warning: "__be16_to_cpu" redefined
In file included from /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9/arch/mips/include/asm/byteorder.h:65,
                 from /home/nikel/tv/kernel/vdlinux-mstar-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/nikel/tv/drv/include/osdep_service.h:39,
                 from /home/nikel/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/nikel/tv/drv/cmd/rtl871x_cmd.o] Error 1
make[1]: *** [_module_/home/nikel/tv/drv] Error 2
make[1]: Leaving directory `/home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9'
make: *** [modules] Error 2

#287167

Похоже что заголовки не от того ядра

"Nikel2007" написал:
Linux version 2.6.28.10 (jplee@localhost.localdomain) (gcc version 4.3.3 (VDLinux 1.1.x MIPS 2010-02-13) ) #82 PREEMPT Fri Apr 30 12:40:25 KST 2010

и

"Nikel2007" написал:
linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic-pae

PS А рекомендации по версии ОС и компилятора из README выполнены?

#287178
"pitdron" написал:
PS А рекомендации по версии ОС и компилятора из README выполнены?

Да, все сделано как описано в README.
Я пытаюсь выполнить кросс-компиляцию.

text
make ARCH=mips CROSS_COMPILE=mips-linux-gnu- -C /home/nikel/tv/kernel/vdlinux-mstar-kernel/2.6.28.9 M=/home/nikel/tv/drv  modules

- здесь видно, что ARCH=mips, то есть для MIPS архитектуры.

#287232
"aliaksei1818" написал:
Где исходники ядра?

Обновил в шапке.

#287244

в порядке гипотезы: а так, как в document/Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf описано, Makefile изменить не пробовал вместо того, чтобы всё в командную строку передавать...
ну и стандартные вопросы:
тулчейн для кросс-компиляции установлен? linux/bounds.h присутствует в дереве ядра?

#287313
"Fat-Zer" написал:
в порядке гипотезы: а так, как в document/Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf описано, Makefile изменить не пробовал вместо того, чтобы всё в командную строку передавать...

Как раз вот по инструкции все и сделано, в командную строку оно само выводитя после вызова make. Но вы бы об этом знали, если бы хоть раз сами попробовали :).

"Fat-Zer" написал:
linux/bounds.h присутствует в дереве ядра
после выполнения make prepare modules_prepare - есть.
#287314

"Sonic" написал:
В файлы где возникает ошибка добавить
пробовал - не решает проблему, те же ошибки, в том же количестве.
#287362
"Nikel2007" написал:
после выполнения make prepare modules_prepare - есть.

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

"Nikel2007" написал:
Как раз вот по инструкции все и сделано, в командную строку оно само выводитя после вызова make.

в студию его, что ли... может, что полезное выплывет...

"Nikel2007" написал:
Но вы бы об этом знали, если бы хоть раз сами попробовали .

знаете, сборка тулчейна это не на 5 минут занятие...

#287365
Fat-Zer написал:
в студию его, что ли... может, что полезное выплывет...
знаете, сборка тулчейна это не на 5 минут занятие...

В шапке как раз есть вывод make

Тулчейн я не собирал, он уже есть готовый, в шапке есть ссылка (скачан с сайта производителя телевизора, по рекомендации с форума http://wiki.samygo.tv/index.php5/Setting_up_a_cross-compilation_toolchain#Samsung_tool_chain).

#287401
"Nikel2007" написал:
Тулчейн я не собирал, он уже есть готовый, в шапке есть ссылка

не заметил его... а ведь сначала удивился ещё, с чего это ядро под 400 метров весит...

ну собрал ... УМВР... правда пришлось ручками отключить CONFIG_IOCTL_CFG80211, как это по-приличному сделать - не знаю..

вот что получилось: http://ompldr.org/vZ2gwcQ/8712u.ko.xz
правда модуль весит 5,5 метров...

"Nikel2007" написал:
В шапке как раз есть вывод make

не вывод его, а сам Makefile в студию... и пути по которым разложил всё. и на всякий случай ls -l в них.
наверняка где-то ошибся...

#287412
"Fat-Zer" написал:
вот что получилось: http://ompldr.org/vZ2gwcQ/8712u.ko.xz

Попытался установить модуль в телевизор, вот что вышло (естественно распакованый):

text
insmod /dtv/usb/sda1/8712u.ko
insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error
Войдите или зарегистрируйтесь, чтобы ответить.