• openwrt的sysupgrade和factory固件的区别


    openwrt的固件一般分两种类型:factory原厂固件、sysupgrade固件

    factory多了一些验证的东西,用于在原厂固件的基础上进行升级。

    普通家用路由一般不是openwrt固件,如果要将家用路由升级为openwrt固件,就可以用factory刷到路由上。sysupgrade是在openwrt路由基础上升级固件,无论你是原厂固件或者本身就是openwrt固件,要升级到openwrt,factory都适用,但是sysupgrade只能用在升级,TTL救砖的时候就不能用sysupgrade。sysupgrade不包含数据分区,factory带,factory预留原厂分区,sysupgrade只包含openwrt分区。

    有一个公式:sysupgrade.bin+空闲空间+系统的配置空间=factory.bin的大小

    在openwrt wiki中有专门描述sysupgrade:

    sysupgrade替换linux内核和squash文件系统,擦除整个jffs2部分。能保留配置文件,但不能保留二进制安装文件。
    描述了几种sysupgrade方法,但没有描述在web界面的更新,也没有描述factory和sysupgrade的区别。
    描述的更新方法为:
    sysupgrade -v /tmp/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin
    mtd -r write /tmp/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin firmware
    nc -l -p 1234 | mtd write – firmware

    Technorati Tags:
  • 相关阅读:
    从视频中每隔固定帧进行提取图片
    np.concatenate的超简单理解
    python-OOP(面向对象)
    机器学习中的ground truth
    深度学习网络中backbone是什么意思?
    缓存
    Linux基础命令
    openoffice相关命令
    HTTP协议
    Solr基础
  • 原文地址:https://www.cnblogs.com/simonid/p/6368111.html
Copyright © 2020-2023  润新知