Ultralite AVB

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: khz, MattKingUSA

tvaz
Established Member
Posts: 10
Joined: Sun Nov 10, 2019 5:55 pm

Re: Ultralite AVB

Post by tvaz »

Follow-up AVB Ultralite ESS with Drumfix's ua101.c module:

It's been two days running this device and trying to isolate what's causing the issues. After exploring various tweak combinations I can summarize as follows:

1. Any kernel 5.8.X with default options + Drumfix's module: a few seconds of sound alternating with stops and artifacts. Unusable.

2. Any kernel 5.8.X + Drumfix's module + setting USB host smp_affinity to use a single CPU: from a few minutes to a few hours of sound, a very noticeable improvement. Then channel hoping back again. Usable-ish with jack-plumbing doing persistent connections to outputs 1-2, 9-10 and 17-18.

3. Any kernel 5.8.X + Drumfix's module + setting USB host smp_affinity to use a single CPU + kernel boot options "acpi_irq_nobalance nowatchdog nohz=off intel_idle.max_cstate=1": rock solid 24 hours of sound without any issue. WIN!

In terms of tweaking, everything else seems to make no difference. I mean, by following the option 3 above I don't need to remove EHCI, or to unload other USB modules, or to use a specific kernel version, or to set CPU governor, or set queue_length, none of this is necessary. Really, I couldn't be happier, thanks again @Drumfix. I hope it works for everybody and gives some direction for an official module in the future. If something changes I'll report here. Hopefully not!

User avatar
bluebell
Established Member
Posts: 1437
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

tvaz wrote:
Sat Oct 03, 2020 6:21 pm
3. Any kernel 5.8.X + Drumfix's module + setting USB host smp_affinity to use a single CPU + kernel boot options "acpi_irq_nobalance nowatchdog nohz=off intel_idle.max_cstate=1": rock solid 24 hours of sound without any issue. WIN!

In terms of tweaking, everything else seems to make no difference. I mean, by following the option 3 above I don't need to remove EHCI, or to unload other USB modules, or to use a specific kernel version, or to set CPU governor, or set queue_length, none of this is necessary. Really, I couldn't be happier, thanks again @Drumfix. I hope it works for everybody and gives some direction for an official module in the future. If something changes I'll report here. Hopefully not!
Interesting. I had no problems at all on my machine even without special boot options, maybe beause the Core i7 performs well. I added your boot options and it still runs fine. Hard to tell if there are some improvements when doing real work with Qtractor.

EDIT:
That's crazy. Adding "nowatchdog" lowers the realtime CPU displayed with Qjackctl from 44% to 37% on a given Qtractor project with many tracks and plugins compared to omitting "nowatchdog" on my Core i7 notebook computer.

EDIT2:
On another machine with Core i5 those options had no effect at all.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

DarkSunMaster
Posts: 1
Joined: Tue Oct 13, 2020 2:48 pm

Re: Ultralite AVB

Post by DarkSunMaster »

For info and to say thanks... I have an Ultralite Mk4 with ESS chip.

Having done the following kernel 5.8.15 + Drumfix's module + setting USB host smp_affinity to use a single CPU + kernel boot options "acpi_irq_nobalance nowatchdog nohz=off intel_idle.max_cstate=1" I can happily say it works, although the Drumfix module alone was not enough. I haven't done any further testing to see exactly what does what.

Cheers

dpzmick
Posts: 1
Joined: Sun Nov 01, 2020 1:29 am

Re: Ultralite AVB

Post by dpzmick »

Just wanted to share some related motu stories.

I got the 1248, initially flashed with firmware v1.3.5+1434 (Release Date 2019-05-13) and had very frequent bitcrusher effect issues on arch linux, non RT kernel, AMD ryzen with some very modern chipset, and only USB3 ports available. I tried a handful of the tweaks suggested in this thread and had no luck.

I've downgraded to firmware 1.2.9+1280 (according to the changelogs, there are some USB tweaks between this version and my initial version) and it seems to have cleared up my issues.

This means I've lost a few UI features (touch mixer), but the interface is working. Sort of irritating that it requires any work since my babyface pro works with my machine straight out of the box, no issues, but, only MOTU has class-compliant, remotely controlled, interfaces that have the I/O I need for a new project.

User avatar
bluebell
Established Member
Posts: 1437
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

The old firmware doesn't use the implicit feedback ports in the USB protocol. This feature was neglected in the Linux kernel but finds its way into the newer kernels step by step.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

cinhcet
Posts: 2
Joined: Sun Sep 27, 2020 11:06 pm

Re: Ultralite AVB

Post by cinhcet »

Hi,

I installed kernel 5.8.11 with the drumfix fix from here viewtopic.php?p=122814#p122814
Ultralight AVB (with new chip) firmware 1.3.5+637
So far everything is working nicely (except for the fact that I now get an error on boot about some network card driver, although the network card does work, before with kernel 5.4.X (ubuntu 20.04) this did not happen). THANKS a lot!

When do problems usually start?


Is there a way to access the mixer when the interface is just plugged into usb? (This is possible under windows)
Last edited by cinhcet on Fri Nov 06, 2020 9:02 pm, edited 1 time in total.

User avatar
bluebell
Established Member
Posts: 1437
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

cinhcet wrote:
Fri Nov 06, 2020 8:59 pm
Hi,

I installed kernel 5.8.11 with the drumfix fix from here viewtopic.php?p=122814#p122814
Ultralight AVB (with new chip) firmware 1.3.5+637
So far everything is working nicely (except for the fact that I now get an error on boot about some network card driver, although the network card does work, before with kernel 5.4.X (ubuntu 20.04) this did not happen). THANKS a lot!

When do problems usually start?


Is there a way to access the mixer when the interface is just plugged into usb? (This is possible under windows)
The UltraLite AVB's mixer is accessible via web browser. I guess on Windows and Mac they use ip-over-USB. I don't know if and how this works with Linux. Plug your UltraLite AVB's ethernet interface in and see on your router which ip address it gets. Then use http:// with that address.

I configured my router to assign a fixed ip address based on the UltraLite AVB's mac address.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

cinhcet
Posts: 2
Joined: Sun Sep 27, 2020 11:06 pm

Re: Ultralite AVB

Post by cinhcet »

bluebell wrote:
Sun Nov 08, 2020 3:47 pm
The UltraLite AVB's mixer is accessible via web browser. I guess on Windows and Mac they use ip-over-USB. I don't know if and how this works with Linux. Plug your UltraLite AVB's ethernet interface in and see on your router which ip address it gets. Then use http:// with that address.

I configured my router to assign a fixed ip address based on the UltraLite AVB's mac address.
Yes, it works if I wire an ethernet connection to the Ultralight AVB.
I was hoping not having to do that in my current setup.
On windows they definitively seem to use ip over USB, since you can point your browser to an ip address and the mixer will open.
There is the usbnet driver under linux, not sure if that will help here.

I guess I have to live with that additional cable.

ahellquist
Established Member
Posts: 48
Joined: Mon Jul 01, 2013 12:28 am

Re: Ultralite AVB

Post by ahellquist »

cinhcet wrote:
Mon Nov 09, 2020 8:24 am
bluebell wrote:
Sun Nov 08, 2020 3:47 pm
The UltraLite AVB's mixer is accessible via web browser. I guess on Windows and Mac they use ip-over-USB. I don't know if and how this works with Linux. Plug your UltraLite AVB's ethernet interface in and see on your router which ip address it gets. Then use http:// with that address.

I configured my router to assign a fixed ip address based on the UltraLite AVB's mac address.
Yes, it works if I wire an ethernet connection to the Ultralight AVB.
I was hoping not having to do that in my current setup.
On windows they definitively seem to use ip over USB, since you can point your browser to an ip address and the mixer will open.
There is the usbnet driver under linux, not sure if that will help here.

I guess I have to live with that additional cable.
I have two Ultralite AVBs and if I want to stack them to use both in aggregated mode (AVB) I have to use a dedicated AVB switch to be able to browse to the web gui. So not having ip over USB is a huge deal in Linux.

User avatar
bluebell
Established Member
Posts: 1437
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: Ultralite AVB

Post by bluebell »

ahellquist wrote:
Mon Nov 09, 2020 10:31 am
I have two Ultralite AVBs and if I want to stack them to use both in aggregated mode (AVB) I have to use a dedicated AVB switch to be able to browse to the web gui. So not having ip over USB is a huge deal in Linux.
There is a package usbip at least in the Ubuntu standard repos. But I didn't feel like fiddling around with it. At the first glance it seems to be a pain in the ass. But once it's configured and automated, who knows, maybe it works fine.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

root2
Established Member
Posts: 21
Joined: Wed Apr 15, 2020 9:48 am
Location: Germany

Re: Ultralite AVB

Post by root2 »

Update from my side: I decided to switch to an old macbook running jack, only connected to network and my Ultralite. Never looked back since then, no single problem.
Thank's for all your work, maybe sometime i can switch back to linux. I really hope so.

User avatar
wrl
Established Member
Posts: 18
Joined: Wed Nov 03, 2010 12:46 am

Re: Ultralite AVB

Post by wrl »

I'm not sure if the AVB hardware is actually using IP-over-USB. When I started doing a bit of analysis on the protocol a while back, it seemed like it was just stuffing HTTP responses/requests into USB bulk packets with some request identifiers that I couldn't figure out.

Might need a special driver as well.

Post Reply