Package Details: linux-xanmod-lts 5.15.40-1

Git Clone URL: https://aur.archlinux.org/linux-xanmod-lts.git (read-only, click to copy)
Package Base: linux-xanmod-lts
Description: The Linux kernel and modules with Xanmod patches
Upstream URL: http://www.xanmod.org/
Licenses: GPL2
Provides: KSMBD-MODULE, NTFS3-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE
Submitter: figue
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 13
Popularity: 0.019178
First Submitted: 2017-11-22 02:00 (UTC)
Last Updated: 2022-05-16 07:25 (UTC)

Pinned Comments

figue commented on 2018-12-15 22:40 (UTC) (edited on 2021-02-23 18:07 (UTC) by figue)

Please, check new release. You have now several variables to enable/disable features.

References:

##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env _microarchitecture=99 use_numa=n use_tracers=n use_pds=n makepkg -sc
##
## Look inside 'choose-gcc-optimization.sh' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 99 => native
if [ -z ${_microarchitecture+x} ]; then
  _microarchitecture=0
fi

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${use_numa+x} ]; then
  use_numa=y
fi

## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${use_tracers+x} ]; then
  use_tracers=y
fi

# Compile ONLY used modules to VASTLY reduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
# This PKGBUILD read the database kept if it exists
#
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
if [ -z ${_localmodcfg} ]; then
  _localmodcfg=n
fi

# Tweak kernel options prior to a build via nconfig
_makenconfig=

Personally I'm running now xanmod kernel compiled with this:

env use_numa=n use_tracers=n makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder (this will take preference) or "${XDG_CONFIG_HOME}/linux-xanmod/myconfig"
  # If we detect partial file with scripts/config commands, we execute as a script
  # If not, it's a full config, will be replaced

Latest Comments

figue commented on 2021-10-09 21:22 (UTC)

@gsus use https://wiki.archlinux.org/title/Makepkg#Parallel_compilation

or you can export MAKEFLAGS="-j$(nproc)" in your terminal

gsus commented on 2021-10-09 19:58 (UTC)

For some reason the compilation are with one core only (and take a few hours), not with all cores.

I dont remember when this change happens, but I can force all core just to adding "-j12" to make in build() function?

Thanks

figue commented on 2021-10-07 22:13 (UTC)

@tioguda fixed in 29371a5102f0. I don't know why I merged _compiler option. This branch doesn't have clang config file.

Thanks!

tioguda commented on 2021-10-07 21:19 (UTC)

When trying to compile with clang, I get an error because of line 131 of pkgbuild. I believe it should be gcc instead of ${_compiler}, thanks if you can check it out.

figue commented on 2021-08-17 14:46 (UTC)

@enihcam report to https://github.com/xanmod/linux/issues

It will help!

enihcam commented on 2021-08-16 06:00 (UTC)

Running linux-xanmod 5.13.1x, the igb driver keeps crashing due to RCU panics in which i've investigated for 1+ week with nothing came out.

I finally decided to switch kernel to linux-xanmod-lts. now the stress test has run for 48 hours. ahhhhh, so good, so smooth. :)

nothing but just wanted to appreciate here. keep up the good work!

figue commented on 2021-05-28 22:09 (UTC)

@mabod check https://www.kernel.org/ links, all points to cdn. If you define SRCDEST in /etc/makepkg.conf you can download the main source from a fast link manually in that directory and it will be always there, no need to download every time.

mabod commented on 2021-05-28 20:49 (UTC)

I found https://cdn.kernel.org/pub/linux/kernel/... really slow to download the kernel. Manjaro kernel packages on the other hand use https://www.kernel.org/pub/linux/kernel/... which seems to be a lot faster to me. Can you please check and eventually change the kernel source in the PKGBUILD.

figue commented on 2021-04-02 11:48 (UTC)

It's an issue with the new "file 5.40-1" package. Downgrading to 5.39-1 fix it. For now I'll write the workaround.

https://bbs.archlinux.org/viewtopic.php?pid=1965551

figue commented on 2021-03-31 22:56 (UTC) (edited on 2021-03-31 23:17 (UTC) by figue)

@cartesius same for me. Something changed in pacman or libarchive, xz is not extracted anymore...

A quick workaround is uncompressing patch with xz and copy to src/ directory, or use "xz -d" inside prepare() (also we should add xz as makedepend)...

cartesius commented on 2021-03-31 21:45 (UTC) (edited on 2021-03-31 21:45 (UTC) by cartesius)

Getting this 31/03/2021 23:44 CET:

$ env _microarchitecture=99 use_numa=n use_tracers=n use_pds=n _localmodcfg=y makepkg -sc
...
==> Extracting sources...
  -> Extracting linux-5.10.tar.xz with bsdtar
==> Starting prepare()...
patch: **** Can't open patch file ../patch-5.10.27-xanmod1 : No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

figue commented on 2021-02-23 18:07 (UTC)

@cartesius thanks. Updated

cartesius commented on 2021-02-23 15:44 (UTC)

Hi, isn't the pinned comment about compiling wrong? (edited on 2019-01-12 00:50 by figue) 22 is not native architecture, 99 is. Couple of days ago the pinned comment about building kernel was right (I hope).

figue commented on 2021-02-19 16:07 (UTC)

@cartesius you can ignore this warning.

cartesius commented on 2021-02-19 16:02 (UTC)

Please, is this the thing to ignore, right? ==> WARNING: Package contains reference to $srcdir usr/lib/modules/5.10.17-xanmod1-1-lts/build/tools/objtool/objtool

figue commented on 2021-02-18 22:47 (UTC)

Updated to 5.10.

There is a new package in branch 5.4:

https://aur.archlinux.org/packages/linux-xanmod-lts54/

cartesius commented on 2021-02-18 19:20 (UTC)

@figue Cool, thank you.

figue commented on 2021-02-18 18:36 (UTC)

@cartesius probably Xanmod project will follow upstream, so soon I'll update this package to 5.10.

cartesius commented on 2021-02-18 13:17 (UTC)

Hello, because 5.10 is new LTS already e.g. in linux-lts when do you expect to have XanMod kernel line matching the new 5.10 LTS line? Is there already?

figue commented on 2020-12-10 16:48 (UTC)

Thanks! 7db8b4a74002

Scimmia commented on 2020-12-10 16:42 (UTC)

Please see the warning here: https://wiki.archlinux.org/index.php/Kernel/Arch_Build_System#Modifying_the_PKGBUILD

figue commented on 2020-05-17 14:21 (UTC)

@TheGoliath check xanmod releases here before flagging out-of-date:

https://github.com/xanmod/linux/releases

Thanks

longspear commented on 2020-04-05 16:08 (UTC)

@figue, thanks for updating to 5.4.

figue commented on 2020-04-04 14:23 (UTC)

@enihcam thanks. I've pushed yesterday linux-xanmod-lts49. It doesn't require any maintenance for now. If upstream make a new version is as simple as bump version. That's it.

Thanks again for your suggestions to improve all my packages.

enihcam commented on 2020-04-04 01:22 (UTC)

perfect package! I don't think you will need to package the previous version as linux-xanmod-lts49. 4.9 is deprecated and not showing up in xanmod official page. People who are addicted to 4.9 can just block the upgrade in pacman.conf or switch to other AUR kernels. Also, to maintain a lot of AUR packages would distract you, I'm guessing. :)

shierji commented on 2020-04-03 11:22 (UTC)

Thanks A Lot!

figue commented on 2020-04-03 08:45 (UTC)

Package changed to branch 5.4. Latest commit description doesn't reflect that (sorry about that). Please check that all is ok. Will try to push the old package to a new AUR package (linux-xanmod-lts49) for backup reasons. Probably in some point it will be deleted if upstream doesn't merge new patches.

enihcam commented on 2020-04-02 00:44 (UTC)

Hi! When will linux-xanmod-lts move to 5.4.x? linux-xanmod is edge version now. I'm looking for a stable but still modern kernel.

figue commented on 2020-02-14 23:23 (UTC) (edited on 2020-02-14 23:26 (UTC) by figue)

@Markospox you can set all CFLAGS you want, but probably the easiest you can do is to use tuning options already present in package. I personally use:

_microarchitecture=19 use_numa=n use_tracers=n use_ns=y _localmodcfg=y makepkg

Set your microarchitecture to native (22) or exactly for your CPU (execute this to know what you have: gcc -c -Q -march=native --help=target | grep march | head -1 | awk '{print $2}'). All is documented in PKGBUILD and choose-gcc-optimization.sh

In flags posted in Phoronix, compilation is for generic CPUs (mtune=generic), so you will gain a bit speed tunning microarchitecture. Also if you want a specific package, install modprobed-db (see archlinux wiki how to use) and that way you only build needed modules for your system. If not, don't use _localmodcfg

Markospox commented on 2020-02-14 20:05 (UTC)

How can I use this:

--build=x86_64-linux-gnu --disable-vtable-verify --disable-werror --enable-bootstrap --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-gnu-unique-object --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-offload-targets=nvptx-none,hsa --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --program-prefix=x86_64-linux-gnu- --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-default-libstdcxx-abi=new --with-gcc-major-version-only --with-multilib-list=m32,m64,mx32 --with-target-system-zlib=auto --with-tune=generic --without-cuda-driver -v

to have possibly more tweaked kernel? Do I set CFLAGS to this? (https://www.phoronix.com/scan.php?page=article&item=xanmod-2020-kernel&num=1)

figue commented on 2019-02-06 22:10 (UTC)

For me, it looks like Arch kernel...

figue@pluto ~ % uname -a
Linux pluto 4.19.19-xanmod10-1-xanmod-lts #1 SMP PREEMPT Wed Feb 6 21:46:53 CET 2019 x86_64 GNU/Linux

but if you want to change I think you need to recompile. Keep your source files (don't use pacman wrappers or -c flag in makepkg) to rebuild if you need to test with CONFIG_LOCALVERSION.

figue commented on 2019-02-06 16:57 (UTC)

@Markospox I'll take a look later at home, maybe I need to merge something from the linux-lts PKGBUILD... Cheers

Markospox commented on 2019-02-06 13:22 (UTC)

How to change version? I get somehow 4.19.19-xanmod10-1-MANJARO-xanmod-lts-4.19.19 and I'd like 4.19.19-xanmod10-1-MANJARO

src/version: 4.19.19-xanmod10-1-MANJARO-xanmod-lts-4.19.19 src/linux-4.19.19-xanmod10/localversion: -xanmod10 src/linux-4.19.19-xanmod10/localversion.10-pkgrel: -1 src/linux-4.19.19-xanmod10/localversion.20-pkgname: -MANJARO CONFIG_LOCALVERSION="" in src/linux-4.19.19-xanmod10/.config

it'd be great if it was without recompiling the whole thing..

figue commented on 2019-01-11 23:49 (UTC)

Switched to LTS branch 4.19.

Old 4.12 will remain in other package: linux-xanmod-lts414

figue commented on 2018-12-15 22:40 (UTC) (edited on 2021-02-23 18:07 (UTC) by figue)

Please, check new release. You have now several variables to enable/disable features.

References:

##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env _microarchitecture=99 use_numa=n use_tracers=n use_pds=n makepkg -sc
##
## Look inside 'choose-gcc-optimization.sh' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 99 => native
if [ -z ${_microarchitecture+x} ]; then
  _microarchitecture=0
fi

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${use_numa+x} ]; then
  use_numa=y
fi

## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${use_tracers+x} ]; then
  use_tracers=y
fi

# Compile ONLY used modules to VASTLY reduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
# This PKGBUILD read the database kept if it exists
#
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
if [ -z ${_localmodcfg} ]; then
  _localmodcfg=n
fi

# Tweak kernel options prior to a build via nconfig
_makenconfig=

Personally I'm running now xanmod kernel compiled with this:

env use_numa=n use_tracers=n makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder (this will take preference) or "${XDG_CONFIG_HOME}/linux-xanmod/myconfig"
  # If we detect partial file with scripts/config commands, we execute as a script
  # If not, it's a full config, will be replaced

figue commented on 2018-10-13 21:12 (UTC)

@Yosh latest release is 4.14.74-xanmod46:

https://github.com/xanmod/linux/releases

Markospox commented on 2018-08-02 18:43 (UTC)

Hi, it seems to be fine now, I twiddled with modules and there's also an xf86-input-something update coming although the same thing happened just after recompiling and surprisingly I had to run fallback version to have mouse cursor moving fine, and run back normally to have it movin' as freely. I'm not sure what you're askin' about, is this snap development branch thing? I wanted to use latest stable version with my configuration changes - IBM IOMMU disabled, some other unused crap disabled, CPU-specific binarch ;).. :))

figue commented on 2018-07-12 19:11 (UTC)

Hola Markos,

I honestly don't know why your compiled version 4.14.50 has this issue with touchpad. I don't know if there was some regression in some driver, it's very odd, but could happen. Also, maybe, could be related to xorg-input drivers, that are not related to kernel package. Is for some kind of know bug that you build a snapshot of this package?

Today I pushed latest xanmod-lts (4.14.55), all should be fine in kernel level, nothing has changed in packaging... So I don't know how I can help you. If you have some dmesg or something related to touchpad driver that should be reported upstream, we can see. But from my point of view (packaging level), I don't know if it's something that could be fixed.

Anyway, all suggestions are very welcome.

¡Saludos!

Markospox commented on 2018-07-12 16:42 (UTC)

Hi there,

I'm attempting to get 4.14.50 Xanmod kernel running, I built linux-xanmod-lts package from https://aur.archlinux.org/packages/linux-xanmod-lts/ with makepkg after downloading snapshot but when on it the cursor in LightDM/X moves only vertically - when I move horizontally on a touchpad, when I move vertically it doesn't move at all. A previous 4.14.x version that I got via pkg manager some time ago works fine, it was happening there too however booting fallback version of that previous Xanmod and back ordinary Xanmod somehow sort of fixed it. Touchpad with fallback version of this new one also sometimes works. I'm running Manjaro Cinnamon with recent updates, nothing significant was changed to the system since fresh install, basically it's like new, using nouveau on MacBook Pro 15" Core i7 2.66 GHz mid-2010 and I'd like to be adviced how to solve it.. Please don't suggest just to rebuild, that won't do it, I'm hoping that you'll reply a bit more thoughtfully.

Muchas gracias

figue commented on 2018-03-12 16:33 (UTC)

@HenryM you have to edit _microarchitecture variable in PKGBUILD.

Look at choose-gcc-optimization.sh to look for the proper number, or use native (22).

HenryM commented on 2018-03-12 01:12 (UTC)

Is there any convenient way to set gcc architecture optimization?

figue commented on 2018-02-04 18:16 (UTC) (edited on 2018-02-04 21:51 (UTC) by figue)

Latest release is 4.14.15 for now:

https://github.com/xanmod/linux/releases

Edit: updated

figue commented on 2018-02-02 14:47 (UTC)

Switched to 4.14 LTS