WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Report on piCore6 beta and kernel 3.16.1  (Read 6680 times)

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Report on piCore6 beta and kernel 3.16.1
« 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:

Code: [Select]
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.
Code: [Select]
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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #1 on: September 11, 2014, 08:38:13 AM »
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.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #2 on: September 11, 2014, 09:20:12 AM »
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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #3 on: September 11, 2014, 09:26:30 AM »
So you can see the soundcard using aplay-l ?

Not tested yet. Hopefully today I can try.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #4 on: September 11, 2014, 12:00:23 PM »
I have a KÖNIG USB adapter which is a cheap one with mono mic and stereo headphone output:



It is available with different names. Connected to RPi via powered USB HUB it is automatically recognized without any configuration or setting:

Code: [Select]
# 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

Code: [Select]
# cat /proc/asound/devices
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer

Code: [Select]
# 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

Code: [Select]
# 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

Code: [Select]
# 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
« Last Edit: September 11, 2014, 12:04:05 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #5 on: September 11, 2014, 12:20:28 PM »
Hi Bela

Just finished with a complete reformat and starting all over again, when I saw your post.
My findings are sort of similar:
Code: [Select]
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

Code: [Select]
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.

Code: [Select]
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:
Code: [Select]
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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #6 on: September 11, 2014, 12:26:11 PM »
Here:

Code: [Select]
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:~$

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #7 on: September 11, 2014, 12:56:07 PM »
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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #8 on: September 11, 2014, 01:02:14 PM »
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.
« Last Edit: September 11, 2014, 01:04:18 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #9 on: September 11, 2014, 01:43:51 PM »
Hi Bela

Another issue. I can't use SCP transfer via dropbear anymore.

Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #10 on: September 11, 2014, 04:31:02 PM »
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?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #11 on: September 11, 2014, 05:41:47 PM »
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
« Last Edit: September 11, 2014, 05:44:30 PM by sbp »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #12 on: September 12, 2014, 03:06:51 AM »
Updated dropbear.tcz in 6.x repo, SCP binary added back. It works here, I can transfer files with WINSCP. Try.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #13 on: September 12, 2014, 09:13:56 AM »
Thanks - the updated dropbear is working fine now, including SCP.
Steen

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: Report on piCore6 beta and kernel 3.16.1
« Reply #14 on: September 13, 2014, 09:53:33 AM »
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