|
另外,这样直接拼接固件crc校验破坏了,要重新修改下固件头就可以web界面直接升级了。
dd if=K2P_3.4.3.9-099.trx of=k2p.tmp bs=1 ibs=1 count=10354692 skip=64
/opt/rt-n56u/trunk/tools/mkimage/mkimage -A mips -O linux -T kernel -C lzma -a 80001000 -e 802FF210 -k 1289616 -n K2P -V 3.4 3.9 -d k2p.tmp k2p.trx
root@ubuntu:/opt/fwtool# /opt/rt-n56u/trunk/tools/mkimage/mkimage -l K2P_3.4.3.9-099.trx
img file: K2P_3.4.3.9-099.trx
*** Warning: "K2P_3.4.3.9-099.trx" has corrupted data!
Product ID: K2P
Created: Thu Nov 16 01:38:16 2017
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 10029446 Bytes = 9794.38 kB = 9.56 MB
Load Address: 0x80001000
Entry Point: 0x802FF210
Kernel Size: 0x0013AD90
Kernel Ver.: 3.4
FS Ver.: 3.9
root@ubuntu:/opt/fwtool# /opt/rt-n56u/trunk/tools/mkimage/mkimage -l k2p.trx
img file: k2p.trx
Product ID: K2P
Created: Mon Jan 22 15:59:51 2018
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 10354628 Bytes = 10111.94 kB = 9.87 MB
Load Address: 0x80001000
Entry Point: 0x802FF210
Kernel Size: 0x0013AD90
Kernel Ver.: 3.4
FS Ver.: 3.9
|
|