vxwork 用命令行烧写
时间: 2024-03-01 20:50:54 浏览: 42
在VxWorks中,可以使用命令行工具"tftp"来进行程序的烧写。具体步骤如下:
1. 连接VxWorks系统,打开命令行终端。
2. 确认系统中已经配置了tftp服务器,如果没有配置,则需要先进行配置。可以使用如下命令进行配置:
```
-> ifconfig <IP address> -inet -mask <subnet mask>
-> route add default <tftp server IP address>
```
其中,<IP address>和<subnet mask>分别为系统的IP地址和子网掩码,<tftp server IP address>为tftp服务器的IP地址。
3. 将需要烧写的程序放置到tftp服务器的指定目录下,例如"/tftpboot"目录。
4. 在VxWorks命令行中使用如下命令进行烧写:
```
-> load -tftp <target IP address>:<source file> <target address>
```
其中,<target IP address>为目标设备的IP地址,<source file>为需要烧写的程序文件名,<target address>为程序烧写的起始地址。
5. 等待程序烧写完成,完成后可以使用如下命令执行烧写的程序:
```
-> <target address>()
```
其中,<target address>为程序烧写的起始地址,加上括号即可执行程序。
需要注意的是,以上命令仅适用于使用tftp进行烧写的情况,如果使用其他方式进行烧写,则命令可能会有所不同。
相关推荐
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![ppt](https://img-home.csdnimg.cn/images/20210720083527.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)