You are not logged in.

#1 2007-11-01 02:49:56

haukew
Member
From: Hamburg, Germany
Registered: 2007-10-25
Posts: 96
Website

Manually compiling the kernel aith PKGBUILD

Hi!
I am at the moment trying to recompile my kernel using the Arch Package management. So i picked a HowTo ( http://wiki.archlinux.de/?title=Eigener … _erstellen (It's german)) and followed it. The kernel was compiled and the kernel26custom-2.6.23-1-i686.pkg.tar.gz was created, but i can't install it. When i try to do it, the error output is as follows:

pacman -U kernel26custom-2.6.23-1-i686.pkg.tar.gz
Lade Paketdaten ... Fertig.
Prüfe Abhängigkeiten... Fertig.
Räume auf... Fertig.
(1/1) Pruefe auf Dateikonflikte                     [####################################################] 100%
Fehler: Konnte Vorgang nicht vorbereiten (In Konflikt stehende Dateien)
kernel26custom: /lib/modules/2.6.23-ARCH/build existiert im Dateisystem
kernel26custom: /lib/modules/2.6.23-ARCH/kernel/arch/i386/crypto/aes-i586.ko existiert im Dateisystem
kernel26custom: /lib/modules/2.6.23-ARCH/kernel/arch/i386/crypto/twofish-i586.ko existiert im Dateisystem
kernel26custom: /lib/modules/2.6.23-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko existiert im Dateisystem
kernel26custom: /lib/modules/2.6.23-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.ko existiert im Dateisystem
kernel26custom: /lib/modules/2.6.23-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/e_powersaver.ko existiert im Dateisystem

[...]about 1000 Lines follow which files already exist in the file system)[...]

kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/soc/at91/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/soc/codecs/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/soc/pxa/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/soc/s3c24xx/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/soc/sh/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/sparc/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/sound/usb/Kconfig existiert im Dateisystem
kernel26custom: /usr/src/linux-2.6.23-ARCH/usr/Kconfig existiert im Dateisystem

Fehler aufgetreten, keine Pakete wurden aktualisiert.

The rough translation of this error is, that a lot files were found that already exist and won't be replaced. I am a bit afraid to uninstall my current kernel package and install mine, i don't want to break my system...Or can i safely just rm -r  the kernel sources in /usr/src/linux-2.6.23-ARCH ?

Thanks in advance, Hauke

Offline

#2 2007-11-01 02:55:50

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Manually compiling the kernel aith PKGBUILD

try pacman -Uf kernel26custom-2.6.23-1-i686.pkg.tar.gz

that will force to replace those files.

Offline

#3 2007-11-01 07:34:12

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Manually compiling the kernel aith PKGBUILD

somairotevoli wrote:

try pacman -Uf kernel26custom-2.6.23-1-i686.pkg.tar.gz

that will force to replace those files.

Wait, now! That is really not a very good idea, you'd get (possibly) quite a mess. The problem is that your custom compilation is using the same library path as the stock kernel, so the best thing would be to fix your PKGBUILD to put its modules in /lib/modules/2.6.23-custom (for example). I'm afraid I can't off the top of my head tell you how to do that, but maybe someone else can ...?

If the wiki page is missing this information it would be nice if someone could fix it. You could have a look at the English wiki page(s) - maybe there's something there?

Offline

#4 2007-11-01 07:51:19

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Manually compiling the kernel aith PKGBUILD

I just had a quick look at the wiki. Did you do this bit:

Ganz wichtig: Im Zuge der Konfiguration mit dem Frontend muß unbedingt die lokale Version unserer Konfig eingestellt werden!
Zu finden ist dieser Parameter unter General setup->Local Version. Hier muß unserer lokaler Zusatz eingetragen werden, in diesem Fall -custom.

?

(For non-German-readers: that's the bit saying that the local/custom version needs to be put in the kernel config file.)

Offline

#5 2007-11-01 11:54:38

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Manually compiling the kernel aith PKGBUILD

i think u need to change the part of the config file where is says ARCH


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#6 2007-11-01 12:31:33

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: Manually compiling the kernel aith PKGBUILD

In this thread there is a nice bash script by kano to automatically set all the parameters while building a custom kernel.

http://bbs.archlinux.org/viewtopic.php?id=34815


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

#7 2007-11-01 22:23:59

haukew
Member
From: Hamburg, Germany
Registered: 2007-10-25
Posts: 96
Website

Re: Manually compiling the kernel aith PKGBUILD

yep, that was it - i changed it from -ARCH to -custom and could easily install the kernel smile

Offline

Board footer

Powered by FluxBB