oss 4.2 build 2001 will not attach to Solaris 10

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Tue Nov 03, 2009 7:57 pm

As was the case for 4.2 build 2000, oss will not attach on boot for Solaris 10, so no audio device is available. ossdetect must be run every time a user wants audio. After reboot, the drivers are again unavailable.
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby sbarton » Sun Nov 08, 2009 4:18 am

Confirming this is broken on Solaris 10 sparc. Also broken on SXCE b125.
sbarton
New Member
 
Posts: 5
Joined: Thu Aug 20, 2009 2:06 am

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Mon Nov 09, 2009 4:28 pm

oss 4.2 build 2002 has the same problem, see

viewtopic.php?f=19&t=3476

I have been trying this with Solaris 10 u8 x86.
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Wed Nov 11, 2009 6:39 pm

Install package.

Reboot.

Do:

# rm /etc/rc3.d/S89oss
# reboot -- -r

You will obtain SADA support.

After reboot:

$ ls -lL /dev/audio*
crw------- 1 vitaly users 228, 0 Mar 11 2009 /dev/audio
crw------- 1 vitaly users 228, 1 Mar 11 2009 /dev/audioctl
$ ls -lL /dev/sound/*
crw------- 1 vitaly users 228, 0 Mar 11 2009 /dev/sound/0
crw------- 1 vitaly users 228, 1 Mar 11 2009 /dev/sound/0ctl
$ ls -lL /dev/mixer*
crw-rw-rw- 1 root sys 225, 19 Nov 11 20:11 /dev/mixer
$ ls -lL /dev/midi*
crw-rw-rw- 1 root sys 226, 21 Nov 11 21:34 /dev/midi00
$ ls -lL /dev/dsp*
crw-rw-rw- 1 root sys 226, 2 Nov 11 20:11 /dev/dsp
crw-rw-rw- 1 root sys 226, 2 Nov 11 20:11 /dev/dsp0
crw-rw-rw- 1 root sys 226, 8 Nov 11 20:11 /dev/dsp1
crw-rw-rw- 1 root sys 226, 10 Nov 11 20:11 /dev/dsp2
crw-rw-rw- 1 root sys 226, 12 Nov 11 20:11 /dev/dsp3
crw-rw-rw- 1 root sys 226, 14 Nov 11 20:11 /dev/dsp4
crw-rw-rw- 1 root sys 226, 2 Nov 11 20:11 /dev/dsp_ac3
crw-rw-rw- 1 root sys 226, 2 Nov 11 20:11 /dev/dsp_in
crw-rw-rw- 1 root sys 226, 14 Nov 11 20:11 /dev/dsp_multich
crw-rw-rw- 1 root sys 226, 2 Nov 11 20:11 /dev/dsp_out
$ ossinfo
Version info: OSS 4.2 (b 2002/200911060822) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_141445-09 (kisa)

Number of audio devices: 5
Number of audio engines: 9
Number of MIDI devices: 1
Number of mixer devices: 1


Device objects
0: oss_sadasupport SADA compatibility layer
1: oss_sblive0 SB Live interrupts=437468 (437468)
2: osscore0 OSS common devices

MIDI devices (/dev/midi*)
0: SB Live external MIDI (MIDI port 1 of device object 1)

Mixer devices
0: SB Live (STAC9708) (Mixer 0 of device object 1)

Audio devices
SB Live main /dev/oss/oss_sblive0/pcm0 (device index 0)
SB Live front out /dev/oss/oss_sblive0/pcm1 (device index 1)
SB Live side out /dev/oss/oss_sblive0/pcm2 (device index 2)
SB Live center/lfe out /dev/oss/oss_sblive0/pcm3 (device index 3)
SB Live 5.1 output device /dev/oss/oss_sblive0/pcm4 (device index 4)

Nodes
/dev/dsp -> /dev/oss/oss_sblive0/pcm0
/dev/dsp_in -> /dev/oss/oss_sblive0/pcm0
/dev/dsp_out -> /dev/oss/oss_sblive0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_sblive0/pcm0
/dev/dsp_multich -> /dev/oss/oss_sblive0/pcm4
/dev/mixer -> ../devices/pseudo/osscore@0:mixer
/dev/sndstat -> ../devices/pseudo/osscore@0:sndstat
$
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Thu Nov 12, 2009 6:06 pm

Vitaly,

Your fix worked PERFECTLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The sound is awesome. You know, without oss, Solaris 10 x86 sound is unbelievably bad in VirtualBox guests on Windows hosts. All music and videos run at an erroneously high speed, with terrible quality. With oss, it is FANTASTIC.

Thank you VERY MUCH for your help!!!!
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Thu Nov 12, 2009 7:02 pm

Check mixer.

$ ossxmix

If mixer not starts give me a sign. I will tell you how to repair this.

I have sun's usb keyboard and make "increase and decrease volume" via audiokeys and oss mixer.
Please visit my site http://vitaly_filatov.tripod.com
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Fri Nov 13, 2009 8:41 pm

Today, sound will work only intermittently in Solaris 10 JDS. It may work for a while, but after I play a sound or .mpg, it will stop, and no further sounds are available until next reboot. After the problem occurs, all mpegs will play only very very slowly, and osstest returns errors on playback with no sound.
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Fri Nov 13, 2009 8:43 pm

The mixer starts, but sounds will again not play until reboot.
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Sat Nov 14, 2009 8:41 am

Do you use Solaris directly, or into some virtual machine?

Check all audio-dev links:

$ ls -lL /dev/audio*
$ ls -lL /dev/sound/*
$ ls -lL /dev/mixer*
$ ls -lL /dev/midi*
$ ls -lL /dev/dsp*

All files must be accessible (see message above).
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Mon Nov 16, 2009 4:50 pm

Solaris 10 is running as a VirtualBox (3.0.10) guest on a WinXP host. Part of the problem may be the VirtualBox implementation of sound for Solaris guests. Using Windows DirectSound host driver and ICH AC97 controller in Vbox VM settings.

> ls -l /devices/pseudo/oss_sadasupport\@0\:sound\,audio*
crw------- 1 barnabyr sysadmin 228, 0 Feb 2 2009 /devices/pseudo/oss_sadasupport@0:sound,audio
crw------- 1 barnabyr sysadmin 228, 1 Feb 2 2009 /devices/pseudo/oss_sadasupport@0:sound,audioctl

> ls -lL /dev/audio*
crw-rw-rw- 1 barnabyr sysadmin 228, 0 Feb 2 2009 /dev/audio
crw-rw-rw- 1 barnabyr sysadmin 228, 1 Feb 2 2009 /dev/audioctl

> ls -lL /dev/sound/*
crw-rw-rw- 1 barnabyr sysadmin 228, 0 Feb 2 2009 /dev/sound/0
crw-rw-rw- 1 barnabyr sysadmin 228, 1 Feb 2 2009 /dev/sound/0ctl

> ls -lL /dev/mixer*
/dev/mixer0: No such file or directory
crw-rw-rw- 1 root sys 73, 12 Nov 16 09:23 /dev/mixer

> ls -lL /dev/dsp*
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp0
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp_ac3
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp_in
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp_multich
crw-rw-rw- 1 root sys 225, 1 Nov 16 09:20 /dev/dsp_out

3, 12 Nov 16 09:23 /dev/mixer

> ls -lL /dev/midi*
No match

> ossinfo
Version info: OSS 4.2 (b 2002/200911060822) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_141445-09 (antero)

Number of audio devices: 1
Number of audio engines: 6
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: oss_ich0 Intel ICH (2415) interrupts=79038 (158065)
1: osscore0 OSS common devices
2: oss_sadasupport SADA compatibility layer

MIDI devices (/dev/midi*)

Mixer devices
0: ICH AC97 Mixer (STAC9700) (Mixer 0 of device object 0)

Audio devices
Intel ICH (2415) /dev/oss/oss_ich0/pcm0 (device index 0)

Nodes
/dev/dsp -> /dev/oss/oss_ich0/pcm0
/dev/dsp_in -> /dev/oss/oss_ich0/pcm0
/dev/dsp_out -> /dev/oss/oss_ich0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_ich0/pcm0
/dev/dsp_multich -> /dev/oss/oss_ich0/pcm0
/dev/mixer -> ../devices/pseudo/osscore@0:mixer
/dev/sndstat -> ../devices/pseudo/osscore@0:sndstat
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Mon Nov 16, 2009 5:36 pm

Please show results of:

$ ls -l /dev/oss
$ ls -l /dev/oss/*
$ ls -lL /dev/oss/*
$ ls -l /dev/mixer*
$ cat /etc/oss/legacy_devices
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Mon Nov 16, 2009 6:13 pm

> ls -l /dev/oss
total 2
drwxr-xr-x 2 root root 512 Nov 16 10:30 oss_ich0

> ls -l /dev/oss/*
total 6
lrwxrwxrwx 1 root sys 51 Nov 16 10:30 mix-1 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,mix-1
lrwxrwxrwx 1 root root 50 Nov 12 10:53 mix0 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,mix0
lrwxrwxrwx 1 root root 50 Nov 12 10:53 pcm0 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,pcm0

> ls -lL /dev/oss/*
/dev/oss/oss_ich0/mix0: No such file or directory
total 0
crw-rw-rw- 1 root sys 225, 10 Nov 16 11:11 mix-1
crw-rw-rw- 1 root sys 225, 1 Nov 16 11:09 pcm0

> ls -l /dev/mixer*
lrwxrwxrwx 1 root other 33 Nov 12 10:50 /dev/mixer -> ../devices/pseudo/osscore@0:mixer
lrwxrwxrwx 1 root root 22 Nov 12 10:54 /dev/mixer0 -> /dev/oss/oss_ich0/mix0

> cat /etc/oss/legacy_devices
rm -f /dev/dsp0;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp0
rm -f /dev/dsp;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp
rm -f /dev/dsp_ac3;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp_ac3
rm -f /dev/dsp_in;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp_in
rm -f /dev/dsp_multich;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp_multich
rm -f /dev/dsp_out;ln -sf /dev/oss/oss_ich0/pcm0 /dev/dsp_out
rm -f /dev/mixer0;ln -sf /dev/oss/oss_ich0/mix0 /dev/mixer0
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Mon Nov 16, 2009 7:38 pm

Do:

# rm /dev/mixer0
# ln -s /dev/oss/oss_ich0/mix-1 /dev/mixer0
# rm /dev/oss/mix0

Check

$ ls -lL /dev/oss/*

No message "No such file or directory" must appear.

You will see:

lrwxrwxrwx 1 root sys 51 Nov 16 10:30 mix-1 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,mix-1
lrwxrwxrwx 1 root root 50 Nov 12 10:53 pcm0 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,pcm0

Reboot and check sound.

Show:

$ ls -l /dev/oss/oss_ich0
$ ls -l /devices/pci@0,0/*oss*
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby rasta » Mon Nov 16, 2009 8:34 pm

Vitaly,

I did what you wrote. Now,

> ls -lL /dev/oss/*
total 0
crw-rw-rw- 1 root sys 225, 10 Nov 16 13:10 mix-1
crw-rw-rw- 1 root sys 225, 1 Nov 16 13:10 pcm0

> ls -l /dev/oss/oss_ich0
total 4
lrwxrwxrwx 1 root sys 51 Nov 16 10:30 mix-1 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,mix-1
lrwxrwxrwx 1 root root 50 Nov 12 10:53 pcm0 -> ../../../devices/pci@0,0/pci8086,0@5:oss_ich0,pcm0

> ls -l /devices/pci@0,0/*oss*
crw-rw-rw- 1 root sys 225, 10 Nov 16 13:10 /devices/pci@0,0/pci8086,0@5:oss_ich0,mix-1
crw-rw-rw- 1 root sys 225, 1 Nov 16 13:10 /devices/pci@0,0/pci8086,0@5:oss_ich0,pcm0

Things seem better now. But a little unstable, which is possibly do to VirtualBox's audio support. I'll report back with problems. Thank you for your help!

I wonder why I had to make the changes you suggested. Is it a problem with the oss Solaris package, or have all the oss-related files become screwed up on my system? I have had trouble uninstalling oss in the past. See:

viewtopic.php?f=4&t=3344
rasta
Member
 
Posts: 33
Joined: Mon Oct 19, 2009 9:17 pm

Re: oss 4.2 build 2001 will not attach to Solaris 10

Postby Vitaly » Mon Nov 16, 2009 9:46 pm

-A key is unnecessary and dangerous.

oss packages are inaccurate, e.g. file oss/pkgmap must contain strings:

1 d none usr/include/oss 0755 root root
1 d none usr/lib/oss 0755 root root
1 d none usr/lib/oss/etc_templates 0755 root root
1 d none usr/lib/oss/lib 0755 root root

to avoid such installation errors as:

[ verifying class <none> ]
mv: cannot rename /var/tmp/dstreAAAqCai.c/oss/reloc/usr/lib/oss/etc_templates/forceload.conf to /usr/lib/oss/etc_templates/forceload.conf: No such file or directory
[ verifying class <drvcfg> ]
ERROR: attribute verification of </usr/lib/oss/etc_templates/forceload.conf> failed
pathname does not exist
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Next

Return to Solaris

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

cron