2.6.28-custom kernel + alsa driver (troubles)

Интегрированный звук, звуковые карточки, выносные устройства

Модератор: Модераторы разделов

Pegasus
Сообщения: 9
ОС: Ubuntu 7.04

2.6.28-custom kernel + alsa driver

Сообщение Pegasus »

Поставил ядро 2.6.28. (Ubuntu way)
Слетела при этом аудиокарта Creative SB Player 5.1.

Код: Выделить всё

01:09.0 Multimedia audio controller [0401]: Creative Labs SB Live! EMU10k1 [1102:0002] (rev 0a)

Пытаюсь ставить алсу ...

Код: Выделить всё

$ sudo ./configure  --with-kernel=/usr/src/linux --with-cards=emu10k1 --with-oss=yes --with-sequencer=yes

(сорцы - это папка где компилялось ядро, где успешно потом и скомпилялись nvidia 177.82)
Так вот ./configure проходит норм.

Код: Выделить всё

$ sudo make
.
.
.
.
make -C /usr/src/linux SUBDIRS=/usr/src/modules/alsa-driver  CPP="gcc -E" CC="gcc" modules
make[1]: Вход в каталог `/media/media1/temp/kernels/second/linux-2.6.28'
  CC [M]  /usr/src/modules/alsa-driver/acore/hwdep.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /usr/src/modules/alsa-driver/include/adriver.h:26,
                 from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
include/linux/mmzone.h:18:26: ошибка: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: предупреждение: "MAX_NR_ZONES" не определено
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /usr/src/modules/alsa-driver/include/adriver.h:26,
                 from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
include/linux/mmzone.h:277: ошибка: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
/usr/src/modules/alsa-driver/include/adriver.h:824: ошибка: static declaration of ‘jiffies_to_msecs’ follows non-static declaration
include/linux/jiffies.h:286: ошибка: previous declaration of ‘jiffies_to_msecs’ was here
/usr/src/modules/alsa-driver/include/adriver.h:843: ошибка: static declaration of ‘msecs_to_jiffies’ follows non-static declaration
include/linux/jiffies.h:288: ошибка: previous declaration of ‘msecs_to_jiffies’ was here
In file included from /usr/src/modules/alsa-driver/include/adriver.h:940,
                 from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
include/linux/pci.h:635: ошибка: expected identifier or ‘(’ before numeric constant
In file included from /media/media1/temp/kernels/second/linux-2.6.28/arch/x86/include/asm/pci.h:4,
                 from include/linux/pci.h:1002,
                 from /usr/src/modules/alsa-driver/include/adriver.h:940,
                 from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
include/linux/mm.h:261: ошибка: conflicting types for ‘snd_compat_vmalloc_to_page’
/usr/src/modules/alsa-driver/include/adriver.h:744: ошибка: previous declaration of ‘snd_compat_vmalloc_to_page’ was here
In file included from /media/media1/temp/kernels/second/linux-2.6.28/arch/x86/include/asm/pci.h:4,
                 from include/linux/pci.h:1002,
                 from /usr/src/modules/alsa-driver/include/adriver.h:940,
                 from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
include/linux/mm.h:438:63: предупреждение: "NR_PAGEFLAGS" не определено
include/linux/mm.h:486:62: предупреждение: "NR_PAGEFLAGS" не определено
In file included from /usr/src/modules/alsa-driver/acore/hwdep.c:1:
/usr/src/modules/alsa-driver/include/adriver.h: В функции ‘snd_pci_orig_save_state’
/usr/src/modules/alsa-driver/include/adriver.h:1182: ошибка: слишком много аргументов в вызове функции ‘pci_save_state’
/usr/src/modules/alsa-driver/include/adriver.h: В функции ‘snd_pci_orig_restore_state’
/usr/src/modules/alsa-driver/include/adriver.h:1186: ошибка: слишком много аргументов в вызове функции ‘pci_restore_state’
make[3]: *** [/usr/src/modules/alsa-driver/acore/hwdep.o] Ошибка 1
make[2]: *** [/usr/src/modules/alsa-driver/acore] Ошибка 2
make[1]: *** [_module_/usr/src/modules/alsa-driver] Ошибка 2
make[1]: Выход из каталога `/media/media1/temp/kernels/second/linux-2.6.28'
make: *** [compile] Ошибка 2


Если папку сорцов ядра давать как хедеры:

Код: Выделить всё

$ sudo ./configure  --with-kernel=/usr/src/linux-headers-2.6.28-custom --with-cards=emu10k1 --with-oss=yes --with-sequencer=yes

проходит успешно тоже
при make ошибка уже иная:

Код: Выделить всё

make -C /usr/src/linux-headers-2.6.28-custom SUBDIRS=/usr/src/modules/alsa-driver  CPP="gcc -E" CC="gcc" modules
make[1]: Вход в каталог `/usr/src/linux-headers-2.6.28-custom'
/usr/src/linux-headers-2.6.28-custom/arch/x86/Makefile:41: /usr/src/linux-headers-2.6.28-custom/arch/x86/Makefile_32.cpu: No such file or directory
make[1]: *** Нет правила для сборки цели `/usr/src/linux-headers-2.6.28-custom/arch/x86/Makefile_32.cpu'.  Останов.
make[1]: Выход из каталога `/usr/src/linux-headers-2.6.28-custom'
make: *** [compile] Ошибка 2

Пробовал в хедеры копировать с сорцов ядра файл Makefile_32.cpu - сыпятся еще ошибки....
как быть ???? есть у кого идеи ?
Спасибо сказали: