Package Base Details: linux-clear

Git Clone URL: https://aur.archlinux.org/linux-clear.git (read-only, click to copy)
Keywords: clear clearlinux intel kernel
Submitter: metak
Maintainer: metak
Last Packager: metak
Votes: 71
Popularity: 1.57
First Submitted: 2018-01-18 21:47 (UTC)
Last Updated: 2024-04-18 17:48 (UTC)

Pinned Comments

metak commented on 2022-03-27 13:44 (UTC) (edited on 2022-04-02 13:20 (UTC) by metak)

The PKGBUILD file supports a few different configurable build-time options:
  • _makenconfig Tweak kernel options prior to a build via nconfig. Pseudo-graphical menu based on ncurses. 1 2
  • _localmodcfg Only compile active modules to VASTLY reduce the number of modules built and the build time.
  • Please read arch wiki page for detailed explanation on how to use it.
  • _subarch Enable additional optimization/tuning for kernel builds by adding more micro-architectures options. Default is Generic-x86-64 number 36 if nothing else is selected.
  • PKGBUILD file with the list of architectures
  • graysky kernel_compiler_patch
  • _use_current Use the current kernel's .config file. Enabling this option will use the .config of the RUNNING kernel rather than the ARCH defaults. Useful when the package gets updated and you already went through the trouble of customizing your config options. NOT recommended when a new kernel is released, but again, convenient for package bumps.
  • _use_llvm_lto Compile the kernel with LLVM/Clang.
  • _debug Enable y some additional debug features present in arch kernel, but not in Clear upstream. n to force disable or leave empty to ignore.
Lastly, build the kernel by setting your environment variable env _subarch=40 _localmodcfg=y.

metak commented on 2018-01-22 01:49 (UTC) (edited on 2021-12-01 12:47 (UTC) by metak)

1. Binaries available in my repo: http://download.opensuse.org/repositories/home:/metakcahura:/kernel/Arch_Extra_standard/x86_64/
[home_metakcahura_kernel_Arch_Extra_standard]
SigLevel = Never
Server = http://download.opensuse.org/repositories/home:/metakcahura:/kernel/Arch_Extra_standard/$arch
THIS IS OPTIONAL:
2. After install adjust your boot cmd line. ClearLinux uses clr-boot-manager which takes care of that. This is upstream default:
quiet console=tty0 console=ttyS0,115200n8 cryptomgr.notests initcall_debug intel_iommu=igfx_off kvm-intel.nested=1 no_timer_check noreplace-smp page_alloc.shuffle=1 rcupdate.rcu_expedited=1 rootfstype=ext4,btrfs,xfs,f2fs tsc=reliable rw 

Latest Comments

« First ‹ Previous 1 .. 19 20 21 22 23 24 25 26 27 28 29 .. 47 Next › Last »

metak commented on 2020-01-16 20:18 (UTC) (edited on 2020-01-16 20:18 (UTC) by metak)

@eca Hi, yes OBS (open build service) just recently added support for zstd packages in arch and the part that generates the signatures wasn't yet updated. ISSUE REPORT

But, on the other hand the signatures for pacman in OBS are broken since a long time ago so there's that... if you look a page or two back in the comments you'll find my explanation.

eca commented on 2020-01-16 19:49 (UTC)

@metak - I think your repo is missing pgpsigs. error: linux-clear: missing required signature.

idimitro commented on 2020-01-09 11:27 (UTC)

@metak - the config and compile optimizations will be great addition. Please introduce them. Thanks.

metak commented on 2020-01-09 10:46 (UTC)

@idimitro Well, I can add -j$(nproc) to make command, but _subarch backup is beyond the scope of this package. That's up to user.

idimitro commented on 2020-01-09 10:29 (UTC)

@metak - if possible please extract the config. The kernel config is one part of the customizations. Other things that can be extracted are: arch selection "_subarch=" and "make -j8 bzImage modules" (allow multithread compilation as it currently compiles in single core). The end target is to have the package build automatically + customizations with aurto :)

metak commented on 2020-01-09 09:40 (UTC) (edited on 2020-01-09 09:50 (UTC) by metak)

@abdulocracy For i915 module, that's builtin with this kernel.

cat /lib/modules/$(uname -r)/modules.builtin | grep i915

kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
kernel/drivers/gpu/drm/i915/i915.ko

Edit: let me check some more about that error...

metak commented on 2020-01-09 09:37 (UTC)

@idimitro For now the pkgbuild just copies the .config file for archival purposes and you can't easily reuse it later. If it would be useful I might add support for reusing the old file just like it is in linux-lqx package? Check Here.

abdulocracy commented on 2020-01-09 08:07 (UTC) (edited on 2020-01-09 09:05 (UTC) by abdulocracy)

I'm getting these errors on a i7-8550U machine, upon sleeping and resuming:

Jan 09 09:05:05 abdulkadir-xps kernel: [drm:intel_power_domains_verify_state] *ERROR* power well DC off state mismatch (refcount 0/enabled 1)
Jan 09 09:05:05 abdulkadir-xps kernel: DMAR: DRHD: handling fault status reg 2
Jan 09 09:05:05 abdulkadir-xps kernel: DMAR: [INTR-REMAP] Request device [f0:1f.0] fault index 0 [fault reason 37] Blocked a compatibility format interrupt request

Also, the second console option in the upstream cmdline causes my machine to boot to a black screen.

Edit: Another peculiarity, modinfo -p i915 states that the module was not found.

idimitro commented on 2020-01-09 07:36 (UTC)

Hi, the PKGBUILD file has options to optimize the kernel for the specific machine it will run. But how are those changes supposed to be preserved after upgrades? I couldn't find an option for the configs to be read from the outside the build directory. Any suggestions?

tam1m commented on 2019-12-13 14:50 (UTC)

@metak Works great! Thanks