Bug 3277

Summary: Enable nfsd kernel module for nfs root
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Saul Wold <sgw>
Component: kernelAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, corneliux.stoicescu, dvhart, tom.zanussi
Version: 1.3   
Target Milestone: 1.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: Fix submitted (Nov 15, 2012)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Saul Wold 2012-10-11 14:50:52 UTC
Missing the CONFIG_NFSD in the default qemu configuration, this causes a warning when trying to export the qemu root (or possibly hardware) allowing debugging tools to mount the target rootfs.
Comment 1 Bruce Ashfield 2012-10-11 14:58:07 UTC
This shouldn't be on by deafult, but interested boards can enable it in
recipe space:

http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?id=a5cc8050f619c79cd4810f1d2cade31fb68df417
Comment 2 Saul Wold 2012-10-11 23:49:35 UTC
So, if I understand you correctly, the nfs-utils recipe which provides the user space nfs server tools should also add the KERNEL_FEATURES_append = " features/nfsd"
Comment 3 Bruce Ashfield 2012-10-12 00:29:49 UTC
Close:

KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"

What you had is valid, but it's a shortcut for something named:
"features/nfsd/nfsd.scc" (i.e. when the .scc file name matches
the containing directory name).
Comment 4 Bruce Ashfield 2012-11-15 17:03:33 UTC
The SRCREV updates to make this available have now been sent to the oe-core list.
Comment 5 Bruce Ashfield 2012-11-29 18:59:49 UTC
merged to oe-core, covered by this commit:

commit 01ff7003cd82d3a549da7b761d64cc1d634012ae
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Wed Nov 21 16:32:24 2012 -0500

    linux-yocto/3.4: uprobes: reinstate config options for 'uprobe' feature
    
    bumping the meta SRCREV to import the following fix:
    
    [
        uprobes: reinstate config options for 'uprobe' feature
    
        commit 17ec51adfff (meta: cleanup invalid/obselete 3.4 CONFIG options)
        removed the uprobes config options, this restores them.
    ]
    
    (From OE-Core rev: 8c637986e063fcb087babecfc0192f96d3981515)
    
    Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 6 Stoicescu Cornel 2013-01-07 15:46:16 UTC
The current revision of linux-yocto contains the folowing:

./tools/nfsd
./tools/nfsd/inject_fault.sh
./Documentation/filesystems/nfs/knfsd-stats.txt
./include/linux/nfsd
./include/linux/nfsd/Kbuild
./include/linux/nfsd/nfsfh.h
./include/linux/nfsd/debug.h
./include/linux/nfsd/export.h
./include/linux/nfsd/cld.h
./include/linux/nfsd/stats.h
./fs/nfsd
./fs/nfsd/nfs4callback.c
./fs/nfsd/nfs3proc.c
./fs/nfsd/idmap.h
./fs/nfsd/nfsd.h
./fs/nfsd/nfscache.c
./fs/nfsd/acl.h
./fs/nfsd/nfsxdr.c
./fs/nfsd/auth.c
./fs/nfsd/state.h
./fs/nfsd/nfs4acl.c
./fs/nfsd/nfsctl.c
./fs/nfsd/nfs4proc.c
./fs/nfsd/nfs4xdr.c
./fs/nfsd/xdr.h
./fs/nfsd/nfsfh.c
./fs/nfsd/lockd.c
./fs/nfsd/xdr4.h
./fs/nfsd/nfs3acl.c
./fs/nfsd/fault_inject.h
./fs/nfsd/nfssvc.c
./fs/nfsd/nfsfh.h
./fs/nfsd/nfs2acl.c
./fs/nfsd/auth.h
./fs/nfsd/vfs.h
./fs/nfsd/nfs4idmap.c
./fs/nfsd/Makefile
./fs/nfsd/fault_inject.c
./fs/nfsd/nfs3xdr.c
./fs/nfsd/cache.h
./fs/nfsd/netns.h
./fs/nfsd/nfs4state.c
./fs/nfsd/stats.c
./fs/nfsd/Kconfig
./fs/nfsd/vfs.c
./fs/nfsd/current_stateid.h
./fs/nfsd/xdr3.h
./fs/nfsd/export.c
./fs/nfsd/nfs4recover.c
./fs/nfsd/nfsproc.c


Verified on master: 5b658729eff73963262dda4d6c683fdd023b8d04