AVLinux Forum

AV Linux Distribution => Announcements and Information => Topic started by: GMaq on April 06, 2016, 12:43:37 PM

Title: New AV Linux Kernel Repository now public!
Post by: GMaq on April 06, 2016, 12:43:37 PM
Hi,

First of all if you are an AV Linux 2016 user, this is already part of AVL so not really big news, get back to your recording  ;)

For users of Debian (perhaps Ubuntu too, feedback needed) the AV Linux kernel repository is now providing 32bit (PAE) and 64bit RT-patched Kernels in a public repo, there is also a Github page with the sources. See links below.

Brief history:

In the early days of AVL I also built the kernels which was a big burden on top of all the custom packaging. An AVL user/saint by the name of Trulan Martin came along and offered to start building kernels and we set up a repository on my hosting for kernels only. Trulan is active on the kernel mailing list and has done an amazing job of building custom kernels for AVL users for years now, since AV Linux 6 was 32bit only we did not make the repo public because of the higher demand for 64bit kernels but now the we have both architectures it is a good time to share Trulan's great work beyond just AVL. In recent years Trulan has had less time for building kernels and has a very busy and active life with his young family and other offline interests so when I decided to continue with AV Linux 2016 I asked Trulan if he would continue with the kernels as a paid position and thankfully he agreed, the reason I bring this up is that when you support AV Linux with donations you are not just putting money in my pocket you are enabling me to maintain important upstream relationships like Kernels and the KXStudio repositories, these are very important attributes that take AV Linux above and beyond just another Linux Desktop system. Properly configured RT kernels are not available at all for Ubuntu users and are sporadically provided within upstream Debian but often not with the optimal configurations applied, Trulan's Kernels are a very important resource for Audio work especially with many USB-2 Audio Interfaces.
*Please Note!*

- We have absolutely zero interest in providing a "kernel-of-the-month" club, these kernels are for providing a stable RT-patched production environment.
- The RT-patch is incompatible and routinely breaks 3rd party proprietary nVidia and AMD Video drivers, these kernels are for use with Xorg video drivers only!
- Trulan's time is limited and the main priorities are stability and timely support of new Pro Audio Linux hardware, Kernel updates will be based on those criteria.
- As of 2016-09, the kernel building base has moved to AV Linux 2016/ Debian Testing.  Kernels are now compiled with gcc-6.  The repository still contains kernels for Debian Jessie, built with gcc-4.9, but these will probably not see any more updates.

Repository Information:

Latest kernel version: 4.9.76-rt61-avl2
AV Linux 2018 release kernel: 4.9.76-rt61-avl2

Source code:
We try to stick as closely as is reasonably possible to vanilla Linux kernel sources from kernel.org.  The only code we add/change is:
1. aufs (Another Union File System) support - used for live booting and remastering:
http://aufs.sourceforge.net/
2. The Real Time Linux patch set:
http://www.spinics.net/lists/linux-rt-users/
3. Support for a few additional sound cards (varies by kernel version)

Source code for recent AV Linux kernels can be found here:
https://github.com/musical-chairs/linux/tags

Source code tarballs for kernels that shipped with older AV Linux releases can be found here:
http://www.bandshed.net/kernels/source/

-------------------------------------------------------------------------------------------
To access the kernel repository (if you're not already set up for it):
1. Import the public key.
Run this as root:
Code: [Select]
wget -O - http://www.bandshed.net/kernels/apt/trulanm@gmail.com.gpg.key | apt-key add -
2. Add the repository to your sources list.
Open Synaptic, go in the menu to Settings/repositories.
Click on the 'Third Party Software' tab, and click 'add'.
Copy this line into the box:
Code: [Select]
deb http://www.bandshed.net/kernels/apt stretch mainOr, for the 'jessie' kernels:
Code: [Select]
deb http://www.bandshed.net/kernels/apt jessie mainThen close the settings window and click 'reload' to update Synaptic.

Now, you can click on 'Origin' in the lower left-hand side of Synaptic and select 'testing/main (www.bandshed.net/kernels...).  This will show the latest kernel and headers packages available for installation.

Notes:
- There are no 'metapackages'; new kernels will not be automatically installed.  This is in keeping with the 'if it ain't broke, don't fix it' mentality of AV Linux. (It's also easier for me...)
- Kernels for debian jessie are compiled with gcc 4.9.  I'll leave this repo up for the time being, but consider it EOL.
- Kernels for debian stretch are compiled with gcc 6.1.  See this post (http://bandshed.net/forum/index.php?topic=3719.msg22932#msg22932) for instructions on using the stretch kernels on AV Linux 2016.
- If you want to try to use these kernels in a distro other than AV Linux, you might be able to get it to work, but you do so AT YOUR OWN RISK!!

Thanks and Enjoy!

Glen, Trulan
Title: Re: New AV Linux Kernel Repository now public!
Post by: Snap on April 08, 2016, 02:06:03 AM
Great, Thank you! That's an awesome "spring is coming" gift.
Title: Re: New AV Linux Kernel Repository now public!
Post by: Snap on April 08, 2016, 02:40:14 AM

Quote
- There are no 'metapackages'; new kernels will not be automatically installed.

Totally agree with that.
Title: Re: New AV Linux Kernel Repository now public!
Post by: varpa on April 21, 2016, 03:15:07 PM
I discovered a problem/feature - kernel vmlinuz-4.4.6-rt13-avl1 cannot run wine (perhaps because it is 32bit): 
$ file /usr/bin/wine
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3df7affcceabd7d0dde95050adc22952f509230e, stripped

When I switched to vmlinuz-4.1.5-rt5-avl2 wine and wine+carla) worked.    So I guess, vmlinuz-4.4.6-rt13-avl1, lacks the ability to run 32bit programs, not sure if this is an oversight, or intended.
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on April 21, 2016, 04:48:42 PM
Hi,

fixed in 4.4.6-rt13-avl2
Title: Re: New AV Linux Kernel Repository now public!
Post by: varpa on April 21, 2016, 10:43:51 PM
Hi GMaq/Trulan,  thanks for the quick fix and up-to-date kernels.
Title: Re: New AV Linux Kernel Repository now public!
Post by: magicalex on April 28, 2016, 04:19:27 AM
Hi Glen. I just wanted to say a big thank you to you and Trulan for all the great work you've done and are continuing to do. I just had a fun couple of hours playing with guitarix on an 8 year old laptop someone gave me with the lowest latency I've ever been able to achieve without xruns (128/3) running avlinux from a usb stick!
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on April 29, 2016, 03:12:22 PM
Hi Glen. I just wanted to say a big thank you to you and Trulan for all the great work you've done and are continuing to do. I just had a fun couple of hours playing with guitarix on an 8 year old laptop someone gave me with the lowest latency I've ever been able to achieve without xruns (128/3) running avlinux from a usb stick!

Thanks, nice to hear that,

I'm surprised at that latency, unlike previous AVL versions latency takes a bit of a hit with the LiveISO vs. an installed system, must be some good hardware in that laptop!
Title: Re: New AV Linux Kernel Repository now public!
Post by: magicalex on April 30, 2016, 02:41:22 PM
The funny thing is, I don't think so. It's an HP Compaq with a single core Celeron processor. I've just installed Debian Unstable on it with your latest kernel and it works perfectly - virtually no xruns even with the internal sound card. Go figure!
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on August 01, 2016, 06:16:45 AM
I just pushed a set of updated 4.4-rt kernels - 4.4.15-rt23-avl2.  No changes on my end, just the usual upstream stable kernel patches.
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on August 01, 2016, 01:02:32 PM
THANK YOU!!!
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on August 06, 2016, 11:16:46 PM
Up for testing is a new set of kernels: 4.6.5-rt10-avl1.  They don't work with VirtualBox guest additions just yet, they're a bit too bleeding edge for that.  They seem to handle audio stuff okay though, at least on my hardware.  Happy testing!
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on September 24, 2016, 04:11:35 PM
Kernel development moving to 'stretch'
Time, tide, and Linux kernel updates wait for no man... So, I'm officially moving kernel development to Debian Stretch.  This means changing the gcc version used to build the kernels, and also changing the apt sources line used to access the repo.

This requires two changes on the user's end, if you want to use the latest kernels.
(These instructions are for AV Linux 2016-8.  They may or may not apply to other releases.)

1. Update your sources list:
- Open Synaptic, go in the menu to Settings/repositories.
- Click on the 'Other software' tab, and click 'add'.
- Copy this line into the box:
Code: [Select]
deb http://www.bandshed.net/kernels/apt stretch main- Then close the settings window and click 'reload' to update Synaptic.

2. Set gcc-6 as the default compiler:
- gcc-6 is preinstalled in AV Linux 2016-8.  If you're running an older release you may need to install it, via Synaptic or apt-get.
- Open a root terminal and run:
Code: [Select]
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
Code: [Select]
update-alternatives --config gcc...and select gcc-6 in the menu shown.

Note that you can use 'update-alternatives --config gcc' to change the default gcc versions at any time.  Note also that the first command gives gcc-6 a priority of 60, which is between gcc-5 (it's priority is 100) and gcc-4.9 (which gets 50).  You could set the priorities up however you choose, I had to give it something and 60 seemed somewhat sane to me.
Title: Re: New AV Linux Kernel Repository now public!
Post by: korakios on September 25, 2016, 09:19:25 PM
Hi Trulan ,
Are there any noticeable differences in audio performance?
(Thank you for your hard work )
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on September 25, 2016, 09:33:03 PM
Hi Trulan ,
Are there any noticeable differences in audio performance?
(Thank you for your hard work )
Not that I know of.  I'm currently not able to do much beyond building and basic sanity testing.  I try to keep my eyes and ears open for anything that might impact us for better or for worse, but I'm not aware of any major changes with these releases.
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on November 12, 2016, 08:30:50 AM
Up for all users is a new set of kernels, 4.4.30-rt41.  This is of particular interest to those of you who may like using the AV Linux kernels but also want to stay up to date with recent security patches such as the one for the infamous "Dirty COW" vulnerability.

As the 4.6 kernel series is no longer maintained upstream, there won't be any security updates for that.  I do plan on bringing the 4.8-rt kernel to AV Linux in the near future.
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on November 25, 2016, 12:33:25 PM
Hello

I would really like a 4.8 kernel with patchs from the 4.9 tree . it has some fixes for the Line 6 pod x3 live
and a few others.

Jk

Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on November 25, 2016, 06:05:31 PM
Hello

I would really like a 4.8 kernel with patchs from the 4.9 tree . it has some fixes for the Line 6 pod x3 live
and a few others.

Jk
I have a 4.8-rt kernel in the works, I'll see what I can do.  If you could link me to the patches that would be great.

Edit: Nevermind, I can get the patches by grepping git log.  There's rather a lot of them.
Edit #2: OK, the line6 patches apply cleanly.  By "A few others", did you mean other fixes for line6, or were there other soundcard fixes that you were interested in?
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on November 26, 2016, 12:09:42 PM
Morning Trulan

The line 6 patches,  also any Firewire patches  would be great

Im also working on getting a usb quirk for the Yamaha THR5.  There should be a Quirk for the THR10, 10x and 10c
in the kernel as of 4014 I believe. 

Thanks Jk
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on November 26, 2016, 03:41:10 PM
Morning Trulan

The line 6 patches,  also any Firewire patches  would be great

Im also working on getting a usb quirk for the Yamaha THR5.  There should be a Quirk for the THR10, 10x and 10c
in the kernel as of 4014 I believe. 

Thanks Jk
Thanks Joe,

It doesn't look like there are any firewire fixes worth pulling in.  There are a few semantic changes and two models were rolled into one, but none of that should impact anything, at least not in this kernel release.

Here are the Yamaha THR USB IDs that are currently in the kernel source code:
THR10 - 0x0499, 0x1507
THR5A - 0x0499, 0x150a
THR10C - 0x0499, 0x150c

I think you had given me the USB ID for the THR10X once upon a time, and there might also be another variant of the THR5 that you did not have.

Edit:  Here is this one:
THR10X: 0x0499, 0x150b
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on November 27, 2016, 05:44:02 PM
Up for testing is a set of 4.8.6-rt kernels with the line6 patches from 4.9.  Please test this one out thoroughly if you can.  I rebased the config off of debian's RT kernel config, hopefully I didn't miss anything important that we need for low latency audio, etc.  I just felt like I was not able to keep up with trying to sort through all the new configuration options every kernel release, and it will be more sustainable if I can copy Debian's config and make the changes we need to that.

So, please test and let me know if there are problems.  The new kernels (and all future kernels) can be found in the 'Stretch' section of the repo.  (Look a few posts up in this thread for info on setting up apt to access the 'Stretch' AVLinux kernels.)
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on March 04, 2017, 03:44:10 PM
Hi Trulan

Do to work load i just install the 8.4.6 rt kernel. i installed on 2 laptop couldn't get it to load on either one   
kernel errors .
I will get you some more info.

I did build a working 4.10.1 kernel yesterday . preemptive  used the Amd Athlon   works very well and from grub boot
to desktop very fast  25 sec  why im not shure   seen stable so far.
running on a acer extensa 5420 ,
Toshiba sat uses a Intel processor working little slower i think .  wish i new more about kernel building .
going to build a kernel for the Toshiba   
Jack stable at 11msec  on the HDA SB
on a Echo Cardbus at 64 frames  I get 2.9msec no dropouts
no problems so far.     

I don't think there's a rt for this kernel if so let me know  .
Thanks
JK

Got to love Linux.   

Title: Re: New AV Linux Kernel Repository now public!
Post by: Zedman on April 26, 2017, 11:25:42 AM
Thank you for the quick reply ... I feel the same ... if it ain't broke, don't fix it! As an aside. in the '70's I worked as a studio musician with members of Spott Farm, Perth County Conspiracy. Richard Knechtel, Mercey Bros. (the old Elmira Studio) ... am still actively performing nationally and internationally ... take care ...

Zedman
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on May 11, 2017, 09:01:25 PM
Hi Trulan

I have a question   I built kernel 4.11  loads up and runs ok except  Wine stop working.  cant get playinlinux to work ether?  If I go back to the old
kernel  wine works again. I don’t have a clue how a kernel can effect this but It did.   Any Ideas 
Thank jk

       

Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on July 04, 2017, 11:27:31 PM
Hi everybody!  I built and uploaded a new set of kernels:
4.9.33-rt23avl1

Everything tests out OK here, but please let me know if there are any issues.  4.9 is an LTS kernel, so further development will be tracking it unless there is a good reason to keep building 4.4 kernels.
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on July 23, 2017, 10:08:12 AM
Ha

I cant set synaptic to work . what is the url  to install the testing kernels ?  and is there a way to access then directly? download them?
Teating branch will not show up  in sources list ??


Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on July 24, 2017, 05:37:24 AM
I cant set synaptic to work . what is the url  to install the testing kernels ?  and is there a way to access then directly? download them?
Testing branch will not show up  in sources list ??
It should work if you add the line to your sources, as described in the first part of this post: http://bandshed.net/forum/index.php?topic=3719.msg22932#msg22932 (http://bandshed.net/forum/index.php?topic=3719.msg22932#msg22932)
You could probably download them directly from here:  http://www.bandshed.net/kernels/apt/pool/main/l/linux-4.9.33-rt23avl1/
Title: Re: New AV Linux Kernel Repository now public!
Post by: 33Nicolas on July 29, 2017, 03:29:59 PM
It's strange, it allows me to go into the 1900 X + territory but the 30 hz rate was so bad I had to go back to 1680 x 1050 with the 60 hz refresh rate.

Title: Re: New AV Linux Kernel Repository now public!
Post by: Zedman on August 12, 2017, 12:15:33 AM
Simple question ... does  4.9.33-rt23avl1 LTS support Nvidia and/or ATI graphics cards?
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on August 12, 2017, 07:20:03 AM
Simple question ... does  4.9.33-rt23avl1 LTS support Nvidia and/or ATI graphics cards?
Simple question, yes; unfortunately the answer must be a little more complicated.

No special effort was made to support or disable any graphics cards.  If they are supported on a stock debian 4.9-rt series kernel, they will work here.  The open source nouveau and raedon drivers, standard in any Linux kernel, will work on most of these cards.  They may not necessarily include all the features of NVidia's or ATI's proprietary drivers.  Also, some NVidia cards do not play well with the nouveau driver in some applications.  (I'm looking at you, Cinerella).  It is probable that a newish NVidia card can be gotten to work with the proprietary NVidia drivers, though it will likely take a little bit of hacking to get it to install successfully.  The Liquorix kernels are often easier to work with when using the proprietary drivers than are the AV Linux RT kernels.

Is that a clear enough answer?
Title: Re: New AV Linux Kernel Repository now public!
Post by: Zedman on August 13, 2017, 10:27:37 PM
Thanks Trulan ... just needed to verify since linux-image-4.8.6-rt5avl2_4.8.6-rt5avl2-2 apparently did not offer Nvidia/Ati support ... that's why I upgraded to the 4.9 LTS ... I do a lot of audio/visual work and am looking to purchase a graphics card for video transfers, so I needed the info ... linux-image-4.9.33-rt23avl1_4.9.33-rt23avl1-3_amd64 runs smooth as silk on my MX-16 setup!!

Cheers
Title: Re: New AV Linux Kernel Repository now public!
Post by: 33Nicolas on September 02, 2017, 10:05:44 AM
Tx Trulan, it sounds simple enough for me.

Just clarify, I have the following:

Quote

-Computer-
Processor      : 8x AMD FX(tm)-8320 Eight-Core Processor
Memory      : 16419MB (3581MB used)
Operating System      : Debian GNU/Linux 9.1
Kernel      : Linux 4.9.33-rt23avl1 (x86_64)

It sounds as if I installed a regular Debian kernel 4.9 LTS I might unlock more features for my graphic card.

The last question I have is where do I get the 4.9 LTS kernel? I don't see it under the Synaptic Package Manager.

Thanks for any help you can offer,
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on September 12, 2017, 06:51:05 PM
Hi everybody!  There's a new batch of kernels for your testing, usage, and enjoyment.  This time, there are four kernels available:

For 32 bit: (i386)
linux-4.9.40-rt30avl2
linux-4.9.40-lowlatency-avl2

And for 64 bit: (amd64)
linux-4.9.40-rt30avl2
linux-4.9.40-lowlatency-avl2

The 'rt' kernels are updates to the Real Time Linux kernels you are familiar with in AV Linux.  A Real Time kernel often can perform more consistently at low latencies under heavy load.  (ie, fewer xruns while processing live audio.)

The 'lowlatency' kernels do not include the 'Real Time' patch.  Some hardware does not play well with a full real time kernel, especially hardware that requires proprietary drivers (such as many NVidia video cards).  If you would rather have good graphics and no headaches, and don't care about crazy-low latencies, then these kernels are for you.   Many users will not be able to tell a difference between the real world performance of the two kernels.

As always, I appreciate those of you who test and report back!
Title: Re: New AV Linux Kernel Repository now public!
Post by: jiff41 on September 13, 2017, 01:27:25 AM
Is there a tutorial/video anywhere for me to try testing, I'd love to have a go if it's not TOO  :rolleyes: complicated  :cheesy:
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on September 14, 2017, 02:10:51 PM
Is there a tutorial/video anywhere for me to try testing, I'd love to have a go if it's not TOO  :rolleyes: complicated  :cheesy:

Hi,

They just install like any other package from Synaptic, just search:

linux-4.9.40-rt30avl2 or linux-4.9.40-lowlatency-avl2 (depending on what you're looking for) in Synaptic and you can install them, this won't remove your existing kernel and on next boot GRUB will automatically select the newest kernel on the system. If everything works you can later decide to uninstall the previous older kernel using Synaptic as well. If the new kernel doesn't work for some reason or you don't like it, simply select the 'Advanced Options' in GRUB with your keyboard arrow keys on your next boot and select to boot the older kernel and then remove the new kernel using Synaptic...

Easy Peasy! :cool:

Now... if you want to install nVidia proprietary drivers on the lowlatency kernel that is a bit more involved and I am going to document it soon...

Title: Re: New AV Linux Kernel Repository now public!
Post by: jiff41 on September 15, 2017, 02:48:57 AM
Easy Peasy! :cool:
:whistle: many thanks Glen!, Here goes then!  :wowed:
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on September 16, 2017, 12:42:15 PM
I know, I just pushed out a set of kernel updates a few days ago.  But there were a few fixes in the recent upstream updates (including an important fix in the alsa-firewire driver) that I wanted to get out there.  So you will find a set of 4.9.47 kernels (rt and lowlatency) in the repository.  So, there they are, and happy testing!
Title: Re: New AV Linux Kernel Repository now public!
Post by: joe k on September 18, 2017, 04:23:43 PM
Ha

I haven't been able to get any kernel after 4.6 rt to load always  gives a udev permission problem.

Kernel boot error:

Scripts/init-top/udev  line 14 Cant create/sys/kernel/uevent_helper: Permission denied

dosent find the drive.

4.8 kernels
4.9 kernels  all




Title: Re: New AV Linux Kernel Repository now public!
Post by: 33Nicolas on September 18, 2017, 07:30:46 PM
I noticed a search for "linux-4.9.40-rt30avl2" and "linux-4.9.40-lowlatency-avl2" yielded nothing for me. When I removed linux, i.e "4.9.40-rt30avl2 or "4.9.40-lowlatency-avl2" they showed up.

Not sure if this is a problem on my side. Sure got a few of those :)
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on September 18, 2017, 07:37:33 PM
Kernel boot error:

Scripts/init-top/udev  line 14 Cant create/sys/kernel/uevent_helper: Permission denied
Hi Joe,
Thanks for the report.  That looks like this bug:  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752742
Are you running a rather old installation of AV Linux?  If so, you may need to upgrade systemd to get past this.  Even debian jessie (old stable) systemd package has been patched for this as far as I can tell.

@GMaq, have you seen any issues like this on your machines?  There's a workaround kernel config option I can enable if I need to.
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on September 19, 2017, 09:31:07 AM
I noticed a search for "linux-4.9.40-rt30avl2" and "linux-4.9.40-lowlatency-avl2" yielded nothing for me. When I removed linux, i.e "4.9.40-rt30avl2 or "4.9.40-lowlatency-avl2" they showed up.

Not sure if this is a problem on my side. Sure got a few of those :)

Trulan just pushed an updated '4.9.47' kernel, it's possible he replaced 4.9.40 so it no longer appears. I've been busy with work and am a little behind testing right now.
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on September 19, 2017, 09:37:40 AM

@GMaq, have you seen any issues like this on your machines?  There's a workaround kernel config option I can enable if I need to.

Hi,

Sorry busy with work and am behind on kernel testing, 4.9.33 works well for me (other than some Virtualbox stuff which we already discussed) so I'm assuming 4.9.47 will if there were no changes, I need to catch up and sync all my builds next weekend.

From Joe's other posts I think he had networking issues with AVL 2017 and is remarkably still using AV Linux 6.0 (which doesn't have systemd at all)

@Joe, AVL 6.0 is discontinued and obsolete, it's cool if it still works for you, but we can't be making kernel adjustments and alteration to accommodate an obsolete version.

Title: Re: New AV Linux Kernel Repository now public!
Post by: ThothMacDonalds on January 17, 2018, 12:36:28 AM
Hey fam! I'm currently playing around with pop_os, and it's pretty cool. A little too slick for my eyes, but I digress... Obviously I couldn't help but tinker, and I just added the avl kernel repo, and couldn't help but notice this 4.14.12 kernel available and didn't see it mentioned here.

I wanted to ask quick question about Trulan's nomenclature, just to be sure... In the description field "on amd64" refers to on an amd64 processor, not simply 64 bit, as it does sometimes, correct? And if it's 32 bit its it labeled specifically i386? Also avl1-x vs avl2-x, are they draft numbers or is there a significant difference between 1 and 2? I hope I'm making sense.

I guess my confusion is because I went to install the amd64 one out of habit, but I have an Intel processor. After reboot it didn't show up in grub. I tried the other one, which I had assumed was i386 and it booted up flawlessly.

Since this is an artful aardvark based distro I probably ought to try the Ubuntu low latency first, but I always appreciate checking out what y'all been up to and I trust you! Haha!
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on January 17, 2018, 07:14:01 PM
I wanted to ask quick question about Trulan's nomenclature, just to be sure... In the description field "on amd64" refers to on an amd64 processor, not simply 64 bit, as it does sometimes, correct? And if it's 32 bit its it labeled specifically i386? Also avl1-x vs avl2-x, are they draft numbers or is there a significant difference between 1 and 2? I hope I'm making sense.
i386 is 32 bit, amd64 is 64 bit.  It doesn't matter whether your CPU is AMD or Intel or whatever.  That's been Debian's naming convention ever since 64 bit CPUs were a new thing - AMD came out with them first, so they got the name.  That part of the name is generated by the kernel packaging scripts, I don't tell it what to put there.
The 'avl1, avl2' designation is my in-house revision number.  If I add some out-of-tree patches, or change something in the kernel config, I'll bump the revision number.  It's supposed to help me keep track of what I change, and to identify whether I have fixed problems or created more problems.

Quote
I guess my confusion is because I went to install the amd64 one out of habit, but I have an Intel processor. After reboot it didn't show up in grub. I tried the other one, which I had assumed was i386 and it booted up flawlessly.

Since this is an artful aardvark based distro I probably ought to try the Ubuntu low latency first, but I always appreciate checking out what y'all been up to and I trust you! Haha!
You installed the 32 bit version of the distro then?  Debian (and most derivatives, I would expect) supports booting a 64 bit kernel for a 32 bit OS, but maybe your distro doesn't, or your grub configuration ignores the 64 bit kernel.  I'm not sure on that one.
Title: Re: New AV Linux Kernel Repository now public!
Post by: ThothMacDonalds on January 18, 2018, 02:25:22 PM
Ok! I thought that was the case, but was starting to doubt myself! Thanks for clearing that up! However, it does deepen my mystery. It is indeed a 64 bit build, but for whatever reason it didn't like the most recent amd64 kernel...

This is not a big deal. Playing with pop_os is just a passing fancy. Doesn't take me long to start to feel like "ewww, Ubuntu."

Thanks again!
Title: New Kernels uploaded - testers needed
Post by: trulan on January 20, 2018, 08:30:38 AM
Hi everybody!

There are a bunch of new kernels up on the repos:
- 4.14.12-rt10 kernels
- 4.9.76-rt61 kernels
- 4.9.76-lowlatency kernels
(all the kernels have an added 'avl#' tag to the name)

All the kernels are available in 32 bit and 64 bit.  I did not build a lowlatency variant of 4.14 yet, 4.14 is still a 'young' kernel so I think I'll wait another stable release or two to build the full set.
Also, all the 64 bit kernels include the Kernel Page Table Isolation patches (aka the Meltdown mitigation), intended to protect Intel CPUs from speculative execution attacks.  This does come with a bit of a performance penalty on some systems, so be aware of this as you test.  KPTI can be disabled at boot time, by adding
Code: [Select]
noptito the grub command line.  This can be done on 'temporary' basis right from the grub menu, or it can be more permanently added to /etc/default/grub.

Rember that kpti is disabled on most AMD CPUs, and is not available on 32 bit kernels.

Thanks for testing!  Your feedback is much appreciated.
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on January 21, 2018, 05:32:52 PM
New RT Kernel available, ohhh yeah! Trying it out now! Thank you so verrryy much  :) Happy, happy, happy! 2018 started rockin' already!
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on January 24, 2018, 08:10:43 PM
Dear Trulan,

              I don't know how you do your magic, but oh boy!does the new 4.9.76 RT kernel sound sooo good! I tested using my guitarix preset using both kernels: 4.9.76 and 4.9.40 (the same that ships with AVlinux 2017 ISO), you can hear the difference on the audio files below:

4.9.40

https://drive.google.com/open?id=17hO8vwFlo_YXdRP-S28XLZhI-QnPcFuB

4.9.76

https://drive.google.com/open?id=1_QhaaVoCE5y6zmCBWbUhSqOS3_bEJf2d

Bottom line: YOU ARE AWESOME MAN! My tone sounds so much better, truly realistic :D thank you so very much for making and sharing these Kernels, they are awesome!

PS: I couldn't test the performance well, because I am pretty sure I got a problem on my audio interface, it works, but the performance is the same as If I were running AvLinux Live from the USB disk  :depressed: . I have no idea why that is happening, it didn't happen before.

PS2: I couldn't test kernel 4.14.12 because it requires libelf-dev and libelf-devel, I don't have access to the internet at home, so I can only wait until AVlinux 2018 is released and hope that it will ship with those libraries ;)

Thanks a lot, you guys Rock!
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on January 25, 2018, 06:15:18 AM
I couldn't test the performance well, because I am pretty sure I got a problem on my audio interface, it works, but the performance is the same as If I were running AvLinux Live from the USB disk  :depressed: . I have no idea why that is happening, it didn't happen before.
If the performance is worse on 4.9.76, try adding "nopti" to the grub command line. For a single-user system with no internet access, there's no need for that heavy security layer.
Quote
PS2: I couldn't test kernel 4.14.12 because it requires libelf-dev and libelf-devel, I don't have access to the internet at home, so I can only wait until AVlinux 2018 is released and hope that it will ship with those libraries ;)
I didn't realize that libelf-dev would be needed to install the 4.14 kernels.  It's needed for the new default kernel unwinder, it's supposed to make some things a little more efficient.  I'll re-evaluate whether or not we want to enable that option in the kernel for now.  Alternately, if you want, you can download the libelf-dev package here and install it manually:
https://packages.debian.org/stretch/libelf-dev
Title: Re: New AV Linux Kernel Repository now public!
Post by: GMaq on January 25, 2018, 10:57:36 AM
Hi,

Running behind here, my studio machine is still 32bit, the 4.14.12 seems to be a rocket! I halved the latency on my Presonus 1818VSL just to push it and it's handling it well, previous kernels have not been able to do that, needs further testing.

Have not waded into the 64bit juggernaut yet as I have a parent in hospital and a full work schedule on top, will get to it, but I need to make sure I can fully upgrade VBox hosts and guests to continue working on AVL 2018..

Trulan your thorough work is VERY much appreciated!
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on January 25, 2018, 01:26:59 PM
Dear Trulan,

               Thanks a lot for the link ;), I'll definitely install the library and try out the kernel. The problem I have with performance drop also happens in previous kernels, it started happening last week, before I try the new kernels, that's why I think it's an issue on my audio interface's hardware  :depressed:

Thanks a lot again

Att.: Rodney

Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on January 28, 2018, 10:57:05 PM
Dear Trulan,

           I have just tried the newest 4.14.15 AVL1 RT kernel, and although I think it's great, I prefer 4.9.76 RT for its "musicality" if I can call it that way 😉. Whereas 4.14.15 improved in performance (at least it felt like that to me: less CPU hunger), it dropped in "sound quality". I AM in love With 4.9.76 RT, I honestly think it's the best ever ❤😻😍.

Thanks a bunch again for providing US these amazing kernels.

Cheers,

Att.: Rodney
Title: Re: New AV Linux Kernel Repository now public!
Post by: protozone on May 14, 2018, 03:30:43 PM
32-bit MX 17 Linux "Horizon" (of Debian Stretch, i686) works with 4.14.12-rt10avl1 ! 
It's very easy to use MX Linux with and without the AVLINUX kernel. 
The main thing to do is to add the THREADIRQS option to the /etc/default/grub file and then "sudo update-grub". 
Also, the grub customizer is built in, so it's pretty easy that way too! 

Thanks so much for making this stuff available! 

Title: Re: New AV Linux Kernel Repository now public!
Post by: protozone on June 28, 2018, 08:35:51 PM
Just today I successfully installed 2 more items and the following are working in my dual boot MX Linux system. 
   one partition is the SWAP, one is 32-bit MX Linux, and the other is 64-bit MX Linux.  I had been using only 32-bit until today. 

I can confirm that an AVLINUX RealTime kernel installs OK in 64-bit current MX Linux snapshot .ISO from yesterday. 
Also a Low-Latency AVLINUX kernel installs OK for that same 64-bit current MX Linux snapshot .ISO from yesterday. 

I don't have any NVIDIA stuff. 
Synaptic had some complaint errors, but they didn't matter because I boot the kernel up using GRUB4DOS from Puppy Linux. 
I then manually edit the /menu.lst text file and the entries look similar to the stuff below.  GRUB4DOS bypasses GRUB(2) yet coexists with it. 
I still do "sudo update-grub2" to be safe, but it often doesn't disturb GRUB4DOS's bootloader way so it's safe both ways.  During 64-bit MX Linux install, I skipped the bootloader part because I already had a booting 32-bit partition. 

I did a manual "sudo update-grub2" instead after editing the /etc/default/grub file and the /etc/fstab.  Then I reboot. 
MX Linux's fstab entry is not really that great as it's default uses "/dev/sda" mountpoint format instead of "uuid=blah-blah-blah" mountpoint format.  So I just edit fstab to be more like how Ubuntu Studio was, with the UUID format and I make sure that the mount points (folders) for each partition is not the same.  And I make the changes manually in each fstab in each partition and in each menu.lst just in case too.  But only one partition has the boot flag set.  But as long as they don't try to both occupy the same mount point, with a correct entry in fstab in both partitions, each can boot yet also have access to the other partition.  So it worked out pretty well

I realise that this stuff isn't always for beginners, though. 

But thanks very much for the kernels. 

I look forward to testing some 64-bit freewares as 32-bit VST's and programs seem to be getting less and less support.  I had chosen 32-bit specifically because WINEhq.org had said that 32-bit WINE is more stable than 64-bit WINE.  But now I need to get into 64-bit stuff without throwing away my precious 32-bit favorite VST(i) modules. 

Although 64-bit MX Linux is more bloaty than 32-bit MX Linux, it does have a nice MacOS icon theme. 

$ "uname -a" reveals...
Code: [Select]
Linux ultraviolet 4.16.12-rt5-avl1 #12 SMP PREEMPT RT Thu Jun 14 04:35:48 EDT 2018 x86_64 GNU/Linux

$ "$ lsb_release -a" reveals...
Code: [Select]
No LSB modules are available.
Distributor ID: MX
Description: MX 17 Horizon
Release: 17
Codename: Horizon

64-bit MX Linux (RealTime AVLINUX mode) ;; installed this today and it works!
   uuid=[censored]
   kernel /boot/vmlinuz-4.16.12-rt5-avl1 root=[censored device path] ro threadirqs transparent_hugepage=never
   initrd /boot/initrd.img-4.16.12-rt5-avl1

title 32-bit MX Linux (RealTime AVLINUX mode) ;; (this was already installed on my 32-bit partition)
   uuid=[censored]
   kernel /boot/vmlinuz-4.14.12-rt10avl1 root=[censored device path] ro threadirqs transparent_hugepage=never
   initrd /boot/initrd.img-4.14.12-rt10avl1
   
title 64-bit MX Linux (Low-Latency AVLINUX mode) ;; installed this today and it works!
   uuid=[censored]
   kernel /boot/vmlinuz-4.16.12-lowlatency-avl1 root=[censored device path] ro threadirqs transparent_hugepage=never
   initrd /boot/initrd.img-4.16.12-lowlatency-avl1

title 64-bit MX Linux (Regular) ;; a fresh install of 64-bit MX Linux installed during the past 2 days on a new partition
   uuid=[censored]
   kernel /boot/vmlinuz-4.15.0-1-amd64 root=[censored device path] ro threadirqs transparent_hugepage=never
   initrd /boot/initrd.img-4.15.0-1-amd64

title 32-bit MX Linux (PAE mode) ;; this was already installed for 32-bit MX Linux
   uuid=[censored]
   kernel /boot/vmlinuz-4.15.0-1-686-pae root=[censored device path] ro threadirqs transparent_hugepage=never
   initrd /boot/initrd.img-4.15.0-1-686-pae
Title: Kernels seem to work fine for MX Linux 17 with some effort
Post by: protozone on June 30, 2018, 08:29:38 PM
Success also installing the Low-Latency kernel v16.12 and the RealTime kernel v16.12

(4.16.12-rt5avl1 #22 SMP PREEMPT RT Thu Jun 14 07:01:32 EDT 2018 i686 GNU/Linux) and it's related Low-Latency equivalent...

Both of them gave some strange errors in Synaptic, but I exited Synaptic after the attempt and then manually did a "sudo update-grub2" and then they were installed OK without any errors.   Then I was able to edit my /menu.lst (I use GRUB4DOS) and point the boot loader to the correct vmlinuz and initrd files for each entry. 

I'm hoping that 16 has some features that might reduce some CPU load otherwise experienced in 14.  But I have been able to successfully compose music using v14. 

As stated before, my DAW operating system is MX Linux 17 (Horizon), which is a Debian/AntiX variant based upon Debian Stretch.  I had to edit the MX repos a bit, but it's pretty basic to do that.  With the RT kernel, when I increase  the audio driver "aggressiveness" in REAPER, I get noticeable results which is helpful when trying to compose with VST instruments and effects in a multitrack mixing scenario. 
Title: Re: New AV Linux Kernel Repository now public!
Post by: protozone on July 01, 2018, 08:06:42 PM
I forgot to add....

I tried MX Linux's "Liquorix" RealTime kernel install also. 
That was difficult to learn about, difficult to read about, difficult to implement in concise steps, and ultimately it didn't work on my system...
even though I correctly followed the instructions and was able to install gcc updates, etc. 

Also, I'm not as comfortable with the Liquorix technique because it requires tapping into Debian "sid" unstable/testing/experimental.

Whereas, I am otherwise fine at Debian "stretch", and maybe occasionally temporarily some backports. 

To be honest, today I reset my system back to the AV Linux kernel 14.x because that's the one I know for sure works on my system. 
I had some difficulty on a website early today using 16.x  ...it probably wasn't the kernel, but I'm not sure yet.  Just to be safe, I went back to what I know.  But I didn't delete the kernels, they are right there as extra options.  That's the beauty of extra kernels. 
Title: Re: New AV Linux Kernel Repository now public!
Post by: sunrat on July 01, 2018, 09:35:29 PM
I forgot to add....

I tried MX Linux's "Liquorix" RealTime kernel install also. 
That was difficult to learn about, difficult to read about, difficult to implement in concise steps, and ultimately it didn't work on my system...
even though I correctly followed the instructions and was able to install gcc updates, etc. 

Also, I'm not as comfortable with the Liquorix technique because it requires tapping into Debian "sid" unstable/testing/experimental.
Liquorix doesn't come from sid, it has it's own repository. It should be as simple as add repository to sources, update, install kernel. Worked for me in AVL. It was just something I tried based on past experience and it was fine.

But this is AVL, I'm sure the AVL rt and low-latency kernels are the best and simplest solution.
Title: Re: New AV Linux Kernel Repository now public!
Post by: protozone on July 02, 2018, 03:58:56 PM
I distinctly remember that some of the system specifications for installing Liquorix require other than typical Debian 9 "Stretch".  I think it was gcc-7 Gnu Compiler 7 and maybe some other stuff that isn't yet standard (or wasn't in the past).  I had to edit my repos according to the Liquorix forum instructions and it definately involved tapping into sources other than Debian 9 Stretch.  I don't think it was just the Liquorix repo either.  It didn't damage my system, but it wasn't as easy as the AVLINUX approach.  I do remember specifically I had to enable some "experimental" and "testing" stuff. 

Anyways, I did post in error up above:

GRUB4DOS and Grub2 can coexist, but they do overwrite each other under certain circumstances which I don't fully understand. 
But as long as you have one or the other configured correctly, it should be fine.  They both accomplish the same end goal-- a menu to boot items and the actual booting of those items. 

As long as you can find vmlinuz and initrd it's all good. 
Title: Re: New AV Linux Kernel Repository now public!
Post by: korakios on September 02, 2018, 08:34:52 AM
The question is mainly for @trulan or someone with experience
Is the current kernel compatible with the usb audio ‘hack’
nrpacks=1

I recently read that it significantly benefits lowering the latency on usb interfaces (beside setting the periods of buffer to 3 )
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on May 09, 2019, 01:33:56 AM
Wow 2019 has just started and we got AVLinux 2019 and now Trulan's new kernels to try out. Thank you so very much as always for providing us such beauties, all your work is very much appreciated.

Cheers,

Rodney
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on May 09, 2019, 02:04:23 AM
Both RT and lowlatency fail when I use "make oldconfig", the following errors occur:
LEX scripts/kconfig/zconf.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.lib.193: recipe for target 'scripts/kconfif/zconf.led.c' failed
Makefile:556: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 2

Let me know what I am doing wrong.

Thanks a bunch Trulan and GMaq
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on May 09, 2019, 02:30:20 AM
Nevermind, I just had to install two dependencies: FLEX and Bison. After doing that I was able to run makeoldconfig properly. The new Kernel is fantastic, as always your magic blows me away Trulan, congratulations and please keep bringing your babies to us.

Thank you very much as always

Cheers, Rodney
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on June 01, 2019, 07:44:10 PM
Nevermind, I just had to install two dependencies: FLEX and Bison. After doing that I was able to run makeoldconfig properly. The new Kernel is fantastic, as always your magic blows me away Trulan, congratulations and please keep bringing your babies to us.

Thank you very much as always

Cheers, Rodney
Thanks Rodney!

Glad you got it working.  As you noticed, there are a few new packages required to build the kernel.  Every so often somebody somewhere finds a good enough reason to change something and break stuff for us.  It's just one of the many moving targets in the world of Linux.

I have to laugh at the idea of 'magic' when it comes to this stuff.  I just fetch, merge, tag, and make.  For a few years I had been dabbling in Android ROMs (I was even briefly listed as a co-maintainer of a few obscure phones for CyanogenMod), and the kernel stuff I do here is two orders of magnitude simpler than the glorious mangled mess that is Android.  The real magic is in the people who create music.  That takes real talent.  :)

I am working at some kernel updates again, focusing on the 5.0-rt series.  Things are still a bit volatile with the upstream code base.  The 5.0-rt kernels are officially 'in development', or 'not yet stable'.  I'm building on Debian Buster currently, but I will probably do a set of builds for Stretch at some point (which would support current AV Linux releases) once the dust settles upstream.  If you don't want to wait, you can of course build your own.  As always, you can find my source code at:
https://github.com/musical-chairs/linux/tags
Title: Re: New AV Linux Kernel Repository now public!
Post by: Rodney on June 12, 2019, 11:31:42 AM
Dear trulan,

         You are such a humble person, thank you again for all of your work, I am a musician who can't handle code at all, so for me what you do is just magic, specially because it sounds so good! I've tried other kernels but I couldn't find any other like the AVlinux kernels, super awesome! Woowww, that's great! New RT kernels to try  :D, giving them a try now! Thank you very much again, your work and Glenn's are very much appreciated.

Cheers,

Rodney
Title: Re: New AV Linux Kernel Repository now public!
Post by: trulan on June 16, 2019, 01:03:51 PM
Yes, I put a new set of kernels up a few days ago.  I haven't gotten a chance to test them extensively yet, but I have a pretty good feeling about this one, 5.0.19-rt11avl2 and the lowlatency (ie, same kernel but without the RT patch).  One bit of info I should probably post is:

Kernel Security Mitigations
The Linux kernel and some chip makers (specifically, Intel) have been in the news lately, and not in a good way.  Numerous hardware security holes have been found, and the kernel now tries really hard to protect against them.  Each security mitigation comes at a cost.  The result is, depending on what you're doing, your computer will be slower with a newer kernel than with an old one.  This is bad for things like servers and website hosting, but it is also most needed there.  I do not know if it affects things like low-latency audio or video rendering.

The good news for us is, there's now an easy way to disable the new security stuff.  If your computer rarely uses the internet, and doesn't host virtual machines used by people you don't know, and if you think your computer is slower with the new kernels, you can try the following:

As root, edit /etc/grub/default.  Find the linux command line.  It should look something like this:
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="quiet"...with a bunch of stuff in between the quotation marks, separated by spaces.  Add "mitigations=off" to the list, like this:
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="quiet mitigations=off"Then (still as root) run update-grub.  Reboot, and see if things are running better.

Please keep in mind that by doing this, you are disabling security features and making your computer more vulnerable to attacks.  This perfectly fine for a single user system that never uses the internet.  The more you use the internet, and the more users you have, the more risk you incur.  Use this 'fix' with caution.