一、上传固件到/tmp目录,由于/tmp属于内存空间,存储空间的大,而且快。
1、使用 Windows 上的 TFTP 发送文件:
C:\tmp> tftp -i 192.168.1.1 put code.bin
2、使用 Linux 上的 TFTP 发送文件:
tftp -m binary 192.168.1.1 69
3、使用SSH上传文件方法:
scp /tmp/uboot-fritz7530.bin root@192.168.1.1:/tmp/
scp /tmp/avm_fritzbox-7530-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/
4、使用FTP上传文件方法:
二、升级固件。
1、采用sysupgrade -n
当中的 “-n” 告诉 sysupgrade 命令升级后不要保留配置文件。
sysupgrade -n openwrt-ar71xx-wrt160nl-squashfs.bin