Hi Andrew, Thanks for your e-mail. >TFTP is normally only used for reading, and it doesn’t surprise me if writing isn’t supported since there is no user authentication involved. I thought that setting the parameter RTEMS_FILESYSTEM_READ_WRITE in the function call below would do the job: if (mount_and_make_target_path(devname, "/TFTP/", RTEMS_FILESYSTEM_TYPE_TFTPFS, RTEMS_FILESYSTEM_READ_WRITE, NULL))
I am able to write the file using tftp from my linux system. When I examine the tftp log file then I do not see any attempt from the RTEMS system to request the file to be written so I suspect that it is a certain configuration in EPICS/RTEMS missing? >It should be possible to enable NFSv2 in Rocky Linux 8, it still works on RHEL-8 but you do have to change one or two files in the server’s /etc area to do that. Red Hat don’t actually offer support for v2 any more, but they haven’t actively removed the code for it, just disabled it by default. Our IT guys tried and they said that NFS V2 can not be used on RL8. This surprises me since it is fine on RHEL-8 according to your statement and also: https://epics.anl.gov/tech-talk/2022/msg00267.php Best Regards Mirek śr., 14 lut 2024 o 11:02 Johnson, Andrew N. <a...@anl.gov> napisał(a): > Hi Mirek, > > TFTP is normally only used for reading, and it doesn’t surprise me if > writing isn’t supported since there is no user authentication involved. > > It should be possible to enable NFSv2 in Rocky Linux 8, it still works on > RHEL-8 but you do have to change one or two files in the server’s /etc area > to do that. Red Hat don’t actually offer support for v2 any more, but they > haven’t actively removed the code for it, just disabled it by default. > > V2 will be removed from the upstream kernel.org Linux kernel at some > point soon and then it will be much harder to continue using, but I don’t > think that has happened just yet. Plan for that eventuality… > > - Andrew > > -- > Complicity is easy, Simplexity takes real work > > On Feb 14, 2024, at 2:23 PM, Miroslaw Dach <miroslaw.d...@gmail.com> > wrote: > > > Hello, > > I have two types of the EPICS and RTEMS 4.10 and RTEMS5 bases systems. > They all use the nfs v2 mount points on the Linus remote host. We current > mirage in our lab to the newer version of the LINUX os (Rocky Linux 8) > which seems to not support NFS V2. Since I can not migrate to the RTEMS6 > and EPICS 7 with some legacy systems due to the drivers incompatibilities > I explored the TFTPFS instead of the NFSFS. All works fine when reading > files through tftp. I can't however write files using the tftp. > > The tftpfs is set as following: > > > *EPICS_R7.07/base/modules/libcom/RTEMS/posix/rtems_init.c * > > > *initialize_remote_filesystem(char **argv, int hasLocalFilesystem){ * > *:* > > > > > > > * if (mount_and_make_target_path(devname, > "/TFTP/", RTEMS_FILESYSTEM_TYPE_TFTPFS, > RTEMS_FILESYSTEM_READ_WRITE, > NULL)) perror("mount_and_make_target_path"); * > *:* > *}* > > When I try to write a file I get a following error: > > *dbl > S0817PVs.txt st.cmd line 60: Can't open "S0817PVs.txt": I/O error.* > > I do not see anything in the tftp log file that the EPICS iocs server even > tries to send a request to save a file. It looks like it is > something internal in EPICS/RTEMS . > > Does anybody have any advice? > > Best Regards > Mirek > > > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users > >
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users