Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to use sound inside a 32bit chroot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Sun Jun 13, 2004 3:57 pm    Post subject: [Solved] How to use sound inside a 32bit chroot? Reply with quote

I followed serveral guides to run unreal-tournamend out of a 32bitchroot. It's now working, but i have no sound, my system:

amd64 3200+
MSI K8T-FIS2R Mainboard
I am using the onboard soundchip: VT8233/A/8235/8237 AC97 Audio
kernel 2.6.5-gentoo-r1
I am using the kernel alsa modules,
alsa stuff:
alsa-lib-1.0.4
alsa-oss-1.0.4
alsa-tools-1.0.4

The syslog is not reporting any errors.
Current i have mounted /tmp and my /home/mbj inside my chroot.
Maybe i have to mount directories into the chroot?
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard


Last edited by m.b.j. on Sun Jun 13, 2004 9:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
naseweis
Apprentice
Apprentice


Joined: 04 Apr 2003
Posts: 159
Location: germany

PostPosted: Sun Jun 13, 2004 4:25 pm    Post subject: Reply with quote

Is proc mounted?
Do other sound-playing apps work inside chroot (mpg123, aplay)?
_________________
Nothing makes a person more productive than the last minute.
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Sun Jun 13, 2004 5:02 pm    Post subject: Reply with quote

there a two way to mount proc
Code:
# mount -t proc proc /opt/32bit/proc

or
Code:
# mount -o bind /proc /opt/32bit/proc


I have tested the first one, but it still not works, i can not test other progs (they are not installed), i now starting the emerge of aplay...
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
zicada
n00b
n00b


Joined: 25 May 2004
Posts: 7

PostPosted: Sun Jun 13, 2004 5:32 pm    Post subject: Reply with quote

For this to work you must compile a kernel inside the chroot with alsa support (built in is fine), it will add its own devices wich our 32bit compatible.
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Sun Jun 13, 2004 5:53 pm    Post subject: Reply with quote

Do i have to unload my 64bit alsa, and load the 32bit alsamodules?
I do not have needed (new) distfiles, and I have a limited flat-rate, so i have to wait, my new megabytes come at the 17.06, ahhhhh!
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
J.M.I.T.
Guru
Guru


Joined: 15 Jan 2003
Posts: 481
Location: München, Germany

PostPosted: Sun Jun 13, 2004 7:48 pm    Post subject: Reply with quote

try to mount /dev in your chroot environment before chroot...e.g.
Code:
mount -o bind /dev /mnt/chroot/dev

and you don't need to compile an additional kernel inside the chroot to get sound working... the chroot will use all your 64bit-devices from /dev when mounted
_________________
Get a life...
Code:
:(){ :|:& };:
Use at own risk...
Back to top
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Sun Jun 13, 2004 8:58 pm    Post subject: Reply with quote

ok, i had followed all of your instruktions, now i have mounted:
Code:

/tmp    ->  /mnt/chroot/tmp
/home  -> /mbj /mnt/chroot/home/mbj
/proc   -> /mnt/chroot/proc


But i still I did not hear something, then i ad my chroot user to the audio group and it works, thx for all help.
_________________
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum