module ALSA snd_seq for Ubuntu Minimal not installed

Post Reply
turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Fri May 31, 2019 7:15 am

Hello,

I have the new odroid-n2 installed with the Ubuntu Minimal system image dated 2019-03-29.
I can't find how to get the snd-seq module installed and loaded.

I first updated the system to the last revision using prescribed 'apt update' and 'apt full-upgrade' commands. Then installed the 'alsa-base' package and rebooted.

I expected that a new device file would have appeared as /dev/snd/seq but it's not there.

Any help would be appreciated.

Cheers!

Guy

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by odroid » Fri May 31, 2019 9:24 am

Some sound/alsa drivers were not enabled.
https://github.com/hardkernel/linux/blo ... 3970-L3972

We will enable it and release a Kernel update package in several days with other users' requests.

If you can't wait, you can build your own custom kernel.
https://wiki.odroid.com/odroid-n2/softw ... d-n2ubuntu
These users thanked the author odroid for the post:
turgu1 (Sun Jun 02, 2019 2:10 am)

User avatar
meveric
Posts: 10177
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by meveric » Fri May 31, 2019 9:41 am

odroid wrote:
Fri May 31, 2019 9:24 am
If you can't wait, you can build your own custom kernel.
https://wiki.odroid.com/odroid-n2/softw ... d-n2ubuntu
Or use the Debian Image I provide, or replace the Kernel from HardKernel with the ones from my repository as I always build these sound modules ;)
These users thanked the author meveric for the post:
turgu1 (Sun Jun 02, 2019 2:10 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Fri May 31, 2019 11:29 am

Thanks a lot for both answers! I Will wait for the new OS image I guess. But building a new kernel could be an interesting endevour... 8-)

I may try the Debian alternative in the interim.

Cheers!

Guy

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Sun Jun 02, 2019 2:08 am

Hello again...

I’ve tried the Debian image on meveric site. The snd-seq driver is there, thanks!

I’m stuck with the next step: getting midi working with my usb midi controller (a Roland A88). I found that the snd-usb-midi was not loaded, i did so using modprobe, but aconnect -lo doesnt show the device. lsusb do show it. I’m clueless... still searching. Maybe there is still another module required, but can’t find info.

Cheers

Guy

User avatar
igorpec
Posts: 325
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by igorpec » Sun Jun 02, 2019 2:33 am

turgu1 wrote:
Sun Jun 02, 2019 2:08 am
Maybe there is still another module required, but can’t find info.
Easy kernel/image rebuilding with modules you need: https://github.com/armbian/build
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Sun Jun 02, 2019 4:53 am

igorpec wrote:
Sun Jun 02, 2019 2:33 am
turgu1 wrote:
Sun Jun 02, 2019 2:08 am
Maybe there is still another module required, but can’t find info.
Easy kernel/image rebuilding with modules you need: https://github.com/armbian/build
This is a potential avenue, but I can’t see what the problem is (i don’t known if a module is required...). Using “amidi -l” displays the usb midi devices, but “aconnect -i” nor “aconnect -o” doesn’t show them.

User avatar
meveric
Posts: 10177
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by meveric » Sun Jun 02, 2019 5:54 am

maybe you need a /etc/asound.conf file for this?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Sun Jun 02, 2019 10:41 am

meveric wrote:
Sun Jun 02, 2019 5:54 am
maybe you need a /etc/asound.conf file for this?
I may have found the problem. Comparing with another linux computer, the module snd_rawmidi is not available in the Debian image. I'm currently looking at module-assistant to compile it but I'm struggling with the tool (first time usage).

Guy

User avatar
meveric
Posts: 10177
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by meveric » Sun Jun 02, 2019 3:49 pm

I can add that to my next Kernel build.. but it will probably available around the same time HardKernel does update their Kernel.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Sun Jun 02, 2019 4:31 pm

meveric wrote:
Sun Jun 02, 2019 3:49 pm
I can add that to my next Kernel build.. but it will probably available around the same time HardKernel does update their Kernel.
It would be great! I'm new to kernel management (have been involved in unix/linux software development since 1986, but never touched the linux kernel building process).

Thanks for your support!

Guy

User avatar
meveric
Posts: 10177
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by meveric » Mon Jun 03, 2019 4:49 pm

I just checked on the Kernel... the snd-rawmidi module is already part of the Kernel and a "build-in" module, which means it's always activated (not sure why though, it should rather be a module in my opinion).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Tue Jun 04, 2019 2:05 am

meveric wrote:
Mon Jun 03, 2019 4:49 pm
I just checked on the Kernel... the snd-rawmidi module is already part of the Kernel and a "build-in" module, which means it's always activated (not sure why though, it should rather be a module in my opinion).
Yes, that is what I've found also this morning. I made my first trial at compiling a new kernel 8-). I downloaded the kernel from the hardkernel/odroid wiki and looked at getting both snd-seq and snd-rawmidi compiled as modules. Using "make menuconfig", I found how to get a snd-seq module compiled, but snd-rawmini doesn't seem to be configurable through menuconfig. I tried to change the default value located in arch/arm64/config/odroidn2_defconfig, replacing by hand CONFIG_SND_RAWMIDI=y with CONFIG_SND_RAWMIDI=m, but I've got no effect rebuilding the .config file (still showing CONFIG_SND_RAWMIDI=y).

Well, I'm not even sure that my problem will be resolved, considering that the snd-rawmidi seems to be loaded inside the kernel image. 8-(

The problem I'm facing is the following:

The midi keyboard is connected to the N2;
The command 'lsusb' shows the device
The command 'amidi -l' shows the device
I can see the device special file /dev/midi1
I can see the midi keyboard output using 'cat </dev/midi1'
BUT, the command 'aconnect -i' doesn't show the device

The aconnect is important to work such that the device could be selected in software by the user.

Guy

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by odroid » Tue Jun 11, 2019 2:41 pm

Can you test the latest update Kernel 4.9.180-30?
https://github.com/hardkernel/linux/com ... 84ebbcfae2

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Wed Jun 12, 2019 12:57 pm

odroid wrote:
Tue Jun 11, 2019 2:41 pm
Can you test the latest update Kernel 4.9.180-30?
https://github.com/hardkernel/linux/com ... 84ebbcfae2
I did some trials today (Tuesday) without success. I got some difficulties having WiFi properly working. The sound related modules seems to be present but I still can't see the USB midi controller using the aconnect ALSA utility. I will try again tomorrow.

I'm wandering if there is any way to get the snd-rawmidi driver compiled as a module. I've not been able to do that and I'm not sure that this is required (as a module) considering that it is integrated in the kernel. Another aspect: could it be possible that the ALSA utilities version is not compatible with kernel 4.9?

A question: is there effort done to get a workable kernel 5.x for the odroid-n2?

Cheers!

Guy

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by odroid » Wed Jun 12, 2019 1:20 pm

Kernel 5.x is work-in-progress. But there are many missing features probably.
Try an Armbian nightly build.
viewtopic.php?f=176&t=33993&start=200#p259159

BTW, which USB MIDI input device do you use?

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Wed Jun 12, 2019 7:50 pm

odroid wrote:
Wed Jun 12, 2019 1:20 pm
Kernel 5.x is work-in-progress. But there are many missing features probably.
Try an Armbian nightly build.
viewtopic.php?f=176&t=33993&start=200#p259159

BTW, which USB MIDI input device do you use?
I have two Roland devices: HP307 and A-88.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Thu Jun 13, 2019 2:40 am

turgu1 wrote:
Wed Jun 12, 2019 12:57 pm
odroid wrote:
Tue Jun 11, 2019 2:41 pm
Can you test the latest update Kernel 4.9.180-30?
https://github.com/hardkernel/linux/com ... 84ebbcfae2
I did some trials today (Tuesday) without success. I got some difficulties having WiFi properly working. The sound related modules seems to be present but I still can't see the USB midi controller using the aconnect ALSA utility. I will try again tomorrow.

I'm wandering if there is any way to get the snd-rawmidi driver compiled as a module. I've not been able to do that and I'm not sure that this is required (as a module) considering that it is integrated in the kernel. Another aspect: could it be possible that the ALSA utilities version is not compatible with kernel 4.9?

A question: is there effort done to get a workable kernel 5.x for the odroid-n2?

Cheers!

Guy
I made some new trials this morning. I have a Raspberry Pi that I configured with Ubuntu 18.04.2 version. I had to install (apt-get) both alsa and alsa-utils (they are not part of the Ubuntu server image) and then reboot. No change to the configuration. As soon as I connected the MIDI controller (Roland HP307) on the Raspberry Pi, I was able to see the device in the resulting "aconnect -i" command.

With the odroid-n2, I installed the March 2019 image and made an "apt-get update; apt-get upgrade" cycle. Got the linux kernel 4.9.180-30 through these commands. No luck, the Midi controller did not appeared in the "aconnect -i" command. I also tried to do the following: "apt-get purge alsa alsa-utils; apt-get install alsa alsa-utils; sync; reboot" Still no luck.

I would say that all sound drivers on the ubuntu Raspberry Pi where compiled as modules (even the snd module was showned with lsmod). Also, there was a /proc/asound/modules file in the Raspberry Pi that was not present on the odroid-n2. Some of the sound drivers are compiled directly in the kernel on the odroid. Some individual mention me that it could be the problem. I can't tell as I don't have enough expertise to comment.

I've retrived the result of using the "alsa-info" command on both the Raspberry Pi and the Odroid-N2. This command retrieve many system parameters in relation with the alsa installation. I added them as an attachment to this message.

Cheers!

Guy
Attachments
alsa-info-odroid.txt
(59.64 KiB) Downloaded 5 times
alsa-info-raspberry.txt
(5.26 KiB) Downloaded 4 times

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by odroid » Thu Jun 13, 2019 10:23 am

Thank you for sharing the various test results.
We will try to make "snd-rawmidi" driver as a module first by early next week.

I'm considering buy a KORG microKEY-25 MIDI keyboard if we can't fix this issue soon.

turgu1
Posts: 12
Joined: Fri May 31, 2019 6:57 am
languages_spoken: english
ODROIDs: odroid-n2 odroid-c2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: module ALSA snd_seq for Ubuntu Minimal not installed

Unread post by turgu1 » Thu Jun 13, 2019 10:41 am

odroid wrote:
Thu Jun 13, 2019 10:23 am
Thank you for sharing the various test results.
We will try to make "snd-rawmidi" driver as a module first by early next week.

I'm considering buy a KORG microKEY-25 MIDI keyboard if we can't fix this issue soon.
I'm looking at the kernel 5.3 effort too. Hope that we will find a solution at some point.

I've made my own sampling synthesizer software. A kind of daemon without a graphical interface (still a work in progress but is functional). I bought the Odroid-N2 to run it with the Roland A-88 keyboard, mainly as a piano. I was used to play with a raspberry-pi 3 but I required more RAM/CPU performance to add new audio processing on the samples. The code is open-source: https://github.com/turgu1/mezzo

The N2 is ideal for that, if we can fix the midi stuff.

Cheers!

Guy

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest