Tiny Core Linux

Tiny Core Base => Raspberry Pi => piCore Test Releases => Topic started by: bmarkus on September 08, 2013, 03:02:02 AM

Title: piCore 5.0.alpha1
Post by: bmarkus on September 08, 2013, 03:02:02 AM
I'm pleased to announce piCore 5.0.alpha1 for the Raspberry Pi. Change log to previous 4.x release:

- common TC 5 script base
- eglibc 2.18
- kernel 3.10.10
- busybox 1.21.1
- zlib 1.2.8
- e2fsprogs 1.42.8
- util-linux 2.23.2
- added bcrypt to base
- dropped scm type extension support
- cleanup, unneded files removed
- file reorganization
- updated Broadcom firmware

Kernel 3.10.10 brings many new features, drivers, etc. Goal of this release is to test new core specially USB and WiFi. Toolchain and Xorg is out of scope. Apps in 4.x repo expected to work, cli apps copied over to 5.x repo (in progress).

Installation method unchanged.

Doownload link: http://tinycorelinux.net/5.x/armv6/piCore-5.0.alpha1.img.gz
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 08, 2013, 04:16:38 AM
Hi bmarkus, thanks for this.

It is god timing, because i have tried the whole morning to build a new kernel (3.10.10), however, I had some problems as some of the modules seems to be located at other places compared to the previous versions.

I will test it and report back.
A few questions:
1. Is the wifi package updated so that it can be installed on this version?
2. And what about the alsa package?
3. Will the dep2tc import tool work now as we are at version 5.0?

Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 08, 2013, 09:56:02 AM
Hi Steen

Quote
1. Is the wifi package updated so that it can be installed on this version?

No, same as in 4.x repo. I referered to Kernel.

Quote
2. And what about the alsa package?

Same as in 4.x repo.

Quote
3. Will the dep2tc import tool work now as we are at version 5.0?

No plan to import debian packages.
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 08, 2013, 03:02:42 PM
SD card image reuploaded, fixing a small bug. If you already downloaded, please download again.

http://tinycorelinux.net/5.x/armv6/piCore-5.0.alpha1.img.gz (http://tinycorelinux.net/5.x/armv6/piCore-5.0.alpha1.img.gz)

http://tinycorelinux.net/5.x/armv6/piCore-5.0.alpha1.img.gz.md5.txt (http://tinycorelinux.net/5.x/armv6/piCore-5.0.alpha1.img.gz.md5.txt)

Title: Re: piCore 5.0.alpha1
Post by: mocore on September 09, 2013, 02:46:07 AM

can any detail be spared on what was fixed changed ? just wandering


thanks ! for updating

Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 09, 2013, 03:05:27 AM

can any detail be spared on what was fixed changed ? just wandering


thanks ! for updating

/usr/lib/libc.so and /usr/libc/libpthread.so was a symlink to lib file instead of being the text config.
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 09, 2013, 10:31:27 AM
Hi bmarkus.

I tested the newest version and it is booting fine, alsa package is downloaded and install fine, however there is a problem somewhere.

Using the command:
Aplay -l
Results in an error stating that no sound card is found.

Same result after I plugged a USB-DAC in the raspberry.

Using aplay -v results in:
Alsa lib confmisc.c:768 (parse card) cannot find card '0'
Alsa lib conf.c:4248:(_snd_config evaluate) function and snd_func_card_driver returned error: no such file or directory
And 6 more lines with similar errors

Steen
Title: Re: piCore 5.0.alpha1
Post by: Gerrelt on September 09, 2013, 11:46:43 AM
Yes, same here, booting fine, and my keyboard suddenly works a lot better too. Don't know why.. but I like it.  :)

But squeezelite isn't working, it's got no sound devices:

Code: [Select]
tc@box:~$ /mnt/mmcblk0p2/tce/squeezelite-armv6hf -l
Output devices:
  null                           - Discard all samples (playback) or generate zero samples (capture)

And I've also tested my RT5370 wifi adapter, and it looks better, but still isn't working.
I noticed after running lsmod -l that the rt modules were not loaded.

So, after some searching, I loaded the modules by executing this:
Code: [Select]
sudo modprobe rt2800lib
sudo modprobe rt2800usb

After that ifconfig showed wlan0, woohoo!  8)

But it still didn't work:

Code: [Select]
tc@box:~$ sudo ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: No such file or directory

There still seems to be a problem with the firmware:

Code: [Select]
tc@box:~$ sudo dmesg -c
[ 2339.613533] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 2399.688346] ieee80211 phy0: rt2x00lib_request_firmware: Error - Failed to request Firmware


Title: Re: piCore 5.0.alpha1
Post by: sbp on September 09, 2013, 12:35:29 PM
I think that you will need to add the firmware manually.

As I read the different threads about the ralink wifi adaptor, you will need to add the firmware from the ralink web page.

Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 09, 2013, 12:54:45 PM
alpha1 looks nice, I'm using a lot. All existing apps from the 4.x repo I tested working as expected. Just tested Alsa with speaker-test, looks OK. Did you install bash? It is needed by alsaconf but not in the .dep list. Please try.

Now the new toolchain with GCC 4.8.1 works also. After some testing it will go to the repo.

Glad to hear WiFi looks better. Hopefully if you can grab the required fw it will work.
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 09, 2013, 09:30:42 PM
Hi bmarkus

I have been using alpha1 a while and it is good, it is responsive and I have had no problems except for the sound issue, which I still have.

I started my making a tce directory by tce-setdrive
Then choose the only option mmcblk0p1

Then tce
Search for alsa, and install alsa (option 7)
Search for bash, and install

Then try alsa, but it can't find any sound card. Even the on board sound card is gone

Tested by: aplay -l

Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 09, 2013, 11:02:30 PM
Alsa: do you have still problems after reboot? Error messages would help.

Title: Re: piCore 5.0.alpha1
Post by: tinypoodle on September 10, 2013, 01:39:28 AM
Alsa: do you have still problems after reboot? Error messages would help.

There's a useful diagnostic script for alsa here:
http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=alsa/utils/alsa-info.sh;hb=refs/heads/build
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 10, 2013, 09:29:18 AM
Alsa: do you have still problems after reboot? Error messages would help.

Sorry, just updated before going to work.

After a reboot i still have this problem.

Aplay -l    Resultat in:

Aplay: device_list:268: no soundcards found...

(Same resultat with or without a Usb-dac attached)


Cheers
Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 10, 2013, 10:22:01 AM
Strange. Here it works with 5.0.alpha1 image and Alsa installed from the repo, no any additional settings:

(http://picorelinux.org/files/images/piplay1.png)

I would reinstall piCore with new downloads from the repo.
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 10, 2013, 11:32:19 AM
This is really strange.

I started from scratch.
1. Formatted the SD-card.
2. downloaded piCore-5.0.alpha1.img.gz extracted it and burned it to the card
3. It booted fine
4. tce-setdrive   to mmcblk0p1
5. tce    -   installed alsa


aplay -l
aplay: device_list:268: no soundcards found...

So same error

Steen

Could you have some left-overs from your development that might make the alsa package work?
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 10, 2013, 12:07:10 PM
Quote
4. tce-setdrive   to mmcblk0p1

As it was discussed earlier, never use mmcblk0p1 !!!

Proper solution:

4. tce-setdrive   to mmcblk0p2
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 06:55:54 AM
Hi bmarkus

I changed my setup as per your instructions - still no soundcard. 
(I made a new linux partition and use this as my TCE directory. Installed alsa and bash and dropbear.)

Code: [Select]
tc@box:~$ aplay -l
aplay: device_list:268: no soundcards found...
tc@box:~$

So there is no change, even after starting all over again.

Steen



Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 07:01:29 AM
Using the alsa-info.sh script results in this:
Code: [Select]
tc@box:~$ ./alsa-info.sh
modprobe: invalid option -- 'c'
BusyBox v1.21.1 (2013-08-23 18:13:50 UTC) multi-call binary.

Usage: modprobe [-alrqvsDb] MODULE [symbol=value]...

        -a      Load multiple MODULEs
        -l      List (MODULE is a pattern)
        -r      Remove MODULE (stacks) or do autoclean
        -q      Quiet
        -v      Verbose
        -s      Log to syslog
        -D      Show dependencies
        -b      Apply blacklist to module names too

ALSA Information Script v 0.4.62
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See './alsa-info.sh --help' for command line options.

/usr/local/sbin/alsactl: save_state:1590: No soundcards found...
cat: can't open '/tmp/alsa-info.XXXXXtkVNI/alsactl.tmp': No such file or directory

Steen
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 07:12:54 AM
Hi I just noticed that from your copy of the output from aplay -l  your promt is #  whereas mine is $

Therefore I tried to use sudo aplay -l and now it finds the soundcard
Code: [Select]
tc@box:/$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
tc@box:/$

But why is this different from previous piCore versions?
And what do I need to do in order to go back to how it used to be?

Steen
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 07:19:30 AM
Sorry for all the new posts.

But this is the result from the "old piCore 4.7.7)
Code: [Select]
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
tc@box:~$

As you can see it finds the USB-DAc attached, but also I don't need a sudo aplay -l.

The new version of piCore version 5 (alpha1) don't find the attached USB-DAC, and I need to use sudo in front.

See the output in the post above, here was the USB-DAC also atteched, but it was not detected.

Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 07:37:36 AM
Steen

can you compare the modules installed in 5.0.alpha1 and 4.7.7 as well as to run lsusb and check dmesg for differences?

Bela
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 07:51:04 AM
In version 4.7.7
Code: [Select]
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
tc@box:~$

dmesg output (about USB)
Code: [Select]
1.726363] usb usb1: Product: DWC OTG Controller
[    1.726374] usb usb1: Manufacturer: Linux 3.8.13-piCore+ dwc_otg_hcd
[    1.726386] usb usb1: SerialNumber: bcm2708_usb
[    1.727034] hub 1-0:1.0: USB hub found
[    1.727073] hub 1-0:1.0: 1 port detected
[    1.727367] dwc_otg: FIQ enabled
[    1.727380] dwc_otg: NAK holdoff enabled
[    1.727388] dwc_otg: FIQ split fix enabled
[    1.727403] Module dwc_common_port init
[    1.727596] Initializing USB Mass Storage driver...
[    1.727771] usbcore: registered new interface driver usb-storage
[    1.727784] USB Mass Storage support registered.
[    1.728136] mousedev: PS/2 mouse device common for all mice
[    1.728364] bcm2835-cpufreq: min=800000 max=800000 cur=800000
[    1.728461] bcm2835-cpufreq: switching to governor performance
[    1.728474] bcm2835-cpufreq: switching to governor performance
[    1.728497] cpuidle: using governor ladder
[    1.728507] cpuidle: using governor menu
[    1.728567] sdhci: Secure Digital Host Controller Interface driver
[    1.728577] sdhci: Copyright(c) Pierre Ossman
[    1.728665] sdhci: Enable low-latency mode
[    1.768136] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platfor                                            m's DMA
[    1.768349] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    1.768423] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.768889] usbcore: registered new interface driver usbhid
[    1.768903] usbhid: USB HID core driver
[    1.769348] TCP: cubic registered
[    1.769364] Initializing XFRM netlink socket
[    1.769392] NET: Registered protocol family 17
[    1.769539] Key type dns_resolver registered
[    1.770022] VFP support v0.3: implementor 41 architecture 1 part 20 variant b                                             rev 5
[    1.770762] registered taskstats version 1
[    1.776408] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.779318] Freeing init memory: 140K
[    1.819206] mmc0: new high speed SDHC card at address 1234
[    1.822006] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[    1.823719]  mmcblk0: p1
[    1.918320] Indeed it is in host mode hprt0 = 00021501
[    2.138261] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.138435] Indeed it is in host mode hprt0 = 00001101
[    2.398787] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.398827] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.399751] hub 1-1:1.0: USB hub found
[    2.400025] hub 1-1:1.0: 3 ports detected
[    2.678463] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.778970] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.778999] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber                                            =0
[    2.781975] smsc95xx v1.0.4
[    2.843014] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1                                            .1, smsc95xx USB 2.0 Ethernet, b8:27:eb:05:e8:e8
[    2.938373] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.051868] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    3.051899] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber                                            =0
[    3.051912] usb 1-1.2: Product: HP Basic USB Keyboard
[    3.051924] usb 1-1.2: Manufacturer: CHICONY
[    3.063355] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708                                            _usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.063498] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [C                                            HICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.2/input0
[    3.084097] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79)                                             (baudrate 100k)
[    3.158393] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[    3.259495] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79)                                             (baudrate 100k)
[    3.263900] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=000c
[    3.263929] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber                                            =0
[    3.263943] usb 1-1.3: Product: C-Media USB Headphone Set
[    3.270946] input: C-Media USB Headphone Set   as /devices/platform/bcm2708_u                                            sb/usb1/1-1/1-1.3/1-1.3:1.3/input/input1
[    3.271048] hid-generic 0003:0D8C:000C.0002: input: USB HID v1.00 Device [C-M                                            edia USB Headphone Set  ] on usb-bcm2708_usb-1.3/input3
[    3.291059] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.291090] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    7.178372] loop: module loaded
[    7.495568] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   24.227378] usbcore: registered new interface driver snd-usb-audio
[   28.021284] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E                                            1

************************************************


In version 5
Code: [Select]
tc@box:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

So it seems to "see" the C-media audio adaptor

Code: [Select]
1.801407] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.801446] Init: Port Power? op_state=1
[    1.801457] Init: Power Port (0)
[    1.801577] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.801600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=                                                                              1
[    1.801616] usb usb1: Product: DWC OTG Controller
[    1.801629] usb usb1: Manufacturer: Linux 3.10.10-piCore dwc_otg_hcd
[    1.801643] usb usb1: SerialNumber: bcm2708_usb
[    1.802384] hub 1-0:1.0: USB hub found
[    1.802432] hub 1-0:1.0: 1 port detected
[    1.802775] dwc_otg: FIQ enabled
[    1.802792] dwc_otg: NAK holdoff enabled
[    1.802802] dwc_otg: FIQ split fix enabled
[    1.802822] Module dwc_common_port init
[    1.803282] usbcore: registered new interface driver usb-storage
[    1.803760] mousedev: PS/2 mouse device common for all mice
[    1.804507] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.804622] bcm2835-cpufreq: switching to governor performance
[    1.804638] bcm2835-cpufreq: switching to governor performance
[    1.804666] cpuidle: using governor ladder
[    1.804680] cpuidle: using governor menu
[    1.804751] sdhci: Secure Digital Host Controller Interface driver
[    1.804763] sdhci: Copyright(c) Pierre Ossman
[    1.804858] sdhci: Enable low-latency mode
[    1.848102] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platfor                                                                              m's DMA
[    1.848245] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    1.848327] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.854123] usbcore: registered new interface driver usbhid
[    1.856236] usbhid: USB HID core driver
[    1.856861] TCP: cubic registered
[    1.856881] Initializing XFRM netlink socket
[    1.856918] NET: Registered protocol family 17
[    1.857104] Key type dns_resolver registered
[    1.857685] VFP support v0.3: implementor 41 architecture 1 part 20 variant b                                                                               rev 5
[    1.862782] registered taskstats version 1
[    1.868473] Freeing unused kernel memory: 144K (c051c000 - c0540000)
[    1.919396] mmc0: new high speed SDHC card at address 1234
[    1.928243] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[    1.930684]  mmcblk0: p1 p2
[    1.998325] Indeed it is in host mode hprt0 = 00021501
[    2.228325] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.228521] Indeed it is in host mode hprt0 = 00001101
[    2.478808] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.478841] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.479843] hub 1-1:1.0: USB hub found
[    2.479986] hub 1-1:1.0: 3 ports detected
[    2.758468] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.858862] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.858896] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber                                                                              =0
[    2.861946] smsc95xx v1.0.4
[    2.924357] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1                                                                              .1, smsc95xx USB 2.0 Ethernet, b8:27:eb:05:e8:e8
[    3.018354] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.131187] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    3.131217] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber                                                                              =0
[    3.131237] usb 1-1.2: Product: HP Basic USB Keyboard
[    3.131250] usb 1-1.2: Manufacturer: CHICONY
[    3.141580] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708                                                                              _usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.141745] hid-generic 0003:03F0:0024.0001: input: USB HID v1.10 Keyboard [C                                                                              HICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.2/input0
[    3.238260] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[    3.343703] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=000c
[    3.343732] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber                                                                              =0
[    3.343748] usb 1-1.3: Product: C-Media USB Headphone Set
[    3.351652] input: C-Media USB Headphone Set   as /devices/platform/bcm2708_u                                                                              sb/usb1/1-1/1-1.3/1-1.3:1.3/input/input1
[    3.351773] hid-generic 0003:0D8C:000C.0002: input: USB HID v1.00 Device [C-M                                                                              edia USB Headphone Set  ] on usb-bcm2708_usb-1.3/input3
[    7.570106] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    8.585020] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data                                                                               may be corrupt. Please run fsck.
[    8.668847] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 sub                                                                              system
[   10.043190] EXT4-fs (mmcblk0p2): recovery complete
[   10.316859] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                              pts: (null)
[   10.408990] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 sub                                                                              system
[   10.420572] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                              pts: (null)
[   20.393353] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   21.872176] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E

So also dmseg can detect the C-media audio adaptor.

but Alsa can't use it?

I will check the modules - but frankly I don't know what I should look for?

Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 08:20:48 AM
Let's see lsmod results next.
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 08:23:57 AM
Hi figure out how to use the alsa-info.sh (needed sudo infront :-) )

This is from version 5:
Code: [Select]
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################

!!Script ran on: Wed Sep 11 15:02:08 UTC 2013


!!Linux Distribution
!!------------------




!!DMI Information
!!---------------

Manufacturer:     
Product Name:     
Product Version:   
Firmware Version: 


!!Kernel Information
!!------------------

Kernel release:    3.10.10-piCore
Operating System:  GNU/Linux
Architecture:      armv6l
Processor:         unknown
SMP Enabled:       No


!!ALSA Version
!!------------

Driver version:     k3.10.10-piCore
Library version:   
Utilities version:  1.0.27.2


!!Loaded ALSA modules
!!-------------------

snd_bcm2835


!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA


!!Loaded sound module options
!!---------------------------

!!Module: snd_bcm2835
force_bulk : N


!!ALSA Device nodes
!!-----------------

crw-------    1 root     root      116,   0 Jan  1  1970 /dev/snd/controlC0
crw-------    1 root     root      116,  16 Jan  1  1970 /dev/snd/pcmC0D0p
crw-------    1 root     root      116,  33 Jan  1  1970 /dev/snd/timer


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7

ARECORD

**** List of CAPTURE Hardware Devices ****

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [ALSA]

Card hw:0 'ALSA'/'bcm2835 ALSA'
  Mixer name : 'Broadcom Mixer'
  Components : ''
  Controls      : 3
  Simple ctrls  : 1
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 0 [96%] [0.00dB] [on]


!!Alsactl output
!!--------------

--startcollapse--
state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 0
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Route'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 2'
}
}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_bcm2835
snd_pcm
snd_page_alloc
snd_timer
snd
squashfs
lzo_decompress


!!ALSA/HDA dmesg
!!--------------


******************************************************

Here is the output from my version of picoreplayer using 4.7.7

Code: [Select]
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.62
!!################################

!!Script ran on: Wed Sep 11 15:11:56 UTC 2013


!!Linux Distribution
!!------------------




!!DMI Information
!!---------------

Manufacturer:     
Product Name:     
Product Version:   
Firmware Version: 


!!Kernel Information
!!------------------

Kernel release:    3.8.13-piCore+
Operating System:  GNU/Linux
Architecture:      armv6l
Processor:         unknown
SMP Enabled:       No


!!ALSA Version
!!------------

Driver version:     k3.8.13-piCore+
Library version:   
Utilities version:  1.0.26


!!Loaded ALSA modules
!!-------------------

snd_usb_audio
snd_bcm2835


!!Sound Servers on this system
!!----------------------------

No sound servers found.


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [Set            ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed
 1 [ALSA           ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
                      bcm2835 ALSA


!!Loaded sound module options
!!---------------------------

!!Module: snd_usb_audio
device_setup : 0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y
id : (null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N
index : -1,-1,-1,-1,-1,-1,-1,-1
nrpacks : 8
pid : -1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1

!!Module: snd_bcm2835
force_bulk : N


!!USB Mixer information
!!---------------------
--startcollapse--

USB Mixer: usb_id=0x0d8c000c, ctrlif=0, ctlerr=0
Card: C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed
  Unit: 9
    Control: name="Headphone Playback Volume", index=0
    Info: id=9, control=2, cmask=0x3, channels=2, type="S16"
    Volume: min=-7264, max=-16, dBmin=-2837, dBmax=-6
  Unit: 9
    Control: name="Headphone Playback Switch", index=0
    Info: id=9, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 10
    Control: name="Auto Gain Control", index=0
    Info: id=10, control=7, cmask=0x0, channels=1, type="BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 10
    Control: name="Mic Capture Volume", index=0
    Info: id=10, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=0, max=6096, dBmin=0, dBmax=2381
  Unit: 10
    Control: name="Mic Capture Switch", index=0
    Info: id=10, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
  Unit: 13
    Control: name="Mic Playback Volume", index=0
    Info: id=13, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=0, max=12240, dBmin=0, dBmax=4781
  Unit: 13
    Control: name="Mic Playback Switch", index=0
    Info: id=13, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw---T    1 root     staff     116,   0 Jan  1  1970 /dev/snd/controlC0
crw-rw---T    1 root     staff     116,  32 Jan  1  1970 /dev/snd/controlC1
crw-rw---T    1 root     staff     116,  24 Jan  1  1970 /dev/snd/pcmC0D0c
crw-rw---T    1 root     staff     116,  16 Jan  1  1970 /dev/snd/pcmC0D0p
crw-rw---T    1 root     staff     116,  48 Jan  1  1970 /dev/snd/pcmC1D0p
crw-rw---T    1 root     staff     116,  33 Jan  1  1970 /dev/snd/timer

/dev/snd/by-id:
total 0
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            12 Jan  1  1970 usb-0d8c_C-Media_USB_Headphone_Set-00 -> ../controlC0

/dev/snd/by-path:
total 0
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            12 Jan  1  1970 platform-bcm2708_usb-usb-0:1.3:1.0 -> ../controlC0
lrwxrwxrwx    1 root     root            12 Jan  1  1970 platform-bcm2835_AUD0.0 -> ../controlC1


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

#Use you own ALSA settings below


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [Set]

Card hw:0 'Set'/'C-Media USB Headphone Set at usb-bcm2708_usb-1.3, full speed'
  Mixer name : 'USB Mixer'
  Components : 'USB0d8c:000c'
  Controls      : 8
  Simple ctrls  : 3
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 151
  Mono:
  Front Left: Playback 150 [99%] [0.25dB] [on]
  Front Right: Playback 150 [99%] [0.25dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 - 32 Capture 0 - 16
  Mono: Playback 23 [72%] [34.36dB] [off] Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Auto Gain Control',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

!!-------Mixer controls for card 1 [ALSA]

Card hw:1 'ALSA'/'bcm2835 ALSA'
  Mixer name : 'Broadcom Mixer'
  Components : ''
  Controls      : 3
  Simple ctrls  : 1
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 0 [96%] [0.00dB] [on]


!!Alsactl output
!!--------------

--startcollapse--
state.Set {
control.1 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.2 {
iface MIXER
name 'Mic Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'Mic Playback Volume'
value 23
comment {
access 'read write'
type INTEGER
count 1
range '0 - 32'
dbmin 0
dbmax 4781
dbvalue.0 3436
}
}
control.4 {
iface MIXER
name 'Headphone Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.5 {
iface MIXER
name 'Headphone Playback Volume'
value.0 150
value.1 150
comment {
access 'read write'
type INTEGER
count 2
range '0 - 151'
dbmin -2837
dbmax -6
dbvalue.0 -25
dbvalue.1 -25
}
}
control.6 {
iface MIXER
name 'Mic Capture Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.7 {
iface MIXER
name 'Mic Capture Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 16'
dbmin 0
dbmax 2381
dbvalue.0 0
}
}
control.8 {
iface MIXER
name 'Auto Gain Control'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}
state.ALSA {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '-10239 - 400'
dbmin -9999999
dbmax 400
dbvalue.0 0
}
}
control.2 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Route'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 2'
}
}
}
--endcollapse--


!!All Loaded Modules
!!------------------

Module
snd_bcm2835
snd_usb_audio
snd_usbmidi_lib
snd_rawmidi
snd_seq_device
snd_pcm
snd_page_alloc
snd_timer
snd_hwdep
snd
squashfs
loop
evdev
i2c_bcm2708
spi_bcm2708


!!ALSA/HDA dmesg
!!--------------




Steen
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 08:40:24 AM
Difference is that in 5.0.alpha 1 the snd_usb_audio module is not loaded which is required. Try

Quote
sudo modprobe snd_usb_audio

than Alsa must work. Check modules loaded with

Quote
sudo lsmod
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 10:14:44 AM
Sorry for the delay, I broke my SD-card with version 5 on. So I had to find a spare one.

lsmod  version 4.7.7

Code: [Select]
tc@box:/$ lsmod
Module                  Size  Used by    Not tainted
snd_bcm2835            16141  1
snd_usb_audio         111379  0
snd_usbmidi_lib        18259  1 snd_usb_audio
snd_rawmidi            21163  1 snd_usbmidi_lib
snd_seq_device          6437  1 snd_rawmidi
snd_pcm                80323  3 snd_bcm2835,snd_usb_audio
snd_page_alloc          5148  1 snd_pcm
snd_timer              20001  1 snd_pcm
snd_hwdep               5932  1 snd_usb_audio
snd                    58522  9 snd_bcm2835,snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer,snd_hwdep
squashfs               23590 23
loop                   16029 46
evdev                   9305  0
i2c_bcm2708             3657  0
spi_bcm2708             4734  0


***********************

lsmod Version 5
Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
snd_bcm2835            16061  0
snd_pcm                75191  1 snd_bcm2835
snd_page_alloc          4672  1 snd_pcm
snd_timer              19230  1 snd_pcm
snd                    54082  3 snd_bcm2835,snd_pcm,snd_timer
squashfs               28667 17
lzo_decompress          1568  1 squashfs

Steen
Title: Re: piCore 5.0.alpha1
Post by: sbp on September 11, 2013, 10:18:56 AM
Difference is that in 5.0.alpha 1 the snd_usb_audio module is not loaded which is required. Try

Quote
sudo modprobe snd_usb_audio

than Alsa must work. Check modules loaded with

Quote
sudo lsmod

OK, now it finds the USB-DAC:
Code: [Select]
tc@box:~$ sudo modprobe snd_usb_audio
tc@box:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Thank you for your help.

Steen

NB: Regarding the need for sudo - and the difference in your # and mine $ promt. Is that something that you will change or is it as it should be?

Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 10:37:32 AM
Glad to hear it works. The alsa-modules tcz has a startup script which modprobes the kernel module for the built-in sound device. I will add the modprobe for snd_usb_audio so it will be loaded at startup.
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 12:13:02 PM
Updated alsa modules uploaded to the repo, please update.
Title: Re: piCore 5.0.alpha1
Post by: Gerrelt on September 11, 2013, 02:02:47 PM
Hi Bmarkus,


It might be a noob question, but how do I update the alsa module? Do I need to re-install tinycore?

Greetings,

   Gerrelt.

Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 11, 2013, 02:22:48 PM
Quote
tce-update
Title: Re: piCore 5.0.alpha1
Post by: Gerrelt on September 11, 2013, 03:13:40 PM
Thanks!!

I've got soundcards and sound now too! :)
Title: Re: piCore 5.0.alpha1
Post by: Gerrelt on September 12, 2013, 05:37:29 AM
Hi Bmarkus,

  For compiling the ralink driver, I need the linux headers files for TC 5. Where can I find it?

Greetings,
    Gerrelt.
Title: Re: piCore 5.0.alpha1
Post by: bmarkus on September 12, 2013, 05:53:38 AM
Hi Bmarkus,

  For compiling the ralink driver, I need the linux headers files for TC 5. Where can I find it?

Greetings,
    Gerrelt.

Wait a bit for alpha2 with the final toolchain, GCC 4.8.1 and updated libs. No sense to compile anything in alpha1

Regarding headers, you can fetch it from the GIT and make headers, it's public.