да я пытался его собрать, но встретил кучу трабл
во-первых, он пытается достучаться до какого-то asm-i386/atomic.h у меня такого нет и есть он только в сурсах ядра, но там папка asm-generic
во-вторых, если попробовать сменить папку asm-i386 на asm-generic сыпется куча ошибок
Код: Выделить всё
make -C /lib/modules/2.6.33.1.2/build SUBDIRS=/home/beowulf/source/RT25USB-SRC-V2.0.8.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.33.1.2'
CC [M] /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.o
In file included from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:96,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
include/asm-generic/atomic.h:17:2: error: #error not SMP safe
In file included from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:96,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
include/asm-generic/atomic.h:58: ошибка: переопределение ‘atomic_add_return’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:173: замечание: здесь было предыдущее определение ‘atomic_add_return’
include/asm-generic/atomic.h:80: ошибка: переопределение ‘atomic_sub_return’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:182: замечание: здесь было предыдущее определение ‘atomic_sub_return’
include/asm-generic/atomic.h:94: ошибка: переопределение ‘atomic_add_negative’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:156: замечание: здесь было предыдущее определение ‘atomic_add_negative’
include/asm-generic/atomic.h:99: ошибка: переопределение ‘atomic_add’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:45: замечание: здесь было предыдущее определение ‘atomic_add’
include/asm-generic/atomic.h:104: ошибка: переопределение ‘atomic_sub’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:59: замечание: здесь было предыдущее определение ‘atomic_sub’
include/asm-generic/atomic.h:109: ошибка: переопределение ‘atomic_inc’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:91: замечание: здесь было предыдущее определение ‘atomic_inc’
include/asm-generic/atomic.h:114: ошибка: переопределение ‘atomic_dec’
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:104: замечание: здесь было предыдущее определение ‘atomic_dec’
include/asm-generic/atomic.h:119:1: warning: "atomic_dec_return" redefined
In file included from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic.h:4,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:60,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:188:1: warning: this is the location of the previous definition
In file included from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:96,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
include/asm-generic/atomic.h:120:1: warning: "atomic_inc_return" redefined
In file included from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic.h:4,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/thread_info.h:24,
from include/linux/thread_info.h:56,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:60,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/atomic_64.h:187:1: warning: this is the location of the previous definition
include/asm-generic/atomic.h:137: ошибка: expected identifier or ‘(’ before ‘asm’
In file included from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:96,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
include/asm-generic/atomic.h:150:1: warning: "cmpxchg_local" redefined
In file included from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/cmpxchg.h:4,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/system.h:7,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/processor.h:17,
from include/linux/prefetch.h:14,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:60,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/cmpxchg_64.h:118:1: warning: this is the location of the previous definition
In file included from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:96,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
include/asm-generic/atomic.h:154:1: warning: "cmpxchg64_local" redefined
In file included from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/cmpxchg.h:4,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/system.h:7,
from /usr/src/linux-2.6.33.1.2/arch/x86/include/asm/processor.h:17,
from include/linux/prefetch.h:14,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rt_config.h:60,
from /home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:38:
/usr/src/linux-2.6.33.1.2/arch/x86/include/asm/cmpxchg_64.h:127:1: warning: this is the location of the previous definition
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘rt_getstats’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:162: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘RTUSB_get_wireless_stats’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:196: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘CMDHandler’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1079: предупреждение: неиспользуемая переменная ‘pkey’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1078: предупреждение: неиспользуемая переменная ‘i’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘usb_rtusb_open’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1141: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘usb_rtusb_close’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1548: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1576: ошибка: неявная декларация функции ‘kill_proc’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c: В функции ‘usb_rtusb_probe’:
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1765: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1770: ошибка: неявная декларация функции ‘SET_MODULE_OWNER’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1772: ошибка: ‘struct net_device’ не содержит элемента с именем ‘open’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1773: ошибка: ‘struct net_device’ не содержит элемента с именем ‘stop’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1774: ошибка: ‘struct net_device’ не содержит элемента с именем ‘priv’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1775: ошибка: ‘struct net_device’ не содержит элемента с именем ‘hard_start_xmit’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1776: ошибка: ‘struct net_device’ не содержит элемента с именем ‘get_stats’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1779: ошибка: ‘struct net_device’ не содержит элемента с именем ‘get_wireless_stats’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1782: ошибка: ‘struct net_device’ не содержит элемента с именем ‘do_ioctl’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1787: ошибка: ‘struct net_device’ не содержит элемента с именем ‘weight’
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1807: ошибка: ‘dev_base’ не описан (первое использование в этой функции)
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1807: ошибка: (Сообщение о неописанном идентификаторе выдается один раз
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1807: ошибка: для каждой функции, в которой он используется.)
/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1807: ошибка: ‘struct net_device’ не содержит элемента с именем ‘next’
make[2]: *** [/home/beowulf/source/RT25USB-SRC-V2.0.8.0/rtusb_main.o] Ошибка 1
make[1]: *** [_module_/home/beowulf/source/RT25USB-SRC-V2.0.8.0] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-2.6.33.1.2'
make: *** [all] Ошибка 2
в-третьих, я не могу понять, почему он лезет в arch/x86
