Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.
Piotr Górski edited this page Jan 4, 2021 · 74 revisions

My own kernels. Use at your own risk.

Dell Inspiron 15-3542 (3542-2538) with Fourth Gen Intel Core i3/i5/i7 optimized.
linux-lucjan varies considerably from stock kernel.

linux-lucjan incorporates:

Some patches for BFQ/block-stable conflict with patches for BFQ-dev/block-mainline.
To use lucjan-kernels smoothly apply ll-reverts before linux-lucjan patch. Otherwise the kernel will not compile.

Download:

git clone https://github.com/sirlucjan/lucjan-kernels.git

or

git clone https://gitlab.com/sirlucjan/lucjan-kernels.git

Install:

Testing

cd /some_path/lucjan-kernels/lucjan-kernels-testing/package_name
makepkg -srci

Unstable

cd /some_path/lucjan-kernels/lucjan-kernels-unstable/package_name
makepkg -srci

Rolling

cd /some_path/lucjan-kernels/lucjan-kernels-rolling/package_name
makepkg -srci


Enable bfq

For now, you can use sudo tee /sys/block/sda/queue/scheduler <<< bfq to enable "bfq".

You can also add this to file 60-schedulers.rules:

# Non-rotational disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
# Rotational disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"

and run a command sudo udevadm control --reload && sudo udevadm trigger

For now, bfq is enabled by default! (since 5.0-lucjan-ll1-rc1.patch and LL-elevator-set-default-scheduler-to-bfq-for-blk-mq.patch)



Enable zstd compressed modules

To build a kernel with modules compressed in zstd format, insert any character here (it can be "y", "x" or any other value):
### Enable MODULE_COMPRESS_ZSTD
# WARNING Not recommended.
# An experimental solution, still in testing phase.
# Possible compilation and installation errors.
# Leave it unselected.
# However, if you want to test the new solution,
# first install mkinitcpio-zstd and kmod-zstd:
# https://gitlab.com/sirlucjan/lucjan-kernels/tree/master/depends
# or
# https://github.com/sirlucjan/lucjan-kernels/tree/master/depends
_zstd_modules=
Remember that to do this you need to install modified versions of kmod (kmod-zstd) and mkinitcpio (mkinitcpio-zstd). To do this, run the following command:
cd /some_path/lucjan-kernels/depends/package_name
makepkg -srci

NOTE: mkinitcpio-zstd will overwrite the mkinitcpio.conf file and the old one will be saved as mkinitcpio.conf.pacsave - however, I recommend backing up this file before installing the modified mkinitcpio version.

You've been warned.

Clone this wiki locally