Super lightweight, not at all robust, TFTP server for FRDM-K64F eval board.

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of FRDM_K64F-Ethernet by Rangel Alvarado

Super lightweight, not at all robust, TFTP server for FRDM-K64F eval board. This tool supports read-only access to two files. It does not support NACK responses or timeouts. The tool is intended for use by our test department to check out Ethernet functionality on our main processor board.

Revision:
2:28ddb9b073ec
Parent:
1:2944c0d494ff
--- a/env.h	Thu Oct 11 15:25:58 2018 +0000
+++ b/env.h	Thu Oct 11 20:45:38 2018 +0000
@@ -10,13 +10,13 @@
 **  8) type 'md.b 2000x00 100' and press Enter
        replace the x with the base address in the error message
        in the example above the error was at 33b, so enter 'md.b 2000300 100' and press Enter
-**  9) find the 'filesize' entry in the memory dump, and edit the filesize value below to match
+**  9) find the 'filesize' entry in the memory dump, and edit the filesize value below to match (case sensitive)
 ** 10) repeat steps 1 through 7 above, this time there should be no error message
 */
 char *env_string[] = {
 "addargs=setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate sdhci-of.max_clock=$sdclk\n",
 "baudrate=115200\n",
-"bootcmd=echo && echo This is a test environment. Must 'run upenv' against && echo production server to restore production environment.\n",
+"bootcmd=echo && echo This is a test environment. Must \"run upenv\" against && echo production server to restore production environment.\n",
 "bootdelay=0\n",
 "bootdrive=sda1\n",
 "bootfile=uImage\n",
@@ -28,10 +28,11 @@
 "envimport=if mmc part 0 && fatload mmc 0:1 $loadaddr $ubootenv; then env -d import $loadaddr $filesize && saveenv; else echo \"Missing file: $ubootenv\"; fi'\n",
 "ethact=eTSEC1\n",
 "ethprime=eTSEC1\n",
+"ethtest=tftpboot 1000000 $tftpdir/ethtest_bin && sleep 3 && tftpboot 2000000 $tftpdir/ethtest_bin && cmp.b 1000000 2000000 $filesize\n",
 "fdtaddr=ff0000\n",
 "fdtfile=p1022ipcu_dtb\n",
 "fileaddr=1000000\n",
-"filesize=c5c\n",
+"filesize=ce1\n",
 "flashfsfile=flashfs_jffs2\n",
 "flashfsoffset=A00000\n",
 "flashfssize=600000\n",