Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: sbp on September 11, 2014, 07:45:52 AM
-
Hi Bela
Today I started using piCore6 build on kernel 3.16.1. This is my findings so far:
The good:
Wifi is working fine with both my realtek and ralink wifi adaptors.
It is booting fine (I haven't noticed a significant change)
packages (alsa and wifi and firmware) are installed fine
The bad:
I can't get alsa working.
I started from scratch with a new system - so no old stuff around.
However, I can't see any soundcards. It doesn't change if I plug in an USB sound card:
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:3718:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:277: control open (0): No such file or directory
I then noticed that the onboard sound driver snd_bcm_2835 wasn't loaded, so I did a: sudo modprobe snd_bcm2835 - but this did not change the behaviour. No sound cards are listed with aplay -l.
I also noticed that many modules for the I2S-DACs are loaded automatically after a boot. That is probably not needed.
tc@box:~$ lsmod
Module Size Used by Tainted: G
r8188eu 662129 0
snd_soc_pcm512x_i2c 1909 0
snd_soc_pcm512x 7887 1 snd_soc_pcm512x_i2c
snd_soc_wm8804 7683 0
snd_soc_bcm2708_i2s 6100 0
snd_soc_core 119786 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_bcm2708_i 2s
snd_pcm_dmaengine 4530 1 snd_soc_core
snd_pcm 78712 2 snd_soc_core,snd_pcm_dmaengine
snd_timer 19947 1 snd_pcm
snd_compress 7811 1 snd_soc_core
snd 56198 4 snd_soc_core,snd_pcm,snd_timer,snd_compress
regmap_spi 1404 1 snd_soc_wm8804
regmap_i2c 1960 2 snd_soc_pcm512x_i2c,snd_soc_wm8804
regmap_mmio 2410 1 snd_soc_bcm2708_i2s
spi_bcm2708 4958 0
i2c_bcm2708 4663 0
Regards
Steen
-
Hi Steen
thanks for feedback. Regarding sound, I tested ALSA using the SoC sound device with analog output, it is working as expected.
Modules are loaded automatically by the kernel. Maybe they are not needed, but lets keep as it is and see 3.16.2 Also you can report it as an issue at GITHUB.
I will check with a standard low-end USB sound card.
All together it looks good.
-
Hi Bela.
So you can see the soundcard using aplay-l ?
Then I think I will start with a complete format of my SD-card, as there must be a problem at my end.
Steen
-
So you can see the soundcard using aplay-l ?
Not tested yet. Hopefully today I can try.
-
I have a KÖNIG USB adapter which is a cheap one with mono mic and stereo headphone output:
(http://www.rufusz.hu/Konig_hangkartya_Virtual_Sound_Controller_USB_-i35177.jpg)
It is available with different names. Connected to RPi via powered USB HUB it is automatically recognized without any configuration or setting:
# lsusb
Bus 001 Device 008: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 007: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 001 Device 006: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 001 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
33: : timer
# cat /proc/asound/cards
0 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.3.2, full sp
# cat /proc/asound/Device/stream0
C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.3.2, full sp : USB Audio
Playback:
Status: Stop
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 48000, 44100
Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 1
Endpoint: 2 IN (ADAPTIVE)
Rates: 48000, 44100
# lsmod
Module Size Used by Not tainted
ath9k_htc 55059 0
ath9k_common 15164 1 ath9k_htc
ath9k_hw 418262 2 ath9k_htc,ath9k_common
mac80211 343466 1 ath9k_htc
snd_usb_audio 118174 0
ath 20498 3 ath9k_htc,ath9k_common,ath9k_hw
snd_usbmidi_lib 19032 1 snd_usb_audio
snd_soc_pcm512x_i2c 1909 0
snd_soc_wm8804 7683 0
snd_soc_pcm512x 7887 1 snd_soc_pcm512x_i2c
snd_rawmidi 20423 1 snd_usbmidi_lib
cfg80211 213851 4 ath9k_htc,ath9k_common,mac80211,ath
snd_soc_bcm2708_i2s 6100 0
snd_seq_device 6086 1 snd_rawmidi
snd_soc_core 119786 3 snd_soc_wm8804,snd_soc_pcm512x,snd_soc_bcm2708_i2s
snd_hwdep 5805 1 snd_usb_audio
snd_pcm_dmaengine 4530 1 snd_soc_core
snd_pcm 78712 3 snd_usb_audio,snd_soc_core,snd_pcm_dmaengine
snd_timer 19947 1 snd_pcm
snd_compress 7811 1 snd_soc_core
regmap_spi 1404 1 snd_soc_wm8804
snd 56198 9 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_soc_core,snd_hwdep,snd_pcm,snd_timer,snd_compress
regmap_i2c 1960 2 snd_soc_pcm512x_i2c,snd_soc_wm8804
regmap_mmio 2410 1 snd_soc_bcm2708_i2s
spi_bcm2708 4958 0
i2c_bcm2708 4663 0
-
Hi Bela
Just finished with a complete reformat and starting all over again, when I saw your post.
My findings are sort of similar:
tc@box:~$ lsusb
Bus 001 Device 005: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So the C-Media Audio USB adaptor is detected
tc@box:~$ cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
32: [ 1] : control
33: : timer
48: [ 1- 0]: digital audio playback
64: [ 2] : control
80: [ 2- 0]: digital audio playback
81: [ 2- 1]: digital audio playback
Similar to your findings.
tc@box:~$ cat /proc/asound/cards
0 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-bcm2708_usb-1.2, full speed
1 [sndrpihifiberry]: snd_rpi_hifiber - snd_rpi_hifiberry_dac
snd_rpi_hifiberry_dac
2 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
BUT the aplay -l or aplay -L do not function properly:
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:3718:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:277: control open (0): No such file or directory
ALSA lib conf.c:3718:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:1
aplay: device_list:277: control open (1): No such file or directory
ALSA lib conf.c:3718:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:2
aplay: device_list:277: control open (2): No such file or directory
Here it should have listed the available audioncards.
Steen
-
Here:
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
tc@box:~$
-
Hi Bela
I found the problem - it seems like we need to install libasound-bin.tcz.
After having done that aplay -l now list the correct sound cards.
As far as I remember we did not have to manually install this package before, I think maybe it was included in the alsa package?
Steen
-
Right, in 5.x there is a metaextensions which loads all ALSA staff. In 6.0 this meta extension is missing on purpose to find what is the minimum necessary set. In my dev enverinment alsa-util installed additionally to libasound.
I found another issue, speaker-test/aplay is claming for audio group which is not needed even by ALSA team. Will investigate.
-
Hi Bela
Another issue. I can't use SCP transfer via dropbear anymore.
Steen
-
Hi Bela
Another issue. I can't use SCP transfer via dropbear anymore.
Steen
Do you mean you can not connect to an SCP server from the Pi using the scp command or you can't connect with SCP to the Pi running Dropbear?
-
I use winscp from my Windows computer to connect to the raspberry, this is still working fine. However I'm unable to pull and drop files from either the windows side to the raspberry or the other direction. It complains about:
"Cannot execute scp to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP."
Previously this worked without any problems, so maybe it is missing a path to the SCP?
Steen
EDIT: For me it seems similar to this problem: http://forum.tinycorelinux.net/index.php?topic=15142.0
-
Updated dropbear.tcz in 6.x repo, SCP binary added back. It works here, I can transfer files with WINSCP. Try.
-
Thanks - the updated dropbear is working fine now, including SCP.
Steen
-
A new observation:
I'm currently working on supporting the HiFiberryDAC+ cards (that is I2S-audio cards which fit on the respberry+). Now you don't have to solder anything, just add the card to the raspberry.
However, the module for these new cards are not build. And when examining the config file you used I can see that you probably reused a previous config file as the HiFiberry DAC_plus card is not mentioned in the config file.
So when you start building on the new 3.16.2 kernel would you please build this audio card module as well.
Steen
-
So when you start building on the new 3.16.2 kernel would you please build this audio card module as well.
It was already done today morning :) Just putting together the 3.16.2 test
-
Hi Bela
Thanks for the new version (3.16.2) everything is working fine - including the HiFiberry DAC+ card on the raspberry+ board.
Steen
-
Steen
thanks for the feedback. Let's freeze the kernel now for 6.0 and keep it if no serious issue found. Iwill upload the kernel modul tcz's in the next days.
Regards... Bela