Tiny Core Linux
General TC => General TC Talk => Topic started by: AlejandroPadrino on June 05, 2019, 05:37:58 PM
-
Hello,
the last problem found before closing the custom remastered TC 4.1 tinycore.gz is about alsa driver. After merging into filesystem alsa.tcz and related files and dependencies alsa does not start. Command sudo alsactl init shows me there is no sound card. Booting TC 4.1 and loading alsa.tcz from application manager runs fine, but I don't know what to do to start alsa driver. Anyone can help?
Thank you. :-)
-
Many years ago I had the same problem in TC 1.x , and I simply placed
alsa.tcel
alsa.tcel.dep
alsa.tcel.md5.txt
alsa_modules.tcem
alsa_modules.tcem.md5.txt
in /tmp/tce/optional
And add this to bootlocal.sh, but in your case it will be probaby a little diferent.
sleep 4
tce-load -i alsa.tcz
modprobe snd_pcm_oss
modprobe snd_mixer_oss
modprobe snd_ac97_codec
modprobe snd_via82xx.
modprobe snd_pcm
modprobe sind_page_alloc
amixer set Headphone 84%
amixer set Headphone unmute
amixer set PCM 35%
amixer set PCM unmute
-
Hi AlejandroPadrino
Did you incorporate the alsa.tcz startup script located at:
/usr/local/tce.installed/alsa
-
Hello Rich,
yes, alsa startup script is located in /usr/local/tce.installed
-
Hello Neonix,
I will try your code, thank you. All alsa.tcz related modules and dependencies are included into main filesystem.
-
Hi AlejandroPadrino
Hello Rich,
yes, alsa startup script is located in /usr/local/tce.installed
You said:
... After merging into filesystem alsa.tcz and related files and dependencies ...
If I understand correctly, those extensions are no longer installed by tce-load , but part of the initrd. Normally tce-load would
execute that script. If you are not currently calling the script to execute, try adding this to you /opt/bootlocal.sh file:
/usr/local/tce.installed/alsa
Place it near the beginning of the file so it executes before any alsa commands you may have in that file. Also, make sure that
/usr/local/tce.installed/alsa is executable.
-
Rich: I will try your code, thank you. :-)
Neonix: modprobe -v sind_page_alloc returns that module does not exist. Before this error, errors returned are these modules does not exist in modules.dep and I find for this file. Found at /lib/modules and copy all files to main filesystem, to rebuild tinycore.gz. After this alsamixer runs, but opening VLC for playing a movie returns error at could not open default audio device, incorrect syntax. Selecting Alsa audio output shows me that can't open soundcard Intel. :-(
-
Hello Rich,
the command appears to be loaded, mixer runs, but VLC can't open default sound device. Mixer runs but sound is not tested.
-
try this and tell us do you hear a sound:
tce-load -iw alsa-config
speaker-test
if not try this 2 commands and paste result here
lsmod
dmesg
-
There are perhaps a couple of things to think about:
* does your hardware have hdmi sound?
* if you have hdmi sound, does it appear as the default?
If the answer to both of the above is yes, you will need to edit modprobe.conf so that hdmi is not the default.
Note also, that if you wish to test various scenarios, alsa-config needs to be loaded before alsa.
-
Suppossed I can try this afternoon. I know how to change default audio device. In that computer there is no hdmi, but is generic plattform to use in other computers who haves hdmi port. I know the alsa-config.tcz issue, but can't do in this case because all audio files and dependencies are loaded into tinycore.gz filesystem.
-
well ... tryed. :-(
The problem found is TC 4.1 boot procedure does not execute /opt/bootsync.sh and /opt/bootlocal.sh files. I try to change owner in /opt folder and files to tc:staff, and change files mode to 775. No one file in /opt folder was executed. What to do now?
:-(
-
Hi AlejandroPadrino
Unless you changed /etc/init.d/tc-config , you will see /opt/bootsync.sh gets started right near the end of that file:
tc@box:~$ tail /etc/init.d/tc-config
/sbin/loadcpufreq 2>/dev/null &
/opt/bootsync.sh
[ -n "$NOAUTOLOGIN" ] && echo "booting" > /etc/sysconfig/noautologin
if [ -n "$PAUSE" ]; then
echo -n "${BLUE}Boot time configuration completed. Press <Enter> to continue.${NORMAL}"
read junk
fi
tc@box:~$
The owner and permissions should be root:staff and 775:
tc@box:~$ ls -l /opt/bootsync.sh
-rwxrwxr-x 1 root staff 420 Jun 4 2015 /opt/bootsync.sh
tc@box:~$ ls -l /opt/bootlocal.sh
-rwxrwxr-x 1 root staff 132 Feb 28 2012 /opt/bootlocal.sh
tc@box:~$
The first line in both of those files has to be:
#!/bin/sh
-
Thank you, Rich, now sound is running. :-)
But now there is a new ghost hunting: VLC says QT4 & Skin plugins are corrupt. This error does not appears before. :-(
after editing /etc/init.d/tc-config and changing owner/permissions /opt/bootsync.sh file is launched at boot.
-
Hi AlejandroPadrino
... after editing /etc/init.d/tc-config and changing owner/permissions /opt/bootsync.sh file is launched at boot.
What about /opt/bootlocal.sh ? The last line in /opt/bootsync.sh launches /opt/bootlocal.sh and should look like this:
/opt/bootlocal.sh &
-
but tracing with echo command appears not to be launched. modified tc-config, bootsync.sh and bootlocal.sh to trace with echo commands. all is ok. :')
except vlc.
-
VLC plugins error solved now. Not appears to be TC 4.1 problem. The solve is startup commandline:
vlc --reset-plugins-cache
Thank you to all. ;-)