You are not logged in.

#1 2008-09-03 20:27:43

NegativeFPS
Member
From: 192.168.0.1
Registered: 2008-04-14
Posts: 37
Website

-ARCH applied at end of custom kernel

So I followed this guide the other day to compile a vanilla kernel: http://wiki.archlinux.org/index.php/Ker … rom_Source

And at the end, I noticed even though I changed the namings to my own name, and remember no reference to -ARCH at all, it is still named nameichose-ARCH.

Why is this? I don't want the -ARCH part there hmm


Big Linux Noob

Offline

#2 2008-09-03 20:38:58

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: -ARCH applied at end of custom kernel

simply edit your kernel config file

Offline

#3 2008-09-03 21:38:01

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: -ARCH applied at end of custom kernel

I don't want to hijack this thread, but if you don't mind me asking, where is the kernel config file stored </kernel noobiness>


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#4 2008-09-03 21:47:52

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: -ARCH applied at end of custom kernel

if your building from the abs script then the config is stored in
yourabsdir/kernel26/config
edit that (make a backup) and then when you run makepkg it will copy that config file.

Last edited by genisis300 (2008-09-03 21:48:22)


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#5 2008-09-03 21:49:38

NegativeFPS
Member
From: 192.168.0.1
Registered: 2008-04-14
Posts: 37
Website

Re: -ARCH applied at end of custom kernel

I figured it out. I missed

$ make menuconfig
General setup  --->
 (-ARCH) Local version - append to kernel release

Well didn't really miss, because I did this in gconfig and I noticed that line there, but couldn't edit it. This time I used menuconfig and could edit it there. So I just removed the -ARCH from there. Compiling now big_smile


Big Linux Noob

Offline

#6 2008-09-05 22:34:03

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: -ARCH applied at end of custom kernel

haxit wrote:

I don't want to hijack this thread, but if you don't mind me asking, where is the kernel config file stored </kernel noobiness>

the config is in the kernel source, so wherever you extract the source is where you will find the config.

if you are using ABS to compile the kernel, then you need change the config.x86 or config.x64_86 in the base directory of the abs source.

Offline

#7 2008-09-05 23:54:27

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: -ARCH applied at end of custom kernel

*****I'M NOT SURE IF THIS IS THE CORRECT ARCHLINUX WAY, but it worked for me.*****


I made a new 2.6.26-3 kernel using the ABS and the zen2 sources patch the other night. I didn't want the "-ARCH" part so I commented out this part in my PKGBUILD:

#_patchname="patch-${pkgver}-1-ARCH"

then I added this part in the same place:

_patchset=-zen2

then I edited the -ARCH patch part from this:

patch -Np1 -i $startdir/src/${_patchname} || return 1

and replaced it with this for my zen2 patch:

patch -Np1 -i $startdir/2.6.26-zen2.patch

then I changed this part from:

_kernver="${_basekernel}${CONFIG_LOCALVERSION}"

to this:

_kernver="${_basekernel}${_patchset}"

and then I also set these parts in my config.x86_64 in the General setup section from this:

CONFIG_LOCALVERSION="-ARCH"
CONFIG_LOCALVERSION_AUTO=y

to this:

CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set

Plus, I changed the names of all my other files in the ABS to names like this: "kernel26zen2.install" "kernel26zen2.preset"...... as well as my PKGBUILD to use "pkgname=kernel26zen2" and "install=kernel26zen2.install"...... and also anything in the "kernel26zen2.install" "kernel26zen2.preset" files to also use "kernel26zen2" instead of "kernel26" so as to make a "kernel26zen2.img" and a "kernel26zen2-fallback.img"..... I also took out the md5sums (they all had passed during an earlier try).



The end result was a separate kernel that I could add to my GRUB menu.lst and boot into..... without hurting my -ARCH stock kernel.

Last edited by methuselah (2008-09-05 23:56:57)

Offline

Board footer

Powered by FluxBB