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.42
First Submitted: 2018-01-18 21:47 (UTC)
Last Updated: 2024-04-27 17:07 (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 .. 6 7 8 9 10 11 12 13 14 15 16 .. 47 Next › Last »

xuanruiqi commented on 2021-10-17 20:28 (UTC)

There are some discrepancies with the upstream PKGBUILD that I see could use a fix.

For example,

echo "Stripping vmlinux..."
  strip -v $STRIP_STATIC "$builddir/vmlinux"

is missing (so vmlinux is not stripped, it seems).

Also, the upstream uses make all to build the kernel instead of make bzImage . The other difference I notice is the command used to install modules:

make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install

in the upstream.

Thank you a lot for your work maintaining this package! It just seemed that the upstream PKGBUILD changed a bit in the mean time without getting noticed.

metak commented on 2021-10-14 15:17 (UTC)

@xuanruiqi The package installation size is 64,83 MiB and for headers it's 127,95 MiB for binaries in my repo. Both are smaller in size than default kernel/headers packages. I try to keep my PKGBUILD files as close to upstream linux package as possible.

xuanruiqi commented on 2021-10-14 12:45 (UTC)

I just found that this package, when installed, is very large. On my system, for example, it is 666M in size, as opposed to 78M for the regular kernel. It seems that It seems that the blame is on:

/usr/lib/modules/5.14.12-1-clear/build/vmlinux

The reason seems to be that this file is not stripped, as is done in the official kernel. In addition, there are some more discrepancies between this package's PKGBUILD and the upstream linux PKGBUILD. I would like to recommend that the PKGBUILD be revised to match the upstream linux PKGBUILD.

metak commented on 2021-10-01 13:18 (UTC)

@Gonzo2028 Add fsync/futex patches to sources in PKGBUILD file and build the package. You can get them at these two locations:

https://github.com/Frogging-Family/linux-tkg/tree/master/linux-tkg-patches/5.14

https://github.com/xanmod/linux-patches/tree/master/linux-5.14.y-xanmod/futex2

Gonzo2028 commented on 2021-09-30 22:53 (UTC)

Can anyone tell me how to add the fsync-patch for/from steam?

guiodic commented on 2021-09-17 14:59 (UTC)

@metak: I installed linux-clear-current (5.14.rc7). I reported here, not on linux-clear-current, sorry.

metak commented on 2021-09-17 13:08 (UTC) (edited on 2021-09-17 13:08 (UTC) by metak)

@guiodic Well arch kernel is already on 5.14 while this one is still on 5.13. If you can please try linux-clear-bin from my repo just so we can rule out any possible changes introduced in this pkgbuild?

guiodic commented on 2021-09-17 12:46 (UTC)

I was wrong, i915/tgl_dmc_ver2_08.bin is not GUC but for power management, nevertheless also GUC seems not work.

With the default kernel all works well:

17/09/21 13:18 i915 0000 0:02.0: [drm] Finished loading DMC firmware i915/tgl_dmc_ver2_08.bin (v2.8) 17/09/21 13:18 i915 0000 0:02.0: [drm] GuC firmware i915/tgl_guc_49.0.1.bin version 49.0 submission:disabled 17/09/21 13:18 i915 0000 0:02.0: [drm] HuC firmware i915/tgl_huc_7.5.0.bin version 7.5 authenticated:yes

guiodic commented on 2021-09-17 12:43 (UTC)

@metak: yes, it works well with the standard kernel but not for linux-clear

metak commented on 2021-09-17 11:45 (UTC)

@guiodic Have you checked/tried what's in wiki? https://wiki.archlinux.org/title/intel_graphics#Enable_GuC_/_HuC_firmware_loading