View previous topic :: View next topic |
Author |
Message |
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Tue Feb 23, 2010 10:47 pm Post subject: genkernel compile [SOLVED] |
|
|
Hi,
I have compiled my kernel using genkernel and this is my lsmod.
Code: |
Module Size Used by
ipv6 204260 14
snd_seq_oss 22416 0
snd_seq_midi_event 6068 1 snd_seq_oss
snd_seq 41528 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6116 2 snd_seq_oss,snd_seq
snd_pcm_oss 30004 0
snd_mixer_oss 12068 1 snd_pcm_oss
video 18048 0
backlight 3780 1 video
output 2468 1 video
ac 2824 0
battery 5876 0
button 4928 0
fan 3020 0
thermal 12448 0
processor 32268 0
thermal_sys 11908 4 video,fan,thermal,processor
snd_intel8x0 26156 2
arc4 1516 2
ecb 2320 2
ath5k 104832 0
mac80211 120924 1 ath5k
led_class 3808 1 ath5k
cfg80211 56440 2 ath5k,mac80211
8139too 21080 0
floppy 46180 0
snd_intel8x0m 12136 0
snd_ac97_codec 89980 2 snd_intel8x0,snd_intel8x0m
ac97_bus 1408 1 snd_ac97_codec
snd_pcm 57092 4 snd_pcm_oss,snd_intel8x0,snd_intel8x0m,snd_ac97_codec
snd_timer 17084 2 snd_seq,snd_pcm
snd 48100 14 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm,snd_timer
soundcore 6108 1 snd
snd_page_alloc 7756 3 snd_intel8x0,snd_intel8x0m,snd_pcm
i2c_i801 8448 0
i2c_core 20632 1 i2c_i801
intel_agp 22840 1
agpgart 30412 1 intel_agp
rtc 9060 0
tg3 93844 0
libphy 19204 1 tg3
e1000 102136 0
fuse 47124 0
xfs 434272 0
exportfs 3684 1 xfs
jfs 145112 0
raid10 18620 0
raid456 43088 0
async_memcpy 1672 1 raid456
async_xor 2768 1 raid456
xor 13944 2 raid456,async_xor
async_tx 2928 3 raid456,async_memcpy,async_xor
raid6_pq 80412 1 raid456
raid1 18024 0
raid0 6524 0
dm_bbr 9460 0
dm_snapshot 21372 0
dm_mirror 12336 0
dm_region_hash 10272 1 dm_mirror
dm_log 8316 2 dm_mirror,dm_region_hash
dm_mod 47712 4 dm_bbr,dm_snapshot,dm_mirror,dm_log
scsi_wait_scan 1012 0
sbp2 19088 0
firewire_core 36492 0
ohci1394 25440 0
ieee1394 73412 2 sbp2,ohci1394
sl811_hcd 9044 0
usbhid 22264 0
ohci_hcd 19456 0
uhci_hcd 18736 0
usb_storage 59900 0
ehci_hcd 29436 0
usbcore 117484 7 sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd
lpfc 230728 0
qla2xxx 185748 0
megaraid_sas 27404 0
megaraid_mbox 26100 0
megaraid_mm 7928 1 megaraid_mbox
megaraid 36500 0
aacraid 58912 0
sx8 13028 0
DAC960 59144 0
cciss 32356 0
3w_9xxx 27384 0
3w_xxxx 21132 0
mptsas 29980 0
scsi_transport_sas 23996 1 mptsas
mptfc 14112 0
scsi_transport_fc 34988 3 lpfc,qla2xxx,mptfc
scsi_tgt 10740 1 scsi_transport_fc
mptspi 15024 0
mptscsih 28940 3 mptsas,mptfc,mptspi
mptbase 70876 4 mptsas,mptfc,mptspi,mptscsih
atp870u 25072 0
dc395x 28356 0
sim710 3024 0
53c700 22940 1 sim710
qla1280 19880 0
dmx3191d 9372 0
sym53c8xx 63660 0
qlogicfas408 6248 0
gdth 75408 0
aha1740 6232 0
advansys 50812 0
initio 15032 0
BusLogic 20148 0
arcmsr 19196 0
aic7xxx 105872 0
aic79xx 117196 0
scsi_transport_spi 19020 6 mptspi,53c700,dmx3191d,sym53c8xx,aic7xxx,aic79xx
sg 24252 0
pdc_adma 6084 0
sata_inic162x 8156 0
sata_mv 24128 0
ata_piix 21960 1
ahci 29884 0
sata_qstor 6184 0
sata_vsc 4832 0
sata_uli 3740 0
sata_sis 4796 0
sata_sx4 8704 0
sata_nv 19600 0
sata_via 8240 0
sata_svw 4748 0
sata_sil24 11764 0
sata_sil 8260 0
sata_promise 9752 0
pata_sl82c105 4100 0
pata_cs5535 3100 0
pata_cs5530 4980 0
pata_cs5520 4920 0
pata_via 8444 0
pata_jmicron 2764 0
pata_marvell 3180 0
pata_sis 9412 1 sata_sis
pata_netcell 2780 0
pata_sc1200 3492 0
pata_pdc202xx_old 4668 0
pata_triflex 3528 0
pata_atiixp 4200 0
pata_opti 3360 0
pata_amd 9604 0
pata_ali 8852 0
pata_it8213 4128 0
pata_isapnp 3096 0
pata_pcmcia 10500 0
pcmcia 30392 1 pata_pcmcia
firmware_class 6756 5 tg3,qla2xxx,qla1280,advansys,pcmcia
pcmcia_core 30600 1 pcmcia
b1 19808 0
kernelcapi 34244 1 b1
pata_ns87415 3836 0
pata_ns87410 3464 0
pata_serverworks 5932 0
pata_platform 4436 0
pata_cypress 3228 0
pata_artop 4996 0
pata_it821x 9328 0
pata_optidma 5080 0
pata_hpt3x2n 5260 0
pata_hpt3x3 3944 0
pata_hpt37x 10488 0
pata_hpt366 5464 0
pata_cmd64x 5560 0
pata_efar 4044 0
pata_rz1000 3224 0
pata_sil680 5468 0
pata_radisys 3612 0
pata_pdc2027x 6764 0
pata_mpiix 3688 0
libata 150400 54 pdc_adma,sata_inic162x,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,
sata_via,sata_svw,sata_sil24,sata_sil,sata_promise,pata_sl82c105,pata_cs5535,pata_cs5530,pata_cs5520,pata_via,
pata_jmicron,pata_marvell,pata_sis,pata_netcell,pata_sc1200,pata_pdc202xx_old,pata_triflex,pata_atiixp,pata_opti,
pata_amd,pata_ali,pata_it8213,pata_isapnp,pata_pcmcia,pata_ns87415,pata_ns87410,pata_serverworks,pata_platform,
pata_cypress,pata_artop,pata_it821x,pata_optidma,pata_hpt3x2n,pata_hpt3x3,pata_hpt37x,
pata_hpt366,pata_cmd64x,pata_efar,pata_rz1000,pata_sil680,pata_radisys,pata_pdc2027x,pata_mpiix
|
Are these all the loaded modules for my system (especially the 54 modules for libata)? Also, if I build my own kernel, do I have to incorporate these modules in my:
Code: |
/etc/modules.autoloader/kerel-2.6
|
Last edited by jurgen69 on Thu Mar 04, 2010 9:03 pm; edited 1 time in total |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Tue Feb 23, 2010 11:18 pm Post subject: |
|
|
No, genkernel provides support for many devices (some of which you will not need at all). It is meant to be more generic of a kernel. I would strongly recommend manually configuring and compiling your kernel. The most helpful information for doing so will be in the output of:
and
with the output of the latter used in conjunction with http://kmuto.jp/debian/hcl/. If you have any questions along the way, please feel free to ask. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Wed Feb 24, 2010 11:16 pm Post subject: |
|
|
Hi,
Thanks for the reply, that link is really useful.
Can I use the genkernel to get me going and then compile my own when I have a working system?
Also, can I continue to emerge the packages that I want and still change the kernel at a latter date?
Last edited by jurgen69 on Wed Feb 24, 2010 11:57 pm; edited 1 time in total |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Wed Feb 24, 2010 11:49 pm Post subject: |
|
|
jurgen69 wrote: | Hi,
Thanks for the reply, that link is really useful.
Can I use the genkernel to get me going and then compile my own when I have a working system? |
Yes.
jurgen69 wrote: | BTW what do I have to emerge to be able to use lspci? |
emerge pciutils _________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Thu Feb 25, 2010 3:44 am Post subject: |
|
|
Yes, you can use genkernel and then go back to manually compile your kernel. You will have to change a few things (regarding GRUB and such), but it isn't that big of a deal. Also, yes, you can continue to run your system normally, and switch to a manually-compiled kernel at any time. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Feb 25, 2010 3:52 am Post subject: |
|
|
And since you have a working box, you should note which module you are using right now for at least your hardware with that command :
|
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Feb 25, 2010 2:15 pm Post subject: |
|
|
Personally, I do not recommend peeping in to see what genkernal to configure your own kernel.
Paste the ouput of lspci -n to http://kmuto.jp/debian/hcl/index.rhtmlx
This will give you a glimps of what drivers do you need for which hardware.
Then start with the default kernel configuration given and check all the drivers that got listed in the above marked page.
To search you can you the '/' key in menuconfig.
Also ensure to check the 'event interface' option to get your HID working.
Edit:Respect what the guy above said. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Feb 25, 2010 4:55 pm Post subject: |
|
|
And if you want to be sure, maybe you can configure your kernel from one of the kernel seeds too from Pappy_Mcfae. |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Thu Feb 25, 2010 10:33 pm Post subject: |
|
|
Hi,
Thanks for all the replays.
de_logics & d2_racing I don't understand these:
Quote: |
Also ensure to check the 'event interface' option to get your HID working.
|
Quote: |
And if you want to be sure, maybe you can configure your kernel from one of the kernel seeds too from Pappy_Mcfae.
|
If I start with the default kernel, and after looking at the "Activating Required Options" section in the handbook, do I just need to add the relevant drivers? |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Feb 26, 2010 12:45 am Post subject: |
|
|
jurgen69 wrote: |
If I start with the default kernel, and after looking at the "Activating Required Options" section in the handbook, do I just need to add the relevant drivers? |
More or less yes, but I would highly recommend as d2_racing did, that you go with one of Pappy's kernel seeds to help you get a fine-tuned, customized kernel.
Check the links in my signature. The first is the HCL page where you paste your lspci -n output, and are shown the drivers you need to include.
The second link is Pappy's page, that describes in detail how to use one of his kernel .config seeds to get create your own custom kernel.
The third link is a video I made (roughly 30 minutes long) showing the entire process from start to finish, rather, it shows my desktop, and me actually going through the process of configuring a kernel.
These should help you get sorted. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Fri Feb 26, 2010 6:05 am Post subject: |
|
|
Quote: | do I just need to add the relevant drivers? |
No, there are lot's of other things also.
Quote: | Also ensure to check the 'event interface' option to get your HID working. |
Event interface is an option given in the kernel configuration.
It's variable name is CONFIG_INPUT_EVDEV...search for this variable (as previously said the '/' will give you the search dialog), it will give you it's location. Goto that location and enable it. _________________ My blog |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Tue Mar 02, 2010 9:20 pm Post subject: |
|
|
Ok, so I've compiled a new kernel using a seed, it doesn't boot.
The error is:
Code: |
fsck.ext3: No such file or directory while trying to open /dev/hda3
/dev/hda3
The superblock could not read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
|
Here is my grub.conf
Code: |
default 0
timeout 30
title Gentoo genkernel 2.6.31-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-gentoo-r10 root=/dev/ram0
real_root=/d$00t=/dev/hda3
initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r10
title Gentoo Linux 2.6.31-r10
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-gentoo-r10 root=/dev/sda3
|
Also, when compiling my new kernel I was unable to find the driver for my wireless & wired nic.
Using "/" and entering RTL-8139, I get:
Code: |
-> Device Drivers
-> Network device
-> Ethernet (10 or 100Mbit)
->Realteck RTL-8129/8130/8139 PCI
|
But when I look in this location I'm unable to find this driver, it's the same for my ath5 device.
Since I have added the new kernel to my /boot/ file I can no longer load the modules for my net work devices when booting from the genkernel.
Many thanks |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Mar 03, 2010 2:57 am Post subject: |
|
|
Hi, from any LiveCD can you post this :
Code: |
# lspci -v
# lspci -n
|
You may have forget to include your SATA driver inside the kernel.
So, when we have the info, we will be able to help you configure your box. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Wed Mar 03, 2010 4:36 am Post subject: |
|
|
It seems odd to me that you are getting messages about hda3. Using the new libata drivers in the kernel should yield only devices such as sd*, not hd*. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Mar 03, 2010 12:46 pm Post subject: |
|
|
Which one did you start, the manual kernel or the genkernel entry ? |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Wed Mar 03, 2010 8:24 pm Post subject: |
|
|
Hi,
Here is my lspci -n
Code: |
00:00.0 0600: 8086:2570 (rev 02)
00:01.0 0604: 8086:2571 (rev 02)
00:1d.0 0c03: 8086:24d2 (rev 02)
00:1d.1 0c03: 8086:24d4 (rev 02)
00:1d.2 0c03: 8086:24d7 (rev 02)
00:1d.3 0c03: 8086:24de (rev 02)
00:1d.7 0c03: 8086:24dd (rev 02)
00:1e.0 0604: 8086:244e (rev c2)
00:1f.0 0601: 8086:24d0 (rev 02)
00:1f.1 0101: 8086:24db (rev 02)
00:1f.3 0c05: 8086:24d3 (rev 02)
00:1f.5 0401: 8086:24d5 (rev 02)
00:1f.6 0703: 8086:24d6 (rev 02)
01:00.0 0300: 10de:0324 (rev a1)
02:00.0 0c00: 104c:8026
02:01.0 0200: 10ec:8139 (rev 10)
02:02.0 0200: 168c:0013 (rev 01)
02:04.0 0607: 1179:0617 (rev 32)
02:04.1 0607: 1179:0617 (rev 32)
02:06.0 0880: 1179:0805 (rev 03)
|
And here is my lspci -v
Code: |
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, fast devsel, latency 0
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [e4] Vendor Specific Information <?>
Capabilities: [a0] AGP version 3.0
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, fast devsel, latency 96
Bus: primary=00, secondary=01, subordinate=01, sec-latency=80
Memory behind bridge: c1000000-c1ffffff
Prefetchable memory behind bridge: e0000000-efffffff
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1800 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 1820 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 1840 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 1860 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at c0000000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=168
I/O behind bridge: 00003000-00003fff
Memory behind bridge: c2000000-c20fffff
Prefetchable memory behind bridge: 88000000-8fffffff
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
Flags: bus master, medium devsel, latency 0
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 1880 [size=16]
Memory at 90000000 (32-bit, non-prefetchable) [size=1K]
Kernel driver in use: ata_piix
Kernel modules: ata_piix
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
Subsystem: Toshiba America Info Systems Device ff00
Flags: medium devsel, IRQ 17
I/O ports at 18a0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c-i801
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 1c00 [size=256]
I/O ports at 18c0 [size=64]
Memory at c0000c00 (32-bit, non-prefetchable) [size=512]
Memory at c0000800 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:1f.6 Modem: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
Subsystem: Toshiba America Info Systems Device 0001
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 2400 [size=256]
I/O ports at 2000 [size=128]
Capabilities: [50] Power Management version 2
Kernel driver in use: Intel ICH Modem
Kernel modules: snd-intel8x0m
01:00.0 VGA compatible controller: nVidia Corporation NV34M [GeForce FX Go5200 64M] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Device ff00
Flags: 66MHz, medium devsel, IRQ 10
Memory at c1000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (32-bit, prefetchable) [size=128M]
[virtual] Expansion ROM at e8000000 [disabled] [size=128K]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0
02:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at c2014000 (32-bit, non-prefetchable) [size=2K]
Memory at c2010000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ohci1394
Kernel modules: ohci1394, firewire-ohci
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Toshiba America Info Systems Device ff00
Flags: bus master, medium devsel, latency 32, IRQ 17
I/O ports at 3000 [size=256]
Memory at c2014800 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
Kernel modules: 8139too, 8139cp
02:02.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)
Subsystem: Askey Computer Corp. Device 7058
Flags: bus master, medium devsel, latency 168, IRQ 18
Memory at c2000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ath5k
Kernel modules: ath5k
02:04.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
Subsystem: Toshiba America Info Systems Device 0001
Flags: bus master, slow devsel, latency 64, IRQ 16
Memory at c2015000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=0
Memory window 0: 88000000-8bfff000 (prefetchable)
Memory window 1: 94000000-97fff000 (prefetchable)
I/O window 0: 00003400-000034ff
I/O window 1: 00003800-000038ff
16-bit legacy interface ports at 0001
Kernel modules: yenta_socket
02:04.1 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
Subsystem: Toshiba America Info Systems Device 0001
Flags: bus master, slow devsel, latency 64, IRQ 17
Memory at c2016000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=02, secondary=07, subordinate=0a, sec-latency=0
Memory window 0: 8c000000-8ffff000 (prefetchable)
Memory window 1: 98000000-9bfff000 (prefetchable)
I/O window 0: 00003c00-00003cff
I/O window 1: 00001400-000014ff
16-bit legacy interface ports at 0001
Kernel modules: yenta_socket
02:06.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 03)
Subsystem: Toshiba America Info Systems Device ff00
Flags: medium devsel, IRQ 10
Memory at c2014c00 (32-bit, non-prefetchable) [size=512]
Capabilities: [80] Power Management version 2
|
d2_racing, I can't boot the manual kernel, this is the one that gives me the problem. The genkernel is still bootable (although it seems to have lost it's network drivers)
NathanZachary, I not sure if it makes a difference, but my system has 1 IDE drive installed.
BTW, I can't find my network drivers in the make menuconfig, if I use "/" and do a search it tells me where they are, and when I search the "tree" they are no where to be found |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Wed Mar 03, 2010 8:30 pm Post subject: |
|
|
It doesn't matter that you have a PATA drive. You should be using the libata drivers in the kernel, and not the old ATA drivers. Therefore, in your menuconfig:
Code: |
│ │ Device Drivers ---> │ │
│ │ < > ATA/ATAPI/MFM/RLL support ---> │ │
│ │ SCSI device support ---> │ │
│ │ <*> Serial ATA (prod) and Parallel ATA (experimental) drivers --│ │
|
You should have it similar to this section. You will need to make sure that the ATA/ATAPI/MFM/RLL support is disabled, and the Serial ATA (prod)... section is enabled. Within that section, you will need to enable support for your particular PATA/SATA configuration. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Wed Mar 03, 2010 10:03 pm Post subject: |
|
|
Hi,
My config looks like this:
Code: |
Device Drivers --->
<M> ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --
|
and I've selected:
Code: |
[*] ATA ACPI Multiplier support
[*] ATA SFF support
<*>Intel ESB. ICH, PIIX3, PIIX4 PATA/SATA support
|
|
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Wed Mar 03, 2010 11:24 pm Post subject: |
|
|
Firstly, remove the ATA/ATAPI/MFM/RLL support completely (not even as a module). Then, within the libata section--Serial ATA (prod)...--you have your needed support by having the Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support.
Also, a full listing of the drivers you need in your kernel can be found using your output from lspci -n and the HCL on kmuto.jp:
Code: |
PCI ID Works? Vendor Device Driver Kernel
80862570 Yes Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface intel-agp v2.6.25-
80862571 Intel Corporation 82865G/PE/P PCI to AGP Controller
808624d2 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 usb-uhci,uhci-hcd
808624d4 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 usb-uhci,uhci-hcd
808624d7 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 usb-uhci,uhci-hcd
808624de Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 usb-uhci,uhci-hcd
808624dd Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller ehci-hcd
8086244e Yes Intel Corporation 82801 PCI Bridge i810_rng,hw_random
808624d0 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge intel-rng,iTCO_wdt v2.6.25-
808624db Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller piix v2.6.25-
808624d3 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller i2c-i801 v2.6.25-
808624d5 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller snd-intel8x0 v2.6.25-
808624d6 Yes Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Modem Controller snd-intel8x0m v2.6.25-
10de0324 Yes nVidia Corporation NV34M [GeForce FX Go5200 64M] nv
104c8026 Yes Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link) ohci1394
10ec8139 Yes Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ 8139cp,8139too v2.6.25-
168c0013 Yes Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter ath5k v2.6.25-
11790617 Yes Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support yenta_socket v2.6.25-
11790617 Yes Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support yenta_socket v2.6.25-
11790805 Toshiba America Info Systems SD TypA Controller
|
_________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Thu Mar 04, 2010 12:19 am Post subject: |
|
|
I've removed ATA/ATAPI/MFM/RLL support and re-compiled, but I still have the same error.
I've used the output of lspci -n & pasted it in to the link, I think that I've included all the drivers I need. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Thu Mar 04, 2010 2:02 am Post subject: |
|
|
Okay, please post the contents of /etc/fstab. What filesystem were you using on your drives? Also, with regard to your grub.conf, you will need to make sure to change the partitions to /dev/sd* instead of /dev/hd* since you are using the libata drivers. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Mar 04, 2010 3:36 am Post subject: |
|
|
In fact, change that and post this :
Code: |
# cat /boot/grub/grub.conf
# cat /etc/fstab
|
|
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Thu Mar 04, 2010 8:22 pm Post subject: |
|
|
Here is my 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 genkernel 2.6.31-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-r10 root=/dev/ram0 real_root=/dev/hda3
initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r10
title Gentoo Linux 2.6.31-r10
root (hd0,0)
kernel /vmlinuz-2.6.31-gentoo-r10 root=/dev/sda3
#title Gentoo Linux 2.6.31-r10 (rescue)
#root (hd0,0)
#kernel /boot/kernel-2.6.31-gentoo-r10 root=/dev/sda3 init=/bin/bb
# vim:ft=conf:
|
And here is my /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/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/hda4 /mnt/video ext3 noatime 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
|
And here is my blkid info:
Code: |
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="7e628d35-69ba-4d4e-8842-92f4621fd177" TYPE="ext2"
/dev/sda2: TYPE="swap" UUID="cdb8aeb2-fded-419f-b0ed-0aeddeddce16"
/dev/sda3: UUID="e01c44c7-b0cd-4fee-a175-853008acb143" TYPE="ext3"
/dev/sda4: UUID="2b7a5424-38c1-41cc-b0a4-6be0657de4b6" SEC_TYPE="ext2" TYPE="ext3"
|
|
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Thu Mar 04, 2010 8:32 pm Post subject: |
|
|
Okay, you need to update your grub.conf and fstab to have only sd* entries. Here are what the new ones should look like:
/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 genkernel 2.6.31-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-r10 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r10
title Gentoo Linux 2.6.31-r10
root (hd0,0)
kernel /vmlinuz-2.6.31-gentoo-r10 root=/dev/sda3
#title Gentoo Linux 2.6.31-r10 (rescue)
#root (hd0,0)
#kernel /boot/kernel-2.6.31-gentoo-r10 root=/dev/sda3 init=/bin/bb
# vim:ft=conf:
|
/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/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/sda4 /mnt/video ext3 noatime 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
|
I also changed your /boot in fstab to be noauto. It isn't much of a security enhancement, but it makes sure that /boot isn't automatically mounted. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
jurgen69 n00b
Joined: 26 Sep 2009 Posts: 31 Location: London
|
Posted: Thu Mar 04, 2010 8:59 pm Post subject: None booting kernel [SOLVED] |
|
|
Success!!!
Many thanks to everyone that has helped me, now to try and make X work |
|
Back to top |
|
|
|
|
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
|
|