• Overview of Chinese core journals
  • Chinese Science Citation Database(CSCD)
  • Chinese Scientific and Technological Paper and Citation Database (CSTPCD)
  • China National Knowledge Infrastructure(CNKI)
  • Chinese Science Abstracts Database(CSAD)
  • JST China
  • SCOPUS
HUANG Xin, WU Yueqian, WANG Deming. An Efficient Local Firmware Update Method for Embedded System[J]. Journal of South China Normal University (Natural Science Edition), 2021, 53(4): 100-106. DOI: 10.6054/j.jscnun.2021064
Citation: HUANG Xin, WU Yueqian, WANG Deming. An Efficient Local Firmware Update Method for Embedded System[J]. Journal of South China Normal University (Natural Science Edition), 2021, 53(4): 100-106. DOI: 10.6054/j.jscnun.2021064

An Efficient Local Firmware Update Method for Embedded System

More Information
  • Received Date: November 13, 2020
  • Available Online: September 02, 2021
  • An efficient local firmware update (EL-FU) method is proposed to solve the problem of low efficiency in firmware updating of resource-scarce embedded system (RSES). A new local firmware is first written into memory by the debugger and written into the local update area reserved in external memory by the driver, and then debugged by the debugger. An update trigger module, a firmware update module, a directory adding module and a reminder module are added to the operating system, which only adds 3K bytes of code to the operating system. The local firmware is updated only by the debugger without using the burning tool and packaging the whole firmware. The reliability and stability of a resource-scarce Bluetooth audio on the chip system (MIPS32 M4K kernel and 128K bytes memory) whose firmware is updated with the EL-FU method, is tested. The efficiency of the proposed EL-FU method and the conventional JDO-FU (JTAG Debugger-based Overall Firmware Update) method to update firmware in the system is compared. At the same time, the efficiency of updating firmware of the same size in the RSES and a resource-rich embedded system (RRES) is compared. As the test results show, the RSES with the EL-FU method is reliable and stable; in the RSES, the firmware update efficiency of the EL-FU method is much higher than that of the JDO-FU method; the RSES can use the EL-FU method to overcome the limitation of less computing and memory resources and achieve the same firmware update efficiency as the RRES.
  • [1]
    曲明成, 崔乃刚, 吴翔虎, 等. 嵌入式软件虚拟化测试技术标准框架研究[J]. 哈尔滨工业大学学报, 2017, 49(5): 49-55. https://www.cnki.com.cn/Article/CJFDTOTAL-HEBX201705008.htm

    QU M C, CUI N G, WU X H, et al. Research on general framework of virtual testing for embedded software[J]. Journal of Harbin Institute of Technology, 2017, 49(5): 49-55. https://www.cnki.com.cn/Article/CJFDTOTAL-HEBX201705008.htm
    [2]
    HUYNH-VAN D, TRAN-QUOC K, LE-TRUNG Q. An empirical study on approaches of internet of things reconfiguration[C]//Proceedings of the 7th International Conference on Communications and Electronics. Washington: IEEE, 2018: 57-62.
    [3]
    康燕萍, 程小辉, 黄鹏. 基于STM32系列电子产品的IAP研究[J]. 现代电子技术, 2017, 40(22): 142-144;148. https://www.cnki.com.cn/Article/CJFDTOTAL-XDDJ201722042.htm

    KANG Y P, CHENG X H, HUANG P. Study on IAP based on electronic products in STM32 series[J]. Mo-dern Electronics Technique, 2017, 40(22): 142-144;148. https://www.cnki.com.cn/Article/CJFDTOTAL-XDDJ201722042.htm
    [4]
    王星斗. 复杂嵌入式系统的自动检测技术研究[D]. 北京: 北京理工大学, 2017.

    WANG X D. Research on automatic testing technology of complex embedded system[D]. Beijing: Beijing Institute of Technology, 2017.
    [5]
    王豫新, 高美凤. 一种改进的固件增量更新算法[J]. 计算机工程, 2020, 46(10): 210-215. https://www.cnki.com.cn/Article/CJFDTOTAL-JSJC202010027.htm

    WANG Y X, GAO M F. An improved incremental update algorithm for firmware[J]. Computer Engineering, 2020, 46(10): 210-215. https://www.cnki.com.cn/Article/CJFDTOTAL-JSJC202010027.htm
    [6]
    郭俊, 虞致国, 洪广伟, 等. 基于RISC-V处理器的固件更新系统设计[J]. 计算机工程与应用, (2021-02-07)[2021-04-29]. https://kns.cnki.net/kcms/detail/11.2127.TP.20210207.0944.002.html.

    GUO J, YU Z G, HONG G W, et al. Design of firmware update system based on RISC-V processor[J]. Computer Engineering and Applications, (2021-02-07)[2021-04-29]. https://kns.cnki.net/kcms/detail/11.2127.TP.20210207.0944.002.html.
    [7]
    陈必泉, 黄承慧. GDBSERVER原理分析及其应用[J]. 计算机工程与设计, 2005(3): 746-749. doi: 10.3969/j.issn.1000-7024.2005.03.061

    CHEN B Q, HUANG C H. Analysis of GDBSERVER and its application[J]. Computer Engineering and Design, 2005(3): 746-749. doi: 10.3969/j.issn.1000-7024.2005.03.061
    [8]
    方冲, 任海兰, 王成丽. 基于MCU的嵌入式在线升级系统的设计与实现[J]. 电视技术, 2012, 36(5): 22-25. https://www.cnki.com.cn/Article/CJFDTOTAL-DSSS201205011.htm

    FAND C, REN H L, WAND C L. Design and realization of embedded online-upgrade system based on MCU[J]. Video Engineering, 2012, 36(5): 22-25. https://www.cnki.com.cn/Article/CJFDTOTAL-DSSS201205011.htm
    [9]
    CLARK C J. IEEE standard test access port and boundary scan architecture: 1149.1-2001[S]. New York: IEEE, 2001: 1-200.
    [10]
    阳富民, 柯滔, 涂刚. 基于JTAG技术的嵌入式交叉调试软件[J]. 计算机工程与设计, 2005, 26(10): 2817-2819. doi: 10.3969/j.issn.1000-7024.2005.10.081

    YANG F M, KE T, TU G. Embedded cross debugging soft- ware based on JTAG[J]. Computer Engineering and Design, 2005, 26(10): 2817-2819. doi: 10.3969/j.issn.1000-7024.2005.10.081
    [11]
    李苑, 郑一麟, 田雨, 等. 基于串口YMODEM和远程FTP固件升级方法研究[J]. 电子测量技术, 2019, 42(13): 132-136. https://www.cnki.com.cn/Article/CJFDTOTAL-DZCL201913024.htm

    LI Y, ZHENG Y L, TIAN Y, et al. Research on YMODEM serial and FTP terminal method for firmware upgrade for STM32 embedded device[J]. Electronic Measurement Technology, 2019, 42(13): 132-136. https://www.cnki.com.cn/Article/CJFDTOTAL-DZCL201913024.htm
    [12]
    黄飞龙, 谭晗凌, 陈冰怀. 基于无线分包传输的气象站固件无感升级方法[J]. 计算机测量与控制, 2020, 28(1): 166-169;174. https://www.cnki.com.cn/Article/CJFDTOTAL-JZCK202001035.htm

    HUANG F L, TAN H L, CHEN B H. Non-feelable upgrade of automatic weather station based on wireless packet transmission[J]. Computer Measurement & Control, 2020, 28(1): 166-169;174. https://www.cnki.com.cn/Article/CJFDTOTAL-JZCK202001035.htm
    [13]
    陈长, 王铮, 胡俊. 基于SiTCP通信协议的FPGA可回滚远程固件更新方法[J]. 核技术, 2020, 43(11): 42-46. https://www.cnki.com.cn/Article/CJFDTOTAL-HJSU202011006.htm

    CHEN Z, WANG Z, HU J. FPGA remote firmware update method based on SiTCP communication protocol with rollback function[J]. Nuclear Techniques, 2020, 43(11): 42-46. https://www.cnki.com.cn/Article/CJFDTOTAL-HJSU202011006.htm
    [14]
    许金宇, 曹子涛, 王冠男. IR46智能电能表固件在线升级方案设计[J]. 电测与仪表, 2018, 55(S1): 71-74. https://www.cnki.com.cn/Article/CJFDTOTAL-DCYQ2018S1016.htm

    XU J Y, CAO Z T, WANG G N. Design of IR46 smart meter online firmware upgrading[J]. Electrical Measurement & Instrumentation, 2018, 55(S1): 71-74. https://www.cnki.com.cn/Article/CJFDTOTAL-DCYQ2018S1016.htm
    [15]
    袁凤培. 煤矿多层异构网络远程固件更新方法[J]. 工矿自动化, 2020, 46(12): 101-105. https://www.cnki.com.cn/Article/CJFDTOTAL-MKZD202012016.htm

    YUAN F P. Remote firmware update method for multi-layer heterogeneous networks in coal mines[J]. Industry and Mine Automation, 2020, 46(12): 101-105. https://www.cnki.com.cn/Article/CJFDTOTAL-MKZD202012016.htm
    [16]
    何国锋, 李月婷, 刘宇红. 基于模拟BIOS的可穿戴设备固件在线升级实现[J]. 电子技术应用, 2017, 43(3): 63-65;69. https://www.cnki.com.cn/Article/CJFDTOTAL-DZJY201703015.htm

    HE G F, LI Y T, LIU Y H. Firmware online upgrade implementation for wearable devices based on simulating BIOS[J]. Application of Electronic Technique, 2017, 43(3): 63-65;69. https://www.cnki.com.cn/Article/CJFDTOTAL-DZJY201703015.htm
    [17]
    胡振波. RISC-V架构与嵌入式开发快速指南[M]. 北京: 人民邮电出版社, 2019: 213-218.
    [18]
    曹欲晓, 韩冬, 徐金宝. 一种基于CPUID和AES算法的STM32固件升级方案[J]. 电子技术应用, 2015, 41(3): 28-30;34. https://www.cnki.com.cn/Article/CJFDTOTAL-DZJY201503015.htm

    CAO Y X, HAN D, XU J B. A scheme of firmware upgrade of STM32 based on CPUID and AES algorithm[J]. Application of Electronic Technique, 2015, 41(3): 28-30;34. https://www.cnki.com.cn/Article/CJFDTOTAL-DZJY201503015.htm
    [19]
    檀朝新, 张杨, 马柱, 等. 基于IAP技术的远程固件更新系统设计与实现[J]. 中国医疗器械杂志, 2019, 43(6): 425-428. https://www.cnki.com.cn/Article/CJFDTOTAL-ZYLZ201906011.htm

    TAN C X, ZHANG Y, MA Z, et al. Design and implementation of remote firmware update system based on IAP technology[J]. Chinese Journal of Medical Instrumentation, 2019, 43(6): 425-428. https://www.cnki.com.cn/Article/CJFDTOTAL-ZYLZ201906011.htm

Catalog

    Article views (625) PDF downloads (53) Cited by()

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return