You are not logged in.

#1 2005-12-22 21:16:48

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

manual kernel install

I just tried to compile my own kernel (with help from the wiki), for the first boot it worked fine. Then I changed something in the kernel and rebooted but now I cant boot into my linux.. Is there a way of getting to a terminal and recompiling the kernel?


The ultimate Archlinux release name: "I am your father"

Offline

#2 2005-12-22 21:22:11

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

Re: manual kernel install

yes, boot from install cd and :

mount /dev/hda2 /mnt  #assuming  that your system is on hda2
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
chroot /mnt
cd /usr/src/linux
 

and recompile kernel, install boot loader, and reboot.


Greetings
Krzysiek Wojszko

Offline

#3 2005-12-22 22:41:50

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: manual kernel install

One other thing. After you follow the advice already given, consider the following. Before attempting to run with a different kernel (one you compiled or one you got from somewhere else, like the Arch archives), always make a copy of a working kernel and modify grub's menu.lst so that at least one menu selection points to that working kernel. This way, when your new kernel fails to boot, you just reboot and choose the one that worked from your grub menu.

Offline

#4 2005-12-22 22:43:09

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: manual kernel install

Do i have to use this specific command to compile the kernel:

make -s clean bzImage modules modules_install


I am used to only doing : make && make modules_install
in gentoo..

Cheers


The ultimate Archlinux release name: "I am your father"

Offline

#5 2005-12-22 23:39:04

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

Re: manual kernel install

I'm using by:

make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz
cp System.map /boot
lilo

but its possible to use makepkg and pacman to install


Greetings
Krzysiek Wojszko

Offline

#6 2005-12-23 00:18:22

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: manual kernel install

jinn wrote:

I am used to only doing : make && make modules_install
in gentoo

That's all I ever do in any distro.

Offline

#7 2005-12-23 09:17:07

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 802

Re: manual kernel install

Krzysiek_W wrote:

make bzImage modules modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz
cp System.map /boot
lilo

If you change "modules_install" to "modules_install install" then the next three lines are done for you (plus previous kernel and system map saved as ".old"). If you use grub so have removed lilo, then the "lilo" bit may throw up an error that can be ignored.

Offline

#8 2005-12-23 11:12:24

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

Re: manual kernel install

All of that's fine - the "classic" way to handle your kernel. However, your kernel and related files are orphans as far as pacman is concerned. Personally, I don't like orphans on my systems, so I use ABS and pacman for my kernels.

Each to their own, of course.  smile

Offline

Board footer

Powered by FluxBB