Welcome! Log In Create A New Profile

Advanced

get usb sound support in varkey's rootfs

Posted by mk2k 
mk2k
get usb sound support in varkey's rootfs
September 01, 2013 11:48AM
I am running varkey's rootfs on my pogoplug b04 (http://forum.doozan.com/read.php?3,6336,6371#msg-6371)

I want to use my usb soundcard so I can use pogoplug as audio streamer. But the usb sound module is not loaded in kernel. I did some googling and tried with following commands

downloaded source; apt-get install linux-source-2.6.32
make menuconfig
put an M in front of ALSA usb Soundcard
make modules
make modules_install

but it's not same kernel it's all placed in other directory. modules don't get loaded. Anyone knows how I can add these modules to the same kernel version as in the rootfs on my stick?

thanks.
Re: get usb sound support in varkey's rootfs
September 01, 2013 03:48PM
mk2k,

Since you're running the Arch kernel on NAND, the modules that are actually loaded are Arch's (in /lib/modules/2.6.31.6_SMP_820/kernel/). So if you can find that module in your Arch rootfs, just copy it over to the appropriate directory in your Debian rootfs. Look back to my PogoPro Debian rootfs manual installation for examples in step 4,5,6 :
http://forum.doozan.com/read.php?3,6336

If you need to compile this module, then compile it in Arch first, and then copy it over.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 09/01/2013 04:04PM by bodhi.
mk2k
Re: get usb sound support in varkey's rootfs
September 02, 2013 11:35AM
bodhi, thanks for your suggestion. I copied over the modules, but got an error,so I also need the ARCH linux source, since I downloaded the debian source which is wrong. I get wrong module version error after doing a modprobe.
The correct source can be found here I think; http://download.pogoplug.com/opensource/pro/pogopro-linux-2.6.31.6-r2.tar.bz2
I am going to try with this source and see if that works out. thanks. i'll keep you posted
mk2k
Re: get usb sound support in varkey's rootfs
September 03, 2013 01:09AM
now i receive this error when running make:

/bin/sh/arm-none-linux-gnueabi-gcc not found

GOD, WHY ARE YOU DOING THIS TO ME???
Re: get usb sound support in varkey's rootfs
September 03, 2013 01:51AM
mk2k Wrote:
-------------------------------------------------------
> now i receive this error when running make:
>
> /bin/sh/arm-none-linux-gnueabi-gcc not found
>
> GOD, WHY ARE YOU DOING THIS TO ME???

Calm down! if you've found the modules in Arch rootfs, they should work. What kind of errors did you get? modprobe ? post the steps you did, and the errors you got, someone might have done the same and can give some hints.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mk2k
Re: get usb sound support in varkey's rootfs
September 03, 2013 04:29AM
Bodhi,

I downloaded the source, http://download.pogoplug.com/opensource/pro/pogopro-linux-2.6.31.6-r2.tar.bz2
exctracted it.

Ran make menuconfig

selected the usb sound card as module. Now trying to compile using make modules

then the error appears : /bin/sh/arm-none-linux-gnueabi-gcc command not found

didn't got that error when compling with the other linux source (the wrong version I used before)
shv
Re: get usb sound support in varkey's rootfs
September 03, 2013 01:39PM
I wouldn't recommend you to compile the modules your own because you need some experience how to do this. It is not so easy to compile modules which fit to the kernel. You need the right source files (from WarheadsSE git) and right configuration file (I don't know where to get it for the older kernel).

There are several problems with the ALARM kernel which can not be resolved even with the latest version! The drivers are available in the kernel but just don't work!

1. Support of several FTDI2Serial interfaces
2. PCSC card readers
3. USB sound cards

You could use another kernel: http://pogoplug.cwsurf.de/forum/viewtopic.php?f=5&t=98&start=0 (download links in 2nd post) either in save way booting it from SATA hard disk or on the more risky way to flash it to NAND. Please take the right kernel for your device. This kernel solves at least the three problems mentioned above.

The process to get the new kernel on the device can be fould in the ALARM kernel update thread:http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2453. Just that it is a different kernel.



Edited 13 time(s). Last edit at 09/03/2013 02:23PM by shv.
Re: get usb sound support in varkey's rootfs
September 04, 2013 12:31AM
@mk2k,

What shv said. You might have given up too soon about the seting up Arch modules.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mk2k
Re: get usb sound support in varkey's rootfs
September 07, 2013 09:50AM
shv, thanks for your sugesstion. how can i boot your kernel version from usb ?
I already tried to put it on a stick but it didn't boot. yellow led kept blinking.

i dont want to overwrite the nand flash since i dont have console access to my pogoplug if something goes terribly schlecht, bin ich verdammt :)

the varkey works fine. any steps on how to get your files which can be found on the Deutsche sprache webseite ;-)
mk2k
Re: get usb sound support in varkey's rootfs
September 07, 2013 10:22AM
any guide available on how I can get the shv kernel working on my pogo. i have version b04 oxnas based.
shv
Re: get usb sound support in varkey's rootfs
September 07, 2013 11:04AM
You can take the same commands from the ALARM kernel updater package (http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2453) but use my kernel instead. You might need to install the mtd-utils package to flash the right uImage to the flash. Just unpack the archive in your root folder. For B04 you must flash the NonPCI uImage.P21. You don't need to copy or move the old kernel modules to a different location because the new kernal has a different name and module path.

Please check if the following commands are the same as contained in update-kernel.sh! If anything is wrong you will brick your Pogoplug!
flash_erase /dev/mtd1 0x500000 20
nandwrite -p -s 0x500000 /dev/mtd1 /uImage_2.6.31.14_...P21
/etc/modules
mii
gmac
oxnas-led
leds-gpio-ox820-pogoplug3
/etc/rc.local
# turn on LED
/sbin/proled green

Good luck!
-shv



Edited 7 time(s). Last edit at 09/07/2013 11:21AM by shv.
mk2k
Re: get usb sound support in varkey's rootfs
September 07, 2013 02:30PM
shv Wrote:
-------------------------------------------------------
> You can take the same commands from the ALARM
> kernel updater package
> ([url=http://archlinuxarm.org/forum/viewtopic.php?
> f=55&t=2453]http://archlinuxarm.org/forum/viewtopi
> c.php?f=55&t=2453[/url]) but use my kernel
> instead. You might need to install the mtd-utils
> package to flash the right uImage to the flash.
> Just unpack the archive in your root folder. For
> B04 you must flash the NonPCI uImage.P21. You
> don't need to copy or move the old kernel modules
> to a different location because the new kernal has
> a different name and module path.
>
> Please check if the following commands are the
> same as contained in update-kernel.sh! If anything
> is wrong you will brick your Pogoplug!
> [code]
> flash_erase /dev/mtd1 0x500000 20
> nandwrite -p -s 0x500000 /dev/mtd1
> /uImage_2.6.31.14_...P21
> [/code]
> /etc/modules
> [code]
> mii
> gmac
> oxnas-led
> leds-gpio-ox820-pogoplug3
> [/code]
> /etc/rc.local
> [code]
> # turn on LED
> /sbin/proled green
> [/code]
>
> Good luck!
> -shv

shv thanks. sorry, but you say: update-kernel.sh should contain the same commands. Just to be sure, is this script already anywhere on my pogoplug ? or do i need to change update-kernel.sh to match the commands you described?
the uimage i need flash is that in your download package as well or do i need to download that somewhere else. i have to make sure i have the correct files, since i dont want to brick the pogoplug.

thanks.
shv
Re: get usb sound support in varkey's rootfs
September 08, 2013 03:40AM
The file update-kernel.sh is part of the ALARM kernel update package. You should use the flashing commands after you made sure that they are the same as in update-kernel.sh script. You should use the uImage which is contained in my kernal package.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 04:06AM
shv, okay thanks i need to download the archlinux updater pakage as well from this site: http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2453. but flash your nopci.p21 from your package on my b04

what's the difference between the package on german site 2nd post and 8th post. i have downloaden yours from 8th post you say it contains two umimages, the pci and non pci version. so i will flash the non pci version to b04 like you said.
shv
Re: get usb sound support in varkey's rootfs
September 08, 2013 04:12AM
The package from the 2nd post just contains the uImage for the Pro. The package from the 8th post contains both uImages. Everything else is the same.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 04:30AM
shv, thanks.

i downloaded the warheads updater package from the other link. the update-kernel.sh runs the same commands as you describe only uimage is different filename it is called uimage.nopci and uimage.pci

I can extract your package and run the commands you provided manually from shell. the script also moves modules.
afterwards in other folders. After I have placed this kernel package on my nand flash. what do I need to place on my usb stick? To boot debian and get usb sound working ?
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 04:33AM
also looks like the script runs from archlinux. i dont have arch on my stick at the moment but debian from varkey.
can i use these commands to flash nand also from debian or do i need to get archlinux working on my stick ?
shv
Re: get usb sound support in varkey's rootfs
September 08, 2013 04:48AM
You should extract my kernel package in the root folder of varkey's debian rootfs. You might need to install the mtd-utils package if this is not yet available in varkey's rootfs. Afterwards you should execute the two commands to flash the new uImage into the NAND flash. If everything is OK reboot the device.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 05:13AM
root@debian:/# flash_erase /dev/mtd1 0x500000 20
Erase Total 20 Units
Performing Flash Erase of length 131072 at offset 0x760000 done

root@debian:/# nandwrite -p -s 0x500000 /dev/mtd1 /uImage_2.6.31.14_OX820_1.0_shv.P21
Writing data to block 40 at offset 0x500000
Writing data to block 41 at offset 0x520000
Writing data to block 42 at offset 0x540000
Writing data to block 43 at offset 0x560000
Writing data to block 44 at offset 0x580000
Writing data to block 45 at offset 0x5a0000
Writing data to block 46 at offset 0x5c0000
Writing data to block 47 at offset 0x5e0000
Writing data to block 48 at offset 0x600000
Writing data to block 49 at offset 0x620000
Writing data to block 50 at offset 0x640000
Writing data to block 51 at offset 0x660000
Writing data to block 52 at offset 0x680000
Writing data to block 53 at offset 0x6a0000
Writing data to block 54 at offset 0x6c0000
Writing data to block 55 at offset 0x6e0000
Writing data to block 56 at offset 0x700000

and now? reboot and hope everything still works?
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 05:18AM
i edited the modules and rc.config according to your post

i'm scared to do a reboot :D
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 05:26AM
now i should be able to boot your rootfs. i am going to look it up and place it on my usb stick. kernel is upgraded varkey doesnt boot anymore. how i can find the post again to your rootfs which has usb support.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 05:43AM
mk2k Wrote:
-------------------------------------------------------
> now i should be able to boot your rootfs. i am
> going to look it up and place it on my usb stick.
> kernel is upgraded varkey doesnt boot anymore. how
> i can find the post again to your rootfs which has
> usb support.

shv

rebooted again. now it boots. but I want a clean debian os. now its a mess. varkey + your files. think its better to use yours. where can i find latest rootfs you made ?
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 06:45AM
Now extracted your rootfs i found on german website (it was top sticky post). afterwards copied over and extracted your latest kernel and edited the /etc/modules.

stick boots fine and kernel is loaded:


root@debian:~# uname -a
Linux debian 2.6.31.14_OX820_1.0_shv #1 SMP Sun Jul 21 20:57:31 CEST 2013 armv6l GNU/Linux

so now lets try to get usb soundcard working.

root@debian:~# apt-get install usbutils

root@debian:~# lsusb
Bus 001 Device 003: ID 0951:1653 Kingston Technology
Bus 001 Device 004: ID 0ccd:0077 TerraTec Electronic GmbH Aureon Dual USB
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

terratec usb soundcard has been found.

root@debian:~# lsmod
Module Size Used by
leds_gpio_ox820_pogoplug3 3536 0
gmac 40104 0
mii 6096 1 gmac
evdev 9632 0
snd_usb_lib 16448 0
snd_rawmidi 21368 1 snd_usb_lib
snd_seq_device 7004 1 snd_rawmidi
snd_hwdep 7440 0
usbhid 40920 0
snd 49612 3 snd_rawmidi,snd_seq_device,snd_hwdep
soundcore 6916 1 snd

also sound modules looks like they're loaded.

but the problem.. how to get alsa . alsa keeps saying no soundcard found.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 07:04AM
root@debian:~# alsactl init
alsactl: init:1743: No soundcards found...
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 07:16AM
i reinserted usb sound card. and dmesg says':


address 6
[ 122.730000] usb 1-1.4: New USB device found, idVendor=0ccd, idProduct=0077
[ 122.740000] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 122.750000] usb 1-1.4: Product: USB PnP Sound Device
[ 122.750000] usb 1-1.4: Manufacturer: C-Media Electronics Inc.
[ 122.760000] usb 1-1.4: configuration #1 chosen from 1 choice
[ 122.770000] input: C-Media Electronics Inc. USB PnP Sound Device as /devices/platform/oxnas-ehci.0/usb1/1-1/1-1.4/1-1.4:1.3/input/input2
[ 122.780000] generic-usb 0003:0CCD:0077.0003: input,hidraw0: USB HID v1.00 Device [C-Media Electronics Inc. USB PnP Sound Device] on usb-usb-1.4/input3
[ 122.830000] snd_page_alloc: Unknown symbol pci_set_consistent_dma_mask
[ 122.830000] snd_page_alloc: Unknown symbol pci_dev_put
[ 122.840000] snd_page_alloc: Unknown symbol pci_get_device
[ 122.850000] snd_page_alloc: Unknown symbol pci_set_dma_mask
root@debian:~#

but alsa still doesnt recognize

root@debian:~# alsactl init
alsactl: init:1743: No soundcards found...

and mixer says

root@debian:~# alsamixer
cannot open mixer: No such file or directory
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 07:21AM
modprobe snd-usb-audio nrpacks=1
WARNING: Error inserting snd_timer (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/core/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_usb_audio (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/usb/snd-usb-audio.ko): Unknown symbol in module, or unknown parameter (see dmesg)


from this page: http://alsa.opensrc.org/Usb-audio#Tuning_USB_devices_for_minimal_latencies but lots of errors
shv
Re: get usb sound support in varkey's rootfs
September 08, 2013 07:41AM
The sound driver are not fully working (see snd_page_alloc messages)! Maybe the kernel don't support your specific device. Currently you have a non PCI uImage but modules which are compiled for PCI. This normally works well. If I have time I will provide you a module package which is completely compiled for Non-PCI. If this doesn't work the only way is to compile the driver for your sound card or to use a sound card which is already tested and working (e.g. this one: Link).



Edited 3 time(s). Last edit at 09/08/2013 07:43AM by shv.
mk2k
Re: get usb sound support in varkey's rootfs
September 08, 2013 10:37AM
thanks shv. i'll wait for your module package

my soundcard has spdif out i need that to connect it to my dac. The card works under linux. i had it working on a iomega iconnect running debian (used this guide: http://m.kroonen.eu/wiki to get debian on the iconnect) but I am using the iconnect for other purposes at the moment. i'll wait for your package, if it doesnt work I will get a raspberry pi which only is 35 euro these days ;)
shv
Re: get usb sound support in varkey's rootfs
September 08, 2013 10:47AM
mk2k
Re: get usb sound support in varkey's rootfs
September 09, 2013 10:56AM
shv Wrote:
-------------------------------------------------------
> NonPCI modules: http://clz.to/o6xaagr2


thanks for your work. unfortunately it doesn't work. still same error:

root@debian:~# modprobe snd-usb-audio nrpacks=1
WARNING: Error inserting snd_timer (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/core/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/core/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_usb_audio (/lib/modules/2.6.31.14_OX820_1.0_shv/kernel/sound/usb/snd-usb-audio.ko): Unknown symbol in module, or unknown parameter (see dmesg)
root@debian:~#

orded a raspberry pi, hope it will arrive tomorrow. Will use the pogo as web server or something else which doesn't involve usb devices.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: