Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: MiniQ9 on August 13, 2011, 08:07:03 AM

Title: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: MiniQ9 on August 13, 2011, 08:07:03 AM
Alsa is not loaded with intel hd audio.
Rollback to v.3.7 solve problem.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 13, 2011, 09:28:22 AM
v3.8 and above uses busybox depmod. GNU depmod has been moved to extensions, depmod.tcz, and may be required by certain extensions, e.g., alsa.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: coreplayer2 on August 13, 2011, 01:30:57 PM
I have a really old system here running 3.8.1 and alsa without issue :)
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: MiniQ9 on August 14, 2011, 05:32:53 AM
I have a really old system here running 3.8.1 and alsa without issue :)
key phrase
intel hd audio.

v3.8 and above uses busybox depmod. GNU depmod has been moved to extensions, depmod.tcz, and may be required by certain extensions, e.g., alsa.
Checked, did not help
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: coreplayer2 on August 14, 2011, 10:08:39 AM
How about OSS ?
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: MiniQ9 on August 14, 2011, 01:28:17 PM
have not tried OSS, just rolled back to 3.7
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: organharry on August 15, 2011, 04:53:28 PM
Hello everybody,

I have the same problem with tc 3.8.1 and alsa and don“t want to switch back to tc.3.7. Are there any tricks to get alsa to work with tc 3.8?

Greetings, organharry
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 15, 2011, 06:30:23 PM
I just checked the depmod.tcz in the repository and it was missing it's startup script.
I have uploaded the correction. Alsa requires depmod.tcz, alsa.tcz.dep file has also been adjusted to indicate such.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: Rich on August 15, 2011, 06:40:50 PM
Hi roberts
I just called up AppBrowser. When I clicked on the Size tab for Alsa.tcz it reports  Error, not found
for the  depmod.tcz  entry.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 15, 2011, 07:16:18 PM
Thanks Rich. Should be a depmod.tcz.tree file now, which provides the size info.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: Rich on August 15, 2011, 07:19:38 PM
Hi roberts
I'm afraid I found two more.  alsa-oss.tcz  and  alsa-plugins.tcz  both report the same error for
alsa-config.tcz
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 16, 2011, 02:25:20 AM
I have repopulated the whole forest. Should not be any missing trees. Thanks again for the heads up.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: Rich on August 16, 2011, 02:39:02 AM
Hi roberts
Maybe I'm doing something wrong, but the size tab reports   Error, not found   for
alsa-driver-2.6.33.3-tinycore.tcz   and   depmod.tcz   for the alsa extensions.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 16, 2011, 10:39:07 AM
Perhaps you are using a mirror? Anyway this has nothing to do with the base and therefore has drifted off topic. If needed it should be continued in the extension area of the forum. To recap: The base now uses busybox depmod applet and the full gnu depmod, which may be required (alsa), is available as the extension, depmod.tcz.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 22, 2011, 08:41:47 AM
i just decided to try tinycore again and 3.8's alsa fails to detect any sound card, 3.6 however works
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 22, 2011, 08:44:19 AM
This has been answered several times and is in the rc and news posting for 3.8.
You need the extension depmod.tcz
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: gerald_clark on August 22, 2011, 09:10:04 AM
The resolution was given in the post just above yours. You need depmod.tcz.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 22, 2011, 09:23:26 AM
depmod is there
http://i.imm.io/8lK5.jpeg
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: gerald_clark on August 22, 2011, 10:39:27 AM
Try putting it before alsa.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 22, 2011, 11:39:26 AM
depmod.tcz need not be before alsa as it is a dependent of alsa.
You should use AppsAudit and update deps, then build database, and check for missing dependencies. As depmod.tcz was also recently updated, one should check for updates to ensure that you are running the latest depmod.tcz

Whenever there is announced changes to the system, it is standard operating procedure to perform the above procedures to ensure proper operation.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: gerald_clark on August 22, 2011, 03:36:17 PM
I missed roberts' previous reply stating that alsa.tcz.dep had been fixed.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 11:33:52 AM
why won't you believe me when i say it doesn't work?

here i am inputing the exact same sequence of commands in both tc 3.7 and 3.8

(http://i.imgur.com/glU3b.jpg) (http://i.imgur.com/qbnaf.jpg)

(http://i.imgur.com/Ioj1d.jpg) (http://i.imgur.com/ioegG.jpg)

lsmod returns the same output in both cases (the order slightly varries but that's not really important, or is it?)
Code: [Select]
Module                  Size  Used by    Not tainted
snd_hda_codec_via      34728  0
snd_hda_codec          33296  1 snd_hda_codec_via
snd_pcm                37628  1 snd_hda_codec
snd_timer              10564  1 snd_pcm
snd                    26200  4 snd_hda_codec_via,snd_hda_codec,snd_pcm,snd_timer
soundcore               2640  1 snd
snd_page_alloc          4016  1 snd_pcm
squashfs               14724 13
scsi_wait_scan           276  0
video                  12712  0
output                   724  1 video
asus_laptop             9180  0
ramzswap               10240  1
backlight               1632  2 video,asus_laptop
ac                      1696  0
battery                 6028  0
loop                    8068 26
serio_raw               2380  0
r8169                  22516  0

and here's some pci

Code: [Select]
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] RS780 Host Bridge [1022:9600]
00:02.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0) [1022:9603]
00:05.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1) [1022:9605]
00:06.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2) [1022:9606]
00:11.0 SATA controller [0106]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] [1002:4390]
00:12.0 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
00:12.1 USB Controller [0c03]: ATI Technologies Inc SB7x0 USB OHCI1 Controller [1002:4398]
00:12.2 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
00:13.0 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
00:13.1 USB Controller [0c03]: ATI Technologies Inc SB7x0 USB OHCI1 Controller [1002:4398]
00:13.2 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 3a)
00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383]
00:14.3 ISA bridge [0601]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d]
00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384]
00:14.5 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration [1022:1200]
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Address Map [1022:1201]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller [1022:1202]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control [1022:1203]
00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 10h Processor Link Control [1022:1204]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M92 [Mobility Radeon HD 4500/5100 Series] [1002:9553]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 03)
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)

Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 28, 2011, 12:34:42 PM
First let me start by stating that I tend not to respond to flame baits of generalizations such as "it doesn't work!"
It should be obvious that details are needed especially when most users have it working.

From the details you posted, I am dismayed that you appear to go out of your way to defeat dependency processing by manually issuing those tce-load commands.

By what you did you disabled the dependency processing built into the system.

All that is needed is tce-load -i alsaconf.tcz

As alsa,tcz is a dependent of alsaconf.tcz and depmod.tcz is a dependent of alsa.tcz. depmod.tcz has a startup script that updates any new modules. By your reversing the loading the alsa modules are never included as depmod was already loaded so obviously would be unaware of any new modules.

Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 01:00:41 PM
i'm sorry, i guess i was unpolite
i did the depmod first since i was told that i needed it in previous posts, anyway, i tried again downloading only alsaconf this gime and the same thing happened

(http://i.imgur.com/VGxfRl.png) (http://i.imgur.com/VGxfR.png)
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 28, 2011, 01:47:23 PM
Please post the contents of your alsa.tcz.dep file.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 02:05:49 PM
alsa-modules-2.6.33.3-tinycore.tcz
libasound.tcz
pci-utils.tcz
ncurses.tcz
depmod.tcz
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 28, 2011, 02:15:36 PM
What is the contents of /usr/local/tce.installed/depmod ?
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 03:18:39 PM
Code: [Select]
sudo ln -f /usr/local/sbin/depmod /sbin/depmod
sync
sudo depmod -a
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 28, 2011, 03:40:19 PM
Are all the sound modules loaded? Check with lsmod?
It was the sound modules that were not being loaded because of the difference in modules.dep file from busybox versus gnu depmod.

What happens when you manually issue

sudo depmod -a
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 03:57:23 PM
the depmod -a command doesn't do anything

i have at least 4 lsmod stages

on the first run snd_hda_intel module gets unloaded, on the second one most snd modules get unloaded

the initial stage (fresh boot)
Code: [Select]
Module                  Size  Used by    Not tainted
squashfs               14724  0
scsi_wait_scan           276  0
ramzswap               10240  1
asus_laptop             9180  0
video                  12712  0
loop                    8068  0
serio_raw               2380  0
r8169                  22516  0
output                   724  1 video
ac                      1696  0
battery                 6028  0
backlight               1632  2 asus_laptop,video

the second stage ( after i installed alsaconf)
Code: [Select]
Module                  Size  Used by    Not tainted
snd_hda_codec_via      34728  1
snd_hda_intel          14480  0
snd_hda_codec          33296  2 snd_hda_codec_via,snd_hda_intel
snd_pcm                37628  2 snd_hda_intel,snd_hda_codec
snd_page_alloc          4016  2 snd_hda_intel,snd_pcm
snd_timer              10564  1 snd_pcm
snd                    26200  5 snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
soundcore               2640  1 snd
squashfs               14724 13
scsi_wait_scan           276  0
ramzswap               10240  1
asus_laptop             9180  0
video                  12712  0
loop                    8068 26
serio_raw               2380  0
r8169                  22516  0
output                   724  1 video
ac                      1696  0
battery                 6028  0
backlight               1632  2 asus_laptop,video

third stage (after i run alsaconf)
Code: [Select]
Module                  Size  Used by    Not tainted
snd_hda_codec_via      34728  0
snd_hda_codec          33296  1 snd_hda_codec_via
snd_pcm                37628  1 snd_hda_codec
snd_page_alloc          4016  1 snd_pcm
snd_timer              10564  1 snd_pcm
snd                    26200  4 snd_hda_codec_via,snd_hda_codec,snd_pcm,snd_timer
soundcore               2640  1 snd
squashfs               14724 13
scsi_wait_scan           276  0
ramzswap               10240  1
asus_laptop             9180  0
video                  12712  0
loop                    8068 26
serio_raw               2380  0
r8169                  22516  0
output                   724  1 video
ac                      1696  0
battery                 6028  0
backlight               1632  2 asus_laptop,video

forth stage (running alsaconf the second time)
Code: [Select]
Module                  Size  Used by    Not tainted
snd_page_alloc          4016  0
squashfs               14724 13
scsi_wait_scan           276  0
ramzswap               10240  1
asus_laptop             9180  0
video                  12712  0
loop                    8068 26
serio_raw               2380  0
r8169                  22516  0
output                   724  1 video
ac                      1696  0
battery                 6028  0
backlight               1632  2 asus_laptop,video
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 28, 2011, 04:12:31 PM
We are barking up the wrong tree. The issue that I was aware of was the modules not loading.
However, the specific extension that you are trying to use does appear to have problems.
I was able to "see" the issue by using:

alsaconf 2>/tmp/errors

This led me to see that a find command was failing as an option being used is not supported by busybox's find.

So, no problem, I loaded findutils.tcz and all should be well. Although that would imply that findutils.tcz should be a required dependent of alsaconf.

Not so, even more of a surprise to me is that alsaconf has been modified to specifically call busybox find !
Editing out that specific busybox call together with the findutils.tcz loaded alsaconf could finally proceed.

This is an extension issue and not a base bug. Will forward to maker.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 28, 2011, 05:22:06 PM
i am still puzzled by the fact that it works in 3.7
also how come nobody else experiences this behavior?

p.s. love your work
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: roberts on August 29, 2011, 03:25:24 PM
As a follow-up...

$ tce-load -iw alsaconf.tcz
$ sudo alsaconf

Should now work as expected.

To answer your question. 3.7 was using a modules.dep file that is consistent with gnu depmod.
3.8 uses busybox's depmod. Some extensions that require modules will have to have depmod.tcz as a dependent and likely a startup script to call depmod -a.
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: ali on August 29, 2011, 11:31:40 PM
you were right, of course
it works now
thank you :)
Title: Re: Tiny/Micro v.3.8 & v.3.8.1 with alsa
Post by: picrard on March 09, 2012, 05:59:31 AM
Thank you I had the same problem and

$ tce-load -iw alsaconf.tcz
$ sudo alsaconf

has fixed it  !