简单实用的tftp烧录image脚本
烧录FW image时,经常需要打开带有UI界面的tftp客户端,然后输入IP,选择FW image,然后点击写入,很是繁琐。
为了简化这个过程,我决定使用shell script,在win10中自带WSL(windows subsystem for linux),配合zsh食用。
1 | |
脚本使用tftp连接tftp server 192.168.1.1, 然后进入binary模式,最后将image文件$1传输至server端。
使用方法很简单,保证该文件burnImage所在目录在环境变量$PATH中,之后在FW image所在目录执行以下指令完成烧录,非常方便。
1 | |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments