Sound driver (OSS)

Status
Not open for further replies.

dave900_fr

Cadet
Joined
Jan 6, 2014
Messages
6
Hello,

I know this is an unsual request, but I really like freenas and the only thing missing for me so far is how to recognize a sound card (so musicpd can output audio on it). I don't want to have another computer just for this.

Anyone has achieved this so far? It seems that you need kernel sources to build oss package. But I would appreciate some help on how to do this.
For information, I have freenas 9.1.1. I am fine with upgrading to 9.2 in order to get the new jail templates (debian, ubuntu...) if this can help.

Cheers,
David
 

Yatti420

Wizard
Joined
Aug 12, 2012
Messages
1,437
I'm not sure about sound drivers but I'm guessing this could be accomplished in a jail..
 

dave900_fr

Cadet
Joined
Jan 6, 2014
Messages
6
Well yes this is what I was hoping for. So far I can't install oss package in a jail. This is the output I have

Code:
Build Open Sound System for FreeBSD-amd64 9.2-RELEASE
Compiling module osscore
Compiling module lynxone
Compiling module oss_ali5455
Compiling module oss_atiaudio
Compiling module oss_audigyls
Compiling module oss_audioloop
Compiling module oss_audiopci
Compiling module oss_cmi878x
Compiling module oss_cmpci
Compiling module oss_cs4281
Compiling module oss_cs461x
Compiling module oss_digi96
Compiling module oss_emu10k1x
Compiling module oss_envy24
Compiling module oss_envy24ht
Compiling module oss_fmedia
Compiling module oss_geode
Compiling module oss_hdaudio
Compiling module oss_ich
Compiling module oss_imux
Compiling module oss_madi
Compiling module oss_midiloop
Compiling module oss_midimix
Compiling module oss_sblive
Compiling module oss_sbpci
Compiling module oss_sbxfi
Compiling module oss_solo
Compiling module oss_trident
Compiling module oss_userdev
Compiling module oss_via823x
Compiling module oss_via97
Compiling module oss_ymf7xx
Starting Open Sound System
ln: /dev/dsp: Operation not permitted
kldload: can't load /usr/lib/oss/modules/osscore.ko: Operation not permitted
Loading the osscore module failed
pkg_add: install script returned error status


I guess this is because the jail cannot have access to the audio device or something like that since it is not installed in freenas...
Any ideas?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Um... FreeNAS servers are supposed to be file servers and not servers to play music on. As such, I don't believe you can get this to work without significant rework and recompiling of FreeNAS.

People ask for audio support once in a blue moon and the answer is simple... FreeNAS does not and will never include audio drivers. It is meant to be a file server appliance and that is all. The more stuff you add the more likely of there being problems. File servers should be as stable as possible which is why FreeNAS is stripped down to only the most basic stuff.

If this is a deal breaker then FreeNAS is clearly not for you.
 
D

dlavigne

Guest
What command are you using to install into the jail?

To get sound working in the jail, you need to configure devfs, like seen in this post.
 

dave900_fr

Cadet
Joined
Jan 6, 2014
Messages
6
Well, I tried to follow the instructions from the post in a portjail in Freenas 9.2 but without success, still the same error. I am probably doing something wrong in the configuration but don't know what...
I have jail named "freebsd" so I have written this in /etc/devfs.rules (freenas system):
Code:
# Devices usually found in a desktop jail.
#
[devfsrules_freebsd_jail=5]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path 'mixer*' unhide
add path 'dsp*' unhide
add path 'dri' unhide
add path 'dri/card0' unhide


Then inside the jail, i.e., /mnt/test/freebsd/etc/rc.conf, I have the following:
Code:
portmap_enable="NO"
sshd_enable="NO"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
hostname="freebsd"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
jail_freebsd_devfs_ruleset="devfsrules_freebsd_jail"


Any ideas?

Thanks,
David
 

dave900_fr

Cadet
Joined
Jan 6, 2014
Messages
6
And I forgot, I am using this command within the jail to install oss:
pkg_add oss-freebsd9-v4.2-2008-amd64.tbz
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
It will not work even with devfs configured in the jail. There are no snd_ modules included with FreeNAS, so there's no /dev/dsp, no /dev/sndstat. If you want sound you need to fetch the FreeNAS source tree and build a kernel that includes the sound drivers (or just build the sound kernel modules).
 
Status
Not open for further replies.
Top