OpenWrt Forum Archive

Topic: portmap crashes => Confirm !?

The content of this topic has been archived on 3 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a new fresh install of OpenWrt/NSLU2 Kamikaze 7.09

Just installing
ipkg install portmap

then
/etc/init.d/portmap start

And get a
Segmentation fault

Can someone Confirm that the package is broken ?

What can be done with that. Is there an update ?

That issue exists for over a year or so now. Seems no one is interested to fix it. Well, you can try the Kernel NFS server and clients. But they may not work too. No idea.

forum2008 wrote:

Well, you can try the Kernel NFS server and clients. But they may not work too. No idea.

thats what I tried to get it to Work with the Kernel Server, But as You say. Its not working.

Neither with this: http://forum.openwrt.org/viewtopic.php?id=11847
Nor with that : http://wiki.openwrt.org/NFS?highlight=%28nfs%29

I thought about Getting it done somehow, and Post it in the Wiki, how you get a NFS server to work. But if you say (as I understand) That there is no Doable Solution of getting a NFS to work... hmmm 

Is there anything else working  how to get File Access to an attached Disk. (Netatalk maybe)

Is this problem only on the NSLU2 Version, or on the whole package

(Last edited by xd on 3 Jun 2008, 13:25)

Portmap has been fixed in trunk:  https://dev.openwrt.org/ticket/3095, some messing
around is necessary to get it back to 7.09 but since NFS doesn't work in 7.09 it
doesn't matter.  To get NFS to work you MUST build from trunk since you have to
configure the kernel properly.

After getting trunk and the feeds, menuconfig in portmap, nfs_kernel_server and
nfs_kernel_server_utils, note that this will select libwrap (tcp_wrappers) too.
You need to config for your arch too (the slug is an ARM, it's got it's own entry).

Then you need to make world to get the kernel so you can config it.  The issue
with kernel config is:  https://dev.openwrt.org/ticket/3391, basically you need
to disable NFS V4 support since those libraries don't link up yet.  Go to the kernel:

cd build_dir/linux*/linux*
make ARCH=arm clean
make ARCH=arm menuconfig

and disable the NFS V4 support so your config looks like:

CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_BIND34 is not set
CONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set

Then go back up to the root of trunk and make world again and reflash.  This ugly process makes NFS
work on my NSLU2.  It's not ready for "prime-time" and the build system is really brittle but good luck anyway.

waoh thanks.
it seems quite complicated to me. I have never Compiled a kernel.
I need the Development package for that, And Crosscompile, Right. Or what does "make world"  and "build from trunk" mean.
I never Compiled a whole System yet.

I thought it might be just the portmap as package.

Hmm..

Isnt it possible to download a modified package somehow ? , Well just an idea.
When I Install upgrades I would have to do it all over again, Wouldn't I

Well okey I think about it. I have to find out the pieces I need.
But Maybe its to much to do just for NFS

thanks Anyway

@XD
if that works i can send you the Version :-)

jimnarem wrote:

cd build_dir/linux*/linux*
make ARCH=arm clean
make ARCH=arm menuconfig

Better do it with kernel_menuconfig:

$ make kernel_menuconfig     # make changes in menuconfig as needed
$ make target/clean world

hello,
here my config file ...
but it doesnt work. dmesg shows no Message when i try to mount it.
Can i check other Log Files ? or set a log level ?

CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_BIND34 is not set
CONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set

i always get the message
sudo mount -t nfs 192.168.17.190:/mnt /mnt
mount: 192.168.17.190:/mnt failed, reason given by server: Permission denied

The discussion might have continued from here.