- Arch Linux
- Step-by-step – Kernel Headers Arch 2020 Installation Guide
- Contents
- Follow Us
- The GNU/Linux Free Software Phylosophy
- Steve Jobs’ Last Words
- Credits
- Arch Linux User Repository
- miffe commented on 2023-06-17 21:58 (UTC)
- proledatarian commented on 2023-06-17 19:37 (UTC) (edited on 2023-06-17 19:45 (UTC) by proledatarian)
- miffe commented on 2023-06-07 19:48 (UTC)
- kola54453 commented on 2023-06-07 19:31 (UTC)
- gamezelda commented on 2023-04-24 22:49 (UTC)
- eggz commented on 2023-02-20 07:54 (UTC)
- Arch Linux
- #2 2016-03-21 00:31:15
- Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
- #3 2016-03-22 01:04:31
- Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
- #4 2016-03-22 01:17:39
- Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
- #5 2016-03-23 04:13:33
- Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
- #6 2016-03-30 16:51:59
- Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
Arch Linux
well, ive been building several different kernels for my laptop, so that i can test stuff. but ive got a problem with the kernel headers.
ive mirrored the arch kernel’s PKGBUILD and modified some naming to get a custom kernel. but when i try to build a custmo module, it complains the headers are broken. (example, vbox_build_module).
im pasting the pkgbuild here for future reference. if someone sees something thats plain wrong, please say so.
thanks
# $Id: PKGBUILD 60382 2009-12-04 15:31:11Z tpowa $ # Maintainer: Tobias Powalowski # Maintainer: Thomas Baechler pkgbase="kernel26" #pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel pkgname=('kernel26-git' 'kernel26-git-headers') # Build kernel with a different name _kernelname=$ pkgver=2.6.34 pkgrel=1 _patchname="" _branch="linux-2.6" _gittag="v2.6.34-rc3" #_gittag="origin" arch=(i686 x86_64) license=('GPL2') groups=('base') url="http://www.kernel.org" source=(config # standard config files for mkinitcpio ramdisk kernel26.preset $) build() < cd $/$_branch msg "Fetching branch $" ## FOR BISECT, Comment these lines git reset --hard git clean -d -f git fetch msg "Cheking out tag $" git checkout $_gittag ## ### a patch if [ "$" != "" ]; then patch -Np1 -i $/$_patchname || return 1 fi # if [ "$CARCH" = "x86_64" ]; then cat ../config.x86_64 >./.config # else cat ../config >./.config # fi if [ "$" != "" ]; then sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"$\"|g" ./.config fi # get kernel version make prepare # load configuration # Configure the kernel. Replace the line below with one of your choice. make menuconfig # CLI menu for configuration #make xconfig # X-based configuration #make oldconfig # using old config from previous kernel version # . or manually edit .config #################### # stop here # this is useful to configure the kernel #msg "Stopping build" #return 1 #################### yes "" | make config # build! make bzImage modules || return 1 > package_kernel26-git() < pkgdesc="The Linux Kernel and modules" backup=(etc/mkinitcpio.d/$.preset) depends=('coreutils' 'kernel26-firmware>=2.6.32' 'module-init-tools' 'mkinitcpio>=0.5.20') # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now # nforce package support was abandoned by nvidia, kernel modules should cover everything now. # kernel24 support is dropped since glibc24 replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi' 'alsa-driver' 'ieee80211' 'hostap-driver26' 'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv' 'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs' 'gspcav1' 'atl2' 'wlan-ng26' 'rt2500') install=kernel26.install optdepends=('crda: to set the correct wireless channels of your country') KARCH=x86 cd $/$_branch _kernver="$(make kernelrelease)" mkdir -p $/ make INSTALL_MOD_PATH=$ modules_install || return 1 cp System.map $/boot/System.map26$ cp arch/$KARCH/boot/bzImage $/boot/vmlinuz26$ # # add vmlinux install -m644 -D vmlinux $/usr/src/linux-$/vmlinux # install fallback mkinitcpio.conf file and preset file for kernel install -m644 -D $/kernel26.preset $/etc/mkinitcpio.d/$.preset || return 1 # set correct depmod command for install sed \ -e "s/KERNEL_NAME=.*/KERNEL_NAME=$/g" \ -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=$/g" \ -i $startdir/kernel26.install sed \ -e "s|source .*|source /etc/mkinitcpio.d/kernel26$.kver|g" \ -e "s|default_image=.*|default_image=\"/boot/$.img\"|g" \ -e "s|fallback_image=.*|fallback_image=\"/boot/$-fallback.img\"|g" \ -i $/etc/mkinitcpio.d/$.preset echo -e "# DO NOT EDIT THIS FILE\nALL_kver='$'" > $/etc/mkinitcpio.d/$.kver # remove build and source links rm -f $/lib/modules/$/ # remove the firmware rm -rf $/lib/firmware > package_kernel26-git-headers() < pkgdesc="Header files and scripts for building modules for kernel26" mkdir -p $/lib/modules/$ cd $/lib/modules/$ ln -sf ../../../usr/src/linux-$ build cd $/$_branch install -D -m644 Makefile \ $/usr/src/linux-$/Makefile install -D -m644 kernel/Makefile \ $/usr/src/linux-$/kernel/Makefile install -D -m644 .config \ $/usr/src/linux-$/.config mkdir -p $/usr/src/linux-$/include for i in acpi asm- config linux math-emu media net pcmcia scsi sound trace video; do cp -a include/$i $/usr/src/linux-$/include/ done # copy arch includes for external modules mkdir -p $/usr/src/linux-$/arch/x86 cp -a arch/x86/include $/usr/src/linux-$/arch/x86/ # copy files necessary for later builds, like nvidia and vmware cp Module.symvers $/usr/src/linux-$ cp -a scripts $/usr/src/linux-$ # fix permissions on scripts dir chmod og-w -R $/usr/src/linux-$/scripts mkdir -p $/usr/src/linux-$/.tmp_versions mkdir -p $/usr/src/linux-$/arch/$KARCH/kernel cp arch/$KARCH/Makefile $/usr/src/linux-$/arch/$KARCH/ if [ "$CARCH" = "i686" ]; then cp arch/$KARCH/Makefile_32.cpu $/usr/src/linux-$/arch/$KARCH/ fi cp arch/$KARCH/kernel/asm-offsets.s $/usr/src/linux-$/arch/$KARCH/kernel/ # add headers for lirc package mkdir -p $/usr/src/linux-$/drivers/media/video cp drivers/media/video/*.h $/usr/src/linux-$/drivers/media/video/ for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do mkdir -p $/usr/src/linux-$/drivers/media/video/$i cp -a drivers/media/video/$i/*.h $/usr/src/linux-$/drivers/media/video/$i done # add docbook makefile install -D -m644 Documentation/DocBook/Makefile \ $/usr/src/linux-$/Documentation/DocBook/Makefile # add dm headers mkdir -p $/usr/src/linux-$/drivers/md cp drivers/md/*.h $/usr/src/linux-$/drivers/md # add inotify.h mkdir -p $/usr/src/linux-$/include/linux cp include/linux/inotify.h $/usr/src/linux-$/include/linux/ # add wireless headers mkdir -p $/usr/src/linux-$/net/mac80211/ cp net/mac80211/*.h $/usr/src/linux-$/net/mac80211/ # add dvb headers for external modules # in reference to: # http://bugs.archlinux.org/task/9912 mkdir -p $/usr/src/linux-$/drivers/media/dvb/dvb-core cp drivers/media/dvb/dvb-core/*.h $/usr/src/linux-$/drivers/media/dvb/dvb-core/ # add dvb headers for external modules # in reference to: # http://bugs.archlinux.org/task/11194 mkdir -p $/usr/src/linux-$/include/config/dvb/ cp include/config/dvb/*.h $/usr/src/linux-$/include/config/dvb/ # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new # in reference to: # http://bugs.archlinux.org/task/13146 mkdir -p $/usr/src/linux-$/drivers/media/dvb/frontends/ cp drivers/media/dvb/frontends/lgdt330x.h $/usr/src/linux-$/drivers/media/dvb/frontends/ cp drivers/media/video/msp3400-driver.h $/usr/src/linux-$/drivers/media/dvb/frontends/ # add xfs and shmem for aufs building mkdir -p $/usr/src/linux-$/fs/xfs mkdir -p $/usr/src/linux-$/mm cp fs/xfs/xfs_sb.h $/usr/src/linux-$/fs/xfs/xfs_sb.h # add headers vor virtualbox # in reference to: # http://bugs.archlinux.org/task/14568 cp -a include/drm $pkgdir/usr/src/linux-$/include/ # add headers for broadcom wl # in reference to: # http://bugs.archlinux.org/task/14568 cp -a include/trace $pkgdir/usr/src/linux-$/include/ # copy in Kconfig files for i in `find . -name "Kconfig*"`; do mkdir -p $/usr/src/linux-$/`echo $i | sed 's|/Kconfig.*||'` cp $i $/usr/src/linux-$/$i done cd $/usr/src/linux-$/include && ln -s asm-$KARCH asm # add header for aufs2-util cp -a $/$_branch/include/asm-generic/bitsperlong.h $/usr/src/linux-$/include/asm/ chown -R root.root $/usr/src/linux-$ find $/usr/src/linux-$ -type d -exec chmod 755 <> \; # remove unneeded architectures rm -rf $/usr/src/linux-$/arch/ > package_kernel26-firmware() < pkgdesc="The included firmware files of the Linux Kernel" groups=('base') cd $/$_branch make firmware || return 1 make INSTALL_MOD_PATH=$ firmware_install || return 1 >
Last edited by eldragon (2010-04-04 14:58:16)
Step-by-step – Kernel Headers Arch 2020 Installation Guide
In the output you should be prompted to choose the needed release.
In case of Issue then you may possibly try to Upgrade your System with:
And then follow guidance to Update Kernel!
How to Upgrade Kernel in Arch
GNU/Linux Arch Kernel Installation Tutorial.
So Now I am truly Happy if My Guide could Help you to Install Linux Kernel Headers on Arch Linux 2020!
Contents
Showing Ads here is the best solution I found for not embarassing somebody about participating in a #%$Foundation^.
«When the Last Tree has been cut down, the Last Fish caught, the Last River poisoned, only then will we realize that One Cannot Eat Money.»
«No usable Computer exists today with completely Open Software and Hardware (as much as some companies want to Market themselves as such).»
Follow Us
The GNU/Linux Free Software Phylosophy
Steve Jobs’ Last Words
«Being a Winner in a Free Computing OS Mission means to adopt a Commercial like Strategy. Transcending Duality in Oneness and so dispensing both Free and Non Free Software. Cause evangelizing Freedom in a Non Free World is like keeping a Trojan Horse. Hallelujah!»
«Using the Money just for buying Stuff and Not Supporting the Free Gift Philosophy is a sign of a Selfish and Narrow Mind.»
What can Save the World from a Blind and Quick Self-destruction.
The Immediate and Humble Mass Conversion to the Spiritual Way!
Because Earth & Nature has been Ravaged without Pity by the Wild and Selfish mass Competition to Win and Shown that U’re someone Better because you got a Lot of fla$hY Power$$$.
«Taking care if somebody is liking, following, or buying is just a serious hidrance on the priceless Way of Creative Freedom.»
Credits
Everlasting Glory to God, Jesus Christ, The Holy Spirit, Ganesha, Shiva, Vishnu, Krisna, Laozi, Buddha, Bodhidharma, Ma Gcig, Hakuin, Ikkyu, Nagarjuna, Tilopa, Naropa, Milarepa, Suhrawardi, St Dismas, St Francesco, St Teresa, St John, St Filippo, Eckehart. All The Holy Divinities, Avatars, Saints, Mystics, and True Spiritual Masters. Because they are in the Eternal Light of Truth & Delight Enlightening a World of Darkness, Nescience, Blindness, Uneasiness and Falsehood!
Arch Linux User Repository
@miffe Haven’t seen any other errors that seemed relevant. But feel free to take a look at the full log.
Sorry, just saw the error now:
CERT certs/signing_key.x509 At main.c:164: - SSL error:0480006C:PEM routines::no start line: crypto/pem/pem_lib.c:763 extract-cert: certs/signing_key.pem: Success make[2]: *** [certs/Makefile:74: certs/signing_key.x509] Error 1 make[2]: *** Deleting file 'certs/signing_key.x509' make[1]: *** [scripts/Makefile.build:494: certs] Error 2 make[1]: *** Waiting for unfinished jobs.
miffe commented on 2023-06-17 21:58 (UTC)
@proledatarian: That’s just a warning. The error would be somewhere above that.
proledatarian commented on 2023-06-17 19:37 (UTC) (edited on 2023-06-17 19:45 (UTC) by proledatarian)
Build process fails for me:
CC [M] fs/xfs/scrub/agheader_repair.o CC [M] fs/xfs/scrub/repair.o LD [M] fs/xfs/xfs.o make: *** [Makefile:2026: .] Error 2 make: *** Waiting for unfinished jobs. ./include/drm/drm_connector.h:203: warning: Enum value 'DRM_MODE_TV_MODE_MAX' not described in enum 'drm_connector_tv_mode'
This is corresponding to the following line in the makefile:
2024 | PHONY += $(build-dir) 2025 | $(build-dir): prepare 2026 | $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
miffe commented on 2023-06-07 19:48 (UTC)
@kola54453: Had a disk crash. RAID is rebuilding. Will be up sometimes tomorrow.
kola54453 commented on 2023-06-07 19:31 (UTC)
getting this error on pacman miffe.db failed to download error: failed retrieving file ‘miffe.db’ from arch.miffe.org : Failed to connect to arch.miffe.org port 443 after 3193 ms: Couldn’t connect to server
gamezelda commented on 2023-04-24 22:49 (UTC)
FWIW the kernel can be successfully built with both CONFIG_X86_KERNEL_IBT and CONFIG_DEBUG_INFO_BTF in the config like in the Arch kernel by applying this patch: https://lore.kernel.org/bpf/20230418214925.ay3jpf2zhw75kgmd@treble/
eggz commented on 2023-02-20 07:54 (UTC)
@bittin it does !? This is amazing!
Arch Linux
I was just doing an update when, at the end of the output of pacman, I get:
:: Running post-transaction hooks.
(1/1) Install DKMS modules
==> No kernel 4.1.20-1-lts headers. You must install them to use DKMS!
==> No kernel 4.1.20-1-lts headers. You must install them to use DKMS!
==> dkms -q install -m vboxhost -v 5.0.16_OSE -k 4.4.5-1-ARCH
Note that the LTS kernel was updated but not the regular one. Why am I getting this message? I do have virtualbox, steam and xboxdrv installed on my system, if that’s related (I think virtualbox may be the issue). I don’t think I have any sort of DKMS package installed on my system. Any ideas?
Last edited by HappyClown (2016-03-23 04:14:05)
#2 2016-03-21 00:31:15
Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
virtualbox uses dkms. This is a somewhat recent change — but it’s been covered to death in the forums.
The pacman output gives you the solution: follow it.
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#3 2016-03-22 01:04:31
Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
This wont install DKMS headers, would it? I’d rather not have a bunch of weird kernel files floating around without pacmans supervision. I’d like a bit more information on what that command actually does.
#4 2016-03-22 01:17:39
Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
That is 2 messages that dkms wasn’t run because the lts headers were missing, plus one command that was echoed + run to install a kernel module using dkms (for the stock kernel, which DOES have headers installed).
Yes, dkms means your virtualbox binary kernel modules are floating around without pacman’s supervision — that is the point of dkms.
In other words, more of what has been discussed to death already?
Managing AUR repos The Right Way — aurpublish (now a standalone tool)
#5 2016-03-23 04:13:33
Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
Okay, sorry, Jesus. Consider this solved. I searched for this problem before asking but I couldn’t find anything.
#6 2016-03-30 16:51:59
Re: [SOLVED] «No kernel lts headers. You must install them to use DKMS!»
I just installed virtual box and got this message :
==> No kernel 4.4.1-2-ARCH headers. You must install them to use DKMS!
But there is not ===> dkms -q install -m vboxhost -v 5.0.16_OSE -k 4.4.5-1-ARCH
I don’t know exactly what to do while i don’t 100% understand this command.
I think its too easy to deal with
I probably have to do both, then i did the pacman install first.
i got this output :
==> No kernel 4.4.5-1-ARCH modules. You must install them to use DKMS!
Here i have to install modules like this
dkms install vboxhost-5.0.16_OSE -k 4.4.1-2-ARCH/x86_64
Creating symlink /var/lib/dkms/vboxhost/5.0.16_OSE/source -> /usr/src/vboxhost-5.0.16_OSE DKMS: add completed. Error! echo Your kernel headers for kernel 4.4.1-2-ARCH cannot be found at /usr/lib/modules/4.4.1-2-ARCH/build or /usr/lib/modules/4.4.1-2-ARCH/source.
[purgator@legendance ~]$ ls /usr/lib/modules/4.4.1-2-ARCH/build/ vmlinux
I know that it marked as solved but while it’s the same «issue» i think it make sense to answer here.
What i did wrong here please ?