使用MobaXterm上传文件到主板中,解压时报错
tar: Error Is Not Recoverable: Exiting Now
原因分析:
使用tar命令解压时,出现如上的提示,刚开始以为是没有强制覆盖,后来发现不是,"tar -zxvf xxx.tar.gz"命令自动覆盖,应该是xxx.tar.gz这个包出了问题,没有上传完整,上传完整之后再解压发现没事了。
(1)下载文件不完整或者传递文件时出现问题,传递缺失文件导致传递不完整
(2)下载的文件并不是“通过 gzip 过滤归档”所以添加参数z就无法正常解压。但是从官网下载一般不会出现这种问题,建议从官网下载。
解决方案:
1)重新下载或者上传文件
2)去掉解压参数中的z,执行命令改为:tar -xvf xx.tar.gz
[U-Boot@mini2440]#tftp 30008000 u-boot.bin
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 10.27.10.48; our IP address is 10.27.10.23
Filename 'u-boot.bin'.
Load address: 0x30008000
Loading: T T T T #T T T T T T T ##T T T T T T T T T T T ##T T T T T #T T T T ###
done
Bytes transferred = 154764 (25c8c hex) //文件不到200KB还是出现断断续续的
[U-Boot@mini2440]#tftp 30008000 zImage //文件达到2MB就没有出现成功过
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 10.27.10.48; our IP address is 10.27.10.23
Filename 'zImage'.
Load address: 0x30008000
Loading: T T T T T T T T T T T T T T #T T T T T T T T T T T T ##T T T T T T T T#
###T T #T T T T T
Retry count exceeded; starting again
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 10.27.10.48; our IP address is 10.27.10.23
Filename 'zImage'.
Load address: 0x30008000
Loading: T T T T T T T T T T #T T T T T T T T T #T T T T T T T T #T T T T T T ##
###T #T T T T T T T T #T #T #######T ###T ##T ###T ##T ###T T T ##T ###
###T T #T T T T T T ##T T ##T T ###T ##
Retry count exceeded; starting again
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 10.27.10.48; our IP address is 10.27.10.23
Filename 'zImage'.
Load address: 0x30008000
Loading: T T T T T #T T T T T T T T #T T T T T T T T T T T T #T T T T T T T T T#
####T T T T #T T T T T T T ###T ##T ###T ##T T ###T #####T T T ##T T ##
##T T #T T T T T T T T T #####T T ##T ##T ##T T ###T ##T T ###T ##T T
T T ##T
Retry count exceeded; starting again
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 10.27.10.48; our IP address is 10.27.10.23
Filename 'zImage'.
Load address: 0x30008000
Loading: T T T T T #T T T T T T T T T T T ###T T T T T T T T T ##T T T T #
####T T T T T T ##T T T T ###T ##T T T ##T ####T ##T #T ###T ###T ##T #
##T ##T T T T T T #T T T T ##T T ###T ##T ###T ###T ##T T ##T T ##T T ###
Retry count exceeded; starting again //