https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512013-07-18T17:56:16ZGraphics Muse Issue TrackerPiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6252013-07-18T17:56:16ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>20</i></li></ul><p>kernel support nfs client/server. Rootfs needs nfs-utils enabled.</p>
<p>Buildroot 2013.02's nfs-utils version is 1.2.6. Latest sourceforge release is 1.2.8. Bump that and push upstream if latest is not 1.2.8 (which it doesn't appear to be).</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6262013-07-18T17:56:25ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6372013-07-19T17:44:09ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>20</i> to <i>30</i></li></ul><p>nfs-utils (stock buildroot version) has been enabled and build-tested.</p>
<p>Has not been tested on target yet.</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6532013-07-29T20:22:05ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Priority</strong> changed from <i>High</i> to <i>Urgent</i></li><li><strong>Severity</strong> changed from <i>03 - Medium</i> to <i>01 - Critical</i></li></ul> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6622013-07-31T14:05:00ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>30</i> to <i>50</i></li></ul><p>nfs support tested on target by exporting /root. This was mounted to my build host cleanly and unmounted cleanly. So nfs is working in PiBox.</p>
<p>Now I need to try it by mounting a USB SD card and then exporting that SD card to see if I can play a movie that way. I'll need a new 10-port hub to replace the 4 port powered hub I'm currently using.</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6972013-08-20T15:05:06ZHammelmjhammel@graphics-muse.org
<ul></ul><p>sdcard is mounted on target under /sdcard/a. Permissions are:</p>
<pre>
# ls -lR /sdcard
/sdcard:
drwxr-xr-x 3 root root 4096 Aug 18 20:51 a
/sdcard/a:
-rw-rw-r-- 1 3123 3123 1005108923 Aug 15 2012 Incredibles.mp4
drwx------ 2 root root 16384 Aug 18 20:33 lost+found
</pre>
<p>Mounting on build host works, but permissions are not mapped correctly:</p>
<pre>
mjhammel(tty5)$ sudo ls -lR /mnt/sdcard
/mnt/sdcard:
total 4
drwx------ 2 root root 4096 Jan 1 1970 a
/mnt/sdcard/a:
total 0
mjhammel(tty5)$ df -m | grep sdcard
pibox:/sdcard 1783 784 909 47% /mnt/sdcard
</pre>
<p>This may be a problem with the exports file on the target:</p>
<pre>
# cat /etc/exports
/root *(sync,rw,no_root_squash,insecure)
/sdcard *(sync,rw,no_root_squash,insecure)
</pre>
<p>These very open settings are what I use at home and they work between major distributions. So I'm not sure what might be missing on the target. The only log message is:</p>
<pre>
Aug 20 14:45:55 (none) user.warn kernel: [ 1621.844911] nfsd: nfsv4 idmapping failing: has idmapd not been started?
</pre>
<p>idmapd is not included in the rootfs but is available (for example) in Fedora 16. So maybe that's the problem.</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6982013-08-20T17:37:12ZHammelmjhammel@graphics-muse.org
<ul></ul><p>Take a look at this: <a class="external" href="https://wiki.archlinux.org/index.php/NFS">https://wiki.archlinux.org/index.php/NFS</a></p>
<p>It assumes use of NFS4, and the Buildroot build seems to disable this. But maybe that's the problem. However, since I can mount /root from the target to the build host I think the real problem may have something to do with the way I mount the USB SD card. Maybe implementing autofs will help with this (see RM <a class="issue tracker-8 status-5 priority-7 priority-highest closed" title="Testing: Find out if automount will mount an SD card from a USB hub (Closed)" href="https://redmine.graphics-muse.org/issues/195">#195</a>).</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=6992013-08-20T20:30:09ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>50</i> to <i>60</i></li></ul><p>Okay, the trick seems to be that you can't just export the top level directory anymore. Given this mount on the target:</p>
<pre>
mount -t ext3 -o rw /dev/sda1 /sdcard/a
</pre>
<p>has this content:</p>
<pre>
/sdcard/a:
-rw-rw-r-- 1 3123 3123 1005108923 Aug 15 2012 Incredibles.mp4
drwx------ 2 root root 16384 Aug 18 20:33 lost+found
</pre>
<p>You have to export the directory you want the client to mount. So the following /etc/exports file on the target:</p>
<pre>
/root *(sync,rw,no_root_squash,insecure,no_subtree_check)
/sdcard *(sync,rw,no_root_squash,insecure,no_subtree_check)
/sdcard/a *(sync,rw,no_root_squash,insecure,no_subtree_check)
</pre>
<p>Allows the following mount:</p>
<pre>
mount -t nfs pibox:/sdcard/a /mnt/sdcard
</pre>
<p>To show what's under /sdcard/a on the target. If you remove the "/a" from the mount, you only see what's in /sdcard. There must be some kind of exports configuration to allow walking the tree. I hope so because if not then every automount of the USB stick has to mount to the correct directory that is either already listed in /etc/exports or is added to it and S60nfs restarted.</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=7002013-08-20T20:56:49ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/700/diff?detail_id=456">diff</a>)</li></ul> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=7022013-08-21T02:16:35ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>60</i> to <i>80</i></li><li><strong>Severity</strong> changed from <i>01 - Critical</i> to <i>05 - Very Low</i></li></ul><p>Assuming NFS is working properly, streaming from the NFS mount of the USB attached SD card works fine. I was able to play the video on my desktop, with the video streaming wirelessly. It should be noted that PiBox was configured as an ordinary wireless client, not as an AP.</p>
<p>At this point I just need to get autofs working and then return to this one to make sure the mount points are properly setup for NFS.</p> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=7852013-10-22T02:02:44ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Target version</strong> changed from <i>1.0 - Atreides</i> to <i>0.7.0</i></li></ul> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=8452013-11-17T00:55:27ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Priority</strong> changed from <i>Urgent</i> to <i>Immediate</i></li><li><strong>Severity</strong> changed from <i>05 - Very Low</i> to <i>02 - High</i></li></ul> PiBox - Testing #194: Verify SD card, mounted via USB, can be exported via NFShttps://redmine.graphics-muse.org/issues/194?journal_id=8752013-11-26T02:20:57ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>80</i> to <i>100</i></li></ul><p>NFS isn't really necessary. SMB is installed and working. There are SMB clients for Android and I've verified these can pick up the guest export and stream video from the /media mount point on the PiBox. So I don't really need nfs.</p>
<p>Closing this issue. I'll open another about removing NFS from the default core platform.</p>