v4.2-2003-i386 installation

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

v4.2-2003-i386 installation

Postby Vitaly » Sat Aug 14, 2010 3:46 pm

# pkgrm oss

# pkgadd -d oss-solaris-v4.2-2003-i386.pkg

# cd /etc/oss

# cat installed_drivers
osscore #OSS Core Devices
oss_sblive #Creative Sound Blaster Live
oss_sadasupport #SADA emulation layer
#

remove lines with osscore and oss_sadasupport. osscore with oss_sadasupport will load by /etc/rc3.d/S89oss
(see script: /usr/sbin/soundon):

# vi installed_drivers

After editing:

# cat installed_drivers
oss_sblive #Creative Sound Blaster Live
#

# reboot
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: v4.2-2003-i386 installation

Postby sun-certified » Sat Aug 14, 2010 9:23 pm

please, see my signature for system details; see osstest and ossinfo output below main post

thanks vitaly.

in a previous post of yours (which i found very helpful, btw. thanks), you instructed a poster to remove /etc/rc3.d/S89oss.
Install package.

Reboot.

Do:

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

You will obtain SADA support.
...


i realize that post was in regard to a different release version of oss. but, if /etc/rc3.d/S89oss isn't deleted for v4.2-2003-i386, would the problem reported in that earlier post still exist?

the reason i ask, is because i've followed all the instructions listed there and the "ddi-no-autodetach" suggesting here.

just like rasta reports, audio works sometimes. but only if i try to play something very soon after a reboot. however, in the process of playing, say, a youtube video, the sound will just stop. usually 5-12 minutes in to, say, a 1 hour video.

sometimes, when i first boot up solaris, i won't even try to play any sound-related media; instead, during those first few hours, i'd do a bunch of stuff just going about the normal usage of solaris. then if i try to play audio hours after booting up, nada! no sound! not even if it's the very first time that i tried to play audio since booting up solaris.

in addition to having tried the things suggested in the posts i mentioned above, i've also tried a few other things suggested in other posts too.

does anybody have any suggestions? thanks in advance for any help.

i've also added some interesting oss-related entries from dmesg below. the curious thing about that is: i haven't even tried to play a single audo file since i booted up today at approx 12:20 GMT. please, can anybody explain to me what those messages mean?

=========
Code: Select all
$ osstest
Sound subsystem and version: OSS 4.2 (b 2003/201005280540) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_142901-07

*** Scanning sound adapter #-1 ***
/dev/oss/oss_ich0/pcm0 (audio engine 0): Intel ICH (2415)
Note! Device is in use (by PID 0/VMIX) but will try anyway
- Performing audio playback test...
  <left> Device returned error: I/O error

*** Some errors were detected during the tests ***

=========
Code: Select all
$ ossinfo -v3
Version info: OSS 4.2 (b 2003/201005280540) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_142901-07 (suncertified)

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=240139 (243091)
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)
    Device file /dev/oss/oss_ich0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI00008086-0-mx01
    Device priority: 10


Audio devices
Intel ICH (2415)                  /dev/oss/oss_ich0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER
    Modes: IN/OUT
      Engine      1: 0/Intel ICH (2415)
                     Busy (IN/OUT) label 'VMIX'
      Engine      2: 1/Intel ICH (2415) (vmix)
                     Busy (IN/OUT) label 'SADA'
      Engine      3: 2/Intel ICH (2415) (vmix)
                     Busy (OUT) by PID 3000 / operapluginwrap label 'operapluginwrap'
      Engine      4: 3/Intel ICH (2415) (vmix)
                     Available for use
      Engine      5: 4/Intel ICH (2415) (vmix)
                     Available for use
      Engine      6: 5/Intel ICH (2415)
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    Device handle: PCI00008086-0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 5000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated


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

=========
Code: Select all
Sunday, 15 August 2010 15:58:53 BST
...
Aug 15 12:20:49 suncertified pcplusmp: [ID 272826 kern.info] pcplusmp: pci8086,2415 (oss_ich) instance 0 irq 0x15 vector 0x84 ioapic 0x2 intin 0x15 is bound to cpu 0
Aug 15 12:20:50 suncertified pci: [ID 370704 kern.info] PCI-device: pci8086,0@5, oss_ich0
Aug 15 12:20:50 suncertified genunix: [ID 936769 kern.info] oss_ich0 is /pci@0,0/pci8086,0@5
...
Aug 15 12:20:50 suncertified pseudo: [ID 129642 kern.info] pseudo-device: osscore0
Aug 15 12:20:50 suncertified genunix: [ID 936769 kern.info] osscore0 is /pseudo/osscore@0
Aug 15 12:20:51 suncertified pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Aug 15 12:20:51 suncertified genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0
Aug 15 12:20:51 suncertified pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Aug 15 12:20:51 suncertified genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0

...
Aug 15 12:21:46 suncertified pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Aug 15 12:21:46 suncertified genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0
Aug 15 12:21:46 suncertified pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Aug 15 12:21:46 suncertified genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0
Aug 15 12:21:54 suncertified pseudo: [ID 129642 kern.info] pseudo-device: osscore0
Aug 15 12:21:54 suncertified genunix: [ID 936769 kern.info] osscore0 is /pseudo/osscore@0
...
Aug 15 14:51:10 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 14:55:05 suncertified last message repeated 227 times
Aug 15 14:55:06 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:01:45 suncertified last message repeated 399 times
Aug 15 15:01:46 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:08:25 suncertified last message repeated 398 times
Aug 15 15:08:26 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:15:05 suncertified last message repeated 397 times
Aug 15 15:15:06 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:15:16 suncertified last message repeated 10 times
Aug 15 15:15:17 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:21:56 suncertified last message repeated 398 times
Aug 15 15:21:57 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:25:21 suncertified last message repeated 202 times
Aug 15 15:25:22 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:32:00 suncertified last message repeated 396 times
Aug 15 15:32:01 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:38:40 suncertified last message repeated 399 times
Aug 15 15:38:41 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:38:52 suncertified last message repeated 11 times
Aug 15 15:38:53 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:39:01 suncertified last message repeated 8 times
Aug 15 15:39:02 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:45:40 suncertified last message repeated 399 times
Aug 15 15:45:41 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:45:43 suncertified last message repeated 2 times
Aug 15 15:45:44 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
Aug 15 15:52:24 suncertified last message repeated 373 times
Aug 15 15:52:25 suncertified osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)' (count=0)
...

=========
Code: Select all
$ ossmix
Selected mixer 0/ICH AC97 Mixer (STAC9700)
Known controls are:
vol [<leftvol>:<rightvol>] (currently 75:75)
vol.rec ON|OFF (currently OFF)
pcm [<leftvol>:<rightvol>] (currently 75:75)
speaker <monovol> (currently 0)
line [<leftvol>:<rightvol>] (currently 32:32)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 75:75)
cd.rec ON|OFF (currently OFF)
igain [<leftvol>:<rightvol>] (currently 75:75)
aux1 [<leftvol>:<rightvol>] (currently 32:32)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 0:0)
phone.rec ON|OFF (currently OFF)
mono <monovol> (currently 75)
mono.rec ON|OFF (currently OFF)
video [<leftvol>:<rightvol>] (currently 0:0)
video.rec ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 24.7 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm1 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("SADA")
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("operapluginwrap")
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
Attachments
suncertified_dmesg.log
osscommon: [ID 628658 kern.notice] NOTICE: Output timed out on audio engine 2/'Intel ICH (2415) (vmix)'
(19.83 KiB) Downloaded 1007 times
Last edited by sun-certified on Sun Aug 15, 2010 3:59 pm, edited 2 times in total.
Solaris 10 x86 guest; VirtualBox v 3.2.8; Win 7 64 bit host (8gb ram [5gb for host/3gb guest]); host driver: Windows Direct Sound; controller: ICH AC97; oss v4.2-2003-i386; Intel Core i3 CPU M330 @ 2.13 GHz (times 4); RealTek HD Audio Driver v6.0.1.5964
sun-certified
New Member
 
Posts: 1
Joined: Sat Aug 14, 2010 8:23 pm

Re: v4.2-2003-i386 installation

Postby Vitaly » Sun Aug 15, 2010 3:32 pm

Another way:

1)

# pkgadd -d oss-solaris-v4.2-2003-i386.pkg

2)

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

3)

After installation and rebooting minor devices must be as (for my Sound Blaster):

/devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mid0
/devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mix0

But I have (don't know why):

# ls -l /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss*
crw-rw-rw- 1 root sys 226, 21 Aug 15 18:58 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mid-1
crw-rw-rw- 1 root sys 226, 20 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mix-1
crw-rw-rw- 1 root sys 226, 2 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,pcm0
crw-rw-rw- 1 root sys 226, 8 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,pcm1
crw-rw-rw- 1 root sys 226, 10 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,pcm2
crw-rw-rw- 1 root sys 226, 12 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,pcm3
crw-rw-rw- 1 root sys 226, 14 Aug 15 18:57 /devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,pcm4
#

As a result mixer don't work.

4) To repair:

# cd /dev/oss/oss_sblive0/

# ls -l *mi*
lrwxrwxrwx 1 root other 70 Aug 15 18:25 mid0 -> ../../../devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mid0
lrwxrwxrwx 1 root other 70 Aug 15 18:25 mix0 -> ../../../devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mix0

These links are wrong.

Make right links:

# ln -s ../../../devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mid-1 mid-1
# ln -s ../../../devices/pci@0,0/pci10de,3d@12/pci1102,8064@8:oss_sblive0,mix-1 mix-1

# cd /dev

# rm mixer0 midi00
# ln -s /dev/oss/oss_sblive0/mix-1 mixer0
# ln -s /dev/oss/oss_sblive0/mid-1 midi00

Subsequent "reconfiguration reboots" don't change anything.

To check mixer:

/usr/bin/ossxmix
/usr/bin/ossmix
Vitaly
Member
 
Posts: 10
Joined: Wed Nov 11, 2009 6:17 pm

Re: v4.2-2003-i386 installation

Postby dev » Thu Jan 06, 2011 6:34 pm

Hi,


Get OSS 4.2 build 2004 - adding the devfsadm to the soundon scripts helps fix the disappearing devlinks problem. The root cause of the links disappearing is that moduload -i 0 is called at the end of boot up and it knocks out the device links of all device drivers that are not in use.
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Re: v4.2-2003-i386 installation

Postby rasta » Tue Jan 11, 2011 4:23 pm

dev wrote:Hi,


Get OSS 4.2 build 2004 - adding the devfsadm to the soundon scripts helps fix the disappearing devlinks problem. The root cause of the links disappearing is that moduload -i 0 is called at the end of boot up and it knocks out the device links of all device drivers that are not in use.


Are you saying that build 2004 fixes the attachment problem? Not so for me. See

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


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest

cron