I've compiled 2.6.28. (Ubuntu way)
After that Creative SB Player 5.1 has failed.
Code:
01:09.0 Multimedia audio controller [0401]: Creative Labs SB Live! EMU10k1 [1102:0002] (rev 0a)
If I try setup ALSA driver ...
Code:
$ sudo ./configure --with-kernel=/usr/src/linux --with-cards=emu10k1 --with-oss=yes --with-sequencer=yes
(sources - it's the folder I compiled my kernel , where I compiled my nvidia driver version 177.82)
So ./configure is fine, but make is failing :
Code:
$ sudo make
.
.
.
.
make -C /usr/src/linux SUBDIRS=/usr/src/modules/alsa-driver CPP="gcc -E" CC="gcc" modules
make[1]: Enter to folder `/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: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: caution: "MAX_NR_ZONES" did not defined
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: error: ‘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: error: previous declaration of ‘jiffies_to_msecs’ was here
/usr/src/modules/alsa-driver/include/adriver.h:843: error: static declaration of ‘msecs_to_jiffies’ follows non-static declaration
include/linux/jiffies.h:288: error: 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: error: 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: error: conflicting types for ‘snd_compat_vmalloc_to_page’
/usr/src/modules/alsa-driver/include/adriver.h:744: error: 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: caution: "NR_PAGEFLAGS" не определено
include/linux/mm.h:486:62: caution: "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: error: too many arguments in call of function ‘pci_save_state’
/usr/src/modules/alsa-driver/include/adriver.h: in function ‘snd_pci_orig_restore_state’
/usr/src/modules/alsa-driver/include/adriver.h:1186: error: too many arguments in call of function ‘pci_restore_state’
make[3]: *** [/usr/src/modules/alsa-driver/acore/hwdep.o] error 1
make[2]: *** [/usr/src/modules/alsa-driver/acore] error 2
make[1]: *** [_module_/usr/src/modules/alsa-driver] error 2
make[1]: Exit from folder `/media/media1/temp/kernels/second/linux-2.6.28'
make: *** [compile] error 2
If I give the "--with-kernel=" kernel as headers kernel - "/usr/src/linux-headers-2.6.28-custom/":
Code:
$ sudo ./configure --with-kernel=/usr/src/linux-headers-2.6.28-custom --with-cards=emu10k1 --with-oss=yes --with-sequencer=yes
./configure is fine.
But make gives another errors:
Code:
make -C /usr/src/linux-headers-2.6.28-custom SUBDIRS=/usr/src/modules/alsa-driver CPP="gcc -E" CC="gcc" modules
make[1]: Enter to folder `/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]: *** No rule for setup target `/usr/src/linux-headers-2.6.28-custom/arch/x86/Makefile_32.cpu'. Stoping.
make[1]: Exit from folder `/usr/src/linux-headers-2.6.28-custom'
make: *** [compile] error 2
I was trying to copy file Makefile_32.cpu from kernel sources, but I got new errors ...
Does anyone has any idea ?
Thanks a lot!
Bookmarks