Power & Source of Big Ideas

TFTP giving : error code 2: Access violation

Moderators: chensy, FATechsupport

Hi,
I am trying to set up a tftp server
I am using ptxdist tftp not busy box tftp
I am accessing a tftp server from client.

- I am able to get a file from server.
- But I am not able to put a file on the server. Whenever I try to
do so, it is giving an error:

Error code 2: Access violation
-----------------------------------------------------------------
TFTP configuration in inetd.conf is as follows :

tftp dgram udp wait nobody /sbin/tftpd tftpd -s /var/tftp
------------------------------------------------------------------------------------
tftp file in init.d contains :

#!/bin/sh
#
# tftpd
#
case $1 in

start)
echo "tftpd starting"
/sbin/tftpd -s /var/tftp
;;

esac
--------------------------------------------------------------------------------------
TFTP. service file contains :

[Unit]
Description=Tftp Server
After=network.target

[Service]
Type=forking
ExecStart=/usr/sbin/inetd

[Install]
WantedBy=multi-user.target
----------------------------------------------------------------------------------------------
TFTP folder details :
owner: nobody
group: root
Permisiions: 777
--------------------------------------------------------------------------------------
What could be the reason for this error and how can I solve it?

Any help is highly appreciated.

Thank You
I would suggest looking at the PTXdist rule file for tftp and see where they download tftp from. Maybe there is a mailing list for that implementation.

Or try the Linux Networking Forum list or even the RaspberryPi forum.
Thanks. I will try that.
Can you tell me what is the reason for this error.

And this tftp server is starting at the start of the system I want it to start when I will run a command. How I can do this ?
No, I can't tell you. I dropped <tftp error code 2 access violation> into Google and it seems to come with some suggestions. The Ubuntu hit at the top seems relevant. https://askubuntu.com/questions/599558/tftp-error-code-2-access-violation-tftp-not-working

Maybe comment out the tftp start-up in the init file (/sbin/tftpd -s /var/tftp) and then just put that line or some variant of it on the command line.
I will try that. Thanks for reply.
This tftp serveice is starting when I start my board. But, I don't want it to start at the start.
I want it to start after executing a command. How can I do this.
ams,

Did you try modifying the /etc/init.d file?
Yes I tried modifying it but still it's not working.
If you comment that line out, reboot the machine and look at the file again is it still commented out?

If it is then something else must be starting the ttpd daemon.

All the mini2440 PTXdist stuff has been archived at:
https://www.mail-archive.com/oselas@community.pengutronix.de/

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests