WO2015196542A1 - Software version upgrade method and single board - Google Patents

Software version upgrade method and single board Download PDF

Info

Publication number
WO2015196542A1
WO2015196542A1 PCT/CN2014/084680 CN2014084680W WO2015196542A1 WO 2015196542 A1 WO2015196542 A1 WO 2015196542A1 CN 2014084680 W CN2014084680 W CN 2014084680W WO 2015196542 A1 WO2015196542 A1 WO 2015196542A1
Authority
WO
WIPO (PCT)
Prior art keywords
bootloader
peripheral device
device configuration
board
flash chip
Prior art date
Application number
PCT/CN2014/084680
Other languages
French (fr)
Chinese (zh)
Inventor
徐群立
程兵
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015196542A1 publication Critical patent/WO2015196542A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of software upgrade and maintenance, and in particular, to a software version upgrade method and a board.
  • BACKGROUND OF THE INVENTION Products based on embedded systems often use a variety of peripheral devices of different sizes or models.
  • the CPU is initialized with a fixed address of the BootLoader (boot loader) to read the boot parameters and peripheral device configuration parameters such as RAM/FLASH.
  • the configuration parameters are provided by the BootLoader program and must be associated with the board. The device type matches, otherwise it will not start.
  • the product model is simply distinguished, only one peripheral device configuration parameter is saved in the BootLoader program, and the independent product types are exponentially increased, and the BootLoader is incompatible with each other, and the maintenance is extremely inconvenient.
  • the main object of the present invention is to solve the problem of software version upgrade and maintenance based on different peripheral devices of the same model in an embedded system.
  • the embodiment of the present invention provides a software version upgrade method, which is applied to a board.
  • the software version upgrade method includes the following steps: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to a memory chip; acquiring peripheral device configuration parameters of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; writing the peripheral device configuration parameter to the memory chip Corresponding parameter position of the second BootLoader, obtaining a second BootLoader including the peripheral device configuration parameter; writing a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader
  • the upgrade method further includes: loading other files set to be upgraded to the memory chip, wherein the other files are upgrade files other than the second bootloader; writing the other files to the FLASH chip, Replace the corresponding old version file.
  • the method further includes: establishing a mapping table, and establishing a one-to-one correspondence between the peripheral device and the peripheral device configuration parameter.
  • the loading is set to upgrade the second BootLoader of the first BootLoader that is sintered in the FLASH chip to the memory chip, and further includes a CRC check step. If the verification is successful, executing the peripheral device that acquires the first BootLoader in the FLASH chip.
  • the step of configuring the parameter, the CRC checking step is: verifying whether the check value of the first BootLoader and the check value of the second BootLoader are the same, and if they are the same, the verification is successful.
  • the step of writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip to obtain a second BootLoader including the peripheral device configuration parameter further includes a detecting step if the school If the verification succeeds, the step of writing the second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader is performed, and the detecting step is: detecting the predetermined position of the first BootLoader Whether the corresponding parameter position of the second BootLoader is consistent, and if the positions are consistent, the detection is successful.
  • the embodiment of the present invention further provides a board, where the board includes: a loading module, configured to load a second set to upgrade the first BootLoader
  • the BootLoader to the memory chip is configured to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; the writing module is set to be written The peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second BootLoader including the peripheral device configuration parameter; and further configured to write a second BootLoader including the peripheral device configuration parameter To the flash chip to replace the first BootLoader
  • the board, the loading module further includes a writing module, configured to load other files set to be upgraded to the memory chip, where the other files are upgrade files other than the second bootloader; It is also arranged to write the other file to the FLASH chip to replace the corresponding old version file.
  • the board further includes a mapping module, configured to establish a mapping table, and establish a one-to-one correspondence between the peripheral device and the peripheral device configuration parameters.
  • the board further includes a check module, and checks whether the check value of the first BootLoader and the check value of the second BootLoader are the same. If they are the same, the check succeeds.
  • the board further includes a detecting module that detects the predetermined position and the second of the first BootLoader
  • the software version upgrade method includes the following steps: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip; acquiring peripheral device configuration parameters of the first BootLoader in the FLASH chip, where The peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second parameter including the peripheral device configuration parameter The second bootloader that includes the peripheral device configuration parameter is written to the flash chip to replace the first bootloader.
  • the software version upgrade method provided by the embodiment of the present invention can achieve the beneficial effect that the same model is upgraded subsequently.
  • the software of the product is upgraded, it is not necessary to upgrade the software of different types according to the peripheral devices. Only one configuration parameter and one upgrade version of the software can be reserved to solve the problem of compatibility with the peripheral devices during the software upgrade, thereby reducing the software upgrade and Maintenance troubles, realized costs Savings.
  • 1 is a schematic flowchart of a first embodiment of a software version upgrade method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a software version upgrade method according to the present invention
  • FIG. 4 is a schematic structural view of an embodiment of a single board according to the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a software version upgrade method according to the present invention.
  • the software version upgrade method includes: Step S100, loading settings To upgrade the second BootLoader of the first BootLoader sintered in the FLASH chip to the memory chip.
  • the dual-use system adopts the "bootLoader+OS (Operating System)" structure, the BootLoader uses the uboot (Universal Boot Loader), and the OS uses the Linux system.
  • the BootLoader software is created, multiple BootLoader upgrade softwares may be created according to different types and sizes of peripheral devices and software upgrade methods.
  • the peripheral device may be a memory chip or a flash memory chip.
  • the memory chip uses a RAM chip
  • the flash chip uses a Flash chip.
  • the Flash chip and the RAM chip use chips of different sizes and different types.
  • the optional Flash chip includes small page 256Mb Nand Flash and large page 1Gb Nand Flash.
  • the selected RAM chip includes 1Gb DDR2 (Double Data Rate 2, four times data rate dynamic random access memory), 1Gb DDR3 (Double Data Rate 3, eight times data rate synchronous dynamic random access memory), 512Mb DDR2, 512Mb Four kinds of DDR3, the software writing method includes the flash chip burning mode and the single board upgrade mode.
  • the software writing method includes the flash chip burning mode and the single board upgrade mode.
  • the storage space is different, and the overall provided functional items are unchanged, then the product is in the The model will not change when naming, guarantee the flash chip and RAM chip in hardware.
  • Small and model compatible if you follow the existing software writing method, in terms of software, you need to be compatible with 8 types of peripheral chips and two different software writing methods, 8 sintering version software, 8 version upgrades are required.
  • Step S200 Acquire peripheral device configuration parameters of the first BootLoader in the FLASH chip, where the peripheral device configuration parameters are stored in a predetermined position of the FLASH chip.
  • the board obtains the peripheral device configuration parameters of the first BootLoader stored in the predetermined position of the FLASH chip, and the surrounding device configuration parameters and the current peripheral devices on the board can be matched.
  • Step S300 writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second BootL 0a der including the peripheral device configuration parameter.
  • the board saves the upgraded version software to the memory of the board.
  • the upgrade version software does not add any parameters to the corresponding parameter position during the production.
  • the board writes the peripheral device configuration parameters. Enter the corresponding parameter location of the second BootLoader of the upgraded version software to obtain a second BootLoader that includes the peripheral device configuration parameters.
  • Step S400 Write a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader.
  • the board temporarily stores the second configuration parameter of the peripheral device in the memory chip of the single board.
  • the BootLoader is written to the flash chip of the board.
  • the peripheral device configuration parameters match the current peripheral devices of the board.
  • the board can start the new version of the upgrade software normally. In the upgrade and maintenance of the software, only one upgrade software is required. Completion of compatibility with different peripheral devices.
  • the software version upgrade method of the embodiment includes the following steps: Step S100: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip; Step S200: Acquire a peripheral device configuration parameter of the first BootLoader in the FLASH chip The peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; step S300, writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain the peripheral a second BootLoader of the device configuration parameter; Step S400, writing a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader.
  • FIG. 2 is a schematic flowchart of another embodiment of a software version upgrade method according to the present invention.
  • the upgrade method further includes: Step S100: loading other files set to be upgraded to a memory chip, where The other file is an upgrade file other than the second bootloader.
  • Step S400a writing the other file to the FLASH chip to replace the corresponding old version file.
  • the kernel and file system of the OS of the new version of the upgrade software can be directly written to the FLASH chip without modification, to replace the corresponding sintered version software.
  • the software version upgrade method includes: Step S100A: Establish a mapping table, and establish a one-to-one correspondence between the peripheral device of the single board and the peripheral device configuration parameter.
  • the board establishes a peripheral device configuration parameter mapping table, and the peripheral device configuration parameter mapping table establishes a one-to-one correspondence according to the type and size of different peripheral devices of the board and the peripheral device configuration parameters.
  • the type of the peripheral device may be a memory chip
  • the memory chip uses a RAM chip
  • the flash chip uses a Flash chip.
  • the flash chip and the RAM chip use chips of different sizes and different types.
  • the optional flash chip includes a small page 256Mb Nand.
  • the available RAM chips include 1Gb DDR2, 1Gb DDR3, 512Mb DDR2, and 512Mb DDR3.
  • the peripheral chips need to exist at the same time, that is, 8 peripheral chip configuration parameters need to be made to ensure complete compatibility on the hardware when the product is fully operational.
  • the board establishes a mapping table and identifies the type of the peripheral chip on the board, and the matching peripheral chip configuration parameters corresponding to the writing according to different peripheral chips of the board.
  • the embodiment provides a software version upgrade method.
  • Step S200A Verifying whether the check value of the first BootLoader and the check value of the second BootLoader are the same. If they are the same, the verification is successful.
  • the board performs a CRC check on the upgraded version of the software. If the checksum value of the second BootLoader stored in the upgraded version of the memory chip of the board is verified, the checksum of the first BootLoader in the software of the sintered version is the same.
  • the software that upgrades the software to be upgraded is the software that is upgraded, that is, the software is valid, and the verification is successful.
  • the upgraded version software is written to the board's Flash chip. If it is detected that the check value of the second BootLoader in the upgraded version software is different from the check value of the first BootLoader in the sintered version software, it is determined that the upgraded version software is not a single. If the software required for the board, that is, illegal software, the verification fails, the peripheral device configuration parameters of the parameter position of the first BootLoader written to the sintered version software are not allowed to be removed.
  • the embodiment provides a software version upgrade method.
  • Step S400A detecting whether the predetermined location of the first BootLoader and the corresponding parameter location of the second BootLoader are consistent. If the positions are consistent, the test is successful.
  • the BootLoader upgrade software is created, the location information consistency between the sintered version software and the upgraded version software should be maintained.
  • the software is upgraded, the location information is verified. If the first BootLoader in the sintered version software has the parameter location and If the corresponding parameter positions of the second BootLoader in the upgraded version are inconsistent, the combined upgraded version software is not allowed to be written into the Flash chip, and the sintered version software is replaced.
  • the positional relationship includes the starting address and the offset.
  • the location information should remain unchanged, but the usage still needs to be differentiated according to the actual configuration. For example, when reading and writing the Flash chip, the large page should be distinguished. And the small page type is read to a different address. As shown in FIG.
  • the embodiment further provides a single board, where the board includes: a loading module 20, configured to load a second BootLoader that is configured to upgrade the first BootLoader sintered in the FLASH chip to the memory chip;
  • the obtaining module 40 is configured to acquire a peripheral device configuration parameter of the first BootLoader in the FLASH chip, where the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; and the writing module 50 is configured to write to the periphery Setting a device configuration parameter to a corresponding parameter location of the second BootLoader in the memory chip to obtain a second BootLoader including the peripheral device configuration parameter; further configured to write a second BootLoader including the peripheral device configuration parameter to the
  • the Flash chip replaces the first BootLoader and the system uses the "BootLoader+OS (Operating System)" structure, the BootLoader uses the uboot (Universal Boot Loader), and the OS uses the Linux system.
  • the peripheral device may be a memory chip or a flash memory chip.
  • the memory chip uses a RAM chip
  • the flash chip uses a Flash chip, of which Flash The chip and RAM chip will use different sizes and different types of chips.
  • the optional Flash chip includes small page 256Mb Nand Flash and large page 1Gb Nand Flash.
  • the optional RAM chip includes 1Gb DDR2 (Double Data Rate 2, four Double data rate with dynamic random access memory), 1Gb DDR3 (Double Data Rate 3, 8 times data rate synchronous dynamic random access memory), 512Mb DDR2, 512Mb DDR3, software writing method including Flash chip burning mode And the board upgrade mode, for the overall product of the dual-entry system, if only the storage space is different, and the overall provided function items are unchanged, then the product model will not change when naming, and the Flash chip and the hardware are guaranteed.
  • 1Gb DDR2 Double Data Rate 2, four Double data rate with dynamic random access memory
  • 1Gb DDR3 Double Data Rate 3, 8 times data rate synchronous dynamic random access memory
  • 512Mb DDR2, 512Mb DDR3 software writing method including Flash chip burning mode
  • the board upgrade mode for the overall product of the dual-entry system, if only the storage space is different, and the overall provided function items are unchanged, then the product model will not change when naming, and the Flash chip and
  • RAM chip size and model compatibility if you follow the existing software writing method, in software, you need to be compatible with the 8 types of peripheral chips and two different software writing methods, you need 8 sintered version software, 8 copies
  • version upgrade software you need to make at least 16 files to ensure that the product is fully operational. In this example, as long as 8 sintered version software and 1 upgrade version software are produced, the product can be fully operated. Because the sintered version software is already written when the production line is mass-produced, only one is needed in the later product maintenance. The software upgrade is compatible with different peripheral devices.
  • the board When the sintered version software is programmed, according to the configuration of the peripheral devices on the board, the board writes the first BootLoader of the corresponding version of the peripheral device and the kernel and file system of the OS into the address of the Flash chip, the core of the OS. And the file system can be directly written without modification.
  • the peripheral device configuration parameters are placed in the predetermined position of the first BootLoader, and the board can start the sintered version software normally.
  • the board When the software is upgraded and maintained, the board is connected to the network.
  • the second BootLoader of the upgraded version is downloaded to the board through the network.
  • the board has its own Linux operating system, and the board loads the module 20. The loading is set to upgrade the flash in the FLASH chip.
  • a BootLoader's second BootLoader to the memory chip The board obtaining module 40 acquires peripheral device configuration parameters of the first BootLoader stored in a predetermined position of the FLASH chip, and the surrounding device configuration parameters and the current peripheral devices on the board can be matched.
  • the board saves the upgraded version software to the memory of the board.
  • the upgrade version software is not filled with any parameters in the corresponding parameter position.
  • the board write module 50 will be peripheral.
  • the device configuration parameter is written to the corresponding parameter location of the second BootLoader of the upgraded version software to obtain a second BootL 0a der including the peripheral device configuration parameter.
  • the board write module 50 writes the second BootLoader that is temporarily stored in the board memory chip and includes the peripheral device configuration parameters, and writes the board to the board flash chip. At this time, the peripheral device configuration parameters match the current board peripheral devices.
  • the board can start the new version of the upgrade software normally. That is, in the upgrade and maintenance of the later software, only one upgrade software is needed to complete the compatibility of different peripheral devices.
  • the board provided in this embodiment includes: a loading module 20, configured to load a second BootLoader that is set to upgrade the first BootLoader sintered in the FLASH chip to the memory chip; and acquire the module 40, set to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; the writing module 50 is configured to write the peripheral device configuration parameter into the memory chip Corresponding parameter position of the second BootLoader, obtaining a second BootLoader including the peripheral device configuration parameter; further configured to write a second BootLoader including the peripheral device configuration parameter to the Flash chip, to replace the The first BootLoader.
  • a loading module 20 configured to load a second BootLoader that is set to upgrade the first BootLoader sintered in the FLASH chip to the memory chip
  • acquire the module 40 set to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, wherein the peripheral
  • the board in this embodiment further includes a mapping module 10, configured to establish a mapping table, and establish a one-to-one correspondence between the peripheral devices of the single board and the peripheral device configuration parameters.
  • the board mapping module 10 establishes a peripheral device configuration parameter mapping table, and the peripheral device configuration parameter mapping table establishes a one-to-one correspondence according to the type and size of different peripheral devices of the board and the peripheral device configuration parameters.
  • the type of the peripheral device may be a memory.
  • the chip may also be a flash memory chip.
  • the memory chip uses a RAM chip
  • the flash chip uses a flash chip, wherein the flash chip and the RAM chip use chips of different sizes and different types, wherein the optional flash chip includes small.
  • Page 256Mb Nand Flash and P large page 1Gb There are 2 types of Nand Flash.
  • the available RAM chips include 1Gb DDR2, 1Gb DDR3, 512Mb DDR2, 512Mb DDR3.
  • Two different types of peripheral chips need to exist at the same time, that is, 8 peripheral chip configuration parameters need to be made to ensure complete compatibility on the hardware when the product is fully operational.
  • the board establishes a mapping table and identifies the type of the peripheral chip on the board, and the matching peripheral chip configuration parameters corresponding to the writing according to different peripheral chips of the board.
  • the board in this embodiment further includes a verification module 30, and verifies whether the check value of the first BootLoader and the check value of the second BootLoader are the same.
  • the board verification module 30 performs a CRC check on the upgraded version software, if the checksum value of the second BootLoader stored in the upgraded version software of the board memory chip is verified, and the first BootLoader in the sintered version software is verified. If the checksum value is the same, the upgraded version of the software is the software to be upgraded. If the software is valid, the verification is successful.
  • the software to be upgraded is written to the board. If the software is detected in the upgraded version. The checksum of the second BootLoader is different from the checksum of the first BootLoader in the software. The upgraded version of the software is not required by the board. If the software is illegal, the verification fails. Peripheral device configuration parameters into the parameter location of the first BootLoader of the sintered version software.
  • the board in this embodiment further includes a detecting module 60, configured to detect whether the predetermined position of the first BootLoader and the corresponding parameter position of the second BootLoader are consistent, and if the positions are consistent, The test was successful.
  • the detection module 60 checks the location information, if the first BootLoader in the sintered version software If the predetermined location and the corresponding parameter location of the second BootLoader in the upgraded version software are inconsistent, the combined upgraded version software is not allowed to be written into the Flash chip, and the sintered version software is replaced.
  • the positional relationship includes the starting address and the offset.
  • the location information should remain unchanged, but the usage still needs to be differentiated according to the actual configuration. For example, when reading and writing the Flash chip, the large page should be distinguished.

Abstract

A software version upgrade method comprises the steps of: loading a second BootLoader used for upgrading a first BootLoader sintered in a FLASH chip to a memory chip (S100); acquiring peripheral component configuration parameters of the first BootLoader in the FLASH chip, wherein the peripheral component configuration parameters are stored in a predetermined position of the FLASH chip (S200); writing the peripheral component configuration parameters into a corresponding parameter position of the second BootLoader in the memory chip to obtain a second BootLoader containing the peripheral component configuration parameters (S300); and writing the second BootLoader containing the peripheral component configuration parameters into the FLASH chip so as to replace the first BootLoader (S400). Further provided is a single board. The technical solution reduces the trouble of software upgrade and maintenance, and realizes cost saving.

Description

软件版本升级方法和单板 技术领域 本发明涉及软件升级和维护领域, 尤其涉及软件版本升级方法和单板。 背景技术 基于嵌入式系统的产品经常会使用多种不同大小或型号等配置不一的外围器件 The present invention relates to the field of software upgrade and maintenance, and in particular, to a software version upgrade method and a board. BACKGROUND OF THE INVENTION Products based on embedded systems often use a variety of peripheral devices of different sizes or models.
(如 RAM/FLASH等)来实现多价格层次以满足不同梯度市场的需求, 对用户应用来 说, 提供的功能项并不改变, 产品型号一般不需要改变。 在 boot (启动) 阶段, CPU 到 BootLoader (引导加载程序) 的某一固定地址读取启动参数及 RAM/FLASH等外围 器件配置参数对其进行初始化, 配置参数由 BootLoader程序提供, 且必须与单板的器 件类型匹配, 否则无法启动。 此时若单纯以产品型号来区分, 在 BootLoader程序中只 保存一份外围器件配置参数, 则独立的产品种类会以指数式增加, 且 BootLoader相互 不兼容, 维护极为不便。 若在 BootLoader程序中针对每一种外围器件的组合保存一份 配置参数, 则 BootLoader体积会逐渐变大, 也不利于以后的升级及维护。 发明内容 本发明的主要目的旨在解决嵌入式系统中基于同一型号不同外围器件的软件版本 升级和维护的问题。 为实现上述目的, 本发明实施例提供一种软件版本升级方法, 应用于单板中, 所 述软件版本升级方法包括以下步骤: 加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第二 BootLoader至内存 芯片; 获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器 件配置参数存储在所述 FLASH芯片的预定位置; 写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader 的对应参数位 置, 得到包含所述外围器件配置参数的第二 BootLoader; 写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换所 述第一 BootLoader 所述升级方法还包括: 加载设置为升级的其他文件至内存芯片, 其中, 所述其他文件为除所述第二 bootloader之外的升级文件; 写入所述其他文件至所述 FLASH芯片, 以替换对应的旧版本文件。 所述加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第二 BootLoader至 内存芯片的步骤之前, 还包括: 建立映射表, 将外围器件和所述外围器件配置参数建立一一对应关系。 优选地, 所述加载设置为升级 FLASH 芯片中烧结的第一 BootLoader 的第二 BootLoader至内存芯片之后还包括 CRC校验步骤,如果校验成功,则执行获取 FLASH 芯片中的第一 BootLoader的外围器件配置参数的步骤, 所述 CRC校验步骤为: 校验所述第一 BootLoader的校验值和所述第二 BootLoader的校验值是否相同,如 果相同, 则校验成功。 优选地,所述写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader的 对应参数位置,得到包含所述外围器件配置参数的第二 BootLoader的步骤之后还包括 检测步骤, 如果校验成功, 则执行写入包含所述外围器件配置参数的第二 BootLoader 至所述 Flash芯片, 以替换所述第一 BootLoader的步骤, 所述检测步骤为: 检测所述第一 BootLoader的该预定位置和所述第二 BootLoader的该对应参数位置 是否一致, 如果位置对应一致, 则检测成功。 为了解决以上的技术问题, 本发明实施例还提供一种单板, 所述单板包括: 加载模块, 设置为加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第二(such as RAM/FLASH, etc.) to achieve multiple price levels to meet the needs of different gradient markets. For user applications, the functional items provided do not change, and the product model generally does not need to be changed. In the boot phase, the CPU is initialized with a fixed address of the BootLoader (boot loader) to read the boot parameters and peripheral device configuration parameters such as RAM/FLASH. The configuration parameters are provided by the BootLoader program and must be associated with the board. The device type matches, otherwise it will not start. At this time, if the product model is simply distinguished, only one peripheral device configuration parameter is saved in the BootLoader program, and the independent product types are exponentially increased, and the BootLoader is incompatible with each other, and the maintenance is extremely inconvenient. If a configuration parameter is saved for each combination of peripheral devices in the BootLoader program, the volume of the BootLoader will gradually become larger, which is not conducive to future upgrades and maintenance. SUMMARY OF THE INVENTION The main object of the present invention is to solve the problem of software version upgrade and maintenance based on different peripheral devices of the same model in an embedded system. To achieve the above objective, the embodiment of the present invention provides a software version upgrade method, which is applied to a board. The software version upgrade method includes the following steps: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to a memory chip; acquiring peripheral device configuration parameters of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; writing the peripheral device configuration parameter to the memory chip Corresponding parameter position of the second BootLoader, obtaining a second BootLoader including the peripheral device configuration parameter; writing a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader The upgrade method further includes: loading other files set to be upgraded to the memory chip, wherein the other files are upgrade files other than the second bootloader; writing the other files to the FLASH chip, Replace the corresponding old version file. Before the step of loading the second BootLoader of the first BootLoader that is sintered in the FLASH chip to the memory chip, the method further includes: establishing a mapping table, and establishing a one-to-one correspondence between the peripheral device and the peripheral device configuration parameter. Preferably, the loading is set to upgrade the second BootLoader of the first BootLoader that is sintered in the FLASH chip to the memory chip, and further includes a CRC check step. If the verification is successful, executing the peripheral device that acquires the first BootLoader in the FLASH chip. The step of configuring the parameter, the CRC checking step is: verifying whether the check value of the first BootLoader and the check value of the second BootLoader are the same, and if they are the same, the verification is successful. Preferably, the step of writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip to obtain a second BootLoader including the peripheral device configuration parameter further includes a detecting step if the school If the verification succeeds, the step of writing the second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader is performed, and the detecting step is: detecting the predetermined position of the first BootLoader Whether the corresponding parameter position of the second BootLoader is consistent, and if the positions are consistent, the detection is successful. In order to solve the above technical problem, the embodiment of the present invention further provides a board, where the board includes: a loading module, configured to load a second set to upgrade the first BootLoader sintered in the FLASH chip.
BootLoader至内存芯片; 获取模块, 设置为获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器件配置参数存储在所述 FLASH芯片的预定位置; 写入模块, 设置为写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader的对应参数位置, 得到包含所述外围器件配置参数的第二 BootLoader; 还 设置为写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换 所述第一 BootLoader 所述单板, 加载模块, 还包括写入模块, 设置为加载设置为升级的其他文件至内存芯片, 其 中, 所述其他文件为除所述第二 bootloader之外的升级文件; 写入模块, 还设置为写入所述其他文件至所述 FLASH芯片, 以替换对应的旧版 本文件。 所述单板还包括映射模块, 设置为建立映射表, 将外围器件和所述外围器件配置 参数建立一一对应关系。 所述单板还包括校验模块, 校验所述第一 BootLoader 的校验值和所述第二 BootLoader的校验值是否相同, 如果相同, 则校验成功。 所述单板还包括检测模块, 检测所述第一 BootLoader 的该预定位置和所述第二The BootLoader to the memory chip; the acquiring module is configured to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; the writing module is set to be written The peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second BootLoader including the peripheral device configuration parameter; and further configured to write a second BootLoader including the peripheral device configuration parameter To the flash chip to replace the first BootLoader The board, the loading module, further includes a writing module, configured to load other files set to be upgraded to the memory chip, where the other files are upgrade files other than the second bootloader; It is also arranged to write the other file to the FLASH chip to replace the corresponding old version file. The board further includes a mapping module, configured to establish a mapping table, and establish a one-to-one correspondence between the peripheral device and the peripheral device configuration parameters. The board further includes a check module, and checks whether the check value of the first BootLoader and the check value of the second BootLoader are the same. If they are the same, the check succeeds. The board further includes a detecting module that detects the predetermined position and the second of the first BootLoader
BootLoader的该对应参数位置是否一致, 如果位置对应一致, 则检测成功。 本发明实施例提供的软件版本升级方法包括以下步骤: 加载设置为升级 FLASH 芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片; 获取 FLASH芯片中的 第一 BootLoader 的外围器件配置参数, 其中, 所述外围器件配置参数存储在所述 FLASH 芯片的预定位置; 写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader的对应参数位置, 得到包含所述外围器件配置参数的第二 BootLoader; 写 入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换所述第一 BootLoader 本发明实施例提供的软件版本升级方法所能实现的有益效果为在后续升 级同一型号产品的软件时, 不必根据外围器件的不同, 升级不同类型版本软件, 只需 保留一份配置参数和一个升级版本软件,就能解决软件升级时和外围器件兼容的问题, 从而减少了软件升级和维护的麻烦, 实现了成本上的节约。 附图说明 图 1为本发明软件版本升级方法第一实施例的流程示意图; 图 2为本发明软件版本升级方法第二实施例的流程示意图; 图 3为本发明软件版本升级方法第三实施例的流程示意图; 图 4为本发明单板一实施例的结构示意图。 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 具体实施方式 应当理解,此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。 本发明提供一种软件版本升级方法, 参照图 1, 图 1为本发明软件版本升级方法 第一实施例的流程示意图, 在第一实施例中, 该软件版本升级方法包括: 步骤 S100、 加载设置为升级 FLASH 芯片中烧结的第一 BootLoader 的第二 BootLoader至内存芯片。 兼入式系统采用" BootLoader+OS ( Operating System,操作系统)"结构, BootLoader 采用 uboot (Universal Boot Loader, 通用 bootloader引导程序), OS采用 Linux系统。 BootLoader软件制作时, 要根据不同的外围器件的类型和大小以及软件升级方式的不 同制作多份 BootLoader升级软件, 比如说, 外围器件可以是内存芯片, 也可以是闪存 芯片,在本实施例中, 内存芯片采用 RAM芯片, 闪存芯片采用 Flash芯片,其中 Flash 芯片和 RAM芯片会采用不同大小不同型号的芯片, 其中, 可选用的 Flash芯片包括 small page 256Mb Nand Flash和 large page 1Gb Nand Flash两种, 可选用的 RAM芯片 包括 1Gb DDR2 (Double Data Rate 2, 四倍资料率同歩动态随机存取内存)、 1Gb DDR3 (Double Data Rate 3 , 八倍资料率同步动态随机存取内存)、 512Mb DDR2、 512Mb DDR3四种,软件写入方式包括 Flash芯片烧录方式和单板升级方式,对于兼入式系统 的整体产品来说, 如果只是存储的空间不同, 而总体提供的功能项不变, 那么产品在 命名时型号将不改变, 在硬件方面保证 Flash芯片及 RAM芯片大小和型号的兼容, 如 果按照现有的软件写入方式, 在软件方面, 需要兼容外围芯片的 8种类型大小和两种 不同的软件写入方式, 需要 8份烧结版本软件、 8份版本升级软件, 则至少需要制作 16份文件才能保证产品完全运行。 而在本实例中, 只要制作 8份烧结版本软件、 1份 升级版本软件即可保证产品完全运行, 因为烧结版本软件在产线量产时就已经写入, 则在后期产品维护中只需要一份升级软件就可以实现不同外围器件的软件版本兼容。 当烧结版本软件烧录时, 根据单板上外围器件的配置, 单板将对应外围器件的烧 结版本软件的第一 BootLoader以及 OS的内核和文件系统写入 Flash芯片的 0地址中, OS 的内核及文件系统可不做修改直接写入, 其中, 外围器件配置参数放置在第一 BootLoader的预定位置, 此时单板可以正常启动烧结版本软件。 软件升级维护时, 单 板连接网络, 升级版本软件的第二 BootLoader通过网络下载到单板上, 单板有自己的 linux操作系统, 单板加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片。 步骤 S200、 获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器件配置参数存储在所述 FLASH芯片的预定位置。 单板获取存储在 FLASH芯片的预定位置的第一 BootLoader的外围器件配置参数, 此外围器件配置参数和单板上当前的外围器件能够进行匹配。 步骤 S300、写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader的对 应参数位置, 得到包含所述外围器件配置参数的第二 BootL0ader。 进行软件升级维护时, 单板将升级版本软件保存于单板的内存, 其中, 升级版本 软件在制作时, 在对应参数位置未填加任何参数, 在升级前, 单板将外围器件配置参 数写入升级版本软件的第二 BootLoader的对应参数位置,得到包含所述外围器件配置 参数的第二 BootLoader。 步骤 S400、写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换所述第一 BootLoader。 单板将临时保存于单板内存芯片内的包含所述外围器件配置参数的第二Whether the corresponding parameter positions of the BootLoader are consistent. If the positions are consistent, the detection is successful. The software version upgrade method provided by the embodiment of the present invention includes the following steps: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip; acquiring peripheral device configuration parameters of the first BootLoader in the FLASH chip, where The peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second parameter including the peripheral device configuration parameter The second bootloader that includes the peripheral device configuration parameter is written to the flash chip to replace the first bootloader. The software version upgrade method provided by the embodiment of the present invention can achieve the beneficial effect that the same model is upgraded subsequently. When the software of the product is upgraded, it is not necessary to upgrade the software of different types according to the peripheral devices. Only one configuration parameter and one upgrade version of the software can be reserved to solve the problem of compatibility with the peripheral devices during the software upgrade, thereby reducing the software upgrade and Maintenance troubles, realized costs Savings. 1 is a schematic flowchart of a first embodiment of a software version upgrade method according to the present invention; FIG. 2 is a schematic flowchart of a second embodiment of a software version upgrade method according to the present invention; FIG. 4 is a schematic structural view of an embodiment of a single board according to the present invention. The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings. The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The present invention provides a software version upgrade method. Referring to FIG. 1, FIG. 1 is a schematic flowchart of a first embodiment of a software version upgrade method according to the present invention. In the first embodiment, the software version upgrade method includes: Step S100, loading settings To upgrade the second BootLoader of the first BootLoader sintered in the FLASH chip to the memory chip. The dual-use system adopts the "bootLoader+OS (Operating System)" structure, the BootLoader uses the uboot (Universal Boot Loader), and the OS uses the Linux system. When the BootLoader software is created, multiple BootLoader upgrade softwares may be created according to different types and sizes of peripheral devices and software upgrade methods. For example, the peripheral device may be a memory chip or a flash memory chip. In this embodiment, The memory chip uses a RAM chip, and the flash chip uses a Flash chip. The Flash chip and the RAM chip use chips of different sizes and different types. Among them, the optional Flash chip includes small page 256Mb Nand Flash and large page 1Gb Nand Flash. The selected RAM chip includes 1Gb DDR2 (Double Data Rate 2, four times data rate dynamic random access memory), 1Gb DDR3 (Double Data Rate 3, eight times data rate synchronous dynamic random access memory), 512Mb DDR2, 512Mb Four kinds of DDR3, the software writing method includes the flash chip burning mode and the single board upgrade mode. For the whole product of the dual-entry system, if the storage space is different, and the overall provided functional items are unchanged, then the product is in the The model will not change when naming, guarantee the flash chip and RAM chip in hardware. Small and model compatible, if you follow the existing software writing method, in terms of software, you need to be compatible with 8 types of peripheral chips and two different software writing methods, 8 sintering version software, 8 version upgrades are required. Software, at least 16 files need to be produced to ensure that the product is fully operational. In this example, as long as 8 sintered version software and 1 upgrade version software are produced, the product can be fully operated. Because the sintered version software is already written when the production line is mass-produced, only one is needed in the later product maintenance. The software upgrade is compatible with different peripheral devices. When the sintered version software is programmed, according to the configuration of the peripheral devices on the board, the board writes the first BootLoader of the corresponding version of the peripheral device and the kernel and file system of the OS into the address of the Flash chip, the core of the OS. And the file system can be directly written without modification. The peripheral device configuration parameters are placed in the predetermined position of the first BootLoader, and the board can start the sintered version software normally. When the software is upgraded and maintained, the board is connected to the network. The second BootLoader of the upgraded version is downloaded to the board through the network. The board has its own. In the Linux operating system, the board is loaded to upgrade the second BootLoader of the first BootLoader that is sintered in the FLASH chip to the memory chip. Step S200: Acquire peripheral device configuration parameters of the first BootLoader in the FLASH chip, where the peripheral device configuration parameters are stored in a predetermined position of the FLASH chip. The board obtains the peripheral device configuration parameters of the first BootLoader stored in the predetermined position of the FLASH chip, and the surrounding device configuration parameters and the current peripheral devices on the board can be matched. Step S300, writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second BootL 0a der including the peripheral device configuration parameter. During software upgrade and maintenance, the board saves the upgraded version software to the memory of the board. The upgrade version software does not add any parameters to the corresponding parameter position during the production. Before the upgrade, the board writes the peripheral device configuration parameters. Enter the corresponding parameter location of the second BootLoader of the upgraded version software to obtain a second BootLoader that includes the peripheral device configuration parameters. Step S400: Write a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader. The board temporarily stores the second configuration parameter of the peripheral device in the memory chip of the single board.
BootLoader, 写入单板 Flash芯片, 此时, 外围器件配置参数与当前的单板外围器件匹 配, 单板可以正常启动新版本升级软件, 即后期软件的升级维护中, 只需要一个升级 软件即可完成不同外围器件的兼容。 本实施例软件版本升级方法包括以下步骤: 步骤 S100、 加载设置为升级 FLASH 芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片;步骤 S200、获取 FLASH 芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器件配置参数存储在 所述 FLASH芯片的预定位置; 步骤 S300、 写入所述外围器件配置参数至内存芯片中 的所述第二 BootLoader 的对应参数位置, 得到包含所述外围器件配置参数的第二 BootLoader; 步骤 S400、 写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换所述第一 BootLoader。本实施例提供的软件版本升级方法所能实现 的有益效果为在后续升级同一型号产品的软件时, 不必根据外围器件的不同, 升级不 同类型版本软件, 只需保留一份配置参数和一个升级版本软件, 就能解决软件升级时 和外围器件兼容的问题, 从而减少了软件升级和维护的麻烦, 实现了成本上的节约。 参照图 2, 图 2为本发明软件版本升级方法另一实施例的流程示意图, 在本实施 例中, 所述升级方法还包括: 步骤 S100a、 加载设置为升级的其他文件至内存芯片, 其中, 所述其他文件为除 所述第二 bootloader之外的升级文件。 单板在升级软件时, 还加载设置为升级的其他文件至内存芯片, 其中, 所述其他 文件包括 OS的内核和文件系统。 步骤 S400a、 写入所述其他文件至所述 FLASH芯片, 以替换对应的旧版本文件。 新版本升级软件的 OS的内核及文件系统可不做修改直接写入 FLASH芯片,以替 换对应的烧结版本软件。 所述软件版本升级方法, 在步骤 S100之前包括: 步骤 S100A、 建立映射表, 将所述单板的外围器件和所述外围器件配置参数建立 一一对应关系。 单板建立外围器件配置参数映射表, 外围器件配置参数映射表根据单板不同外围 器件的类型和大小和外围器件配置参数建立一一对应关系, 比如说, 外围器件的类型 可以是内存芯片, 也可以是闪存芯片, 在本实施例中, 内存芯片采用 RAM芯片, 闪 存芯片采用 Flash芯片,其中 Flash芯片和 RAM芯片会采用不同大小不同型号的芯片, 其中, 可选用的 Flash芯片包括 small page 256Mb Nand Flash和 large page 1Gb Nand Flash共 2种,可选用的 RAM芯片包括 1Gb DDR2、 1Gb DDR3、 512Mb DDR2、 512Mb DDR3共 4种, 在对应外围芯片配置参数的设计方面, 根据组合关系, 两种不同类型 的外围芯片需要同时存在, 即需要制作 8份外围芯片配置参数才能保证产品完全运行 时硬件上的完全兼容。 单板建立映射表, 并识别单板上外围芯片的类型, 根据单板不 同的外围芯片对应写入的匹配的外围芯片配置参数。 进一步参见图 3,本实施例提供一种软件版本升级方法,在步骤 S200之前还包括: 步骤 S200A、校验所述第一 BootLoader的校验值和所述第二 BootLoader的校验值 是否相同, 如果相同, 则校验成功。 单板对升级版本软件进行 CRC校验,如果校验到存储在单板内存芯片的升级版本 软件中的所述第二 BootLoader的校验值和烧结版本软件中的第一 BootLoader的校验值 相同, 则识别升级版本软件为单板要升级的软件, 即为合法软件, 则校验成功, 将待 升级版本软件写入单板 Flash芯片;如果检测到升级版本软件中的所述第二 BootLoader 的校验值和烧结版本软件中的第一 BootLoader的校验值不相同, 即认定升级版本软件 不是单板所需要的软件, 即为非法软件, 则校验失败, 不允许去除写入所述烧结版本 软件的第一 BootLoader的参数位置的外围器件配置参数。 进一步参见图 3,本实施例提供一种软件版本升级方法,在步骤 S400之前还包括: 步骤 S400A、检测所述第一 BootLoader的该预定位置和所述第二 BootLoader的该 对应参数位置是否一致, 如果位置对应一致, 则检测成功。 制作 BootLoader升级软件时,应保持烧结版本软件和升级版本软件的位置信息一 致性, 当升级软件时, 会对位置信息进行校验, 若所述烧结版本软件中的第一 BootLoader的该参数位置和所述升级版本软件中的第二 BootLoader的该对应参数位置 不一致, 则不允许将将组合后的升级版本软件写入所述 Flash芯片, 替换所述烧结版 本软件。 其中位置关系包括起始地址及偏移量等。 为了兼容此校验, 以及其他的不能 修改的地方, 制作升级版本软件时, 这些位置信息应保持不变, 但使用时仍需按实际 配置情况加以区别, 比如读写 Flash芯片时应区分 large page及 small page类型到不同 地址读取。 如图 4所示, 本实施例还提供一种单板, 其中, 所述单板包括: 加载模块 20, 设置为加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第 二 BootLoader至内存芯片; 获取模块 40,设置为获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器件配置参数存储在所述 FLASH芯片的预定位置; 写入模块 50, 设置为写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader的对应参数位置, 得到包含所述外围器件配置参数的第二 BootLoader; 还 设置为写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换 所述第一 BootLoader 兼入式系统采用" BootLoader+OS (Operating System,操作系统)"结构, BootLoader 采用 uboot (Universal Boot Loader, 通用 bootloader引导程序), OS采用 Linux系统。 BootLoader软件制作时, 要根据不同的外围器件的类型和大小以及软件升级方式的不 同制作多份 BootLoader升级软件, 比如说, 外围器件可以是内存芯片, 也可以是闪存 芯片,在本实施例中, 内存芯片采用 RAM芯片, 闪存芯片采用 Flash芯片,其中 Flash 芯片和 RAM芯片会采用不同大小不同型号的芯片, 其中, 可选用的 Flash芯片包括 small page 256Mb Nand Flash和 large page 1Gb Nand Flash两种, 可选用的 RAM芯片 包括 1Gb DDR2 (Double Data Rate 2, 四倍资料率同歩动态随机存取内存)、 1Gb DDR3 (Double Data Rate 3 , 八倍资料率同步动态随机存取内存)、 512Mb DDR2、 512Mb DDR3四种,软件写入方式包括 Flash芯片烧录方式和单板升级方式,对于兼入式系统 的整体产品来说, 如果只是存储的空间不同, 而总体提供的功能项不变, 那么产品在 命名时型号将不改变, 在硬件方面保证 Flash芯片及 RAM芯片大小和型号的兼容, 如 果按照现有的软件写入方式, 在软件方面, 需要兼容外围芯片的 8种类型大小和两种 不同的软件写入方式, 需要 8份烧结版本软件、 8份版本升级软件, 则至少需要制作 16份文件才能保证产品完全运行。 而在本实例中, 只要制作 8份烧结版本软件、 1份 升级版本软件即可保证产品完全运行, 因为烧结版本软件在产线量产时就已经写入, 则在后期产品维护中只需要一份升级软件就可以实现不同外围器件的软件版本兼容。 当烧结版本软件烧录时, 根据单板上外围器件的配置, 单板将对应外围器件的烧 结版本软件的第一 BootLoader以及 OS的内核和文件系统写入 Flash芯片的 0地址中, OS 的内核及文件系统可不做修改直接写入, 其中, 外围器件配置参数放置在第一 BootLoader的预定位置, 此时单板可以正常启动烧结版本软件。 软件升级维护时, 单 板连接网络, 升级版本软件的第二 BootLoader通过网络下载到单板上, 单板有自己的 linux 操作系统, 单板加载模块 20, 加载设置为升级 FLASH 芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片。 单板获取模块 40, 获取存储在 FLASH芯片的预定位置的第一 BootLoader的外围 器件配置参数, 此外围器件配置参数和单板上当前的外围器件能够进行匹配。 进行软件升级维护时, 单板将升级版本软件保存于单板的内存, 其中, 升级版本 软件在制作时, 在对应参数位置未填加任何参数, 在升级前, 单板写入模块 50将外围 器件配置参数写入升级版本软件的第二 BootLoader的对应参数位置,得到包含所述外 围器件配置参数的第二 BootL0ader。 单板写入模块 50 将临时保存于单板内存芯片内的包含所述外围器件配置参数的 第二 BootLoader, 写入单板 Flash芯片, 此时, 外围器件配置参数与当前的单板外围 器件匹配, 单板可以正常启动新版本升级软件, 即后期软件的升级维护中, 只需要一 个升级软件即可完成不同外围器件的兼容。 本实施例提供的单板包括: 加载模块 20, 设置为加载设置为升级 FLASH芯片中 烧结的第一 BootLoader 的第二 BootLoader至内存芯片; 获取模块 40, 设置为获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述外围器件配置参 数存储在所述 FLASH芯片的预定位置; 写入模块 50, 设置为写入所述外围器件配置 参数至内存芯片中的所述第二 BootLoader的对应参数位置,得到包含所述外围器件配 置参数的第二 BootLoader ; 还设置为写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以替换所述第一 BootLoader。 本实施例所能实现的有 益效果为在后续升级同一型号产品的软件时, 不必根据外围器件的不同, 升级不同类 型版本软件, 只需保留一份配置参数和一个升级版本软件, 就能解决软件升级时和外 围器件兼容的问题, 从而减少了软件升级和维护的麻烦, 实现了成本上的节约。 进一步参见图 4, 本实施例所述单板还包括映射模块 10, 设置为建立映射表, 将 所述单板的外围器件和所述外围器件配置参数建立一一对应关系。 单板映射模块 10建立外围器件配置参数映射表,外围器件配置参数映射表根据单 板不同外围器件的类型和大小和外围器件配置参数建立一一对应关系, 比如说, 外围 器件的类型可以是内存芯片, 也可以是闪存芯片, 在本实施例中, 内存芯片采用 RAM 芯片, 闪存芯片采用 Flash芯片, 其中 Flash芯片和 RAM芯片会采用不同大小不同型 号的芯片, 其中, 可选用的 Flash芯片包括 small page 256Mb Nand Flash禾 P large page 1Gb Nand Flash共 2种,可选用的 RAM芯片包括 1Gb DDR2、 1Gb DDR3、 512Mb DDR2、 512Mb DDR3共 4种, 在对应外围芯片配置参数的设计方面, 根据组合关系, 两种不 同类型的外围芯片需要同时存在, 即需要制作 8份外围芯片配置参数才能保证产品完 全运行时硬件上的完全兼容。 单板建立映射表, 并识别单板上外围芯片的类型, 根据 单板不同的外围芯片对应写入的匹配的外围芯片配置参数。 进一步参见图 4,本实施例所述单板还包括校验模块 30,校验所述第一 BootLoader 的校验值和所述第二 BootLoader的校验值是否相同, 如果相同, 则校验成功。 单板校验模块 30对升级版本软件进行 CRC校验, 如果校验到存储在单板内存芯 片的升级版本软件中的所述第二 BootLoader 的校验值和烧结版本软件中的第一 BootLoader的校验值相同,则识别升级版本软件为单板要升级的软件, 即为合法软件, 则校验成功, 将待升级版本软件写入单板 Flash芯片; 如果检测到升级版本软件中的 所述第二 BootLoader的校验值和烧结版本软件中的第一 BootLoader的校验值不相同, 即认定升级版本软件不是单板所需要的软件, 即为非法软件, 则校验失败, 不允许去 除写入所述烧结版本软件的第一 BootLoader的参数位置的外围器件配置参数。 进一步参见图 4, 本实施例所述单板还包括检测模块 60, 设置为检测所述第一 BootLoader的该预定位置和所述第二 BootLoader的该对应参数位置是否一致,如果位 置对应一致, 则检测成功。 制作 BootLoader升级软件时,应保持烧结版本软件和升级版本软件的位置信息一 致性, 当升级软件时, 检测模块 60会对位置信息进行校验, 若所述烧结版本软件中的 第一 BootLoader的该预定位置和所述升级版本软件中的第二 BootLoader的该对应参数 位置不一致, 则不允许将将组合后的升级版本软件写入所述 Flash芯片, 替换所述烧 结版本软件。 其中位置关系包括起始地址及偏移量等。 为了兼容此校验, 以及其他的 不能修改的地方, 制作升级版本软件时, 这些位置信息应保持不变, 但使用时仍需按 实际配置情况加以区别, 比如读写 Flash芯片时应区分 large page及 small page类型到 不同地址读取。 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发 明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在其他相关 的技术领域, 均同理包括在本发明的专利保护范围内。 工业实用性 如上所述, 本发明实施例提供的一种软件版本升级方法和单板, 具有以下有益效 果: 在后续升级同一型号产品的软件时, 不必根据外围器件的不同, 升级不同类型版 本软件, 只需保留一份配置参数和一个升级版本软件, 就能解决软件升级时和外围器 件兼容的问题, 从而减少了软件升级和维护的麻烦, 实现了成本上的节约。 The BootLoader is written to the flash chip of the board. At this time, the peripheral device configuration parameters match the current peripheral devices of the board. The board can start the new version of the upgrade software normally. In the upgrade and maintenance of the software, only one upgrade software is required. Completion of compatibility with different peripheral devices. The software version upgrade method of the embodiment includes the following steps: Step S100: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip; Step S200: Acquire a peripheral device configuration parameter of the first BootLoader in the FLASH chip The peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; step S300, writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain the peripheral a second BootLoader of the device configuration parameter; Step S400, writing a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader. The software version upgrade method provided by this embodiment can achieve the beneficial effect that when upgrading the software of the same model, it is not necessary to upgrade different types of software according to different peripheral devices, and only one configuration parameter and one upgrade version are reserved. The software can solve the problem of compatibility with peripheral devices during software upgrade, thereby reducing the trouble of software upgrade and maintenance, and achieving cost savings. Referring to FIG. 2, FIG. 2 is a schematic flowchart of another embodiment of a software version upgrade method according to the present invention. In this embodiment, the upgrade method further includes: Step S100: loading other files set to be upgraded to a memory chip, where The other file is an upgrade file other than the second bootloader. When the software is upgraded, the board also loads other files set to be upgraded to the memory chip, where the other files include the kernel and file system of the OS. Step S400a, writing the other file to the FLASH chip to replace the corresponding old version file. The kernel and file system of the OS of the new version of the upgrade software can be directly written to the FLASH chip without modification, to replace the corresponding sintered version software. The software version upgrade method includes: Step S100A: Establish a mapping table, and establish a one-to-one correspondence between the peripheral device of the single board and the peripheral device configuration parameter. The board establishes a peripheral device configuration parameter mapping table, and the peripheral device configuration parameter mapping table establishes a one-to-one correspondence according to the type and size of different peripheral devices of the board and the peripheral device configuration parameters. For example, the type of the peripheral device may be a memory chip, In the embodiment, the memory chip uses a RAM chip, and the flash chip uses a Flash chip. The flash chip and the RAM chip use chips of different sizes and different types. Among them, the optional flash chip includes a small page 256Mb Nand. There are two types of Flash and large page 1Gb Nand Flash. The available RAM chips include 1Gb DDR2, 1Gb DDR3, 512Mb DDR2, and 512Mb DDR3. In terms of the design of the corresponding peripheral chip configuration parameters, according to the combination relationship, two different types. The peripheral chips need to exist at the same time, that is, 8 peripheral chip configuration parameters need to be made to ensure complete compatibility on the hardware when the product is fully operational. The board establishes a mapping table and identifies the type of the peripheral chip on the board, and the matching peripheral chip configuration parameters corresponding to the writing according to different peripheral chips of the board. With reference to FIG. 3, the embodiment provides a software version upgrade method. Before the step S200, the method further includes: Step S200A: Verifying whether the check value of the first BootLoader and the check value of the second BootLoader are the same. If they are the same, the verification is successful. The board performs a CRC check on the upgraded version of the software. If the checksum value of the second BootLoader stored in the upgraded version of the memory chip of the board is verified, the checksum of the first BootLoader in the software of the sintered version is the same. , the software that upgrades the software to be upgraded is the software that is upgraded, that is, the software is valid, and the verification is successful. The upgraded version software is written to the board's Flash chip. If it is detected that the check value of the second BootLoader in the upgraded version software is different from the check value of the first BootLoader in the sintered version software, it is determined that the upgraded version software is not a single. If the software required for the board, that is, illegal software, the verification fails, the peripheral device configuration parameters of the parameter position of the first BootLoader written to the sintered version software are not allowed to be removed. With reference to FIG. 3, the embodiment provides a software version upgrade method. Before the step S400, the method further includes: Step S400A: detecting whether the predetermined location of the first BootLoader and the corresponding parameter location of the second BootLoader are consistent. If the positions are consistent, the test is successful. When the BootLoader upgrade software is created, the location information consistency between the sintered version software and the upgraded version software should be maintained. When the software is upgraded, the location information is verified. If the first BootLoader in the sintered version software has the parameter location and If the corresponding parameter positions of the second BootLoader in the upgraded version are inconsistent, the combined upgraded version software is not allowed to be written into the Flash chip, and the sintered version software is replaced. The positional relationship includes the starting address and the offset. In order to be compatible with this verification, and other areas that cannot be modified, when the upgraded version of the software is produced, the location information should remain unchanged, but the usage still needs to be differentiated according to the actual configuration. For example, when reading and writing the Flash chip, the large page should be distinguished. And the small page type is read to a different address. As shown in FIG. 4, the embodiment further provides a single board, where the board includes: a loading module 20, configured to load a second BootLoader that is configured to upgrade the first BootLoader sintered in the FLASH chip to the memory chip; The obtaining module 40 is configured to acquire a peripheral device configuration parameter of the first BootLoader in the FLASH chip, where the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; and the writing module 50 is configured to write to the periphery Setting a device configuration parameter to a corresponding parameter location of the second BootLoader in the memory chip to obtain a second BootLoader including the peripheral device configuration parameter; further configured to write a second BootLoader including the peripheral device configuration parameter to the The Flash chip replaces the first BootLoader and the system uses the "BootLoader+OS (Operating System)" structure, the BootLoader uses the uboot (Universal Boot Loader), and the OS uses the Linux system. When the BootLoader software is created, multiple BootLoader upgrade softwares may be created according to different types and sizes of peripheral devices and software upgrade methods. For example, the peripheral device may be a memory chip or a flash memory chip. In this embodiment, The memory chip uses a RAM chip, and the flash chip uses a Flash chip, of which Flash The chip and RAM chip will use different sizes and different types of chips. Among them, the optional Flash chip includes small page 256Mb Nand Flash and large page 1Gb Nand Flash. The optional RAM chip includes 1Gb DDR2 (Double Data Rate 2, four Double data rate with dynamic random access memory), 1Gb DDR3 (Double Data Rate 3, 8 times data rate synchronous dynamic random access memory), 512Mb DDR2, 512Mb DDR3, software writing method including Flash chip burning mode And the board upgrade mode, for the overall product of the dual-entry system, if only the storage space is different, and the overall provided function items are unchanged, then the product model will not change when naming, and the Flash chip and the hardware are guaranteed. RAM chip size and model compatibility, if you follow the existing software writing method, in software, you need to be compatible with the 8 types of peripheral chips and two different software writing methods, you need 8 sintered version software, 8 copies For version upgrade software, you need to make at least 16 files to ensure that the product is fully operational. In this example, as long as 8 sintered version software and 1 upgrade version software are produced, the product can be fully operated. Because the sintered version software is already written when the production line is mass-produced, only one is needed in the later product maintenance. The software upgrade is compatible with different peripheral devices. When the sintered version software is programmed, according to the configuration of the peripheral devices on the board, the board writes the first BootLoader of the corresponding version of the peripheral device and the kernel and file system of the OS into the address of the Flash chip, the core of the OS. And the file system can be directly written without modification. The peripheral device configuration parameters are placed in the predetermined position of the first BootLoader, and the board can start the sintered version software normally. When the software is upgraded and maintained, the board is connected to the network. The second BootLoader of the upgraded version is downloaded to the board through the network. The board has its own Linux operating system, and the board loads the module 20. The loading is set to upgrade the flash in the FLASH chip. A BootLoader's second BootLoader to the memory chip. The board obtaining module 40 acquires peripheral device configuration parameters of the first BootLoader stored in a predetermined position of the FLASH chip, and the surrounding device configuration parameters and the current peripheral devices on the board can be matched. During software upgrade and maintenance, the board saves the upgraded version software to the memory of the board. The upgrade version software is not filled with any parameters in the corresponding parameter position. Before the upgrade, the board write module 50 will be peripheral. The device configuration parameter is written to the corresponding parameter location of the second BootLoader of the upgraded version software to obtain a second BootL 0a der including the peripheral device configuration parameter. The board write module 50 writes the second BootLoader that is temporarily stored in the board memory chip and includes the peripheral device configuration parameters, and writes the board to the board flash chip. At this time, the peripheral device configuration parameters match the current board peripheral devices. The board can start the new version of the upgrade software normally. That is, in the upgrade and maintenance of the later software, only one upgrade software is needed to complete the compatibility of different peripheral devices. The board provided in this embodiment includes: a loading module 20, configured to load a second BootLoader that is set to upgrade the first BootLoader sintered in the FLASH chip to the memory chip; and acquire the module 40, set to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, wherein the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip; the writing module 50 is configured to write the peripheral device configuration parameter into the memory chip Corresponding parameter position of the second BootLoader, obtaining a second BootLoader including the peripheral device configuration parameter; further configured to write a second BootLoader including the peripheral device configuration parameter to the Flash chip, to replace the The first BootLoader. The beneficial effect that can be achieved in this embodiment is that when upgrading the software of the same model product, it is not necessary to upgrade different types of software according to different peripheral devices, and only one configuration parameter and one upgrade version software can be retained to solve the software. The problem of compatibility with peripheral devices during upgrades reduces the hassle of software upgrades and maintenance and achieves cost savings. With reference to FIG. 4, the board in this embodiment further includes a mapping module 10, configured to establish a mapping table, and establish a one-to-one correspondence between the peripheral devices of the single board and the peripheral device configuration parameters. The board mapping module 10 establishes a peripheral device configuration parameter mapping table, and the peripheral device configuration parameter mapping table establishes a one-to-one correspondence according to the type and size of different peripheral devices of the board and the peripheral device configuration parameters. For example, the type of the peripheral device may be a memory. The chip may also be a flash memory chip. In this embodiment, the memory chip uses a RAM chip, and the flash chip uses a flash chip, wherein the flash chip and the RAM chip use chips of different sizes and different types, wherein the optional flash chip includes small. Page 256Mb Nand Flash and P large page 1Gb There are 2 types of Nand Flash. The available RAM chips include 1Gb DDR2, 1Gb DDR3, 512Mb DDR2, 512Mb DDR3. In terms of the design of the corresponding peripheral chip configuration parameters, according to the combination relationship, Two different types of peripheral chips need to exist at the same time, that is, 8 peripheral chip configuration parameters need to be made to ensure complete compatibility on the hardware when the product is fully operational. The board establishes a mapping table and identifies the type of the peripheral chip on the board, and the matching peripheral chip configuration parameters corresponding to the writing according to different peripheral chips of the board. With reference to FIG. 4, the board in this embodiment further includes a verification module 30, and verifies whether the check value of the first BootLoader and the check value of the second BootLoader are the same. . The board verification module 30 performs a CRC check on the upgraded version software, if the checksum value of the second BootLoader stored in the upgraded version software of the board memory chip is verified, and the first BootLoader in the sintered version software is verified. If the checksum value is the same, the upgraded version of the software is the software to be upgraded. If the software is valid, the verification is successful. The software to be upgraded is written to the board. If the software is detected in the upgraded version. The checksum of the second BootLoader is different from the checksum of the first BootLoader in the software. The upgraded version of the software is not required by the board. If the software is illegal, the verification fails. Peripheral device configuration parameters into the parameter location of the first BootLoader of the sintered version software. With reference to FIG. 4, the board in this embodiment further includes a detecting module 60, configured to detect whether the predetermined position of the first BootLoader and the corresponding parameter position of the second BootLoader are consistent, and if the positions are consistent, The test was successful. When the BootLoader upgrade software is created, the location information consistency between the sintered version software and the upgraded version software should be maintained. When the software is upgraded, the detection module 60 checks the location information, if the first BootLoader in the sintered version software If the predetermined location and the corresponding parameter location of the second BootLoader in the upgraded version software are inconsistent, the combined upgraded version software is not allowed to be written into the Flash chip, and the sintered version software is replaced. The positional relationship includes the starting address and the offset. In order to be compatible with this verification, and other areas that cannot be modified, when the upgraded version of the software is produced, the location information should remain unchanged, but the usage still needs to be differentiated according to the actual configuration. For example, when reading and writing the Flash chip, the large page should be distinguished. And the small page type is read to a different address. The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are used directly or indirectly in other related technical fields. The same is included in the scope of patent protection of the present invention. INDUSTRIAL APPLICABILITY As described above, a software version upgrade method and a board provided by an embodiment of the present invention have the following beneficial effects: When upgrading software of the same model product, it is not necessary to upgrade different types of software according to different peripheral devices. By retaining one configuration parameter and one upgraded version of the software, the problem of compatibility with peripheral devices during software upgrades can be solved, thereby reducing the trouble of software upgrade and maintenance, and achieving cost savings.

Claims

权 利 要 求 书 、 一种软件版本升级方法,应用于单板中,所述软件版本升级方法包括以下步骤: 加载设置为升级 FLASH芯片中烧结的第一 BootLoader的第二 BootLoader 至内存芯片; The software version upgrade method includes the following steps: loading a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip;
获取 FLASH芯片中的第一 BootLoader的外围器件配置参数, 其中, 所述 外围器件配置参数存储在所述 FLASH芯片的预定位置;  Obtaining a peripheral device configuration parameter of the first BootLoader in the FLASH chip, where the peripheral device configuration parameter is stored in a predetermined position of the FLASH chip;
写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader 的对应 参数位置, 得到包含所述外围器件配置参数的第二 BootLoader;  Writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a second BootLoader including the peripheral device configuration parameter;
写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash芯片, 以 替换所述第一 BootLoader。 、 如权利要求 1所述的软件版本升级方法, 其中, 所述升级方法还包括: 加载设置为升级的其他文件至内存芯片, 其中, 所述其他文件为除所述第 二 bootloader之外的升级文件; 写入所述其他文件至所述 FLASH芯片, 以替换对应的旧版本文件。 、 如权利要求 1 所述的软件版本升级方法, 其中, 所述加载设置为升级 FLASH 芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片的步骤之前, 还 包括:  Writing a second BootLoader containing the peripheral device configuration parameters to the Flash chip to replace the first BootLoader. The software version upgrade method of claim 1, wherein the upgrading method further comprises: loading other files set to be upgraded to the memory chip, wherein the other files are upgrades other than the second bootloader File; write the other file to the FLASH chip to replace the corresponding old version file. The software version upgrade method of claim 1, wherein the loading is set to upgrade the second BootLoader of the first BootLoader that is sintered in the FLASH chip to the memory chip, and further includes:
建立映射表, 将外围器件和所述外围器件配置参数建立一一对应关系。 、 如权利要求 1 所述的软件版本升级方法, 其中, 所述加载设置为升级 FLASH 芯片中烧结的第一 BootLoader的第二 BootLoader至内存芯片之后还包括 CRC 校验步骤, 如果校验成功, 则执行获取 FLASH芯片中的第一 BootLoader的外 围器件配置参数的步骤, 所述 CRC校验步骤为:  A mapping table is established to establish a one-to-one correspondence between the peripheral device and the peripheral device configuration parameters. The software version upgrade method according to claim 1, wherein the loading is set to upgrade the second BootLoader of the first BootLoader sintered in the FLASH chip to the memory chip, and further includes a CRC check step, if the verification is successful, Performing the step of acquiring peripheral device configuration parameters of the first BootLoader in the FLASH chip, where the CRC check step is:
校验所述第一 BootLoader的校验值和所述第二 BootLoader的校验值是否 相同, 如果相同, 则校验成功。 、 如权利要求 1至 4任一项所述的软件版本升级方法, 其中, 所述写入所述外围 器件配置参数至内存芯片中的所述第二 BootLoader的对应参数位置,得到包含 所述外围器件配置参数的第二 BootLoader的歩骤之后还包括检测步骤,如果校 验成功,则执行写入包含所述外围器件配置参数的第二 BootLoader至所述 Flash 芯片, 以替换所述第一 BootLoader的步骤, 所述检测步骤为: Check whether the check value of the first BootLoader and the check value of the second BootLoader are the same. If they are the same, the check succeeds. The software version upgrade method according to any one of claims 1 to 4, wherein the writing the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain the peripheral The second BootLoader of the device configuration parameter further includes a detection step, if the school If the verification succeeds, the step of writing the second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader is performed, and the detecting step is:
检测所述第一 BootLoader的该预定位置和所述第二 BootLoader的该对应 参数位置是否一致, 如果位置对应一致, 则检测成功。 、 一种单板, 所述单板包括:  And detecting whether the predetermined position of the first BootLoader and the corresponding parameter position of the second BootLoader are consistent. If the locations are consistent, the detection is successful. A board, the board includes:
加载模块, 设置为加载设置为升级 FLASH芯片中烧结的第一 BootLoader 的第二 BootLoader至内存芯片; 获取模块, 设置为获取 FLASH芯片中的第一 BootLoader的外围器件配置 参数, 其中, 所述外围器件配置参数存储在所述 FLASH芯片的预定位置; 写入模块, 设置为写入所述外围器件配置参数至内存芯片中的所述第二 BootLoader 的对应参数位置, 得到包含所述外围器件配置参数的第二 BootLoader; 还设置为写入包含所述外围器件配置参数的第二 BootLoader至所 述 Flash芯片, 以替换所述第一 BootLoader。 、 如权利要求 6所述的单板, 其中, 所述单板, 加载模块, 还包括写入模块, 设置为加载设置为升级的其他文件至内存芯 片, 其中, 所述其他文件为除所述第二 bootloader之外的升级文件; 写入模块, 还设置为写入所述其他文件至所述 FLASH芯片, 以替换对应 的旧版本文件。 、 如权利要求 6所述的单板, 其中, 所述单板还包括映射模块, 设置为建立映射 表, 将外围器件和所述外围器件配置参数建立一一对应关系。 、 如权利要求 6 所述的单板, 其中, 所述单板还包括校验模块, 校验所述第一 BootLoader的校验值和所述第二 BootLoader的校验值是否相同, 如果相同, 则 校验成功。 0、 如权利要求 6至 9任一项所述的烧片器, 其中, 所述单板还包括检测模块, 设 置为检测所述第一 BootLoader的该预定位置和所述第二 BootLoader的该对应 参数位置是否一致, 如果位置对应一致, 则检测成功。  The loading module is configured to load a second BootLoader that is set to upgrade the first BootLoader that is sintered in the FLASH chip to the memory chip; and the acquiring module is configured to obtain a peripheral device configuration parameter of the first BootLoader in the FLASH chip, where the peripheral device The configuration parameter is stored in a predetermined position of the FLASH chip; the writing module is configured to write the peripheral device configuration parameter to a corresponding parameter position of the second BootLoader in the memory chip, to obtain a configuration parameter including the peripheral device The second BootLoader is further configured to write a second BootLoader including the peripheral device configuration parameter to the Flash chip to replace the first BootLoader. The board of claim 6, wherein the board, the loading module further includes a writing module, configured to load other files set to be upgraded to the memory chip, wherein the other files are An upgrade file other than the second bootloader; the write module is further configured to write the other file to the FLASH chip to replace the corresponding old version file. The board of claim 6, wherein the board further comprises a mapping module, configured to establish a mapping table, and establish a one-to-one correspondence between the peripheral device and the peripheral device configuration parameters. The board of claim 6, wherein the board further includes a verification module, and verifying whether the check value of the first BootLoader and the check value of the second BootLoader are the same. The verification is successful. The processor of any one of claims 6 to 9, wherein the board further includes a detecting module configured to detect the predetermined position of the first BootLoader and the corresponding correspondence of the second BootLoader Whether the parameter positions are consistent. If the positions are consistent, the detection is successful.
PCT/CN2014/084680 2014-06-26 2014-08-19 Software version upgrade method and single board WO2015196542A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410295199.5A CN105224352A (en) 2014-06-26 2014-06-26 Method for upgrading software version and veneer
CN201410295199.5 2014-06-26

Publications (1)

Publication Number Publication Date
WO2015196542A1 true WO2015196542A1 (en) 2015-12-30

Family

ID=54936550

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084680 WO2015196542A1 (en) 2014-06-26 2014-08-19 Software version upgrade method and single board

Country Status (2)

Country Link
CN (1) CN105224352A (en)
WO (1) WO2015196542A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951287A (en) * 2017-03-17 2017-07-14 北京润科通用技术有限公司 A kind of collocation method of software, apparatus and system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406954B (en) * 2016-09-22 2019-10-11 杭州迪普科技股份有限公司 A kind of method and device upgrading BootLoader program
CN106528106B (en) * 2016-10-31 2019-09-10 武汉光迅科技股份有限公司 A kind of embedded system start method of adaptive various different Flash chip types
CN108170444B (en) * 2016-12-06 2021-06-29 佛山市顺德区顺达电脑厂有限公司 Firmware update error detection system
CN109918124A (en) * 2019-03-15 2019-06-21 盛科网络(苏州)有限公司 SOC starting early stage is loaded into method and system, the Bootloader mirror configuration method of user configuration

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100470476C (en) * 2006-05-25 2009-03-18 杭州晟元芯片技术有限公司 Program bootstrap method after chip power-on
TWI315850B (en) * 2006-06-08 2009-10-11 Nat Univ Tsing Hua Upgrading device and method using bootloader in wireless sensor networks
CN101840345A (en) * 2010-05-06 2010-09-22 深圳市九洲电器有限公司 Configuration parameter-identifying method, system and embedded equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951287A (en) * 2017-03-17 2017-07-14 北京润科通用技术有限公司 A kind of collocation method of software, apparatus and system

Also Published As

Publication number Publication date
CN105224352A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US9507604B2 (en) Boot method and boot system
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
US9430250B2 (en) Bootability with multiple logical unit numbers
WO2015196542A1 (en) Software version upgrade method and single board
US8560822B1 (en) Pre-boot operating environment
US8539213B2 (en) Manageability extension mechanism for system firmware
TW201519100A (en) System and method for auto-enrolling option ROMs in a UEFI secure boot database
US9110678B1 (en) Automated BIOS enhancements and upgrades
TWI342500B (en) Method and system for automatic installation of a functional unit driver on a host
CN105760191A (en) Embedded system equipment programming mass production method
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
CN108762797A (en) A kind of SSD firmwares online updating method, system and SSD
CN105830021B (en) Renewable integrated circuit radio
CN107567629A (en) Dynamic firmware module loader in credible performing environment container
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
WO2016033539A1 (en) Control for authenticated accesses to a memory device
EP2372565A1 (en) Method for managing USB devices
KR102392474B1 (en) Internet-of-things module
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
KR102116096B1 (en) Multisystem, and method of booting the same
CN116467015B (en) Mirror image generation method, system start verification method and related equipment
US9778936B1 (en) Booting a computing system into a manufacturing mode
TWI486876B (en) Host and method of upgrading connection manager of dongle
CN101114230A (en) Method for reading and electing read only memory program code on self-storing mechanism
TWI743480B (en) Computer system and a booting method for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14896156

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896156

Country of ref document: EP

Kind code of ref document: A1