Tiny Core Linux

General TC => General TC Talk => Topic started by: AlejandroPadrino on June 05, 2019, 02:37:58 PM

Title: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 05, 2019, 02: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.  :-)
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: neonix on June 05, 2019, 04:24:04 PM
Many years ago I had the same problem in TC 1.x , and I simply placed
Code: [Select]
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.
Code: [Select]
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
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: Rich on June 05, 2019, 05:03:12 PM
Hi AlejandroPadrino
Did you incorporate the  alsa.tcz  startup script located at:
Code: [Select]
/usr/local/tce.installed/alsa
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 06, 2019, 03:05:59 AM
Hello Rich,

yes, alsa startup script is located in /usr/local/tce.installed
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 06, 2019, 03:07:17 AM
Hello Neonix,

I will try your code, thank you.  All alsa.tcz related modules and dependencies are included into main filesystem.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: Rich on June 06, 2019, 04:21:45 AM
Hi AlejandroPadrino
Hello Rich,

yes, alsa startup script is located in /usr/local/tce.installed

You said:
Quote
... 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:
Code: [Select]
/usr/local/tce.installed/alsaPlace 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.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 06, 2019, 05:19:07 AM
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.  :-(
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 06, 2019, 08:37:16 AM
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.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: neonix on June 07, 2019, 01:42:18 AM
try this and tell us do you hear a sound:
Code: [Select]
tce-load -iw alsa-config
speaker-test
if not try this 2 commands and paste result here
Code: [Select]
lsmod
dmesg
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: Juanito on June 07, 2019, 03:49:25 AM
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.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 07, 2019, 04:07:21 AM
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.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 10, 2019, 04:29:12 AM
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?

:-(
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: Rich on June 10, 2019, 05:21:45 AM
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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
#!/bin/sh
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 10, 2019, 09:31:55 AM
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.
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: Rich on June 10, 2019, 10:58:30 AM
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:
Code: [Select]
/opt/bootlocal.sh &
Title: Re: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 10, 2019, 11:25:08 AM
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.
Title: SOLVED: TC 4.1 remastering tinycore.gz - Problem 2
Post by: AlejandroPadrino on June 12, 2019, 12:21:12 AM
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.  ;-)