Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
panic after recompilation of the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Tue Sep 12, 2006 1:02 pm    Post subject: panic after recompilation of the kernel Reply with quote

Hello all gentoo´ser.

i got a problem at two ways.
After i recompiled the kernel with
Code:
genkernel all
i get an
Code:
can´t mount /dev/hda3 at /newroot
. So i started again with the livecd and typed
Code:
find / -type f -exec grep newroot {} \; -print > file
to find all the stuff that contained that string. The system gaves me the linuxrc file in /usr/share/genkernel/generic/, but after one time i find that it was never found. I dont saved this file and i dont find it.

So i recompiled the kernel with make. But after that i get an kernelpanic
Code:
can´t find something at block(3,3)

its nice if you can help me and if not.

regards gentux
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Sep 12, 2006 1:54 pm    Post subject: Reply with quote

You should try to configure and compile the kernel manually.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Sep 12, 2006 1:55 pm    Post subject: Reply with quote

Make the kernel by hand as instructed in the manual:

1. cd /usr/src/linux
2. make menuconfig
3. configure your kernel. Make SURE you get everything you need. If you aren't sure, press H for help. also, emerge pciutils because lspci is your friend.
4. make
5. emerge module-rebuild && module-rebuild rebuild
6. make modules_install install
7. edit /boot/grub/grub.conf. It should look similar to this:
example grub.conf, with vesafb-tng, asuming /boot is hda1 and / is hda3:

default 0
hiddenmenu
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux
root (hd0,0)
kernel /vmlinuz root=/dev/hda3 vesafb:mtrr:3,ywrap,1280x1024-32@85


8. reboot and enjoy your kernel
Back to top
View user's profile Send private message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Tue Sep 12, 2006 2:13 pm    Post subject: Reply with quote

thx,

after years of reading i got the information that devicedrivers for PCI is not good as module.
what do i with emerge module-rebuild && module-rebuild rebuild. is it faster as the way to recompile all again.

yes my grub.conf is the same until vesafb...

wath is with genkernel an the information that mount will mount /dev/hda3 at /newroot?

many many thx and maximus successus
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Sep 12, 2006 10:25 pm    Post subject: Reply with quote

module-rebuild is a tool that automatically re-emerges packages that install kernel modules. It's pretty awesome.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum