有些注定了被遗忘的话,也就有的注定了属于沉静的自私.

Openwrt 固件升级检查平台

来自森亮号航海见识 {SLboat Insight;}
跳转至: 导航搜索

发现

  • 看起来openwrt会自己缓存一份hw,或者就在固件里,这和uboot里的关系不大
root@OpenWrt_SLboat_Mod:~# cd /tmp/
root@OpenWrt_SLboat_Mod:/tmp# sysupgrade openwrt-ar71xx-generic-tl-mr10u-v1-squashfs-sysupgrade.bin 
Invalid image, hardware ID mismatch, hw:07030101 image:00100101.
Image check 'platform_check_image' failed.
  • 然后的当然了,你可以强制绕开它
root@OpenWrt_SLboat_Mod:/tmp# sysupgrade -F openwrt-ar71xx-generic-tl-mr10u-v1-squashfs-sysupgrade.b
in 
Invalid image, hardware ID mismatch, hw:07030101 image:00100101.
Image check 'platform_check_image' failed but --force given - will update anyway!
Saving config files...
Sending TERM to remaining processes ... syslogd klogd hotplug2 ubusd netifd uhttpd dnsmasq ntpd 
Sending KILL to remaining processes ... uhttpd 
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...     
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware...TRX header not found
Error fixing up TRX header
    
Upgrade completed
Rebooting system...