Dear Mario,

In message <20140407165243.3b074380...@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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
                  Nail here --X-- for new monitor.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to