Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: AmatCoder on March 03, 2012, 04:23:00 AM
-
Is there any reason to tce.installed script from alsa.tcz does not use depmod?
Right now, if we load alsa.tcz and run /usr/local/etc/init.d/alsasound start modules are not loaded and 'no such file' error raises.
-
depmod is run any time that kernel module extensions are loaded. And depmod.tcz gets loaded as it is needed by alsa-modules-`uname -r`-tinycore.tcz. It works fine here.
Did you use the appbrowser or t"ce-load -iw alsa.tcz", or did you download alsa.tcz manually?
-
Thanks for reply. Consider the following sequence:
tc@box:~$ tce-load -i alsa
depmod.tcz: OK
alsa-config.tcz: OK
ncurses-common.tcz: OK
ncurses.tcz: OK
libpci.tcz: OK
pci-utils.tcz: OK
libasound.tcz: OK
i2c-3.0.3-tinycore.tcz: OK
v4l-dvb-3.0.3-tinycore.tcz: OK
input-joystick-3.0.3-tinycore.tcz: OK
alsa-modules-3.0.3-tinycore.tcz: OK
alsa.tcz: OK
tc@box:~$ sudo /usr/local/etc/init.d/alsasound start
amixer: Mixer attach default error: No such file or directory
Something went wrong, sound was not set up.
tc@box:~$ sudo depmod -a
tc@box:~$ sudo /usr/local/etc/init.d/alsasound start
Starting sound driver: snd-intel8x0
tc@box:~$
1) I load alsa with tce-load -i alsa
2) I try alsasound script. Failed:
amixer: Mixer attach default error: No such file or directory
Something went wrong, sound was not set up.
3) I made depmod -a manually.
4) I repeat alsasound script. Now it is working:
Starting sound driver: snd-intel8x0
-
Ok, I will add depmod to the /usr/local/tce.installed/alsa startup script, apparently the current setup works for some or most and not for others.
-
I wonder if the module detection's broken? AmatCoder, could you try instead of depmod and the startup script to run "modprobe snd-intel8x0" after loading alsa?
-
I will take another look at the alsasound script and make sure it is still working as expected.
-
I wonder if the module detection's broken? AmatCoder, could you try instead of depmod and the startup script to run "modprobe snd-intel8x0" after loading alsa?
If I try "modprobe snd-intel8x0" after loading alsa.tzc nothing happens...No sound and nothing into dmesg.
Let me put some dmesg logs here:
1) "tce-load -i alsa"
intel_rng: FWH not detected
Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
Intel ICH 0000:00:1f.5: setting latency timer to 64
intel_rng: FWH not detected
intel8x0_measure_ac97_clock: measured 51690 usecs (2491 samples)
intel8x0: clocking to 48000
2) "sudo modprobe snd-intel8x0" <- nothing is added to log.
3) "sudo /usr/local/etc/init.d/alsasound start" <- Error *No such file or directory*
Intel ICH 0000:00:1f.5: PCI INT B disabled
isa cs4231.0: please specify port
isa sb8.0: please specify irq
no AD1816A based soundcards found.
no Avance Logic based soundcards found
4) "sudo depmod -a" <- nothing is added to log.
5) "sudo /usr/local/etc/init.d/alsasound start" <- Now working
Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
Intel ICH 0000:00:1f.5: setting latency timer to 64
intel8x0_measure_ac97_clock: measured 53227 usecs (2565 samples)
intel8x0: clocking to 48000
Ok, I will add depmod to the /usr/local/tce.installed/alsa startup script, apparently the current setup works for some or most and not for others.
I think that some people load alsaconf.tcz in conjunction with (or instead of) alsa.tcz...That works because tce.intalled script from alsaconf.tcz has "depmod -a" command into.
Thanks to you both for your replies.
-
depmod -a is added to alsa.tcz tce.installed script, it can't hurt.
Update alsa.tcz and see if that makes the init.d/alsasound script work.
-
I have downloaded new alsa.tcz (manually, update via appsaudit seems not working right now...) and it is working fine now.
tc@box:~$ tce-load -i alsa
depmod.tcz: OK
alsa-config.tcz: OK
ncurses-common.tcz: OK
ncurses.tcz: OK
libpci.tcz: OK
pci-utils.tcz: OK
libasound.tcz: OK
i2c-3.0.3-tinycore.tcz: OK
v4l-dvb-3.0.3-tinycore.tcz: OK
input-joystick-3.0.3-tinycore.tcz: OK
alsa-modules-3.0.3-tinycore.tcz: OK
alsa.tcz: OK
tc@box:~$ sudo /usr/local/etc/init.d/alsasound start
Starting sound driver: snd-intel8x0
tc@box:~$
Just one last question: Have you considered the possibility of running alsasound script from tce.installed? So alsa would be automagically initialized when loading, like OSS...
Regards and thanks for your hard work with TC.
-
Glad it works now.
But to run alsasound automatically would perhaps not be wanted by those who have to run alsaconf to get the desired results. And many who have newer hardware don't have to run alsasound at all, alsa.tcz just works for them.
So given that, it is best left to be run by those who need it, manually or from /opt/bootlocal.sh.
-
Thanks for testing. The module detection's fine, it's the fact that alsasound required GNU depmod to have run.
-
hmm, not sure if it occurred in this update or not, but:
$ cat /usr/local/etc/udev/rules.d/90-alsa-restore.rules
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS=="card*", \
RUN+="/usr/sbin/alsactl restore $attr{number}"
alsactl is in /usr/local/sbin
-
Fixed and uploaded the rules file.