Gentoo OSS4 overlay
Moderators: hannu, dev, cesium
Gentoo OSS4 overlay
Hi,
There's a gentoo oss4 overlay at: http://hg.atheme.org/users/majeru/portage-overlay/ . oss-devel-9999 is the latest oss from mercurial, and it also has useful ebuilds for skype-oss and gst-plugins-oss4.
There's a gentoo oss4 overlay at: http://hg.atheme.org/users/majeru/portage-overlay/ . oss-devel-9999 is the latest oss from mercurial, and it also has useful ebuilds for skype-oss and gst-plugins-oss4.
Re: Gentoo OSS4 overlay
cesium wrote:Hi,
There's a gentoo oss4 overlay at: http://hg.atheme.org/users/majeru/portage-overlay/ . oss-devel-9999 is the latest oss from mercurial, and it also has useful ebuilds for skype-oss and gst-plugins-oss4.
Does it have "Production quality" enabled?
Re: Gentoo OSS4 overlay
Nope. But since an ebuild is not a binary package, it can be edited to achieve this...
Re: Gentoo OSS4 overlay
cesium wrote:Nope. But since an ebuild is not a binary package, it can be edited to achieve this...
Have anybody managed to recompile OSS4 for Gentoo, to enable "Production quality"?
Re: Gentoo OSS4 overlay
igorzwx wrote:Have anybody managed to recompile OSS4 for Gentoo, to enable "Production quality"?
What do you mean by "Production quality"? Is there any configure option you would like to enable?
Gentoo ~AMD64 | Audacious
Re: Gentoo OSS4 overlay
Michal wrote:igorzwx wrote:Have anybody managed to recompile OSS4 for Gentoo, to enable "Production quality"?
What do you mean by "Production quality"? Is there any configure option you would like to enable?
I mean exactly that.
How to enable "production quality with extra precision"?
viewtopic.php?f=3&t=3543
It can be easily enabled on Ubuntu and Arch.
Many thanks to Cesium once more.
-
- Member
- Posts: 18
- Joined: Tue Dec 01, 2009 3:35 pm
Re: Gentoo OSS4 overlay
"Production quality" compilation for gentoo can be achieved by next steps:
# layman -a oss-overlay (see layman help for proper configs to /etc/make.conf and other related things).
Usually layman files stored at /var/lib/layman/oss-overlay
# cd /var/lib/layman/oss-overlay/media-sound/oss-devel
/var/lib/layman/oss-overlay/media-sound/oss-devel #
/files
Manifest
oss-devel-4.2_rc1.ebuild
oss-devel-9999.ebuild
I started to play with 9999 ebuild.So next do ebuild oss-devel-9999* unpack
emerge will look at mercurial.opensound.com for any updates and then unpack sources code to /var/tmp/portage/media-sound/oss-devel-9999/work
Next is to do ebuild configure, find /kernel/firmware/include/local_config.h
nd edit CONFIG_OSS_GRC_MAX_QUALITY to 7, save changes and finally do ebuild merge. For some reason mercurial.opensound.com not available few days, I'm getting error that update failed,possibly, due to site is down, is everything ok?
# layman -a oss-overlay (see layman help for proper configs to /etc/make.conf and other related things).
Usually layman files stored at /var/lib/layman/oss-overlay
# cd /var/lib/layman/oss-overlay/media-sound/oss-devel
/var/lib/layman/oss-overlay/media-sound/oss-devel #
/files
Manifest
oss-devel-4.2_rc1.ebuild
oss-devel-9999.ebuild
I started to play with 9999 ebuild.So next do ebuild oss-devel-9999* unpack
emerge will look at mercurial.opensound.com for any updates and then unpack sources code to /var/tmp/portage/media-sound/oss-devel-9999/work
Next is to do ebuild configure, find /kernel/firmware/include/local_config.h
nd edit CONFIG_OSS_GRC_MAX_QUALITY to 7, save changes and finally do ebuild merge. For some reason mercurial.opensound.com not available few days, I'm getting error that update failed,possibly, due to site is down, is everything ok?
Re: Gentoo OSS4 overlay
I've updated the repository address in the oss-devel-9999. Hannu moved it to sourceforge.net.
Gentoo ~AMD64 | Audacious
Re: Gentoo OSS4 overlay
The layman oss-devel ebuild fetched today containes no src_configure().
Configuring is done in src compile. So you can't edit $BUILDDIR/kernel/framework/include/local_config because it is simple not there yet.
When you run ebuild compile and ctrl-c it, you can edit it, but not continue because it calls configure again and bails out because the build dir is not empty.
I tried moving the relevant line to src_configure but the code there never ran. even the echo line didn't..
Configuring is done in src compile. So you can't edit $BUILDDIR/kernel/framework/include/local_config because it is simple not there yet.
When you run ebuild compile and ctrl-c it, you can edit it, but not continue because it calls configure again and bails out because the build dir is not empty.
I tried moving the relevant line to src_configure but the code there never ran. even the echo line didn't..

Last edited by feli33 on Sat May 15, 2010 6:15 pm, edited 1 time in total.
Re: Gentoo OSS4 overlay
WELL just edit /var/tmp/portage/media-sound/oss-devel-9999/work/opensound/configure to
min 3 max 6
after you do ebuild unpack
no need to change localconfig ever during the merge
then you can ebuild merge.
this is actually tested and it works folks..
setting 7 never gives you EXTRA PRECISION mode 6. Even if localconfig is altered.
It is disabled in the source because it causes crash.
min 3 max 6
after you do ebuild unpack
no need to change localconfig ever during the merge
then you can ebuild merge.
this is actually tested and it works folks..
setting 7 never gives you EXTRA PRECISION mode 6. Even if localconfig is altered.
It is disabled in the source because it causes crash.
Re: Gentoo OSS4 overlay
Hey, OSS is refusing to load on my system. I'm running Sabayon, which is a variant of Gentoo. I added oss-overlay to portage, have the oss-devel-9999 ebuild installed, it built fine. When I ran soundon, I got the "failed to disable conflicting sound drivers" error... I've recompiled my kernel without static support for ALSA/legacy OSS, and /var/log/soundon.log says this:
I can't see any modules that're related to sound/OSS.
What do I do? Do I have to make the /dev/mixer, /dev/dsp etc. nodes? Running `modprobe snd_sbxfi` seems to work without error, by the way, there's just nothing created in /dev when I do that...
Is this a problem occuring because I'm using Sabayon, which is a precompiled desktop setup?
EDIT: I see it might be a problem with devfs? Something removed /dev/dspN and /dev/mixer? ALSA was working fine with my soundcards, I just wanted to replace it with OSS4... I tried recreating /dev/dsp and /dev/mixer (and dsp0/mixer0 respectively) using mknod, but it apparently has no effect...
Code: Select all
slashing # cat /var/log/soundon.log
Open Sound System starting Mon May 24 17:00:10 BST 2010
OSS version: 4.2 (b 2002/201005232238)
Kernel version: 2.6.33-sabayon
Kernel vermagic: 2.6.33-sabayon SMP mod_unload modversions
OSS vermagic: 2.6.33-sabayon SMP mod_unload modversions
There still appears to be another sound driver hanging around
Module Size Used by
ch 9422 0
ipv6 234128 26
nvidia 9613847 40
gspca_sonixj 16501 0
gspca_main 17691 1 gspca_sonixj
sn9c102 131570 0
videodev 32351 2 gspca_main,sn9c102
ath5k 112600 0
v4l1_compat 10298 1 videodev
mac80211 133343 1 ath5k
tpm_tis 6749 0
ath 8176 1 ath5k
v4l2_compat_ioctl32 9371 1 videodev
shpchp 24933 0
i2c_ali15x3 4845 0
tpm 9275 1 tpm_tis
i2c_ali1535 4637 0
cfg80211 106069 3 ath5k,mac80211,ath
pci_hotplug 10615 1 shpchp
edac_core 25665 0
i2c_ali1563 5021 0
serio_raw 3455 0
i2c_core 13700 5 nvidia,videodev,i2c_ali15x3,i2c_ali1535,i2c_ali1563
led_class 2229 1 ath5k
k8temp 2949 0
tpm_bios 3880 1 tpm
tg3 107848 0
e1000 91877 0
dm_bbr 8527 0
scsi_wait_scan 717 0
sl811_hcd 8972 0
ohci_hcd 19163 0
uhci_hcd 18829 0
ehci_hcd 31563 0
sx8 12099 0
imm 8925 0
parport 31599 1 imm
pata_pcmcia 9922 0
pcmcia 28693 1 pata_pcmcia
14 sound
CPU0 CPU1
0: 122 10 IO-APIC-edge timer
1: 0 2 IO-APIC-edge i8042
8: 0 55 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
14: 385 10668 IO-APIC-edge pata_ali
15: 478 98731 IO-APIC-edge pata_ali
20: 168 50959 IO-APIC-fasteoi ohci_hcd:usb2
21: 238 59979 IO-APIC-fasteoi ohci_hcd:usb3, ath
22: 272 93252 IO-APIC-fasteoi
23: 297 63120 IO-APIC-fasteoi ehci_hcd:usb1
25: 300 180340 IO-APIC-fasteoi nvidia
35: 197 133708 IO-APIC-fasteoi ahci
40: 0 0 PCI-MSI-edge aerdrv
41: 0 0 PCI-MSI-edge aerdrv
42: 0 0 PCI-MSI-edge aerdrv
NMI: 0 0 Non-maskable interrupts
LOC: 881001 942438 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
PND: 0 0 Performance pending work
RES: 698482 581560 Rescheduling interrupts
CAL: 1561 1151 Function call interrupts
TLB: 9824 8833 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 11 11 Machine check polls
ERR: 0
MIS: 0
Failed to disable conflicting sound drivers
I can't see any modules that're related to sound/OSS.
What do I do? Do I have to make the /dev/mixer, /dev/dsp etc. nodes? Running `modprobe snd_sbxfi` seems to work without error, by the way, there's just nothing created in /dev when I do that...
Is this a problem occuring because I'm using Sabayon, which is a precompiled desktop setup?
EDIT: I see it might be a problem with devfs? Something removed /dev/dspN and /dev/mixer? ALSA was working fine with my soundcards, I just wanted to replace it with OSS4... I tried recreating /dev/dsp and /dev/mixer (and dsp0/mixer0 respectively) using mknod, but it apparently has no effect...
Re: Gentoo OSS4 overlay
You could try to run "modprobe osscore", "modprobe oss_sbxfi", "ossdetect -d", "ossdevlinks" to load it manually (all of these under root). And can you post output of 'lspci -vnn' and of 'cat /proc/devices'?
Re: Gentoo OSS4 overlay
Code: Select all
soundon
Relinking OSS kernel modules for "2.6.33-gentoo-r1 SMP preempt mod_unload "
This may take few moments - please stand by...
OSS build environment set up for REGPARM kernels
Warning: Cannot locate the Linux kernel development package for
Linux kernel version 2.6.33-gentoo-r1
Please install the kernel development package if linking the
OSS modules fails.
The kernel development package may be called kernel-devel, kernel-smp-devel,
kernel-sources, kernel-headers or something like that. Please refer
to the documentation of your Linux distribution if there are any
difficulties in installing the kernel/driver development environment.
For your Linux distribution the right kernel source package
might be kernel-source.
Building module osscore
Failed to compile OSS
make -C /lib/modules/2.6.33-gentoo-r1/build M=/usr/lib64/oss/build modules
make[1]: Entering directory `/usr/src/linux-2.6.33-gentoo-r1'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.33-gentoo-r1'
make: *** [default] Error 2
Relinking the OSS kernel modules failed
some help needed thx
Re: Gentoo OSS4 overlay
Odd. Does /lib/modules/$(uname -r) directory even exist? Maybe emerging module-rebuild might help?
Re: Gentoo OSS4 overlay
yes directory does exist
modules-rebuild did not help
modules-rebuild did not help

Who is online
Users browsing this forum: No registered users and 2 guests