WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC 4.1 remastering tinycore.gz - Problem 2  (Read 3485 times)

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
TC 4.1 remastering tinycore.gz - Problem 2
« 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.  :-)

Offline neonix

  • Sr. Member
  • ****
  • Posts: 302
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #1 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #2 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

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #3 on: June 06, 2019, 03:05:59 AM »
Hello Rich,

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

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #4 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.
« Last Edit: June 06, 2019, 03:11:35 AM by AlejandroPadrino »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #5 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.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #6 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.  :-(

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #7 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.

Offline neonix

  • Sr. Member
  • ****
  • Posts: 302
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #8 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #9 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.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #10 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.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #11 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?

:-(

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #12 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

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #13 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.
« Last Edit: June 10, 2019, 09:36:56 AM by AlejandroPadrino »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: TC 4.1 remastering tinycore.gz - Problem 2
« Reply #14 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 &