I try to build a FreeBSD Kernel and disable device sound. This is needed for my USB Sound: ASUS Essence One MKII MUSES Edition.
To bring this hardware to work I want to install the port: audio/oss
This port requires to disable the device sound in kernel. It works great with FreeBSD 10. Now I have a clean install with FreeBSD 11 and can't build the necessary kernel.
To build the kernel I used the following commands:
the differences between the GENERIC and my config:
When I did make depend I get this output:
After reboot into this new kernel dmesg shows me the following error:
kldstat shows:
My FreeBSD Version:
So I guess that my kernel did not entirely disable the sound device. What steps are necessary to completely remove the sound device from a FreeBSD 11 kernel?
Any help would be appreciated.
To bring this hardware to work I want to install the port: audio/oss
This port requires to disable the device sound in kernel. It works great with FreeBSD 10. Now I have a clean install with FreeBSD 11 and can't build the necessary kernel.
To build the kernel I used the following commands:
cd /usr/src/sys/amd64/conf
cp GENERIC TEST
vi TEST
config TEST
cd ../compile/TEST
make cleandepend && make depend
make; make install
the differences between the GENERIC and my config:
Code:
< device sound # Generic sound driver (required)
< device snd_cmi # CMedia CMI8338/CMI8738
< device snd_csa # Crystal Semiconductor CS461x/428x
< device snd_emu10kx # Creative SoundBlaster Live! and Audigy
< device snd_es137x # Ensoniq AudioPCI ES137x
< device snd_hda # Intel High Definition Audio
< device snd_ich # Intel, NVidia and other ICH AC'97 Audio
< device snd_via8233 # VIA VT8233x Audio
---
> #device sound # Generic sound driver (required)
> #device snd_cmi # CMedia CMI8338/CMI8738
> #device snd_csa # Crystal Semiconductor CS461x/428x
> #device snd_emu10kx # Creative SoundBlaster Live! and Audigy
> #device snd_es137x # Ensoniq AudioPCI ES137x
> #device snd_hda # Intel High Definition Audio
> #device snd_ich # Intel, NVidia and other ICH AC'97 Audio
> #device snd_via8233 # VIA VT8233x Audio
When I did make depend I get this output:
...
===> sound (obj)
===> sound/sound (obj)
/usr/src/sys/amd64/compile/TEST/modules/usr/src/sys/modules/sound/sound created for /usr/src/sys/modules/sound/sound
===> sound/driver (obj)
===> sound/driver/ad1816 (obj)
/usr/src/sys/amd64/compile/TEST/modules/usr/src/sys/modules/sound/driver/ad1816 created for /usr/src/sys/modules/sound/driver/ad1816
===> sound/driver/als4000 (obj)
...
After reboot into this new kernel dmesg shows me the following error:
osscore: Open Sound System conflicts with FreeBSD driver
osscore: Please remove sound(4) from kernel or unload it
module_register_init: MOD_LOAD (osscore, 0xffffffff831de400, 0) error 16
kldstat shows:
Id Refs Address Size Name
1 39 0xffffffff80200000 1eea5d0 kernel
2 1 0xffffffff820ec000 30ae98 zfs.ko
3 2 0xffffffff823f7000 adb8 opensolaris.ko
4 1 0xffffffff82402000 21bd0 geom_eli.ko
5 1 0xffffffff82424000 b3d8 aesni.ko
6 1 0xffffffff82621000 ab3ac nvidia-modeset.ko
7 1 0xffffffff826cd000 a79c2d nvidia.ko
8 1 0xffffffff83147000 29f6 uhid.ko
9 1 0xffffffff8314a000 10ac2 snd_uaudio.ko
10 2 0xffffffff8315b000 40345 sound.ko
11 1 0xffffffff8319c000 d644 if_rum.ko
12 1 0xffffffff831aa000 3705 ums.ko
My FreeBSD Version:
FreeBSD core8 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8
So I guess that my kernel did not entirely disable the sound device. What steps are necessary to completely remove the sound device from a FreeBSD 11 kernel?
Any help would be appreciated.