kmod-usb-audio kernel missmatch

moiaraya
 
Posts: 3
Joined: Sat Nov 18, 2017 10:50 pm

kmod-usb-audio kernel missmatch

Sat Nov 18, 2017 11:28 pm

Hi there,

I was trying to install the package kmod-usb-audio for the firmware: http://vonger.cn/misc/vocore2/20170527.bin but I get:

Code: Select all
root@OpenWrt:/# opkg install kmod-usb-audio
Installing kmod-usb-audio (3.18.23-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/base/kmod-usb-audio_3.18.23-1_ramips_24kec.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-sound-core and kmod-sound-core) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-audio:
 *    kernel (= 3.18.23-1-245faaffbc60cabe96a158cae13c1cc3) *
 * opkg_install_cmd: Cannot install package kmod-usb-audio.


The Kernel version is:

Code: Select all
root@OpenWrt:/# uname -a
Linux OpenWrt 3.18.29 #5 Sat May 27 16:38:46 CST 2017 mips GNU/Linux


It seems that the package in the repository is too old. However, I didn't find any other repository with a package that satisfies the Kernel dependency.

I want to install it to output the audio through a USB sound card. Any advice? :)

Vonger
 
Posts: 577
Joined: Sun Oct 19, 2014 6:00 am

Re: kmod-usb-audio kernel missmatch

Sun Nov 19, 2017 2:50 pm

actually you can force install it, it works normal too.

moiaraya
 
Posts: 3
Joined: Sat Nov 18, 2017 10:50 pm

Re: kmod-usb-audio kernel missmatch

Mon Nov 20, 2017 11:42 pm

Thanks!

It doesn't work for me just by forcing dependencies though, two modules are still missing:

Code: Select all
root@OpenWrt:~# opkg install kmod-usb-audio --force-depends
Installing kmod-usb-audio (3.18.23-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/base/kmod-usb-audio_3.18.23-1_ramips_24kec.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-sound-core and kmod-sound-core) providing same name marked HOLD or PREFER. Using latest.
Configuring kmod-usb-audio.
failed to find a module named snd-usbmidi-lib
failed to find a module named snd-usb-audio
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-audio:
 *    kernel (= 3.18.23-1-245faaffbc60cabe96a158cae13c1cc3) *


After that I restarted the VoCore2, and even though the card is recognized as an USB device (it was like that even without kmod-usb-audio), it is not there in the available audio devices of the system:

Code: Select all
root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Code: Select all
root@OpenWrt:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: mt7628audiocard [mt7628-audio-card], device 0: audio-card es8388-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0



I found snd-usbmidi-lib and snd-usb-audio here: https://github.com/adafruit/rpi-firmwar ... /sound/usb but don't know where to copy them.

Should I keep trying to make this kmod work this way or should I try to compile it instead by using the provided Toolchain? If so, can you point me out the source files of kmod-usb-audio and some instuctions for the crosscompilation?

Thanks again!

moiaraya
 
Posts: 3
Joined: Sat Nov 18, 2017 10:50 pm

Re: kmod-usb-audio kernel missmatch

Tue Nov 21, 2017 12:37 am

Ohhh I found the missing modules in /lib/modules/3.18.23/ so after:

Code: Select all
# cp /lib/modules/3.18.23/snd-usb-audio.ko /lib/modules/3.18.29/


Code: Select all
# cp /lib/modules/3.18.23/snd-usbmidi-lib.ko  /lib/modules/3.18.29/


and

Code: Select all
# opkg configure kmod-usb-audio


Works for me! Now it is recognized:

Code: Select all
root@OpenWrt:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: mt7628audiocard [mt7628-audio-card], device 0: audio-card es8388-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Now if you want to configure it as the default audio device just follow this instructions: https://www.alsa-project.org/main/index ... ult_device

Thanks for helping :!: :!: :!:

Vonger
 
Posts: 577
Joined: Sun Oct 19, 2014 6:00 am

Re: kmod-usb-audio kernel missmatch

Thu Nov 23, 2017 1:08 am

You wstill need to force install the missing package too.
Another better way is to ocmpile from the source, then you can get everything normal.

Return to VoCore2

Who is online

Users browsing this forum: No registered users and 2 guests