crashes with OpenSolaris 2008.05 on Apple mac mini

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

crashes with OpenSolaris 2008.05 on Apple mac mini

Postby twisti » Sun Jun 01, 2008 12:20 pm

Hi!

I just installed OSS 4.0 b1015 on an Apple mac mini with OpenSolaris 2008.05. Here is the output of ossinfo:

Code: Select all
$ ossinfo
Version info: OSS 4.0 (b1015/200803241124) (0x00040003)
Platform: SunOS/i86pc 5.11 snv_86 (workstation)

Number of audio devices:   7
Number of audio engines:   15
Number of mixer devices:   1


Device objects
0: sadasupport0 SADA compatibility layer interrupts=248 (248)
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x83847680
     Codec  0: STAC9221 A1 (0x83847680/0x106b0800)
1: osscore0 OSS common devices
2: hdaudio0 Intel HD Audio interrupts=4103857 (4103857)
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x83847680
     Codec  0: STAC9221 A1 (0x83847680/0x106b0800)
3: ossusb0 USB audio/MIDI device
4: vmix0 OSS transparent virtual mixer


Mixer devices
0: High Definition Audio STAC9221 A (Mixer 0 of device object 2)

Audio devices
HD Audio front                    /dev/oss/hdaudio0/pcm0  (device index 0)
HD Audio center/LFE               /dev/oss/hdaudio0/pcm1  (device index 1)
HD Audio side                     /dev/oss/hdaudio0/pcm2  (device index 2)
HD Audio spdif-out                /dev/oss/hdaudio0/spdout0  (device index 3)
High Definition Audio rec1        /dev/oss/hdaudio0/pcmin0  (device index 4)
High Definition Audio rec2        /dev/oss/hdaudio0/pcmin1  (device index 5)
High Definition Audio spdif-in    /dev/oss/hdaudio0/spdin0  (device index 6)


And I have two problems:

1. It crashes when booting and Gnome is loading:

Code: Select all
Jun  1 13:43:55 workstation unix: [ID 836849 kern.notice]
Jun  1 13:43:55 workstation ^Mpanic[cpu0]/thread=ffffff018b675aa0:
Jun  1 13:43:55 workstation genunix: [ID 683410 kern.notice] BAD TRAP: type=e (#pf Page fault) rp=ffffff0006674600 addr=ffffff019512f676
Jun  1 13:43:55 workstation unix: [ID 100000 kern.notice]
Jun  1 13:43:55 workstation unix: [ID 839527 kern.notice] gnome-settings-d:
Jun  1 13:43:55 workstation unix: [ID 753105 kern.notice] #pf Page fault
Jun  1 13:43:55 workstation unix: [ID 532287 kern.notice] Bad kernel fault at addr=0xffffff019512f676
Jun  1 13:43:55 workstation unix: [ID 243837 kern.notice] pid=602, pc=0xfffffffff7e78d27, sp=0xffffff00066746f0, eflags=0x10282
Jun  1 13:43:55 workstation unix: [ID 211416 kern.notice] cr0: 8005003b<pg> cr4: 6f8<xmme>
Jun  1 13:43:55 workstation unix: [ID 624947 kern.notice] cr2: ffffff019512f676
Jun  1 13:43:55 workstation unix: [ID 625075 kern.notice] cr3: b78bf000
Jun  1 13:43:55 workstation unix: [ID 625715 kern.notice] cr8: c
Jun  1 13:43:55 workstation unix: [ID 100000 kern.notice]
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       rdi: ffffff019512f000 rsi:                0 rdx:            40000
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       rcx:                2  r8: ffffff019512f676  r9: ffffff0193da3808
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       rax:                0 rbx:         40000003 rbp: ffffff0006674720
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       r10: ffffff0193fd02c8 r11:                0 r12: ffffff0194ca6cc0
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       r13:       fe00000013 r14: ffffff0194ca6cc0 r15:                0
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       fsb:                0 gsb: fffffffffbc259f0  ds:               4b
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]        es:               4b  fs:                0  gs:              1c3
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]       trp:                e err:                2 rip: fffffffff7e78d27
Jun  1 13:43:55 workstation unix: [ID 592667 kern.notice]        cs:               30 rfl:            10282 rsp: ffffff00066746f0
Jun  1 13:43:55 workstation unix: [ID 266532 kern.notice]        ss:               38
Jun  1 13:43:55 workstation unix: [ID 100000 kern.notice]
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff00066744e0 unix:die+ea ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff00066745f0 unix:trap+13b9 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674600 unix:cmntrap+e9 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674720 osscommon:oss_memset+37 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674760 osscommon:audio_reset_adev+fd ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff00066747f0 osscommon:oss_audio_ioctl+1d2 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674830 osscommon:stop_engines+92 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674890 osscommon:vmix_close+124 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff00066748d0 osscommon:oss_audio_release+10b ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674920 osscommon:oss_close+16a ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674950 genunix:dev_close+40 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff00066749a0 specfs:device_close+d1 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674a30 specfs:spec_close+168 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674ab0 genunix:fop_close+6e ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674b10 genunix:ldi_close+c2 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674b50 sadasupport:sadasupport_close+14b ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674bc0 genunix:qdetach+bf ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674c60 genunix:strclose+357 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674cb0 specfs:device_close+b8 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674d40 specfs:spec_close+168 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674dc0 genunix:fop_close+6e ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674e00 genunix:closef+59 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674ea0 genunix:closeandsetf+458 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674ec0 genunix:close+14 ()
Jun  1 13:43:55 workstation genunix: [ID 655072 kern.notice] ffffff0006674f10 unix:brand_sys_sysenter+1e6 ()
Jun  1 13:43:55 workstation unix: [ID 100000 kern.notice]


2. Sometimes I can get it working (failsafe session, logging into Gnome again) but then I have no sound. I tried to switch on and off every switch in ossxmix but without any luck. Here is the output of ossmix:

Code: Select all
$ ossmix
Selected mixer 0/High Definition Audio STAC9221 A1
Known controls are:
jack.white.mode1 <front> (currently front)
jack.white.front <both>[:<rightvol>] (currently 86.1:86.1 dB)
jack.int-white.mode <center> (currently center/LFE)
jack.int-white.center/lfe <both>[:<rightvol>] (currently 86.1:86.1 dB)
jack.white.mode2 <side> (currently input)
jack.white.side <both>[:<rightvol>] (currently 86.1:86.1 dB)
jack.int-spdifout.mode <spdif> (currently adat)
record.rec1.rec1 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec1 <both>[:<rightvol>] (currently 19.4:19.4 dB)
record.rec2.rec2 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec2 <both>[:<rightvol>] (currently 19.4:19.4 dB)
misc <28> (currently -28.-8dB)
vmix0-src <Fast> (currently Fast)
vmix0-vol <monovol> (currently 25.0 dB)
vmix0-out1 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm7 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out2 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm8 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out3 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm9 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out4 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm10 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out5 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm11 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out6 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm12 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out7 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm13 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out8 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm14 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out9 <leftVU>:<rightVU>] (currently 0:0)
vmix0-in <leftVU>:<rightVU>] (currently 0:0)


Any suggestions?

- twisti
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby cesium » Sun Jun 01, 2008 1:20 pm

You could try the OSS 4.1 testing version..

(get mercurial)
hg clone http://mercurial.opensound.com
(sometimes the site has DNS errors. If so, add
82.118.207.57 mercurial.opensound.com to /etc/hosts),

and follow from http://www.opensound.com/wiki/index.php ... 2C_current
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby twisti » Sun Jun 01, 2008 1:27 pm

Is it possible to build OSS with GCC?
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby cesium » Sun Jun 01, 2008 1:38 pm

Yes, that's how it's typically built on most systems. (Also it's mentioned in http://www.opensound.com/wiki/index.php ... ource_code).

[edit: Discussed on IRC, but GCC doesn't seem to work]
Last edited by cesium on Sun Jun 01, 2008 3:32 pm, edited 1 time in total.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby twisti » Sun Jun 01, 2008 2:01 pm

configure went OK, but make build does not:

Code: Select all
# make build
sh build.sh
cp: cannot stat `i386/target/bin/*': No such file or directory
cp: cannot stat `i386/target/sbin/*': No such file or directory
cp: cannot stat `devlist.txt': No such file or directory
cp: cannot stat `devlist.txt': No such file or directory
done amd64 build.sh ddksample i386 Makefile origdir prototype
build.sh: line 227: test: too many arguments
done ossdetect
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby cesium » Sun Jun 01, 2008 2:09 pm

Well, does target/bin exist anywhere? What files does it contain? And does /etc/oss exist? What files does it contain?
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby twisti » Sun Jun 01, 2008 2:14 pm

cesium wrote:Well, does target/bin exist anywhere? What files does it contain?


Code: Select all
-bash-3.2# ls i386/target/bin/
-bash-3.2# ls amd64/target/bin/
-bash-3.2#


cesium wrote:And does /etc/oss exist? What files does it contain?


Code: Select all
# ls -l /etc/oss/
total 15
-rw-r--r-- 1 root root  7489 2008-03-24 12:27 devices.list
-rw-r--r-- 1 root other  494 2008-06-01 12:25 driver_aliases.removed
-rw-r--r-- 1 root root    13 2008-03-24 12:27 forceload.conf
-rw-r--r-- 1 root other  181 2008-06-01 12:38 installed_drivers
-rw-r--r-- 1 root other  596 2008-06-01 12:38 legacy_devices
-rw-r--r-- 1 root root    19 2008-03-24 12:27 userdefs
-rw-r--r-- 1 root root    25 2008-03-24 12:27 version.dat


These are the files from the b1015 install.

PS: Is there somewhere an IRC channel?
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby cesium » Sun Jun 01, 2008 2:32 pm

Yes: #oss on freenode. Announced here.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby twisti » Tue Jun 03, 2008 12:17 pm

We talked on IRC a bit, but I was not able to build OSS with GCC.
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby twisti » Wed Jun 11, 2008 7:40 pm

OK, I finally decided to install OpenSolaris completely and I also have now the Sun Studio compiler, but nothing changed:

Code: Select all
<snip>
Directory preparation complete.
Build ID will be 080509
# make build
sh build.sh
cp: cannot access i386/target/bin/*
cp: cannot access i386/target/sbin/*
chmod: WARNING: can't access prototype/usr/sbin/*
cp: cannot access devlist.txt
cp: cannot access devlist.txt
done amd64 build.sh ddksample i386 Makefile origdir prototype txt2man
done amd64 build.sh ddksample i386 Makefile origdir prototype txt2man
done ossdetect


Can anyone tell how the Solaris drivers are built?
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby twisti » Wed Jun 11, 2008 7:47 pm

Ahh,
Code: Select all
# make package

actually builds it. Strange.
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby Ionic » Wed Jun 11, 2008 8:10 pm

Hi twisti,

could you please do

Code: Select all
make clean; make > make.log 2>&1; make clean; make package > make-package.log 2>&1


and post the resulting files either here or on http://oss.pastebin.com/ (be sure to set your pastes life time to "forever" and keep in mind that the output will be quite big)?

I think the output might be quite interesting when tracking down problems. :)

Have a good night (10.10pm here),


-Ionic
Ionic
 
Posts: 14
Joined: Wed Jul 25, 2007 5:05 pm
Location: Germany

Postby twisti » Wed Jun 11, 2008 9:01 pm

The package does build OK now. I just read somewhere to run
Code: Select all
# make build

what seems to be outdated or broken.

I'm now trying to compile and install the Mercurial tip version, as I still have the problem that there is no sound output. Any idea what may be the problem here?

Btw., how can I enable the build of ossxmix?

- twisti
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Postby cesium » Wed Jun 11, 2008 9:11 pm

A. You can build ossxmix manually:
"cc `pkg-config --libs --cflags gtk+-2.0` -oossxmix *.c -I/usr/lib/oss/include/sys" in ossxmix source directory (cmd/ossxmix/).
(The last -I is for "soundcard.h". You may need a different directory for the last -I if you don't have soundcard.h there, maybe -I../../include/sys).
You can than put it in target/bin if neccesary, and have oss install it for you.
(For example, Archlinux package builds ossxmix manually: http://aur.archlinux.org/packages/oss-l ... e/PKGBUILD)

B. Did the Solaris audiohd driver ever work for you?
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby twisti » Wed Jun 11, 2008 9:37 pm

cesium wrote:A. You can build ossxmix manually:
"cc `pkg-config --libs --cflags gtk+-2.0` -oossxmix *.c -I/usr/lib/oss/include/sys" in ossxmix source directory (cmd/ossxmix/).
(The last -I is for "soundcard.h". You may need a different directory for the last -I if you don't have soundcard.h there, maybe -I../../include/sys).
You can than put it in target/bin if neccesary, and have oss install it for you.
(For example, Archlinux package builds ossxmix manually: http://aur.archlinux.org/packages/oss-l ... e/PKGBUILD)

That worked, thanks. When I run osstest now I can't see any output on any of the devices!?!? But that worked with the v4.0 release.

B. Did the Solaris audiohd driver ever work for you?

No: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6710006
twisti
 
Posts: 14
Joined: Sun Jun 01, 2008 12:10 pm

Next

Return to Solaris

Who is online

Users browsing this forum: No registered users and 4 guests