You are not logged in.

#1 2006-05-13 08:20:47

HXC
Member
Registered: 2006-03-07
Posts: 21

How to upgrade the kernel?

I would appreciate it if someone would tell me  the exact steps to upgrade an arch kernel. I tried it myself, only resulting in a kernel panick   sad

Offline

#2 2006-05-13 10:05:11

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

Re: How to upgrade the kernel?

The current kernel26 package is at version 2.6.16.16 i.e. the most recent version, and you can make sure you have that version by doing

pacman -Sy kernel26

What exactly are you trying to upgrade to?

If you're looking for details on customising your kernel, have a look at this for the  Arch-specific side of it - apart from that, google for kernel howtos.

Offline

#3 2006-05-13 10:24:17

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: How to upgrade the kernel?

It might be obvious, but after you have upgraded your kernel with

pacman -Sy kernel26

make sure you also write

lilo

or else your kernel most probably will fail to boot.

Offline

#4 2006-05-13 10:35:23

HXC
Member
Registered: 2006-03-07
Posts: 21

Re: How to upgrade the kernel?

First thanks for help!. Now let me see if I understand that correctly :

1 I download the new kernel with pacman.
2 I run the command 'lilo' which automagicly points the botloader in the correct direction.

Offline

#5 2006-05-13 11:37:01

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: How to upgrade the kernel?

The two commands that reb gave you are correct.


/path/to/Truth

Offline

#6 2006-05-13 15:14:32

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: How to upgrade the kernel?

I just forgot to say that you only need the last lilo command if you use lilo as your bootloader, of course. If you use grub, the first command is all you need.
What's happening isn't really that magical. The old kernel files are exchanged with the new kernel files with the same file names, so the boot loader already points to the correct kernel files. For some reason lilo requiers to be re-run when the kernel files change. I think it's doing a checksum test or something.

Offline

#7 2006-05-13 22:08:41

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to upgrade the kernel?

reb wrote:

For some reason lilo requiers to be re-run when the kernel files change. I think it's doing a checksum test or something.

I might be wrong but I think lilo needs to be rerun because it  writes something to the boot sector and need to update that info.

Offline

#8 2006-05-13 22:38:46

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: How to upgrade the kernel?

lilo writes the kernel and image files to the boot sector.

grub on the other hand, just writes itself and the location of it's config file, and some filesystem drivers, so it can directly it's config, and load kernels and initrd's from the filesystem.

James

Offline

#9 2006-05-14 10:06:09

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: How to upgrade the kernel?

iphitus wrote:

lilo writes the kernel and image files to the boot sector.

Not true. lilo can not read filesystems and thus has to rewrite the /boot/map file so it can find the kernels and initrd's. It also writes the exact position of the map file to the boot sector.

Offline

Board footer

Powered by FluxBB