Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 25, 2011 6:45 pm 
Offline
Newbie

Joined: Tue Jul 19, 2011 9:19 am
Posts: 4
I need the dummy network driver for CentOS 6 64bit and I'm having issues. The running kernel release is `2.6.39.1-x86_64-linode19`.

I downloaded the kernel source from 'http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.1.tar.bz2', extracted it and grabbed the running config from /proc/config.gz. (zcat /proc/config.gz > .config).

I then edited the .config setting CONFIG_DUMMY to 'm' and ran `make modules`. The resulting module would not load without a --force; kernel log reporting "kernel: dummy: no symbol version for module_layout"

I checked the vermagic of the created module and it doesn't match the string from uname. the vermagic was simply 2.6.39.1. Checking the CONFIG_LOCALVERSION from /proc/config.gz, it is in fact set to an empty string. How is possible that uname and the running config don't agree? '2.6.39.1-x86_64-linode19' != '2.6.39.1'

Changing the CONFIG_LOCALVERSION to "-x86_64-linode19" does make the vermagic in the module match, but trying to insert the module produces the same error.

If I --force load the module, it seems to work fine, but I'd rather not hack up the networking init scripts to include a --force.

What am I missing? How do I need to compile a module for a linode?

thanks


Top
   
 Post subject:
PostPosted: Tue Jul 26, 2011 6:41 am 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Might be better to run the standard CentOS 6 kernel using pv-grub and then use kernel-headers from the repos instead of the kernel.org source.


Top
   
 Post subject:
PostPosted: Tue Jul 26, 2011 9:01 am 
Offline
Newbie

Joined: Tue Jul 19, 2011 9:19 am
Posts: 4
When asking support for the kernel sources for the 2.6.39 kernel, they pointed me to kernel.org.

I briefly tried using pv-grub with the distro kernel, but it repeatedly failed with pv-grub telling me the partition was corrupt. Do the distro kernels support the Xen hypervisor?


Top
   
 Post subject:
PostPosted: Tue Jul 26, 2011 9:45 am 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Yes. You need to create a /boot/grub/menu.lst like this:

Code:
# boot=/dev/xvda
# kopt=root=/dev/xvda console=tty0 console=hvc0 ro quiet
# groot=(hd0)

default=0
timeout=0

title CentOS 6 (2.6.32-71.29.1.el6.x86_64)
        root (hd0)
        kernel /boot/vmlinuz-2.6.32-71.29.1.el6.x86_64 root=/dev/xvda console=tty0 console=hvc0 ro quiet
        initrd /boot/initramfs-2.6.32-71.29.1.el6.x86_64.img


Top
   
 Post subject:
PostPosted: Tue Jul 26, 2011 9:53 am 
Offline
Newbie

Joined: Tue Jul 19, 2011 9:19 am
Posts: 4
I was trying to specify a partition on the first drive, that was the issue; thanks.

Any idea on building a module for the linode kernel?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: sjnorton and 7 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group