HELP! ROUTEROS to be a tftp server

I have a x86 with RouterOS 5.11
I try to configure the ROS to be a PXE server.
and I upload the pxe file to the “File” windows;set the Bootp Support to static;fill in the Boot File Name which I have upload to the ROS.
When the pxe client boots,I got an error:permission denied.
The ROS’s log was: “tftp error ERROR code:0 string permission denied!”
Any thing wrong with the tftp configure? I had set

IP-ADDRESSES REQ-FILENAME REAL-FILENAME ALL REA ALL HITS

0 0.0.0.0 test.pxe test.pxe yes yes no 0

Is the REAL-FILENAME must to be set the full path? like “/sata1/file.txt”? But I can’t put the file to any other than the “file” window!
Any one has the experience of this can help me ?

if you have the file in the ‘normal’ files root, then you do not input any path e.g.

/ip tftp real-filename=bootfile.txt

Also, you have an IP set of 0.0.0.0. So, your client is using this IP address?! leave this field blank, or give it the specific IP of your clients. (You may have meant to enter 0.0.0.0/0?) but you can leave it blank and Mikrotik will automatically know this means the same as 0.0.0.0/0.

The permission denied is telling you the clue of where the problem is… it is not permitting the pxe to work because the client IP is not a valid IP, when matched with the server settings of a client having to have ‘0.0.0.0’

Now I had set “ip-address” to empty,like this:

IP-ADDRESSES REQ-FILENAME REAL-FILENAME ALL REA ALL HITS

0 MAXDOS.PXE MAXDOS.PXE yes yes no 118

Then use dos command to tftp download the file:
C:\Documents and Settings\Administrator>tftp -i 192.168.0.254 get MAXDOS.PXE
Timeout occurred

In routeros,the log:
13:39:08 tftp,error ERROR: code 5
13:39:09 tftp,error ERROR: code 5
13:39:11 tftp,error ERROR: code 5
13:39:15 tftp,error ERROR: code 5
13:39:23 tftp,error ERROR: code 5
13:39:31 tftp,error ERROR: code 5
13:39:39 tftp,error ERROR: code 5
13:39:47 tftp,error ERROR: code 5
what’s the matter?

Error code 5 means there was ‘an error’. Yes, stupid I know, that does not help! But TFTP error messages are not that helpful! Try enabling ‘roll over’. (allow-rollover=yes) It is not an option in winbox, only in terminal.