You are not logged in.

#1 2008-11-15 16:59:05

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

pacman warns about conflicts while installing a kernel

Hi,
I followed the wiki (http://wiki.archlinux.org/index.php/Cus … n_with_ABS) to compile the newest vanilla-kernel with my own config,

But when I now wanna install it I get these messages:

/var/abs/local/vanilla-kernel$ sudo LANG=C pacman -U kernel26276eee-2.6.27.6-1-i686.pkg.tar.gz                                                              
 
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [######################################################] 100%
error: failed to prepare transaction (conflicting files)
kernel26276eee: /lib/firmware/edgeport/boot.fw exists in filesystem
kernel26276eee: /lib/firmware/edgeport/boot2.fw exists in filesystem
kernel26276eee: /lib/firmware/edgeport/down.fw exists in filesystem
kernel26276eee: /lib/firmware/edgeport/down2.fw exists in filesystem
kernel26276eee: /lib/firmware/edgeport/down3.bin exists in filesystem
kernel26276eee: /lib/firmware/emi26/bitstream.fw exists in filesystem
kernel26276eee: /lib/firmware/emi26/firmware.fw exists in filesystem
kernel26276eee: /lib/firmware/emi26/loader.fw exists in filesystem
kernel26276eee: /lib/firmware/emi62/bitstream.fw exists in filesystem
kernel26276eee: /lib/firmware/emi62/loader.fw exists in filesystem
kernel26276eee: /lib/firmware/emi62/midi.fw exists in filesystem
kernel26276eee: /lib/firmware/emi62/spdif.fw exists in filesystem
kernel26276eee: /lib/firmware/keyspan_pda/keyspan_pda.fw exists in filesystem
kernel26276eee: /lib/firmware/ti_3410.fw exists in filesystem
kernel26276eee: /lib/firmware/ti_5052.fw exists in filesystem
kernel26276eee: /lib/firmware/whiteheat.fw exists in filesystem
kernel26276eee: /lib/firmware/whiteheat_loader.fw exists in filesystem

errors occurred, no packages were upgraded.

WellI don't know what to do right now. Is it safe to force the installation? And why is the last line telling "no packages were upgraded" ? I don't want to upgrade any existing kernel but install a totally new one.

Offline

#2 2008-11-15 18:11:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pacman warns about conflicts while installing a kernel

Most files in a kernel package are installed in paths unique to that particular kernel e.g. /lib/module/<kernel_version> or /usr/src/linux-<kernel_version>. These firmware files, however, are installed in /lib/firmware, so they conflict with identical files installed by another kernel package. In this case, it will be safe to force it.

The error message relates to the fact that you are correctly using the -U/--upgrade flag to install your package. If it bothers you, submit an appropriate feature request on the bugtracker.

Offline

#3 2008-11-15 19:00:59

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: pacman warns about conflicts while installing a kernel

Thanks for the answer,
I forced the installation now but pacman did like he said and didn't install mine next to the already installed kernels but replaced the stockkernel with mine. That wasn't wanted because I did some serious tweaking on my config and it was likley not to work out of the box and I wanted to have the stock-kernel as safepoint.. sad now I'll try the kernel-fallback which was created and hope it works at least to bring me to a shell.

Well I'm going to take a closer look at this PKGBUILD...something must be wrong in this wiki-article.

Offline

#4 2008-12-11 18:23:51

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: pacman warns about conflicts while installing a kernel

Sorry but I can't remember anymore and hadn't fun further trying.

I created my own install script which works fine. If someone is interested:

#!/bin/bash
# 
# script to automate installing a kernel on archlinux,
# invoked with -r deletes old kernel-sources on place
#
# - Rorschach (11.12.08) 
#
# to delete an installed kernel just do:
#     rm /boot/kernel-$KERN_VERSION$LOCAL_VERSION.img
#     rm /boot/vmlinuz-$KERN_VERSION$LOCAL_VERSION
#     rm -rf /lib/modules/$KERN_VERSION$LOCAL_VERSION 
#
#
KERN_VERSION=2.6.27.8
LOCAL_VERSION=-custom-1

if [ $1 == '-r' ];then
    rm -rf linux-$KERN_VERSION
fi

wget -N ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$KERN_VERSION.tar.bz2
wget -N ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$KERN_VERSION.tar.bz2.sign
        
gpg --verify linux-$KERN_VERSION.tar.bz2.sign
if [ $? -ne 0 ];then
    echo " ERROR: Couldn't verify kernel-sources. Aborting."
    exit 1
fi

tar xfj linux-$KERN_VERSION.tar.bz2
cd linux-$KERN_VERSION
zcat /proc/config.gz | dd of=.config
make oldconfig
make menuconfig
export CONCURRENCY_LEVEL=3
make -j3 clean bzImage modules || exit 1
sudo make modules_install || exit 1
sudo cp -v arch/x86/boot/bzImage /boot/vmlinuz-$KERN_VERSION$LOCAL_VERSION
sudo mkinitcpio -k $KERN_VERSION$LOCAL_VERSION -g /boot/kernel-$KERN_VERSION$LOCAL_VERSION.img
sudo vim /boot/grub/menu.lst

Last edited by Rorschach (2008-12-11 18:26:01)

Offline

#5 2008-12-12 01:55:08

xaiviax
Member
From: Michigan
Registered: 2008-11-04
Posts: 282

Re: pacman warns about conflicts while installing a kernel

Is there any good complete guide to compiling and installing your own kernel in parallel to your current one in Arch Linux?  Does the above script facilitate that?

Offline

#6 2008-12-12 11:27:19

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: pacman warns about conflicts while installing a kernel

xaiviax wrote:

Is there any good complete guide to compiling and installing your own kernel in parallel to your current one in Arch Linux?  Does the above script facilitate that?

some guy a couple of days ago posted a diff on the abs 1.6.27.7 PKGBUILD which does exactly that.

so, just download the 2.6.27.7 abs sources and patch with the patch proposed here: http://bugs.archlinux.org/task/12384

modify to fit your needs big_smile

Offline

#7 2008-12-12 17:34:38

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: pacman warns about conflicts while installing a kernel

My script also installs the kernel in parallel to the current one, just choose a LOCAL_VERSION other than "ARCH". I'm gonna comment it a bit more and add it to the wiki.

Offline

#8 2008-12-12 17:43:24

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: pacman warns about conflicts while installing a kernel

Rorschach wrote:

My script also installs the kernel in parallel to the current one, just choose a LOCAL_VERSION other than "ARCH". I'm gonna comment it a bit more and add it to the wiki.

no offense, but the wiki is already a mess as it is, and you are not using the PKGBUILD system which is much easier to maintain,  and not applying ARCH patches.

if you read the feature request, what the ticket issuer suggests is to KISS the entire process from the ground up.

Offline

#9 2008-12-12 18:24:15

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: pacman warns about conflicts while installing a kernel

hi,
eldragon your right with this! My script doesn't apply arch packages because it's not for installing an arch-kernel but a custom vanilla-kernel. There afaik are no ARCH-patches which are needed to run the arch-distribution on a linux kernel. I'm using vanilla kernel without any problems.

The PKGBUILD-system is way harder to maintain imo than my approach. My approach is just doing what avarage geek does by hand. It's absolutly straight forward and everyone who ever compiled a kernel will have no problem using and understanding it. I compiled more than one kernel in my life and I still don't understand why the at the moment available PKGBUILDS for kernels are so bloated! They are doing to much things they don't have to do. My script is KISS imo in contrast to the PKGBUILDS.

Offline

Board footer

Powered by FluxBB