#define CONFIG_NETCONSOLE_PORT 6666
/* Other environment variables */
-#define CONFIG_BOOTFILE "firmware.bin"
+#define CONFIG_BOOTFILE firmware.bin
#define CONFIG_LOADADDR 0x80800000
/* This is needed for time calculation */
#endif
#define CONFIG_ENV_UPG_SCRIPTS_FW \
- "fw_name=firmware.bin\0" \
"fw_addr=" MK_STR(CONFIG_UPG_SCRIPTS_FW_ADDR_HEX) "\0" \
"fw_upg=" \
"if ping $serverip; then " \
- "tftp $loadaddr $fw_name && " \
+ "tftp $loadaddr $bootfile && " \
"erase $fw_addr +$filesize && " \
"cp.b $loadaddr $fw_addr $filesize && " \
"echo DONE! Firmware upgraded!; " \
}
}
- printf("\n Filename: '%s'", tftp_filename);
+ printf("\n Filename: %s", tftp_filename);
if(NetBootFileSize){
printf("\n Size: 0x%x Bytes = ", NetBootFileSize<<9);