* [Buildroot] NFS Server on Buildroot Target
@ 2015-07-13 22:03 Ryan Barnett
2015-07-13 22:20 ` Maxime Hadjinlian
2015-07-13 23:21 ` Steve Calfee
0 siblings, 2 replies; 4+ messages in thread
From: Ryan Barnett @ 2015-07-13 22:03 UTC (permalink / raw)
To: buildroot
Hello,
Today I attempted to get an NFS working on a embedded target and
struggled with getting the 'nfs-utils' package to work to provided NFS
server functionality. By selecting the 'nfs-utils' package, the NFS
server functionally does NOT work by default. Before I even attempted
this, I had the kernel configuration options selected for NFSD. It
turned out that I needed to have the rpcbind package selected in order
to make it work, however, this was after a couple hours of trying to
debug this.
I have a few questions that I would like feedback on as I would like
to propose a patch that will allow the nfs-util package to work by
default.
First, should the nfs-util package automatically 'select' on the
kernel configuration options for NFSD?
Other package do this so I would argue that it should.
Second, in order to make the default startup configuration work,
rpcbind is required. Should this be an added dependency since the goal
of a package is to have it work by default?
Any suggestion or feedback would be appreciated.
Thanks,
-Ryan
[Extra] Looks like someone posted something similar to the mailing
list in January of 2013
http://lists.busybox.net/pipermail/buildroot/2013-January/065498.html
--
Ryan Barnett / Sr Software Engineer
Airborne Information Systems / Security Systems and Software
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
ryan.barnett at rockwellcollins.com
www.rockwellcollins.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] NFS Server on Buildroot Target
2015-07-13 22:03 [Buildroot] NFS Server on Buildroot Target Ryan Barnett
@ 2015-07-13 22:20 ` Maxime Hadjinlian
2015-07-13 23:21 ` Steve Calfee
1 sibling, 0 replies; 4+ messages in thread
From: Maxime Hadjinlian @ 2015-07-13 22:20 UTC (permalink / raw)
To: buildroot
Hi Ryan,
On Tue, Jul 14, 2015 at 12:03 AM, Ryan Barnett
<ryan.barnett@rockwellcollins.com> wrote:
> Hello,
>
> Today I attempted to get an NFS working on a embedded target and
> struggled with getting the 'nfs-utils' package to work to provided NFS
> server functionality. By selecting the 'nfs-utils' package, the NFS
> server functionally does NOT work by default. Before I even attempted
> this, I had the kernel configuration options selected for NFSD. It
> turned out that I needed to have the rpcbind package selected in order
> to make it work, however, this was after a couple hours of trying to
> debug this.
I submitted some patches for nfs-utils, which selects rcpbind and fix
the startup scripts.
I was able to start it and after creating an /etc/exports file was
successfull in mounting it.
Note that when you mount from your client, you may need to specify the
version of the protocol (2/3 as we don't build nfsv4).
If you need nfsv4, feel free to send patches, I did not do it as I
never had any real use of nfsv4 specifically.
>
> I have a few questions that I would like feedback on as I would like
> to propose a patch that will allow the nfs-util package to work by
> default.
>
> First, should the nfs-util package automatically 'select' on the
> kernel configuration options for NFSD?
It's a good idea, don't forget that people may build their kernel
externally from Buildroot and then nfsd won't work.
Do you want to work on that ?
>
> Other package do this so I would argue that it should.
>
> Second, in order to make the default startup configuration work,
> rpcbind is required. Should this be an added dependency since the goal
> of a package is to have it work by default?
Thas was done with the patches I sent previously, the current master
should work.
>
> Any suggestion or feedback would be appreciated.
>
> Thanks,
> -Ryan
>
> [Extra] Looks like someone posted something similar to the mailing
> list in January of 2013
>
> http://lists.busybox.net/pipermail/buildroot/2013-January/065498.html
>
> --
> Ryan Barnett / Sr Software Engineer
> Airborne Information Systems / Security Systems and Software
> MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
> ryan.barnett at rockwellcollins.com
> www.rockwellcollins.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] NFS Server on Buildroot Target
2015-07-13 22:03 [Buildroot] NFS Server on Buildroot Target Ryan Barnett
2015-07-13 22:20 ` Maxime Hadjinlian
@ 2015-07-13 23:21 ` Steve Calfee
2015-07-13 23:33 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Steve Calfee @ 2015-07-13 23:21 UTC (permalink / raw)
To: buildroot
Hi Ryan,
I finally got the nfs server working maybe 2 years ago. Search for a
patch email (later withdrawn) titled:"Fix nfs server for a read only
rootfs"
Long story short, nfs requires your rootfs to be mounted r/w or the
temp paths must be fixed to be writable.
Good Luck,
Steve
On Mon, Jul 13, 2015 at 3:03 PM, Ryan Barnett
<ryan.barnett@rockwellcollins.com> wrote:
> Hello,
>
> Today I attempted to get an NFS working on a embedded target and
> struggled with getting the 'nfs-utils' package to work to provided NFS
> server functionality. By selecting the 'nfs-utils' package, the NFS
> server functionally does NOT work by default. Before I even attempted
> this, I had the kernel configuration options selected for NFSD. It
> turned out that I needed to have the rpcbind package selected in order
> to make it work, however, this was after a couple hours of trying to
> debug this.
>
> I have a few questions that I would like feedback on as I would like
> to propose a patch that will allow the nfs-util package to work by
> default.
>
> First, should the nfs-util package automatically 'select' on the
> kernel configuration options for NFSD?
>
> Other package do this so I would argue that it should.
>
> Second, in order to make the default startup configuration work,
> rpcbind is required. Should this be an added dependency since the goal
> of a package is to have it work by default?
>
> Any suggestion or feedback would be appreciated.
>
> Thanks,
> -Ryan
>
> [Extra] Looks like someone posted something similar to the mailing
> list in January of 2013
>
> http://lists.busybox.net/pipermail/buildroot/2013-January/065498.html
>
> --
> Ryan Barnett / Sr Software Engineer
> Airborne Information Systems / Security Systems and Software
> MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
> ryan.barnett at rockwellcollins.com
> www.rockwellcollins.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] NFS Server on Buildroot Target
2015-07-13 23:21 ` Steve Calfee
@ 2015-07-13 23:33 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-07-13 23:33 UTC (permalink / raw)
To: buildroot
Dear Steve Calfee,
On Mon, 13 Jul 2015 16:21:48 -0700, Steve Calfee wrote:
> I finally got the nfs server working maybe 2 years ago. Search for a
> patch email (later withdrawn) titled:"Fix nfs server for a read only
> rootfs"
>
> Long story short, nfs requires your rootfs to be mounted r/w or the
> temp paths must be fixed to be writable.
We finally took some time to fix that up and the latest Buildroot
master should work fine thanks to:
http://git.buildroot.net/buildroot/commit/package/nfs-utils?id=aec5af98caf65b8ad08db4f372527a0503bb381c
http://git.buildroot.net/buildroot/commit/package/nfs-utils?id=a23d336fbdba575321cfddadf7d671810559b056
Do not hesitate to test it and report back your results.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-13 23:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 22:03 [Buildroot] NFS Server on Buildroot Target Ryan Barnett
2015-07-13 22:20 ` Maxime Hadjinlian
2015-07-13 23:21 ` Steve Calfee
2015-07-13 23:33 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox