Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some help with compiling my kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 2:01 am    Post subject: Some help with compiling my kernel? Reply with quote

Hi. I would like some help compiling my kernel. I do not wish to use genkernel forever. Here is the output of my lspci:
Code:
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 Network controller: RaLink RT2561/RT61 802.11g PCI
01:06.0 Communication controller: Conexant Systems, Inc. Device 2f40
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8039 PCI-E Fast Ethernet Controller (rev 14)
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Sat Nov 28, 2009 2:44 am    Post subject: Reply with quote

use
Code:
lspci -kvm

part of mine shows
Code:
Device:   00:14.0
Class:   SMBus
Vendor:   ATI Technologies Inc
Device:   SBx00 SMBus Controller
SVendor:   Giga-byte Technology
SDevice:   Device 4385
Rev:   3c
Module:   i2c-piix4

Device:   00:14.1
Class:   IDE interface
Vendor:   ATI Technologies Inc
Device:   SB700/SB800 IDE Controller
SVendor:   Giga-byte Technology
SDevice:   Device 5002
ProgIf:   8a
Driver:   pata_atiixp

it shows drivers needed.
for a head start go to pappy's kernel seeds.
read up. then pick your arch, x86 or x86-64 on his site . pick your kernel version. you can right click and save as
(change 2.6.30-gentoo-r9-x86_64-07.config to .config)
you can download right into
Code:
 /usr/src/<kernel>

you still have to check what you need but pappy has cleaned out a lot of stuff you don't need.
in menuconfig you can type / for help. example type / and pata_atiixp to find out where the setting for this driver is. be sure to compile in drivers needed to boot your hard drives and file systems. and look at
Gentoo Linux nVidia Guide before making kernel.
hope this helps. have fun.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Nov 28, 2009 3:00 am    Post subject: Reply with quote

Also, you can ask for Pappy's help too here : https://forums.gentoo.org/viewtopic-t-801641.html
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Nov 28, 2009 3:09 am    Post subject: Reply with quote

and you can look at this great resource, Linux Sea for a step by step walk through.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 3:31 am    Post subject: Reply with quote

Mike Hunt wrote:
and you can look at this great resource, Linux Sea for a step by step walk through.


Thanks everyone! I appreciate it!
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Nov 28, 2009 3:32 am    Post subject: Reply with quote

No problem :P
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 3:40 am    Post subject: Reply with quote

d2_racing wrote:
No problem :P


Yay! A kernel panic. Oh well. Posting the output usually works good:

Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
----There was nothing in between the last line and the next one.----
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

This was the text displayed on my screen.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Nov 28, 2009 3:42 am    Post subject: Reply with quote

Ok, can you boot from a LiveCD,chroot your box and post this :

Code:

# fdisk -l
# lspci -kvm
# cat /boot/grub/grub.conf
# cat /etc/fstab
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 4:02 am    Post subject: Reply with quote

d2_racing wrote:
Ok, can you boot from a LiveCD,chroot your box and post this :

Code:

# fdisk -l
# lspci -kvm
# cat /boot/grub/grub.conf
# cat /etc/fstab


Sure.

Output of fdisk -l:
Code:


Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0a7d030c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       38913   312464250   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e4dce

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1           5       40131   83  Linux
/dev/sdb2               6          71      530145   82  Linux swap / Solaris
/dev/sdb3              72       60801   487813725   83  Linux


Output of lspci -kvm:
Code:

Device: 00:00.0     
Class:  RAM memory   
Vendor: nVidia Corporation
Device: MCP61 Memory Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a1                                 

Device: 00:01.0
Class:  ISA bridge
Vendor: nVidia Corporation
Device: MCP61 LPC Bridge 
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 

Device: 00:01.1
Class:  SMBus 
Vendor: nVidia Corporation
Device: MCP61 SMBus       
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 

Device: 00:01.2
Class:  RAM memory
Vendor: nVidia Corporation
Device: MCP61 Memory Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 

Device: 00:02.0
Class:  USB Controller
Vendor: nVidia Corporation
Device: MCP61 USB Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a3                                 
ProgIf: 10                                 

Device: 00:02.1
Class:  USB Controller
Vendor: nVidia Corporation
Device: MCP61 USB Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a3                                 
ProgIf: 20                                 

Device: 00:04.0
Class:  PCI bridge
Vendor: nVidia Corporation
Device: MCP61 PCI bridge 
Rev:    a1               
ProgIf: 01               

Device: 00:05.0
Class:  Audio device
Vendor: nVidia Corporation
Device: MCP61 High Definition Audio
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 

Device: 00:06.0
Class:  IDE interface
Vendor: nVidia Corporation
Device: MCP61 IDE         
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 
ProgIf: 8a                                 

Device: 00:08.0
Class:  IDE interface
Vendor: nVidia Corporation
Device: MCP61 SATA Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 
ProgIf: 85                                 

Device: 00:08.1
Class:  IDE interface
Vendor: nVidia Corporation
Device: MCP61 SATA Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 
ProgIf: 85                                 

Device: 00:09.0
Class:  PCI bridge
Vendor: nVidia Corporation
Device: MCP61 PCI Express bridge
Rev:    a2                     

Device: 00:0b.0
Class:  PCI bridge
Vendor: nVidia Corporation
Device: MCP61 PCI Express bridge
Rev:    a2                     

Device: 00:0c.0
Class:  PCI bridge
Vendor: nVidia Corporation
Device: MCP61 PCI Express bridge
Rev:    a2                     

Device: 00:0d.0
Class:  VGA compatible controller
Vendor: nVidia Corporation       
Device: GeForce 6150SE nForce 430
SVendor:        Elitegroup Computer Systems
SDevice:        Device 2601               
Rev:    a2                                 

Device: 00:18.0
Class:  Host bridge
Vendor: Advanced Micro Devices [AMD]
Device: K8 [Athlon64/Opteron] HyperTransport Technology Configuration

Device: 00:18.1
Class:  Host bridge
Vendor: Advanced Micro Devices [AMD]
Device: K8 [Athlon64/Opteron] Address Map

Device: 00:18.2
Class:  Host bridge
Vendor: Advanced Micro Devices [AMD]
Device: K8 [Athlon64/Opteron] DRAM Controller

Device: 00:18.3
Class:  Host bridge
Vendor: Advanced Micro Devices [AMD]
Device: K8 [Athlon64/Opteron] Miscellaneous Control

Device: 01:05.0
Class:  Network controller
Vendor: RaLink
Device: RT2561/RT61 802.11g PCI
SVendor:        Linksys
SDevice:        WMP54G ver 4.1

Device: 01:06.0
Class:  Communication controller
Vendor: Conexant
Device: Device 2f40
SVendor:        Conexant
SDevice:        Device 2000

Device: 03:00.0
Class:  Ethernet controller
Vendor: Marvell Technology Group Ltd.
Device: 88E8039 PCI-E Fast Ethernet Controller
SVendor:        Elitegroup Computer Systems
SDevice:        Device 8039
Rev:    14


output of cat /boot/grub/grub.conf:

Code:

# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.31-6
root (hd0,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/sdb3 ro

# vim:ft=conf:


output of cat /etc/fstab:

Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sdb1               /boot           ext2            noauto,noatime  1 2
/dev/sdb3               /               ext4            noatime         0 1
/dev/SWAP               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Nov 28, 2009 5:21 am    Post subject: Reply with quote

Ok, try this one instead :

Code:

# nano /boot/grub/grub.conf


Code:

default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.31-6
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/sdb3
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Nov 28, 2009 5:22 am    Post subject: Reply with quote

Also, can you post this :

Code:

# cd /boot && ls -la
Back to top
View user's profile Send private message
Zhaozhou
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2007
Posts: 121
Location: Sweden

PostPosted: Sat Nov 28, 2009 6:23 am    Post subject: Reply with quote

whiteghost wrote:

Code:
lspci -kvm





wow.


just wow.
_________________
lunix.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 3:32 pm    Post subject: Reply with quote

d2_racing wrote:
Also, can you post this :

Code:

# cd /boot && ls -la

Sure.

Output of cd /boot && ls -la:
Code:

total 3187
drwxr-xr-x  4 root root    1024 2009-11-26 20:44 .
drwxr-xr-x 19 root root    4096 2009-11-27 04:00 ..
lrwxrwxrwx  1 root root       1 2009-11-26 23:08 boot -> .
drwxr-xr-x  2 root root    1024 2009-11-28 10:31 grub
-rw-r--r--  1 root root       0 2009-11-19 01:35 .keep
-rw-r--r--  1 root root 3229760 2009-11-27 22:35 kernel-2.6.31-gentoo-r6
drwx------  2 root root   12288 2009-11-26 17:45 lost+found
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 3:36 pm    Post subject: Reply with quote

d2_racing wrote:
Ok, try this one instead :

Code:

# nano /boot/grub/grub.conf


Code:

default 0
timeout 30
splashimage=(hd1,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.31-6
root (hd1,0)
kernel /boot/kernel-2.6.31-gentoo-r6 root=/dev/sdb3


Same result. Kernel panic. Do you think making sdb3 hdb3 will work?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sat Nov 28, 2009 4:39 pm    Post subject: Reply with quote

dragos240,

The driver for your hard drive is missing.

Its like this Intel one but you need The nVidia SATA and AMD/Nvidia PATA options on the SATA menu. Built in, not modules.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 4:47 pm    Post subject: Reply with quote

NeddySeagoon wrote:
dragos240,

The driver for your hard drive is missing.

Its like this Intel one but you need The nVidia SATA and AMD/Nvidia PATA options on the SATA menu. Built in, not modules.


Thanks! I'm off to make menuconfig!

I just checked! Those options were not tic'ed! I tic'ed them twice, so their not going to be modules. Let's see if it boots :).


Last edited by dragos240 on Sat Nov 28, 2009 4:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Nov 28, 2009 4:51 pm    Post subject: Reply with quote

also,

in your fstab this line is wrong. It should be pointing at a real device, such as /dev/sdb2

/dev/SWAP none swap sw 0 0
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 4:57 pm    Post subject: Reply with quote

Mike Hunt wrote:
also,

in your fstab this line is wrong. It should be pointing at a real device, such as /dev/sdb2

/dev/SWAP none swap sw 0 0


I noticed that too. Fix'd!
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 5:11 pm    Post subject: Reply with quote

Okay! It booted..... with many errors.

But at least I could login. Right now, I tried ifconfig -a.

What I got was this:

dummy0 and lo

Hmm..... What modules do I load. I use a rt61 wireless PCI card. I got the firmware for it. I just don't know what modules to load. Also, alsa didn't start. Is there any way I can get a log of my bootup?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sat Nov 28, 2009 7:01 pm    Post subject: Reply with quote

dragos240,

Your boot log, such as it is, is in dmesg. Run
Code:
dmesg | less
to read it all.

Put your rt61 firmware into /lib/firmware and make wireless support and Ralink Support as modules.
While you are in make menuconfig, make friends with its search. Press /
When thats right you will have a wlan0 interface.
To make it work, you will need wireless tools and optionally wpa_supplicant, depending on your wireless encryption requirements.

Alsa has some userspace tools. When you have emerged them, add alsasound to the default runlevel, so it starts at boot.
There is a whole guide about alsa.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sat Nov 28, 2009 7:17 pm    Post subject: Reply with quote

GOT IT!
Domo arigato gozaimasu!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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