Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 10, 2008 7:52 am 
Offline
Newbie

Joined: Sun Nov 09, 2008 2:27 pm
Posts: 3
Just a quick note as I haven't seen it anywhere else on this forum.

If you want to compile the OpenAFS kernel module on a Debian / Xen Linode, you'll need to patch tke kernel sources available from http://www.linode.com/src/2.6.18.8-linode10.tar.bz2 with this in order to get the modules to build: http://lists.xensource.com/archives/htm ... 00014.html

Hope this is useful to others!

Cheers,

Tim


Top
   
PostPosted: Fri Nov 14, 2008 2:46 pm 
Offline
Newbie

Joined: Fri Nov 14, 2008 2:38 pm
Posts: 2
Yeah, figuring that out the first time was lots of fun...

You can also use one of the OpenAFS modules I've already compiled.

http://linode.com/src/contrib/kernel-modules/openafs/
http://linode.com/src/contrib/people/asedeno/

-Alejandro


Top
   
 Post subject:
PostPosted: Fri Nov 14, 2008 3:46 pm 
Offline
Newbie

Joined: Sun Nov 09, 2008 2:27 pm
Posts: 3
Hah, I can imagine...

Also, another little gotcha i came accross, is that you need to download GCC 4.0.3 to compile the module, otherwise versionMagic will refuse to load it as the versions of the module and kernel don't match. This isn't available from apt, so had to compile from source, then edit the variables CC and HOSTCC in the kernel Makefile to use gcc4.0 rather than gcc.


Top
   
 Post subject:
PostPosted: Fri Nov 14, 2008 3:49 pm 
Offline
Newbie

Joined: Sun Nov 09, 2008 2:27 pm
Posts: 3
although, rereading your post I see that isn't necessary as you've already compiled the modules. Hah- I think i need some sleep!

Cheers for that though, I wish i'd come across it before I had to retrace your steps in getting it all to work :-)


Top
   
 Post subject:
PostPosted: Mon Nov 17, 2008 4:12 pm 
Offline
Newbie

Joined: Fri Nov 14, 2008 2:38 pm
Posts: 2
http://snapshot.debian.net/ is great for this kind of thing; I pulled gcc-4.0 from there and went with that.

deb http://snapshot.debian.net/archive pool gcc-4.0
deb-src http://snapshot.debian.net/archive pool gcc-4.0

In general, I try to get new modules compiled when I hear about new linode dom-U kernels. I'll probably be sticking to 32-bit modules unless I find need to have a second linode with a 64-bit linux install.


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


Who is online

Users browsing this forum: No registered users and 2 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