This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NFS in write mode issue

Other Parts Discussed in Thread: OMAP3530

I have setup NFS Server and booting FS but from board I am unable to save any file. However I created each and every directory with login as root/root permission. When I am pressing back key then previous commands are not shown on the OMAP board. It seems fopen() and fwrite is also not working and while running encode demo I am facing the following error

 

[root@OMAP3EVM dvsdk]# ./video_encode_io1_omap3530.x470MV -c h264enc -r  352x288 -i test.yuv -o out.264
Starting application...
Failed to open output file out.264
End of application.

How to give permission to get rid of this problem?

 

Regards,

Vineet

  • The two things I would check are:

    1. File permissions
    2. NFS configuration

     

  • Hi Brad,

    The NFS configuration is as follows:-

    setenv bootargs_nfs mem=88M console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=10.50.26.164:/home/omap/workdir/filesys,nolock video=omap24xxfb:rotation=90

    and the file permissions are as follows:-


    drwxr-xr-x  3 root      root      4096 Jan  7 23:15 omap3530<usraccnt>

    drwxr-xr-x 3 root root 4096 Jan  7 23:15 workdir

    drwxr-xr-x 17 root root 4096 Nov 28 17:53 filesys

    Regards,

    Vineet

     

  • By "NFS configuration" I was actually referring to how you exported the NFS file system on your Linux host.  Can you create files in the file system in that same directory?  Something like "cat hello > file.txt"?

    Did you recursively chown/chmod that whole directory?  Are you sure the dvsdk directory where you're working has the same permissions?

  • Brad Griffis said:

    By "NFS configuration" I was actually referring to how you exported the NFS file system on your Linux host. 

    To add to Brad's comments above, this is typically done in your host's /etc/exports file (probrably mentioned in Getting Started Guide).

  • I have verified the entire directory permissions as well as /etc/exports which is configured as follows:-

    /home/omap3530/workdir/filesys <boardip>/<subnetmask> (rw,sync,no_subtree_check)

    I gave chown -R root /home/omap/workdir/filesys also but no use.

     

    I am  not able to go to the previous executed lines also using up arrow button, its very irritating typing again and again in the console. How to resolve this issue?

     

    Regards,

    Vineet

     

  • Can you try the following line in your /etc/exports file instead

    /home/omap3530/workdir/filesys *(rw,no_root_squash,no_all_squash,sync)

    this works in DaVinci (I have not had time to try OMAP yet).  It should be simple enough to try and may solve the issue.

  • It seems this is an expansion on your prior post at http://community.ti.com/forums/t/2495.aspx as it appears to be the same issue, I responded to that post but did not realize this new one had been created (I am tempted to merge them but we can leave them seperate for now).

    I agree with Juan's suggestion, I am currently using

    /home/user/dvsdk_3_00_00_29/targetfs *(rw,no_root_squash,no_all_squash,sync)

    for my /etc/exports file and it is working fine for me, but I also had to 'chmod 777 /home/user/dvsdk_3_00_00_29/targetfs/opt/dvsdk' to allow writes into there when setting up the encode demo since the filesystem is extracted by root.

  • Hi Juan & Thompson,

    Thanking you a lot, my problem got solved usiing

    /home/omap3530/workdir/filesys *(rw,no_root_squash,no_all_squash,sync)

     

    Regards,

    Vineet