Results 1 to 5 of 5

Thread: 2.6.28-custom kernel + Alsa (emu10k1)

  1. #1
    Join Date
    Sep 2007
    Location
    Ukraine
    Beans
    33
    Distro
    Ubuntu 8.04 Hardy Heron

    2.6.28-custom kernel + Alsa (emu10k1)

    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!
    please sorry me for my poor english

  2. #2
    Join Date
    Jan 2009
    Beans
    16

    Re: 2.6.28-custom kernel + Alsa (emu10k1)

    I get the same errors on a custom built 2.6.28 here with the latest (as of today) alsa-hg sources. It also fails to compile for 2.6.27-9 generic but with different errors. If you're using the hg sources, I'm guessing it's just broken at the moment.

    Snapshot from yesterday built ok...

  3. #3
    Join Date
    Jan 2009
    Beans
    16

    Re: 2.6.28-custom kernel + Alsa (emu10k1)

    Hmm actually it looks like I overlooked the fact that the mercurial repository is deprecated and hasn't been updated in some time apparently. I'm not sure if you are using this as well. Anyway, going to try a fresh git checkout and see what happens.

  4. #4
    Join Date
    Jan 2009
    Beans
    16

    Re: 2.6.28-custom kernel + Alsa (emu10k1)

    I can confirm that checking out the sources from the alsa git repository today builds fine for me. Perhaps give this a shot?

    http://www.alsa-project.org/main/index.php/GIT_Server

    you'll need alsa-driver and alsa-kmirror as a minimum to build.

  5. #5
    Join Date
    Sep 2007
    Location
    Ukraine
    Beans
    33
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: 2.6.28-custom kernel + Alsa (emu10k1)

    The kernel for what I built it was a work next sequence: (iPhone, virtualBox, iTunes, WindowsXP ). For one reason or another new kernel doesn't work with iPhone correctly so I back to previous repository kernel.
    Thanks for replies.
    please sorry me for my poor english

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •