
Dear Mario,
In message 20140407165243.3B074380958@gemini.denx.de I wrote:
As is, this cannot be changed. The TFTP port number is hard wired in the code - see "net/tftp.c":
... 18 /* Well known TFTP port # */ 19 #define WELL_KNOWN_PORT 69 ...
Actually this is not correct. There are options to use different port numbers, see further down below in the same file:
798 #ifdef CONFIG_TFTP_PORT 799 ep = getenv("tftpdstp"); 800 if (ep != NULL) 801 TftpRemotePort = simple_strtol(ep, NULL, 10); 802 ep = getenv("tftpsrcp"); 803 if (ep != NULL) 804 TftpOurPort = simple_strtol(ep, NULL, 10); 805 #endif
So just make sure to define CONFIG_TFTP_PORT in your board config file, and set the environment variables tftpdstp and/or tftpsrcp as needed.
Hope this helps.
Best regards,
Wolfgang Denk