[Solved] Compiling a new kernel with ABS

I've made it through the whole process outlined in the wiki, up to installing with pacman.  Pacman is telling me that the stock arch kernel is a conflicting package and wants to remove it.  I want to hang on to it in case I've messed something up.  What am I doing wrong?  I know you can have two kernels installed.  Using the traditional way I can get this, but I'd rather keep to doing things The Arch Way.
Last edited by Morrvick (2011-11-17 00:40:30)

I double checked what I was doing, and I have done that.  Here is my modified PKGBUILD:
# $Id: PKGBUILD 130991 2011-07-09 12:23:51Z thomas $
# Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Thomas Baechler <[email protected]>
pkgbase=linux
#pkgname=('linux' 'linux-headers' 'linux-docs') # Build stock -ARCH kernel
pkgname=('linux-morrvick' 'linux-headers-morrvick') # Build kernel with a different name
_kernelname=${pkgname#linux}
_basekernel=3.1
pkgver=${_basekernel}.1
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl')
options=('!strip')
source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.1.tar.xz"
"http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
# the main kernel config files
'config' 'config.x86_64'
# standard config files for mkinitcpio ramdisk
"${pkgname}.preset"
'change-default-console-loglevel.patch'
'i915-fix-ghost-tv-output.patch'
'i915-fix-incorrect-error-message.patch'
'usb-add-reset-resume-quirk-for-several-webcams.patch')
md5sums=('edbdc798f23ae0f8045c82f6fa22c536'
'2bf7eb28a58238e1a062fa7393bf7824'
'cbaaa923f00c1935055273ccc1630144'
'93687a4b7e1e6bcd4e7417d6e5079bc4'
'eb14dcfd80c00852ef81ded6e826826a'
'9d3c56a4b999c8bfbd4018089a62f662'
'263725f20c0b9eb9c353040792d644e5'
'a50c9076012cb2dda49952dc6ec3e9c1'
'52d41fa61e80277ace2b994412a0c856')
build() {
cd "${srcdir}/linux-${_basekernel}"
# add upstream patch
patch -p1 -i "${srcdir}/patch-${pkgver}"
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
# Some chips detect a ghost TV output
# mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
# Arch Linux bug report: FS#19234
# It is unclear why this patch wasn't merged upstream, it was accepted,
# then dropped because the reasoning was unclear. However, it is clearly
# needed.
patch -Np1 -i "${srcdir}/i915-fix-ghost-tv-output.patch"
# In 3.1.1, a DRM_DEBUG message is falsely declared as DRM_ERROR. This
# worries users, as this message is displayed even at loglevel 4. Fix
# this.
patch -Np1 -i "${srcdir}/i915-fix-incorrect-error-message.patch"
# Add the USB_QUIRK_RESET_RESUME for several webcams
# FS#26528
patch -Np1 -i "${srcdir}/usb-add-reset-resume-quirk-for-several-webcams.patch"
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
# remove this when a Kconfig knob is made available by upstream
# (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
patch -Np1 -i "${srcdir}/change-default-console-loglevel.patch"
if [ "${CARCH}" = "x86_64" ]; then
cat "${srcdir}/config.x86_64" > ./.config
else
cat "${srcdir}/config" > ./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# 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 nconfig # new 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 ${MAKEFLAGS} bzImage modules
package_linux-morrvick() {
pkgdesc="The Linux Kernel and modules"
groups=('base')
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16' 'mkinitcpio>=0.7')
optdepends=('crda: to set the correct wireless channels of your country')
provides=('kernel26')
conflicts=('kernel26')
replaces=('kernel26')
backup=("etc/mkinitcpio.d/${pkgname}.preset")
install=${pkgname}.install
cd "${srcdir}/linux-${_basekernel}"
KARCH=x86
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make INSTALL_MOD_PATH="${pkgdir}" modules_install
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
# add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
# install fallback mkinitcpio.conf file and preset file for kernel
install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i "${startdir}/${pkgname}.install"
sed \
-e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|g" \
-e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|g" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
# remove build and source links
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf "${pkgdir}/lib/firmware"
# gzip -9 all modules to save 100MB of space
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
# make room for external modules
ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from post_install/upgrade
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
package_linux-headers-morrvick() {
pkgdesc="Header files and scripts for building modules for linux kernel"
provides=('kernel26-headers')
conflicts=('kernel26-headers')
replaces=('kernel26-headers')
mkdir -p "${pkgdir}/lib/modules/${_kernver}"
cd "${pkgdir}/lib/modules/${_kernver}"
ln -sf ../../../usr/src/linux-${_kernver} build
cd "${srcdir}/linux-${_basekernel}"
install -D -m644 Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
install -D -m644 kernel/Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
install -D -m644 .config \
"${pkgdir}/usr/src/linux-${_kernver}/.config"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
for i in acpi asm-generic config crypto drm generated linux math-emu \
media net pcmcia scsi sound trace video xen; do
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
done
# copy arch includes for external modules
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
# fix permissions on scripts dir
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
if [ "${CARCH}" = "i686" ]; then
cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
fi
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
# add headers for lirc package
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
done
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
# add dm headers
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
# add inotify.h
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
# add wireless headers
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
# and...
# http://bugs.archlinux.org/task/11194
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/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 "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
# add dvb headers
# in reference to:
# http://bugs.archlinux.org/task/20402
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
# add xfs and shmem for aufs building
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
done
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
# strip scripts directory
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "${binary}")" in
*application/x-sharedlib*) # Libraries (.so)
/usr/bin/strip ${STRIP_SHARED} "${binary}";;
*application/x-archive*) # Libraries (.a)
/usr/bin/strip ${STRIP_STATIC} "${binary}";;
*application/x-executable*) # Binaries
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;
esac
done
# remove unneeded architectures
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
package_linux-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
provides=('kernel26-docs')
conflicts=('kernel26-docs')
replaces=('kernel26-docs')
cd "${srcdir}/linux-${_basekernel}"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
find "${pkgdir}" -type f -exec chmod 444 {} \;
find "${pkgdir}" -type d -exec chmod 755 {} \;
# remove a file already in linux package
rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
After the compiling is finished:
sudo pacman -U linux-morrvick-3.1.1-1-x86_64.pkg.tar.xz
Password:
resolving dependencies...
looking for inter-conflicts...
:: linux-morrvick and linux are in conflict (kernel26). Remove linux? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: linux-morrvick and linux are in conflict (kernel26)
Any thoughts?

Similar Messages

  • About compiling a kernel with ABS

    So I was following the guide on the wiki about compiling a new kernel with ABS. I wanted to try and make a kernel that didn't need to use initramfs. I thought I could do it by not enabling the kernel to have the ability to use initramfs, and I think I also added the right modules to be built into it not have them be modules ( any idea if I can make sure I chose the correct drivers). After I was done I needed to install in using pacman -U. It told me it conflicted with kernel26 or something, and it asked if I wanted to replace it. Do I want to replace the current with the new? Or can I have them side by side? I know I can have multiple kernels, so it confused me a little.

    Still new with all this, but I'm pretty sure you don't want to replace your current kernel, or you could mess your system up should your newly compiled kernel not work.
    When you created your PKGBUILD did you by any chance forget to change its name? You should have something like "pkgname=linux-custom" (there's more to change, check the wiki for the full list) instead, so that your new kernel will be called "linux-custom" (or whatever you call it), and it can be installed alongside the (Arch) official "linux"
    After that, you can put both in your bootloader, and boot the one you want. But yeah I think you definitely want to keep the official kernel alongside yours, just in case.

  • Recompile a compiled kernel with ABS

    I had been compiling my own kernel with the traditional method for ages. Sometimes ago, I decided to try the ABS method, modifying properly a PKGBUILD for the kernels provided by arch. I now appreciate the provided automation and the ease in combining arch patches with the patches I need or like.
    After a deep personalization of the PKGBUILD, there is now only a feature of the old method I continue to miss. It is when I decide to change something in the configuration of a kernel I have already compiled, and I want to recompile it. If I do so with the traditional method, the previous compilation is somewaht "cached"  and only what is actually different is compiled again: thus, the recompilation time is apparently shorter than the time needed by the first compilation.
    I am not able to do the same with the ABS method. It seems that the directory with the kernel source into src/ is rewritten every time (i.e., the kernel package is untarred also when is already there). Moreover, I also need to delete completely src/ or part of his content, otherwise makepkg complains about patches already being there. Is there a way to avoid this behaviour, so to shorten the recompilation time?

    Yes, ccache drastically reduces recompilation times (for my kernel, from 30 min to 5 min). However, when you change just a couple of peripheric things in config, 5 minutes are too much. Anyway, thanks a lot.

  • Compile Kernel with ABS

    I'm trying to figure out how to compile a kernel using the ABS.  My biggest problem is that I cant figure out where to get the stock config file.  A couple of wikis and posts refer to files that I don't seem to have.  I was also wondering how the initram used in the newer kernels affects compiling a new one.  Do I need to create one with my custom kernel or is it something I shouldn't worry about?  Thanks.

    Start here
    You can get the stock Arch config from abs (simply run abs with root perms and see /var/abs/kernels).
    However, whether you want to use initramfs is not yet covered in the wiki.  In theory, if you are building your own kernel for your machine and no other, you don't need to use initramfs, unless you want to use an encrypted root partition - you probably don't at this point.

  • [SOLVED - Doh!] New kernel doesn't show up in grub menu

    I've decided to play around with a new kernel, so I followed the instructions in the wiki for building the linux-pf kernel (ie, used the AUR). Although it doesn't include this step, I also ran grub-mkconfig. I can see a new Linux kernel in my /boot/grub/grub.cfg file.
    However, it doesn't show up in the Grub menu when I reboot. I don't see any other step in the wiki, for either linux kernels or grub. What am I missing?
    Last edited by jdarnold (2013-09-18 23:55:16)

    @op - If you see it in /boot/grub/grub.cfg and that is the file grub is reading, you will see it when grub goes live.  Do you have a separate /boot partition and did you have it mounted when you updated the config?  I'm guess you didn't and your config went on the root file system under /boot rather than to a mounted filesystem mount in /boot.

  • [solved] Compiling A Custom Kernel W/ Same Config

    I apologize in advance if this is repetitive but i am just a little confused with a few questions.
    What i want to do is be able to pretty much just have the ability to add a module or compile somthing on top of the default linux
    kernel. I guess the only way to do that is to recompile a linux kernel with this guide:
    https://wiki.archlinux.org/index.php/Ke … ild_System
    My questions:
    In the guide it says to change PKGBUILD and change:
    # pkgname=linux-custom       # Build kernel with a different name
    to
    pkgname=linux-test
    I understand that. it also says to disable conflicts if you want two kernels.
    is that just comenting "provides" , "conflicts" and "replaces"
    like:
    #next lines give you problems with nvidia drivers which depend on kernel
    #provides=('kernel26')
    #conflicts=('kernel26')
    #replaces=('kernel26'
    Also when i select or uncomment menuconfig and lets say not change anything at all is that going to be the same configuration as it would be if i were to install the kernel with pacman. It should be the same thing i have right now? right?
    So i can say add framebuffer support or something like that and compile and install and have the exact same kernel now plus FB support.
    Thanks,
    Paul
    Last edited by paulb787 (2012-06-22 05:50:35)

    1.
    What i want to do is be able to pretty much just have the ability to add a module or compile somthing on top of the default linux kernel.
    You would need linux-headers to do that like this (more or less):
    cd your-src/kernel
    make SYSSRC=/lib/modules/${current-kernel-version}/build module
    If you want to customize your kernel further, change its config options, modify default features, etc., then you need to recompile it entirely as described in the Wiki.
    2.
    is that just comenting "provides" , "conflicts" and "replaces"
    Yes. You also need to create a custom linux-${your-custom-kernel-name}.preset in order to generate initramfs. Of course, you can as well use the default name and change the settings in the config file (via menuconfig, nconfig or whatever tool you choose the achieve this). Then nothing has to be changed as all the add-ons will follow the naming convention reserved for the default kernel.
    3.
    Also when i select or uncomment menuconfig and lets say not change anything at all is that going to be the same configuration as it would be if i were to install the kernel with pacman?
    Yes.
    4.
    So i can say add framebuffer support or something like that and compile and install and have the exact same kernel now plus FB support.
    Basically yes, though I'm wondering for which video board you need extra FB support...
    Last edited by bohoomil (2012-06-20 00:41:15)

  • [solved] Compilation problems - virtualbox module with custom 2.6.37..

    Hi all
    I have some problems compiling the vbox drivers on my custom kernel26-n130 (http://aur.archlinux.org/packages.php?ID=32042). From /var/log/vbox-install.log:
    gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include -I/usr/src/linux-2.6.37-N130/arch/x86/include -Iinclude
    In file included from include/linux/io.h:22:0,
                     from include/linux/pci.h:54,
                     from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:99,
                     from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
    /usr/src/linux-2.6.37-N130/arch/x86/include/asm/io.h:45:21: fatal error: xen/xen.h: No such file or directory
    compilation terminated.
    I built the kernel without xen support. It's the same config I used with 2.6.36.2. I found a similar problem here: https://bbs.archlinux.org/viewtopic.php … 61#p871261 . I did the same as .:B:. did and commented out the  "#include <xen/xen.h>" line in  the file mentioned above. Compilation  runs fine and virtualbox seems to run with the drivers compiled this way. Though I don't think this is a very elegant way.
    Any other suggestions?
    Vlad
    PS: Sry for the noise!
    Had to install the xen header file...
    Last edited by DonVla (2011-01-08 16:26:36)

    I found the solution on http://communities.vmware.com/thread/29 … 0&tstart=0
    Linux x201 2.6.37-ARCH #1 SMP PREEMPT Fri Feb 18 16:58:42 UTC 2011 i686 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux
    VMware Workstation 7.1.3 build-324285

  • Custom kernel compilation with abs..

    Been trying out custom kernel compilation with abs, since i only know the regular make menuconfig style, thought that this would be a good thing to learn.
    here is my kernel pkgbuild (showing only the part that i changed):
    # Contributor: dibblethewrecker <dibblethewrecker>
    pkgname=kernel26
    pkgver=2.6.17.13
    pkgrel=1
    pkgdesc="The Linux Kernel 2.6.x.y and modules (IDE support), built with ... patchset"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    install=kernel26.install
    ##### if you are using a single patch from a patchset you can add the name, without it's extention, below
    patch=2.6.18-rc6-mm2
    ##### add the names of any patches to this section, ensure you have the correct extentions!
    source=($patch.bz2 config ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 )
    I want to install the 2.6.18-rc6-mm2, so i downloaded that patch and put it in the same folder as PKGBUILD.
    I copied kernel26.install and put it in the same folder as the PKGBUILD.
    when running makepkg it asks for a config file.. So i copied the config file in /var/abs/kernels/kernel26/. But this will build with an old config file.. how can i as when doing the manual way, do a make menuconfig and enter the settings i want for this kernel??
    thanks

    I'd say it does too, and I think the problem is here:
    jinn wrote:I copied kernel26.install and put it in the same folder as the PKGBUILD.
    Did you just copy the install script, or did you edit it to create an image with a unique name? The script is hardcoded to create an image called kernel26.img i.e. the image name required by the stock kernel, so if you ran it as it is, you have overwritten the images for your stock kernel with images for your new kernel.
    You might still be able to boot your new kernel with kernel26-fallback.img, but if not you will have to boot your stock kernel using the initrd image, which will have been unaffected.
    Once your system is running again, you need to regenerate the kernel26 images using mkinitcpio, and then you can start debugging the problem with your new kernel.
    Of course, if you've already edited kernel26.install for your new kernel, ignore the above, and I'll start again.

  • [SOLVED] Compiling kernel PKGBUILD from ABS (2.6.34)

    So I'm currently compiling a kernel from ABS, and its been running som docbook stuff for 2-3 hours now which I've never seen before when compiling a kernel with ABS.
    I commented out the line that allowed me to edit the config with make menuconfig. I tweaked the kernel to 1000hz and set up my cpu family.
    Is this normal? Im pretty sure this didnt happen when I compiled 2.6.33.4 from ABS
    This is what its been spamming for the past ~2 hours:
    Note: Writing struct_usb_host_ss_ep_comp.9
    Warn: meta author : no refentry/info/author struct usb_host_endpoint
    Note: meta author : see http://docbook.sf.net/el/author struct usb_host_endpoint
    Warn: meta author : no author data, so inserted a fixme struct usb_host_endpoint
    Note: Writing struct_usb_host_endpoint.9
    Warn: meta author : no refentry/info/author struct usb_interface
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface
    Warn: meta author : no author data, so inserted a fixme struct usb_interface
    Note: Writing struct_usb_interface.9
    Warn: meta author : no refentry/info/author struct usb_interface_cache
    Note: meta author : see http://docbook.sf.net/el/author struct usb_interface_cache
    Warn: meta author : no author data, so inserted a fixme struct usb_interface_cache
    Last edited by XAM (2010-06-29 06:19:50)

    Coacher wrote:Since 2.6.34 there is also kernel26-manpages and kernel26-docs packages that also placed in kernel26 PKGBUILD.
    I've never compiled that docs stuff for myself so cant say how long it takes, but if you need only new kernel26 package you can safely wipe out that lines from PKGBUILD.
    wow, thats good to hear. Took ages compiling with it there.

  • Linux 3.14.2-1 ARCH config error - will not build with ABS [SOLVED]

    Hi Guys,
    I need to compile my kernels with ABS because I need 16 DVB adaptors instead of 8. This works normally just fine. Today I tried to compile newest kernel and got following error during config. For the record 3.14.1-1 built just fine.
    Makefile:615: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
    SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
    SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
    SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
    SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
    SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
    CHK include/config/kernel.release
    SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
    UPD include/config/kernel.release
    SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_64.h
    WRAP arch/x86/include/generated/asm/clkdev.h
    CHK include/generated/uapi/linux/version.h
    UPD include/generated/uapi/linux/version.h
    CHK include/generated/utsrelease.h
    UPD include/generated/utsrelease.h
    HOSTCC arch/x86/tools/relocs_32.o
    HOSTCC arch/x86/tools/relocs_64.o
    HOSTCC arch/x86/tools/relocs_common.o
    HOSTLD arch/x86/tools/relocs
    CC kernel/bounds.s
    gcc: error: unrecognized command line option ‘-fstack-protector-strong’
    /home/server/core/linux/src/linux-3.14/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
    make[1]: *** [kernel/bounds.s] Error 1
    Makefile:884: recipe for target 'prepare0' failed
    make: *** [prepare0] Error 2
    ==> ERROR: A failure occurred in prepare().
    Aborting...
    Thanks for the help
    Last edited by wdirksen (2014-05-02 20:31:32)

    wdirksen wrote:...I just moved to New Zealand...
    Beautiful part of the the world... you just need to watch out for Saruman and his orc army
    wdirksen wrote:... and the packages in the NZ mirror are not all in sync at the same time.
    Use reflector....
    % which upp
    upp: aliased to reflector -c "United States" -a 1 -f 3 --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist && sudo pacman -Syyu
    You need to `chmod youruser:yourgroup /etc/pacman.conf` for that to work if run by non-root.
    Last edited by graysky (2014-05-02 20:33:38)

  • Pacman -Syu can't satisfy dependencies- needs a new kernel

    I don't understand this, as I always installed new kernels with pacman up until now. How come pacman won't update my system all of a sudden?
    sudo pacman -Syu
    :: Synchronizing package databases...
    testing is up to date
    core is up to date
    extra is up to date
    community is up to date
    archlinuxfr is up to date
    :: Starting full system upgrade...
    :: Replace libungif with extra/giflib? [Y/n] y
    :: Replace transmission with extra/transmission-cli? [Y/n] y
    :: Replace transmission with extra/transmission-gtk? [Y/n] y
    warning: cpufrequtils: forcing upgrade to version 004-1
    warning: vlc: forcing upgrade to version 0.8.6i-2
    warning: xf86-video-vesa: forcing upgrade to version 1.3.0-6
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    [b]:: madwifi: requires kernel26<2.6.26
    :: wlan-ng26: requires kernel26<2.6.26[/b]
    Anybody willing to help out?

    rooloo wrote:
    the problem is not that the programs won't or couldn't work with 2.6.26 kernel.
    It's an issue with pacman, the madwifi and wlan-ng26 packages. They where built with a dependency line. In that line there is this value 'kernel26<=2.6.25'.  As u can imagine, if u want to install kernel 2.6.26 and some packages on the machine require kernel 2.6.25 or less then pacman will bitch about dependency issues. Even though both packages may work on 2.6.26.
    No, that dependency is correct, these two packages only work with kernel 2.6.25. In the general case, modules need to be rebuilt against a newer version of the kernel, and these packages had not yet been rebuilt at that time.
    But even without mentioning that, they don't even install in the same location : /lib/modules/2.6.25-ARCH vs /lib/modules/2.6.26-ARCH
    That is why it is not recommended to use the testing repository unless you want your system to break periodically.
    That is correct.
    Users using testing should be the ones helping out (on bug tracker, forum, mailing list, etc), not the ones asking for help...

  • [SOLVED]Compile coretemp?

    Hello all!
    So I compiled a new kernel just now, and it seems I forgot to include coretemp (modprobe yields "FATAL: Module coretemp not found). Is it possible to compile the module for the kernel. Or rather, since I assume it is, how exactly would I go about doing it?
    Last edited by rune0077 (2009-09-18 15:05:13)

    Yeah, I was kinda hoping you would tell me I could simply compile the coretemp module by itself, without having to recompile the entire kernel.

  • [SOLVED]Compiling kernel fails with segfault

    Hi guys,
    I'm out of answers.
    The situation :
    Compiling kernel randomly stops with : "segmentation fault" and never runs through.
    Reissuing make will make it continue until it will fail at some other point.
    Background:
    The system feels completely unstable to say the least, but nothing 100 % reproduceable ( vuze(java) crash, firefox/chromuim flash sites crash every 120 seconds, X crashes once a day , for instance when moving tvtime around, kernel oops daily, sometimes hard lockups, logs of yesterdays oops : http://pastie.org/private/imrqdzdbejdb3jxn4czuw )
    But only the kernel compile is 100 % reproduceable so this must be fixed asap.
    Specs:
    intel e8400,nvidia gtx260, 2 G ddr2,Gigabyte EP45-UD3R, "gigs of space", off. arch kernel 2.6.33-ARCH , x86_64,  "bigtime" cooling :
    cpu temps 50 C° max  during compiling
    What configs/packages are important ? I got paranoid and ditched my old makgepkg.conf and used a newer *.pacnew file , I used to have  :MAKEFLAGS="-j3" but not in this config :
    http://pastie.org/private/4ryshivi2hgyqenjlkicg
    local packages:
    local/gcc 4.5.0-1 (base-devel)
        The GNU Compiler Collection
    local/gcc-libs 4.5.0-1 (base)
        Runtime libraries shipped by GCC for C and C++ languages
    Anything else updated daily.
    The blowup:
    http://pastie.org/private/hoamev0sli7zapbr0xvpbq
    What I tried:
    fsck -f: it fixed two inodes, but still the same behavior
    badblocks -nvs : three hours of badblock testing, 0 hits
    memtest : two passed runs, no errors
    stress from AUR, 15 minutes :
    stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 15m
    stress: info: [26841] dispatching hogs: 8 cpu, 4 io, 2 vm, 0 hdd
    stress: info: [26841] successful run completed in 900s
    Max coretemp was 52 C° during stress.
    The usual footnote statement ^_^ :
    On w7 _everything_ runs stable.
    And not only stable , I'm able to OC this box to 4.5 GHz and game under w7 without a prop for hours, well this is what it was build for at some point.
    Conclusion:
    So I'd say hardware wise this box kicks ass and now software wise my Arch kicks me in the a**.
    I doubt there is a faulty hardware part, but what else could it be ?
    Last edited by tuxfusion (2010-05-17 22:48:06)

    Update:
    Trying to compile another big package just to have another result, gcc itself now :
    - segfault after 4 m18 s
    - segfault after 5 m50 s
    Update²:
    I think I found a faulty BIOS setting in my non-OC profile concerning DRAM termination, which said "normal" where "auto" would be correct.
    My OC-profile has this setting correct and since I run this profile in Arch only it might explain that w7 did not fail.
    Still have to verify this but i makes perfect sense, only gcc seems to trigger this. Compiling gcc still running with over 10 minutes in the game now.
    After hitting 4.5 GHz with OC I must have reset the non OC-profile wrong.
    *slams head on desk*
    Last edited by tuxfusion (2010-05-17 13:10:04)

  • [Solved] Compiling kernel with 'localmodcfg' - 'brcmsmac' missing

    Hi all,
    I want to compile my own optimized ck-kernel with localmodcfg="y" which works mostly.
    However there is a small problem.
    The module 'brcmsmac' for the WLAN card is never included although it is listed in my modprobed.db.
    Does someone have any clue what could be the cause?
    Thanks
    Radioactiveman
    Last edited by Radioactiveman (2012-01-13 16:36:15)

    A minor fix for the patch by Steven Rostedt solved my issue.
    I have compiled linux-ck 3.2.1-2 with localmodconfig today and brcmsmac is now included.
    Marking the thread as solved, thanks to Steve.
    Patch file:
    diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
    index ec7afce..bccf07d 100644
    --- a/scripts/kconfig/streamline_config.pl
    +++ b/scripts/kconfig/streamline_config.pl
    @@ -250,33 +250,61 @@ if ($kconfig) {
    read_kconfig($kconfig);
    +sub convert_vars {
    + my ($line, %vars) = @_;
    +
    + my $process = "";
    +
    + while ($line =~ s/^(.*?)(\$\((.*?)\))//) {
    + my $start = $1;
    + my $variable = $2;
    + my $var = $3;
    +
    + if (defined($vars{$var})) {
    + $process .= $start . $vars{$var};
    + } else {
    + $process .= $start . $variable;
    + }
    + }
    +
    + $process .= $line;
    +
    + return $process;
    +}
    +
    # Read all Makefiles to map the configs to the objects
    foreach my $makefile (@makefiles) {
    - my $cont = 0;
    + my $line = "";
    + my %make_vars;
    open(MIN,$makefile) || die "Can't open $makefile";
    while (<MIN>) {
    + # if this line ends with a backslash, continue
    + chomp;
    + if (/^(.*)\\$/) {
    + $line .= $1;
    + next;
    + }
    +
    + $line .= $_;
    + $_ = $line;
    + $line = "";
    +
    my $objs;
    - # is this a line after a line with a backslash?
    - if ($cont && /(\S.*)$/) {
    - $objs = $1;
    - $cont = 0;
    + $_ = convert_vars($_, %make_vars);
    # collect objects after obj-$(CONFIG_FOO_BAR)
    if (/obj-\$\((CONFIG_[^\)]*)\)\s*[+:]?=\s*(.*)/) {
    $var = $1;
    $objs = $2;
    +
    + # check if variables are set
    + } elsif (/^\s*(\S+)\s*[:]?=\s*(.*\S)/) {
    + $make_vars{$1} = $2;
    if (defined($objs)) {
    - # test if the line ends with a backslash
    - if ($objs =~ m,(.*)\\$,) {
    - $objs = $1;
    - $cont = 1;
    foreach my $obj (split /\s+/,$objs) {
    $obj =~ s/-/_/g;
    if ($obj =~ /(.*)\.o$/) {
    Last edited by Radioactiveman (2012-01-13 16:37:06)

  • Arch freezes after about 10 minutes with new kernel [SOLVED]

    As the title says: Arch freezes after about 10 minutes with new kernel (2.6.27). I can only move a mouse, but everything else is frozen. Even restarting X doesn't do a trick. It doesn't work at all. Frozen.
    I don't get any kind of error message (oh really?), so what's the problem..?
    Last edited by Exitium (2008-10-22 15:29:27)

    juan_sck wrote:
    Exitium wrote:
    test1000 wrote:I had an issue with only being able to move the mouse after logging in from gdm and nothing happening but i don't know if thats the same error Sooo, are you using the right nvidia drivers? their driverpolicy just changed, and we now have 4 different official nvidia drivers in repo :S
    Yeah... I'm using nvidia... So the problem is nvidia drivers, not the Linux kernel?
    Edit: My card is nVidia GeForce 8800 Ultra. I can't get driver information now, because I'm using WinXP right now. I'll check it later.
    Did you make a new install or just updated?
    You can try to reinstall old kernel with:
    pacman -U /var/cache/pacman/pkg/kernel(version you want).pkg.tar.gz
    if you made a new install you may have to install the xorg keyboard driver and so.
    By the way, there are a few diferent packages for nvidia drivers. Check wich is yours.
    Also check /var/log/ folder for errors.
    Updated kernel.
    And as I said, I'll check the driver later.

Maybe you are looking for

  • Open link in background when anchor's attribute "href" contains javascript

    Hi community, I support web enterprise-level application with some legacy parts, where some windows are opened by using window.open command inside of anchor's href attribute. (e.g. <a href="javascript:MyFunction('../someurl', '2')" ../> ... function

  • Base value and BED not coming in Excise Irem in MIGO

    Dear all, I created PO base value and basic Excise duty is calculating it is showing  in tax pop up menu but it is not coming in Goods receipt (MIGO) in Excise Item Tab Base Value and BED Please help Manjunath

  • Dynamically reordering columns in ADF Faces Table

    The Rich UI components (see ADF Faces Rich Client Components - Marrying JSF and AJAX together) that the ADF Faces library will contain with the JDeveloper 11g release - and hopefully before that moment - will allow end-users to do all sorts of manipu

  • Why restore of my new mini ipad is not completed after 7 days?

    Why my new mini ipad is still in a restore mode after 7 days? What should i do?

  • Cannot Export from iDrum

    Hi, I'm a long-time user of garageband, but a problem has cropped up recently. When writing a song I generally go into iDrum (1.5.3), make a little pattern, and "export song as aif". This was all fine until not too long after updating to 5.1. I can't