1 |
I'll say right from the start, that building a new kernel, has always |
2 |
been a problem for me. I don't remember ever not having a problem, in |
3 |
10+ yrs.. |
4 |
|
5 |
Many people here seem to find it completely easy... not me. |
6 |
|
7 |
So I'm back in the soup. |
8 |
[I hope what I try to layout below is not overly confusing] |
9 |
|
10 |
(After install of gentoo-sources-2.6.31-r4) |
11 |
|
12 |
I started with `make oldconfig' |
13 |
Moved from that to `make menuconfig' |
14 |
|
15 |
Trying to mimic all the needed drivers in current running kernel. |
16 |
But, On the first build and reboot, I got `kernel panic' |
17 |
|
18 |
So by now I've rebuilt the kernel 4 times, each time trying to get the |
19 |
new one to have all the needed drivers that are present in the old |
20 |
one, but still getting `kernel panic'. |
21 |
|
22 |
I tried closely comparing the current working kernel with newly built |
23 |
one. I mean side by side with `make menuconfig' running in both sources. |
24 |
I cannot tell what it is I'm overlooking. |
25 |
|
26 |
I copied the latest output painfully off the boot screen, and best I |
27 |
can make of it, a driver required to let the kernel recognize the |
28 |
filesystem that / is on, is not getting loaded. I think its one of |
29 |
PIIX items. |
30 |
|
31 |
The thing is, I cannot find the culprit. For example, examining the |
32 |
PIIX items in the working kernel and inserting here: |
33 |
|
34 |
zgrep PIIX /proc/config.gz |
35 |
|
36 |
CONFIG_BLK_DEV_PIIX=y |
37 |
CONFIG_ATA_PIIX=m |
38 |
CONFIG_PATA_MPIIX=y |
39 |
# CONFIG_PATA_OLDPIIX is not set |
40 |
CONFIG_I2C_PIIX4=m |
41 |
|
42 |
Try the same thing on the newbuild: |
43 |
|
44 |
grep PIIX /usr/src/linux/.config |
45 |
|
46 |
CONFIG_BLK_DEV_PIIX=y |
47 |
CONFIG_ATA_PIIX=m |
48 |
CONFIG_PATA_MPIIX=y |
49 |
# CONFIG_PATA_OLDPIIX is not set |
50 |
CONFIG_I2C_PIIX4=m |
51 |
|
52 |
So maybe it is not even related to PIIX.... |
53 |
But let me insert the kernel messages from a failed boot here: |
54 |
(I've numbered the lines from the bad boot output so as not confuse |
55 |
them with the good boot messages from kernel 2.6.30-r1 |
56 |
------- --------- ---=--- --------- -------- |
57 |
From Kernel 2.6.31-r4 |
58 |
|
59 |
1 hda: ST3160021A, ATA DISK drive |
60 |
2 hdb: WDC SE3000JB-00KFA0, ATA DISK drive |
61 |
3 hda: UDMA/100 mode selected |
62 |
4 hdb: UDMA/100 mode selected |
63 |
5 hdc: LITE-ON CD-ROM LTN-5291s, ATAPI CD/DVD-ROM drive |
64 |
6 hdd: WDC WD16000JB-00EVA0, ATA DISK drive |
65 |
7 hdc: UDMA/33 mode selected |
66 |
8 hdd: UDMA/100 mode selected |
67 |
9 IDE0 at 0x1f0-0X1f7,0X3f6 on irg 14 |
68 |
10 IDE0 at 0x170-0X177,0X376 on irg 15 |
69 |
------- --------- ---=--- --------- -------- |
70 |
|
71 |
NOTE: Comparing a similar section of dmesg from working kernel |
72 |
2.6.30-r1 |
73 |
|
74 |
Uniform Multi-Platform E-IDE driver |
75 |
piix 0000:00:1f.1: IDE controller (0x8086:0x24db rev 0x02) |
76 |
PIIX_IDE 0000:00:1f.1: enabling device (0005 -> 0007) |
77 |
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10 |
78 |
PCI: setting IRQ 10 as level-triggered |
79 |
PIIX_IDE 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10 |
80 |
piix 0000:00:1f.1: not 100% native mode: will probe irqs later |
81 |
ide0: BM-DMA at 0xfc00-0xfc07 |
82 |
ide1: BM-DMA at 0xfc08-0xfc0f |
83 |
|
84 |
** The part above, I think is where a piix driver is loaded or |
85 |
something (these messages from working kernel 2.6.30-r1) |
86 |
|
87 |
Probing IDE interface ide0... |
88 |
Switched to high resolution mode on CPU 0 |
89 |
hda: ST3160021A, ATA DISK drive |
90 |
hdb: WDC WD3000JB-00KFA0, ATA DISK drive |
91 |
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4 |
92 |
hda: UDMA/100 mode selected |
93 |
hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4 |
94 |
hdb: UDMA/100 mode selected |
95 |
Probing IDE interface ide1... |
96 |
hdc: LITE-ON CD-ROM LTN-5291S, ATAPI CD/DVD-ROM drive |
97 |
hdd: WDC WD1600JB-00EVA0, ATA DISK drive |
98 |
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4 |
99 |
hdc: UDMA/33 mode selected |
100 |
hdd: host max PIO4 wanted PIO255(auto-tune) selected PIO4 |
101 |
hdd: UDMA/100 mode selected |
102 |
|
103 |
[...] snipped the rest of dmesg ouput from running kernel |
104 |
2.6.30.1 |
105 |
|
106 |
------- --------- ---=--- --------- -------- |
107 |
(continuation of messages from failed boot of kernel-2.6.31-r4 |
108 |
|
109 |
11 ide_generic: please use "probe_mask=0x3f" module parameters for probing all legacy IS IDE ports |
110 |
12 ide-cd driver 5.00 |
111 |
13 ide cd:hdc: ATAPI 52X CD-ROM drive 96kB Cache |
112 |
14 Uniform CD-ROM driver Revision: 3.10 |
113 |
15 Intel(R) PRO/1000 Network Driver version - 7.3.21-k3-NAPI |
114 |
16 Copyright (c) 1999-2006 Intel Corporation |
115 |
17 e1000e: Intel(R) Pro/1000 Network Driver, 1.0.2-k2 |
116 |
18: e1000e: Copyright(c) 1999-2008 Intel Corporation |
117 |
19: e100: Intel (R) PRO/100 Network Driver 3.5.24-k-NAPI |
118 |
20: e100: Copyright blah blah |
119 |
21: sky2 driver version 1.23 |
120 |
22: r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded |
121 |
23: r8169 0000:02:03:0: PCI INT A -> GSI 19 (level,low) -> IRQ 19 |
122 |
24: r8169 0000:02:03:0: no PCI Experss capability |
123 |
25: eth0 RTL8110s at 0xf8026f00, 00:40:f4:b5:29:41, XID 04000000 IRQ 20 |
124 |
26: r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded |
125 |
27: r8169 0000:02:06:0: PCI INT A -> GSI 20 (level,low) -> IRQ 20 |
126 |
28: r8169 0000:02:06:0: no PCI Experss capability |
127 |
29: eth1 RTL8110s at 0xf802ae00, 00:11:09:ee:6c:04, XID 04000000 IRQ 20 |
128 |
30: PnP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 IRQ 1 |
129 |
31: PnP: PS/2 appears to have AUX port disabled, if this bla bla |
130 |
32: serio: i8042 KBD port at 0x60,0x64 IRQ 1 |
131 |
33: mice: PS/2 mouse device common for all mice |
132 |
34: cupidle: using governors ladder |
133 |
35: cpuidle: using governor menu |
134 |
36: TCP cubic registered |
135 |
37: NET: Registered protocol family 17 |
136 |
38: RPC: Registered udp transport module |
137 |
39: RPC: Registered udp transport module |
138 |
40: Using IPI No-Shortcut mode |
139 |
41: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 |
140 |
42: ROOT-NFS: No NFS server available, giving up. |
141 |
43: VFS: Unable to mount root fs via NFS, trying floppy |
142 |
44: VFS: Cannot open root device "hda5" or unknown-block(2.0) |
143 |
45: Please append a correct "root=" boot option - here are the available partitions: |
144 |
46: 1600 419302 hdc driver: ide-cdrom |
145 |
47: kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2.0) |
146 |
48: Pid: 1: comm: swappers Not tainted 2.6.31-gentoo-r4_rdr-2 #3 |
147 |
49: Call Trace: |
148 |
50: [<c130cd18>] ? printk+0xf/0x17 |
149 |
51: [<c130cc6e>] panic+0x39/0xd4 |
150 |
[There were several more lines here] |