LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2008, 04:55 PM   #16
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141

Quote:
Originally Posted by wdli View Post
Ok, I copied the existing config files, did make oldconfig, did make and make modules. At the end of make modules, there is a warning:

Code:
Building modules, stage 2.
  MODPOST 1910 modules
WARNING: modpost: Found 15 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
What does this mean? Something wrong?
I don't know. I do not compile my kernels with make. You might want to do exactly what it says to see what errors you are getting. What I don't understand is the modules bit. Doing it the Ubuntu/Debian way, the modules statement is only for add-on modules, not the drivers in the kernel itself. Do you have additional modules that you are trying to compile that are not part of the kernel source tree? I only use the kernel_image option. If you can show the exact commands you are using, I suppose I could run that on mine and see what happens. I really suggest you switch to the Ubuntu way, though.
 
Old 10-10-2008, 05:42 PM   #17
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Ok, so I got the same message when I ran make modules:
Quote:
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
This is on a kernel that I know to be good. So, I'll run it again with 'make CONFIG_DEBUG_SECTION_MISMATCH=y' and see what happens.
 
Old 10-10-2008, 08:54 PM   #18
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
it looks like the warnings are just whines. Here is an expanded example
Code:
WARNING: drivers/net/3c509.o(.devinit.text+0x133): Section mismatch in reference from the function el3_isa_match() to the function .init.text:el3_common_init()
The function __devinit el3_isa_match() references
a function __init el3_common_init().
If el3_common_init is only used by el3_isa_match then
annotate el3_common_init with a matching annotation.
 
Old 10-10-2008, 09:05 PM   #19
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks a lot for trying on this yourself.

So I went ahead to boot with the newly built kernel. Then I got the exactly same failure as before: it could find the root device. Now I am really puzzled. Maybe I have done something wrong somewhere. Or this thing should have been built the Ubuntu way.


Quote:
Originally Posted by Quakeboy02 View Post
it looks like the warnings are just whines. Here is an expanded example
Code:
WARNING: drivers/net/3c509.o(.devinit.text+0x133): Section mismatch in reference from the function el3_isa_match() to the function .init.text:el3_common_init()
The function __devinit el3_isa_match() references
a function __init el3_common_init().
If el3_common_init is only used by el3_isa_match then
annotate el3_common_init with a matching annotation.
 
Old 10-10-2008, 09:31 PM   #20
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
What is your root device? Is it /dev/hdx or /dev/sdx? IOW, are you using PATA or SATA? Also, what is your controller, and are you sure it's enabled in the kernel? What are the complete contents of both /boot/grub/device.map and /boot/grub/menu.lst?

Another perhaps key question is what version of gcc are you using? I recently got an error during a kernel compile using gcc 4.3.2-1.

If you're using an initramfs, then did you run "sudo update-initramfs -u -k all" before booting your newly installed kernel?

As to using the Ubuntu way? I'd suggest you give it a try after trying update-initramfs.
 
Old 10-12-2008, 10:03 PM   #21
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
I think my root device is /dev/sdx by looking at the "mount" output. / is mounted on /dev/sd.

How do I find out PATA or SATA? How do I find out about the controller? Is "lspci" the right command?

Quote:
Originally Posted by Quakeboy02 View Post
What is your root device? Is it /dev/hdx or /dev/sdx? IOW, are you using PATA or SATA? Also, what is your controller, and are you sure it's enabled in the kernel? What are the complete contents of both /boot/grub/device.map and /boot/grub/menu.lst?

Another perhaps key question is what version of gcc are you using? I recently got an error during a kernel compile using gcc 4.3.2-1.

If you're using an initramfs, then did you run "sudo update-initramfs -u -k all" before booting your newly installed kernel?

As to using the Ubuntu way? I'd suggest you give it a try after trying update-initramfs.
 
Old 10-12-2008, 10:11 PM   #22
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Post the outputs of both "lspci -v" and lsmod. Also, try booting with knoppix and tell me what device it sees. Knoppix usually finds anything. I wonder, did you set something on the motherboard BIOS to see SATA as PATA?

Try building and installing the Ubuntu way, and see if the problem remains.
 
Old 10-13-2008, 06:47 PM   #23
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
Here is the "lspci -v" output. I noticed "00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM " in the following:

Quote:
lspci -v
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
Subsystem: Dell Unknown device 01f9
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>

00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fa000000-feafffff
Prefetchable memory behind bridge: 00000000e0000000-00000000efffffff
Capabilities: <access denied>

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 6f20 [size=32]

00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) (prog-if 00 [UHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 20
I/O ports at 6f00 [size=32]

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) (prog-if 20 [EHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 21
Memory at fed1c400 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
Subsystem: Dell Dell Latitude D630
Flags: bus master, fast devsel, latency 0, IRQ 20
Memory at febfc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=0b, subordinate=0b, sec-latency=0
Capabilities: <access denied>

00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=0c, subordinate=0c, sec-latency=0
Memory behind bridge: f9f00000-f9ffffff
Capabilities: <access denied>

00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=09, subordinate=09, sec-latency=0
Memory behind bridge: f9e00000-f9efffff
Capabilities: <access denied>

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 6f80 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 20
I/O ports at 6f60 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 6f40 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) (prog-if 20 [EHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at fed1c000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=07, sec-latency=32
Memory behind bridge: f9d00000-f9dfffff
Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>

00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 0, IRQ 16
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 6fa0 [size=16]

00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 02) (prog-if 01 [AHCI 1.0])
Subsystem: Dell Unknown device 01f9
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 219
I/O ports at 6eb0 [size=8]
I/O ports at 6eb8 [size=4]
I/O ports at 6ec0 [size=8]
I/O ports at 6ec8 [size=4]
I/O ports at 6ee0 [size=32]
Memory at febfb800 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>

00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
Subsystem: Dell Unknown device 01f9
Flags: medium devsel, IRQ 10
Memory at febfb700 (32-bit, non-prefetchable) [size=256]
I/O ports at 10c0 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 135M (rev a1) (prog-if 00 [VGA controller])
Subsystem: Dell Unknown device 01f9
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at ef00 [size=128]
[virtual] Expansion ROM at fc000000 [disabled] [size=128K]
Capabilities: <access denied>

03:01.0 CardBus bridge: O2 Micro, Inc. Cardbus bridge (rev 21)
Subsystem: Dell Unknown device 01f9
Flags: bus master, stepping, slow devsel, latency 168, IRQ 18
Memory at f9d00000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=03, secondary=04, subordinate=07, sec-latency=176
Memory window 0: 88000000-8bfff000 (prefetchable)
Memory window 1: 8c000000-8ffff000
I/O window 0: 00001400-000014ff
I/O window 1: 00001800-000018ff
16-bit legacy interface ports at 0001

03:01.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02) (prog-if 10 [OHCI])
Subsystem: Dell Unknown device 01f9
Flags: bus master, medium devsel, latency 64, IRQ 18
Memory at f9dff000 (32-bit, non-prefetchable) [size=4K]
Memory at f9dfe800 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>

09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755M Gigabit Ethernet PCI Express (rev 02)
Subsystem: Dell Unknown device 01f9
Flags: bus master, fast devsel, latency 0, IRQ 217
Memory at f9ef0000 (64-bit, non-prefetchable) [size=64K]
Expansion ROM at <ignored> [disabled]
Capabilities: <access denied>

0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
Subsystem: Intel Corporation Unknown device 1020
Flags: bus master, fast devsel, latency 0, IRQ 218
Memory at f9fff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Here is the lsmod output:

Quote:
Module Size Used by
nls_iso8859_1 4992 0
nls_cp437 6656 0
vfat 14464 0
fat 54556 1 vfat
usb_storage 73664 0
libusual 19108 1 usb_storage
ipv6 267780 10
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
acpi_cpufreq 10796 2
cpufreq_conservative 8712 0
cpufreq_stats 7104 0
cpufreq_userspace 5284 0
cpufreq_ondemand 9740 1
cpufreq_powersave 2688 0
freq_table 5536 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
sbs 15112 0
container 5632 0
sbshc 7680 1 sbs
bay 6912 0
dock 11280 1 bay
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
sbp2 24072 0
lp 12324 0
af_packet 23812 2
arc4 2944 2
ecb 4480 2
blkcipher 8324 1 ecb
pcmcia 40876 0
joydev 13120 0
dcdbas 9504 0
snd_hda_intel 344728 3
evdev 13056 8
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
serio_raw 7940 0
nvidia 7825536 36
yenta_socket 27276 1
rsrc_nonstatic 13696 1 yenta_socket
pcmcia_core 40596 3 pcmcia,yenta_socket,rsrc_nonstatic
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
iwl3945 89844 0
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
iwlwifi_mac80211 219108 1 iwl3945
i2c_core 24832 1 nvidia
snd_seq_dummy 4868 0
sr_mod 17956 0
cdrom 37408 1 sr_mod
cfg80211 15112 1 iwlwifi_mac80211
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24836 2 snd_pcm,snd_seq
video 19856 14
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
output 4736 1 video
wmi_acer 9644 0
ac 6916 0
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
snd 56996 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_ seq,snd_timer,snd_seq_device
button 9232 0
battery 14212 0
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
psmouse 40336 0
soundcore 8800 1 snd
pcspkr 4224 0
intel_agp 25492 0
agpgart 34760 2 nvidia,intel_agp
shpchp 34452 0
pci_hotplug 30880 1 shpchp
ext3 136712 1
jbd 48404 1 ext3
mbcache 9600 1 ext3
sg 36880 0
sd_mod 30720 3
ata_piix 19588 0
pata_acpi 8320 0
usbhid 31872 0
hid 38784 1 usbhid
ohci1394 33584 0
ahci 28420 2
ata_generic 8324 0
ieee1394 93752 2 sbp2,ohci1394
libata 159344 4 ata_piix,pata_acpi,ahci,ata_generic
scsi_mod 151436 6 usb_storage,sbp2,sr_mod,sg,sd_mod,libata
tg3 116228 0
ehci_hcd 37900 0
uhci_hcd 27024 0
usbcore 146028 6 usb_storage,libusual,usbhid,ehci_hcd,uhci_hcd
thermal 16796 0
processor 36872 4 acpi_cpufreq,thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 1
Quote:
Originally Posted by Quakeboy02 View Post
Post the outputs of both "lspci -v" and lsmod. Also, try booting with knoppix and tell me what device it sees. Knoppix usually finds anything. I wonder, did you set something on the motherboard BIOS to see SATA as PATA?

Try building and installing the Ubuntu way, and see if the problem remains.
 
Old 10-13-2008, 06:53 PM   #24
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
And also the issue I don't understand is: if I used the old or existing .config to compile my new kernel how would it be possible that the new kernel didn't
include all necessary drivers that were used to boot the existing kernel?
 
Old 10-13-2008, 07:11 PM   #25
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
No I didn't change the BIOS at all.
 
Old 10-13-2008, 07:12 PM   #26
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Could I see the complete contents of /etc/fstab, /boot/grub/device.map and /boot/grub/menu.lst as well as .config

Also, do you have the motherboard set to see SATA as PATA?

I notice that you are using UUIDs in your menu.lst. I assume you also have that in /etc/fstab. I don't have any experience with that, but maybe the contents of the two /boot/grub files will help.

Are you 100% certain that there are no differences between your .config and the running config?
Code:
diff .config /boot/config-`uname -r`
 
Old 10-13-2008, 07:12 PM   #27
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
This is my device.map

Quote:
(hd0) /dev/sda
 
Old 10-13-2008, 07:15 PM   #28
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by wdli View Post
And also the issue I don't understand is: if I used the old or existing .config to compile my new kernel how would it be possible that the new kernel didn't
include all necessary drivers that were used to boot the existing kernel?
I wonder if they changed the way the kernel looks at PATA and SATA on that controller in the version of the kernel you're trying to compile. Another option is to download 2.6.23 and see if that will compile and run, as that's right between the two Ubuntu kernels you have.
 
Old 10-13-2008, 07:24 PM   #29
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
And can we review your original complaint?
Quote:
Now I have read that I need to make an intermediate ram disk image. I finally got a chance to download the mkinitramfs package. It asked me to run "update-initramfs" on the local box. So when I did this I got an error about missing "/etc/modprob.conf" file.
Did you ever get a successful run of update-initramfs? Have we gotten sidetracked from what is your real problem?
 
Old 10-13-2008, 09:04 PM   #30
wdli
Member
 
Registered: Sep 2008
Location: California
Posts: 105

Original Poster
Rep: Reputation: 15
Yes I did pass "update-initramfs" by "touch /etc/modprob.conf" which generated the ram fs image. Then I ran into this "root device" problem on booting up.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initial ram disk image support for UUID query aus9 Linux - Kernel 9 02-03-2008 10:31 PM
how do i Install test26.s kernel image in /boot Dachy Slackware 14 02-16-2006 03:47 AM
Help Building a Ram disk image travisk Fedora 4 07-19-2005 09:44 PM
bootsplash ram disk image error huntermix Slackware 2 07-27-2004 11:53 AM
mkinitrd ram disk image reed Linux - General 4 09-26-2002 03:07 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration