Busybox and automatic module loading
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this - eg neither /etc/modules or /etc/modules.conf appear to be handled.
I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
Adrian
Quoted 10 lines · Adrian McMenamin
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this - eg neither
/etc/modulesor/etc/modules.confappear to be handled.I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
it isnt busybox's job to load modules automatically and thus there is nothing in there for it. then again, i dont see why it would matter ... just do modprobe <the alsa driver> and there's nothing else to be done. -mike
Quoted 9 lines · Mike Frysinger
Quoted 8 lines · Adrian McMenamin
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this - eg neither
/etc/modulesor/etc/modules.confappear to be handled.
Quoted 6 lines
Quoted 2 lines
I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
it isnt busybox's job to load modules automatically and thus there is nothing in there for it. then again, i dont see why it would matter ... just do
modprobe <the alsa driver>and there's nothing else to be done.
Well, obviously I can load the module manually - as that is how I get the oss emulation to work.
ALSA seems to require various configuration settings to work and that is what I am trying to get to work.
I took one of the init.d scripts on my x86 box, chopped it down slightly and loaded that: now the modules load but the alias commands/settings are all rejected: so more work needs to be done.
Quoted 10 lines · Adrian McMenamin
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this - eg neither
/etc/modulesor/etc/modules.confappear to be handled.I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
you still having troubles with the userspace alsa stuff ? -mike
Quoted 5 lines · Mike Frysinger
Quoted 4 lines · Adrian McMenamin
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
Quoted 8 lines
Quoted 6 lines
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this - eg neither
/etc/modulesor/etc/modules.confappear to be handled.I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
you still having troubles with the userspace alsa stuff ?
Yes. I think I've more or less convinced people I am building the thing properly now, but it still won't work as alsa.
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
I could try to debug alsa-lib but even its creators admit it's pretty hard to digest.
Quoted 10 lines · Adrian McMenamin
Quoted 9 lines · Mike Frysinger
Quoted 8 lines · Adrian McMenamin
I am struggling to get alsa (userland) to work on my Dreamcast - the kernel side works nicely when using oss emulation but I cannot get the pure alsa stuff - which relies on the alsa-lib - to work at all.
I *think* this is due to not being able to configure the modules automatically and I cannot figureout any way to get Busybox to do this
- eg neither/etc/modulesor/etc/modules.confappear to be handled.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
I suppose I could hack the init in some way to fix this, but I wonder if someone here has had this problem and knows how to get round it?
you still having troubles with the userspace alsa stuff ?
Yes. I think I've more or less convinced people I am building the thing properly now, but it still won't work as alsa.
are you generating the device nodes by hand or relying on something else ? mdev currently will not place the device nodes in a subdir as would be required by alsa-lib.
Quoted 3 lines
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
are you using uClibc or glibc ? we're cross-compiling alsa-lib for Blackfin/uClibc and it seems to be working for us. our drivers are varying degrees of working, but that is a driver problem ;)
Quoted 2 lines
I could try to debug alsa-lib but even its creators admit it's pretty hard to digest.
so it is
-mike
Quoted 7 lines · Mike Frysinger
Quoted 1 line · Adrian McMenamin
On Tue, 2008-01-08 at 00:57 -0500, Mike Frysinger wrote:
are you generating the device nodes by hand or relying on something else ? mdev currently will not place the device nodes in a subdir as would be required by alsa-lib.
No, I'm using udev. The module loading stuff was not the issue I'm sure anyway. And the OSS emulation appears to work perfectly.
Quoted 9 lines
Quoted 4 lines
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
are you using uClibc or glibc ? we're cross-compiling alsa-lib for Blackfin/uClibc and it seems to be working for us. our drivers are varying degrees of working, but that is a driver problem ;)
uClibc. I suppose my issue might be driver related, but if so nobody can point me as to where. And, as I say, the OSS emulation works.
Maybe you could point me to the configure script you are using?
Quoted 5 lines
Quoted 2 lines
I could try to debug alsa-lib but even its creators admit it's pretty hard to digest.
so it is
-mike
Quoted 10 lines · Adrian McMenamin
Quoted 6 lines · Mike Frysinger
Quoted 1 line · Adrian McMenamin
On Tue, 2008-01-08 at 00:57 -0500, Mike Frysinger wrote:
are you generating the device nodes by hand or relying on something else ? mdev currently will not place the device nodes in a subdir as would be required by alsa-lib.
No, I'm using udev. The module loading stuff was not the issue I'm sure anyway. And the OSS emulation appears to work perfectly.
i'd just build everything into the kernel except for the module you're developing ... a lot simpler that way
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
Quoted 8 lines
Quoted 3 lines
are you using uClibc or glibc ? we're cross-compiling alsa-lib for Blackfin/uClibc and it seems to be working for us. our drivers are varying degrees of working, but that is a driver problem ;)
uClibc. I suppose my issue might be driver related, but if so nobody can point me as to where. And, as I say, the OSS emulation works.
Maybe you could point me to the configure script you are using?
make sure you turn off version stuff: --with-versioned=no -mike
Quoted 9 lines · Mike Frysinger
Quoted 8 lines · Adrian McMenamin
Quoted 6 lines · Mike Frysinger
Quoted 1 line · Adrian McMenamin
On Tue, 2008-01-08 at 00:57 -0500, Mike Frysinger wrote:
are you generating the device nodes by hand or relying on something else ? mdev currently will not place the device nodes in a subdir as would be required by alsa-lib.
Quoted 6 lines
Quoted 2 lines
No, I'm using udev. The module loading stuff was not the issue I'm sure anyway. And the OSS emulation appears to work perfectly.
i'd just build everything into the kernel except for the module you're developing ... a lot simpler that way
Why? I'm not sure I follow what you mean.
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
are you using uClibc or glibc ? we're cross-compiling alsa-lib for Blackfin/uClibc and it seems to be working for us. our drivers are varying degrees of working, but that is a driver problem ;)
Quoted 6 lines
Quoted 4 lines
uClibc. I suppose my issue might be driver related, but if so nobody can point me as to where. And, as I say, the OSS emulation works.
Maybe you could point me to the configure script you are using?
make sure you turn off version stuff: --with-versioned=no
Is this for alsa-lib or something else?
Adrian
Quoted 10 lines · Adrian McMenamin
Quoted 9 lines · Mike Frysinger
Quoted 8 lines · Adrian McMenamin
Quoted 6 lines · Mike Frysinger
Quoted 1 line · Adrian McMenamin
On Tue, 2008-01-08 at 00:57 -0500, Mike Frysinger wrote:
are you generating the device nodes by hand or relying on something else ? mdev currently will not place the device nodes in a subdir as would be required by alsa-lib.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
No, I'm using udev. The module loading stuff was not the issue I'm sure anyway. And the OSS emulation appears to work perfectly.
i'd just build everything into the kernel except for the module you're developing ... a lot simpler that way
Why? I'm not sure I follow what you mean.
because then there is no question of whether you loaded things properly ... they're built into the kernel, end of story
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Maybe something wrong with my driver, (though oss emulation works very well), but nobody is being very communicative. I don't think there is much cross compiling of alsa going on out there!
are you using uClibc or glibc ? we're cross-compiling alsa-lib for Blackfin/uClibc and it seems to be working for us. our drivers are varying degrees of working, but that is a driver problem ;)
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
uClibc. I suppose my issue might be driver related, but if so nobody can point me as to where. And, as I say, the OSS emulation works.
Maybe you could point me to the configure script you are using?
make sure you turn off version stuff: --with-versioned=no
Is this for alsa-lib or something else?
yes, for alsa-lib ... if you try to use symbol versioning with alsa-lib under uClibc (since uClibc does not handle symbol versioning information), it wont work properly
-mike
Quoted 4 lines · Mike Frysinger
yes, for alsa-lib ... if you try to use symbol versioning with alsa-lib under uClibc (since uClibc does not handle symbol versioning information), it wont work properly
-mike
You got my hopes there, but no, that's not it :(
Adrian