Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 12:16 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Aug 21, 2011 11:53 am 
Offline
Newbie

Joined: Mon Mar 07, 2011 3:58 pm
Posts: 38
Firmware 1.41 / Kernel 2.6.31.8 includes support for NFS version 3, but not for NFS version 4, which is much more sophisticated.

What is the simplest way t get a kernel with NFS version 4 support? I would prefer to only compile a single kernel module which I then load uing modprobe.

Any ideas?

[edit: topic title]


Top
   
PostPosted: Mon Aug 22, 2011 7:47 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
Don't know what kind of help you expected, but there is no
simple way to compile only ONE module without compiling the
kernel (at least no way which is easier than compiling the
whole kernel and to take only the one module one needs).
If you don't compile the kernel, you will not know, if the source
is valid.

Get the source of the kernel.
Take the .config of Buffalo as a start point.
Compile the kernel.
Take a snapshot of the modules directory.
Change the .config to compile NFS 4 as module.
Compile again.
Compare the snapshot with the current directory.
Take the different modules, put them on a box and test the
loading. If you can load the modules, test for NFS 4 capabilities.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Thu Sep 15, 2011 4:03 pm 
Offline
Newbie

Joined: Mon Mar 07, 2011 3:58 pm
Posts: 38
Thanks kenatonline,

I was busy with other stuff so I had not time for investigating this further until today.

The last time i compiled a kernel is quite some years ago. So I searched the wiki for more details (which compiler suite is required; if the source at http://opensource.buffalo.jp/gpl_storage.html is okay, etc.) But there are plenty of then and some seam to be outdated.

Do you have any hints?

Thanks!


Top
   
PostPosted: Fri Sep 16, 2011 9:24 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
I am compiling the kernel for the LS on the LS itself.
No need to twickle around with crosscompiler and all this stuff.
Only thing to do is adapting the makefile of Buffalo to use a local gcc and
not a crosscompile gcc (these are one or two #define lines).
All the necessary tools are available via optware.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Fri Sep 23, 2011 11:22 am 
Offline
Newbie

Joined: Mon Mar 07, 2011 3:58 pm
Posts: 38
Since I already put Debian on the system, I may have some problems compiling a a new kernel and using only one module with the existing kernel.

But it's even worse: nfsd is build into the kernel and nfsd4 an not be compiled into module by its own. It would e part of the nfsd module -- if nfsd would be a module.

Nevertheless, I'll give it a try.


Top
   
PostPosted: Fri Sep 23, 2011 4:46 pm 
Offline
Newbie

Joined: Mon Mar 07, 2011 3:58 pm
Posts: 38
Sad, only compiling the module does not work (as I was afraid of):

# insmod fs/nfsd/nfsd.ko
insmod: error inserting 'fs/nfsd/nfsd.ko': -1 Device or resource busy

So it seams as if I really need to compile the whole kernel :-( Well, not compiling the kernel is the problem, but compiling the *correct* on and having a fall back for the case the kernel is bad.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 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
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited