1 (27.11.2012 01:33:30 отредактировано Nikel2007)

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

Есть телевизор: 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:

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:

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:

+ открыть спойлер
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:

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/dow … loads=true;

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

make:

+ открыть спойлер
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;

2

Nikel2007 пишет:

выкидывает с ошибкой при вызове make.

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

Да хранит вас Ctrl+S!

3

redgy92 пишет:

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

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

4

Nikel2007 пишет:

error: linux/bounds.h: No such file or directory

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

5

pitdron пишет:

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

sudo apt-get install linux-kernel-headers:

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. 

6 (26.11.2012 15:34:09 отредактировано Nikel2007)

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

make prepare
make modules_prepare

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

+ открыть спойлер
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

7

Nikel2007 пишет:

make[2]: *** [/home/nikel/tv/drv/cmd/rtl871x_cmd.o] Error 1 make[1]: *** [_module_/home/nikel/tv/drv] Error 2

http://ubuntuforums.org/showthread.php?t=1466185

История показывает, что во всем новом обычно кроется какой-то подвох.
Классическая ошибка, которую совершают проектировщики
абсолютно надежных систем, - недооценка изобретательности клинических идиотов.

8 (26.11.2012 16:36:05 отредактировано pitdron)

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

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 выполнены?

9 (26.11.2012 17:25:08 отредактировано Nikel2007)

pitdron пишет:

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

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

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 архитектуры.

10

Я здесь не нашел ответа на мой вопрос. Может я плохо искал.

11

Nikel2007 пишет:

Исходники ядра телека - http://www.ex.ua/view/18403133, а также http://opensource.samsung.com/ (если я ошибся);

Где исходники ядра?

12

aliaksei1818 пишет:

Где исходники ядра?

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

13

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

95% процентов проблем находятся между клавиатурой и стулом.

14

А это решение не пробовали?
http://www.raspberrypi.org/phpBB3/viewt … amp;t=8576
В файлы где возникает ошибка добавить

#include <linux/interrupt.h>
На мясокомбинате я работаю свиньёй.

15

Fat-Zer пишет:

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

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

Fat-Zer пишет:

linux/bounds.h присутствует в дереве ядра

после выполнения make prepare modules_prepare - есть.

16

Sonic пишет:

В файлы где возникает ошибка добавить

пробовал - не решает проблему, те же ошибки, в том же количестве.

17

Nikel2007 пишет:

после выполнения make prepare modules_prepare - есть.

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

Nikel2007 пишет:

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

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

Nikel2007 пишет:

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

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

95% процентов проблем находятся между клавиатурой и стулом.

18

Fat-Zer пишет:

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

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

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

19

Nikel2007 пишет:

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

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

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

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

Nikel2007 пишет:

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

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

95% процентов проблем находятся между клавиатурой и стулом.

20 (27.11.2012 21:34:40 отредактировано Nikel2007)

Fat-Zer пишет:

вот что получилось: http://ompldr.org/vZ2gwcQ/8712u.ko.xz

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

insmod /dtv/usb/sda1/8712u.ko
insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error

21 (27.11.2012 22:05:52 отредактировано Nikel2007)

Fat-Zer пишет:

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

Makefile:

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]

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]

-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]

-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]

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

22 (27.11.2012 23:07:09 отредактировано aliaksei1818)

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

+ открыть спойлер
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

23

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 отредактировал:

$ 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)
95% процентов проблем находятся между клавиатурой и стулом.

24

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

25

Fat-Zer пишет:

наверняка где-то ошибся...

Попробовал скомпилить драйвер для платформы CONFIG_PLATFORM_MSTAR389, и таки да, он скомпилился без ошибок, правда установиться в телевизор так и не захотел. Та же ошибка что и свашим вариантом.

insmod /dtv/usb/sda1/8712u.ko
insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error

Замечу также, что собрать драйвер удалось на CentOS 5.0

26

Nikel2007 пишет:

insmod: cannot insert '/dtv/usb/sda1/8712u.ko': Invalid module format (-1): Exec format error

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

95% процентов проблем находятся между клавиатурой и стулом.

27

Fat-Zer пишет:

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

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

8712u: no symbol version for struct_module

28 (28.11.2012 03:04:58 отредактировано Nikel2007)

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

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

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

29

Nikel2007 пишет:

Ура, ура, ура.... товарищи!!!

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

95% процентов проблем находятся между клавиатурой и стулом.

30

Fat-Zer пишет:

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

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

mips-linux-gnu-strip --strip-unneeded 8712u.ko