WO2018014687A1 - Parameter passing method and apparatus, and computer storage medium - Google Patents

Parameter passing method and apparatus, and computer storage medium Download PDF

Info

Publication number
WO2018014687A1
WO2018014687A1 PCT/CN2017/089076 CN2017089076W WO2018014687A1 WO 2018014687 A1 WO2018014687 A1 WO 2018014687A1 CN 2017089076 W CN2017089076 W CN 2017089076W WO 2018014687 A1 WO2018014687 A1 WO 2018014687A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
system kernel
upgrade
parameter
parameter information
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2017/089076
Other languages
French (fr)
Chinese (zh)
Inventor
李美锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology Co Ltd
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 Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Publication of WO2018014687A1 publication Critical patent/WO2018014687A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • Embodiments of the present invention relate to an operating system booting technology, and in particular, to a parameter transfer method and apparatus, and a computer storage medium.
  • Kernel In the traditional operating system boot process, the bootloader needs to pass some necessary parameters to the operating system kernel (Kernel), such as page size, memory start address and size, etc.; in multi-user, multi-tasking In an operating system Linux operating system that supports multi-threading and a central processing unit (CPU), this information is stored in a tag structure.
  • Kernel operating system kernel
  • CPU central processing unit
  • the format of the parameter is relatively fixed, and it is inconvenient to personalize the parameter; the parameter passing object is limited to the system kernel, and no module other than the system kernel obtains these parameters; and, the parameter The pass is one-way, that is, the bootstrap can only pass parameters to the system kernel, and the system kernel cannot pass parameters to the bootstrap.
  • the embodiment of the invention provides a parameter transmission method and device and a computer storage medium, which can realize bidirectional transmission of parameters between the boot program and the system kernel, realize parameter transfer customization, and improve parameter transmission flexibility.
  • an embodiment of the present invention provides a parameter delivery method, where the method includes:
  • the transfer parameter information is modified according to the operating environment, and the transfer parameter information is to provide parameter information required for running to a system kernel in the system kernel package;
  • the providing a system kernel in a system kernel package with parameter information required for operation including:
  • the modifying the delivery parameter information according to an operating environment includes:
  • the delivery parameter information in the system kernel package for booting is modified according to the operating environment.
  • the method further includes:
  • the first upgrade information is used to provide information required when the bootstrap program is upgraded;
  • the first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information.
  • the method further includes:
  • the second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information.
  • the system kernel sets the system kernel running information in the parameter area during the running, and includes: restart information saved by the system kernel in the parameter area;
  • the restart information includes at least one of the following: restarting a flag bit, and restarting log information;
  • the restart flag is used to indicate to the boot program the reason for the system reboot.
  • the method further includes:
  • the parameter area is set in a kernel program system kernel package, and the delivery parameter information is preset in the parameter area.
  • the delivery parameter information further includes: a compile time, a version number, and a version type of the system kernel.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores executable instructions, and the executable instructions are used to execute the parameter transfer method according to the embodiment of the present invention.
  • an embodiment of the present invention provides a parameter transmission device, where the device includes: a correction module and an acquisition module;
  • the correction module is configured to: before the system kernel is booted, modify the transfer parameter information according to the operating environment, where the transfer parameter information is to provide parameter information required for operation to a system kernel in the system kernel package;
  • the obtaining module is configured to obtain system kernel running information that is set in the parameter area during the running of the system kernel.
  • the providing a system kernel in a system kernel package with parameter information required for operation including:
  • the correction module is configured to determine a system kernel package for booting in a system non-volatile memory; and modify the delivery parameter information in the system kernel package for booting according to a running environment. .
  • the apparatus further includes:
  • a setting module configured to set first upgrade information in the delivery parameter information; the first upgrade information is used to provide information required for bootloader upgrade; and the bootloader upgrade result information is set to the delivery parameter Information
  • the first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information.
  • the apparatus further includes:
  • a setting module configured to set second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; and the system kernel upgrade result information is set to the delivery parameter Information
  • the second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information.
  • the acquiring module is further configured to acquire restart information saved by the system kernel in the parameter area;
  • the restart information includes at least one of the following: restarting a flag bit, and restarting log information;
  • the restart flag is used to indicate to the boot program the reason for the system reboot.
  • the apparatus further includes:
  • a setting module configured to set the parameter area in a kernel program system kernel package, and preset the delivery parameter information in the parameter area.
  • the boot program before booting the system kernel, corrects the transfer parameter information according to the operating environment, and the transfer parameter information is provided to the system kernel in the system kernel package. Run the required parameter information; the boot program obtains the system kernel running information set by the system kernel in the parameter area during the running process. In this way, the boot program and the system kernel can implement bidirectional transfer of parameters in the parameter area, and pass parameter information through presets, thereby realizing customization of parameter transfer and improving parameter transfer flexibility.
  • FIG. 1 is a schematic flowchart of a parameter transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a system core package according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a procedure for upgrading a boot program according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a system kernel upgrade step according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a parameter transmission device according to an embodiment of the present invention.
  • the transfer parameter information is modified according to the operating environment, and the transfer parameter information is to provide parameter information required for running to the system kernel in the system kernel package; acquiring the system kernel System kernel operation information set in the parameter area during operation.
  • the parameter transmission method provided by the embodiment of the present invention is as shown in FIG. 1 , and the method includes:
  • the delivery parameter information is to provide parameter information required for operation to a system kernel in the system kernel package.
  • the bootloader boots the system kernel; the bootloader traverses the memory, finds all available system kernels, and determines the system kernel that needs to be booted; here, you can determine which ones need to be started based on the system kernel version number in the passed parameter information.
  • the system kernel after determining the system kernel that needs to be started, the boot program can read the parameter area in the system kernel package to which the system kernel to be started belongs in the memory, determine the parameter of the parameter area, and obtain the parameters required for the system kernel to start.
  • the information can be modified according to the current operating environment and the like; for example, the Double Data Rate Synchronous Dynamic-Random Access Memory DDR SD-RAM can be used according to the current system. Parameter information such as a page size, a start address, and a size of the random access memory, and correcting the random access memory parameter information in the initial state in the transfer parameter information;
  • the boot program transfers the system kernel that needs to be booted into the memory such as DDR SD-RAM, and boots the system kernel to boot;
  • the transfer parameter information of the parameter area in the system kernel package corresponding to itself is read, thereby obtaining the parameters passed by the boot program.
  • the parameter area needs to be set in the system kernel package in advance, and the parameter information is preset in the parameter area.
  • the combined files of the two are burned into the non-volatile memory of the system such as flash memory (Flash), and the system is booted by the boot program at system startup.
  • Kernel boot here, the combined file of the magic number and the system kernel is the system kernel package; more than one system kernel package can be stored in the memory; wherein the magic number is composed of a specific set of numbers, and the boot program can pass The magic number distinguishes different system kernel packages, and finds a valid system kernel package in Flash;
  • a parameter area may be set in the system kernel package; the parameter area may be set between the magic number and a system kernel, and the parameter area becomes a file header of the system kernel package; In the parameter area, it may be pre-set according to the system kernel to start or run. Transfer parameter information; the transfer parameter information may be set to an initialization state;
  • the delivery parameter information includes: operating environment parameter information in the system kernel startup process, and/or providing operation parameter information required during operation of the system kernel; where the operating environment parameter information includes The memory page size, the starting address and the size of the memory, and the like; the running parameter information includes parameter information required for the running of the different system kernels, such as the memory partition occupancy, and the like; the delivery parameter information may further include: Some customized parameter information such as the compilation time of the system kernel, and/or version number, and/or version type.
  • the transfer parameter information may be merged into the final burned file together with the magic number and the system kernel in the form of a file; for example, in a Linux system, the standard system kernel may be compiled and generated under the Linux system environment.
  • the standard system kernel may be compiled and generated under the Linux system environment.
  • For uImage then prepare to pass the parameter information file, which contains the initial value of the parameter to be passed; then run the file processing tool such as buildImage (buildImage), and pass the parameter information file into the file header form and merge with uImage and magic number to burn Record the file; finally, burn the burned file to a memory such as Flash.
  • buildImage buildImage
  • Step 102 Acquire system kernel running information that is set in the parameter area during operation of the system kernel
  • the system kernel running information such as the running flag information or the log information
  • the booting program may be obtained in the parameter area when the system is restarted.
  • the system kernel runs information and performs corresponding processing; thus, completing information transfer of the system kernel to the boot program;
  • the system kernel can set the restart flag bit in the parameter area before restarting, and inform the boot program of the reason for restarting by the restart flag bit, such as user indication Start, system kernel upgrade complete restart, system crash restart, etc.; and the log at the restart can be stored in the parameter area, the boot program can determine the problem by restarting the log, and deal with it, such as reallocating memory.
  • the first upgrade information may be set in the parameter parameter delivery parameter information; the first upgrade information is used to provide information required for the boot program upgrade; the first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information; where the first upgrade information may be pre-burned When the system kernel package is burned, it can also be set after the system is running; after the system restarts, the boot program obtains the first upgrade information and performs the boot program upgrade;
  • the booting process according to the first upgrade information includes the following steps:
  • Step 301 Determine a first upgrade trigger flag in the parameter area delivery parameter information.
  • Step 302 Read parameter information required for the boot program upgrade, including a boot program upgrade status flag, a partition location and file size of the upgrade target file, and an upgrade target partition information.
  • Step 303 reading and checking whether the upgrade target file is a valid version, if it is a valid version, executing a burning program, and burning the version to the upgrade target partition;
  • Step 304 If the programming is successful, the boot program upgrade status flag is set to be upgraded; if the programming fails, the boot program upgrade status flag is set to fail to be upgraded;
  • Step 305 finally, the boot program upgrade result information, such as the boot program upgrade status flag, is written into the parameter parameter of the parameter area, and the system kernel or other module can obtain the boot program upgrade result by reading the transfer parameter information. .
  • the second upgrade information may be set in the parameter area delivery parameter information; the second upgrade information is used to provide information required for the system kernel upgrade; and the second upgrade information includes at least one of the following: the second upgrade Status flag, second upgrade target partition information.
  • performing system kernel upgrade according to the second upgrade information includes the following steps:
  • Step 401 If the system kernel upgrade process has been triggered during system operation, proceed to step 402;
  • Step 402 Download a new version of the system kernel package to the memory
  • Step 403 Read the delivery parameter information of the parameter zone of the new version of the system kernel package, and check whether the version is a valid upgradeable version by using a version number or the like;
  • Step 404 If it is a valid upgradeable version, burn the new version of the system kernel package to the target partition specified in the delivery parameter information;
  • Step 405 The programming is completed, and the upgrade status flag is set to 1, indicating that the upgrade is successful, and the system kernel upgrade result information, such as the system kernel upgrade status flag, is written into the parameter information of the parameter area for Subsequent boot programs, etc. read.
  • the embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the parameter transfer method according to the embodiment of the present invention.
  • the parameter transmission device provided by the embodiment of the present invention, as shown in FIG. 5, the device includes a correction module 51 and an acquisition module 52;
  • the correction module 51 is configured to: before the system kernel is booted, modify the transfer parameter information according to the operating environment, where the transfer parameter information is to provide parameter information required for operation to a system kernel in the system kernel package;
  • the bootloader boots the system kernel; the bootloader traverses the memory, finds all available system kernels, and determines the system kernel that needs to be booted; here, you can determine which ones need to be started based on the system kernel version number in the passed parameter information.
  • the boot program can read the parameter area in the system kernel package to which the system kernel to be started belongs in the memory, determine the parameter information of the parameter area, and obtain the parameter information required for the system kernel to start; the boot program can Modifying the delivery parameter information according to information such as the current operating environment; for example, according to the parameter information such as the page size, the starting address, and the size of the random memory such as the current system DDR SD-RAM, the initial modification of the delivery parameter information is Status of random access memory parameter information;
  • the boot program transfers the system kernel that needs to be booted into the memory such as DDR SD-RAM, and boots the system kernel to boot;
  • the transfer parameter information of the parameter area in the system kernel package corresponding to itself is read, thereby obtaining the parameters passed by the boot program.
  • the obtaining module 52 is configured to obtain system kernel running information that is set in the parameter area during the running of the system kernel;
  • the system kernel running information during the running process such as the running flag information or the log information
  • the booting program may acquire the location in the parameter area when the system is restarted.
  • the system kernel running information is described and processed accordingly; thus, the information transfer of the bootloader by the system kernel is completed;
  • the system restarts; usually, the boot program cannot know the cause of the restart, so it cannot be processed; here, the system kernel can set the restart flag in the parameter area before restarting, and inform the boot by the restart flag.
  • the reason for restarting the program such as user indication restart, system kernel upgrade complete restart, system crash restart, etc.; and the log at the restart can be stored in the parameter area, and the boot program can determine the problem by restarting the log and perform corresponding processing, such as reallocation. Memory, etc.
  • the apparatus further includes:
  • the setting module 53 is configured to set a parameter area in the system kernel package, and preset the delivery parameter information in the parameter area.
  • the combined file of the two is burned into the memory such as Flash, and the booting of the system kernel is started by the boot program at the startup of the system;
  • the magic number and the system kernel are two
  • the combined file is a system kernel package;
  • the memory can store more than one system kernel package; wherein the magic number is composed of a specific set of numbers, and the boot program can distinguish different system kernel packages by magic numbers, in FLASH Find a valid system kernel package;
  • a parameter area may be set in the system kernel package; the parameter area may be set between the magic number and a system kernel, and the parameter area becomes a file header of the system kernel package;
  • the parameter information may be set in advance according to a parameter setting required when the system kernel is started or run; the transfer parameter information may be set to an initialization state;
  • the delivery parameter information includes: running environment parameter information in the system kernel startup process, or providing operation parameter information required during operation of the system kernel; where the operating environment parameter information includes: The size of the page, the starting address and size of the memory, and the like; the running parameter information includes parameter information required for running in different system kernels, such as a memory partition occupancy, etc.; the parameter information may also include: a system kernel Some custom parameter information such as compile time, and/or version number, and/or version type.
  • the transfer parameter information may be merged into the final burned file together with the magic number and the system kernel in the form of a file; for example, in a Linux system, the standard system kernel may be compiled and generated under the Linux system environment. It is uImage; then prepare to pass the parameter information file, which contains the initial value of the parameter to be passed; then run the file processing tool such as buildImage, and pass the parameter information file into the burning file in the form of the file header and uImage and magic number; Finally, burn the burned file to a memory such as Flash.
  • the standard system kernel may be compiled and generated under the Linux system environment. It is uImage; then prepare to pass the parameter information file, which contains the initial value of the parameter to be passed; then run the file processing tool such as buildImage, and pass the parameter information file into the burning file in the form of the file header and uImage and magic number; Finally, burn the burned file to a memory such as Flash.
  • the setting module 53 is configured to set first upgrade information in the parameter area delivery parameter information; the first upgrade information is used to provide information required when the bootstrap program is upgraded;
  • the upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information;
  • An upgrade information may be burned in advance when the system kernel package is burned, or may be set after the system is running; after the system is restarted, the boot program obtains the first upgrade information and performs boot program upgrade.
  • the booting process according to the first upgrade information includes the following steps:
  • Step 301 Determine a first upgrade trigger flag in the parameter area delivery parameter information.
  • Step 303 reading and checking whether the upgrade target file is a valid version, if it is a valid version, executing a burning program, and burning the version to the upgrade target partition;
  • Step 304 If the programming is successful, the boot program upgrade status flag is set to be upgraded; if the programming fails, the boot program upgrade status flag is set to fail to be upgraded;
  • Step 305 finally, the boot program upgrade result information, such as the boot program upgrade status flag, is written into the parameter parameter of the parameter area, and the system kernel or other module can obtain the boot program upgrade result by reading the transfer parameter information. .
  • the setting module 53 is configured to set second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; the second upgrade The information includes at least one of the following: a second upgrade status flag, a second upgrade target Partition information.
  • performing system kernel upgrade according to the second upgrade information includes the following steps:
  • Step 401 If the system kernel upgrade process has been triggered during system operation, proceed to step 402;
  • Step 402 Download a new version of the system kernel package to the memory
  • Step 403 Read the delivery parameter information of the parameter zone of the new version of the system kernel package, and check whether the version is a valid upgradeable version by using a version number or the like;
  • Step 405 The programming is completed, and the upgrade status flag is set to 1, indicating that the upgrade is successful, and the system kernel upgrade result information, such as the system kernel upgrade status flag, is written into the parameter information of the parameter area for Subsequent boot programs, etc. read.
  • the setting module 53 can be implemented by an external computer system or the like; the correction module 51 and the obtaining module 52 can be implemented by a CPU, a Micro Processor Unit (MPU), and a digital signal processor (Digital Signal) of the system in which the operating system is located. Processor, DSP), or Field Programmable Gate Array (FPGA) implementation.
  • MPU Micro Processor Unit
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the boot program before booting the system kernel, corrects the transfer parameter information according to the operating environment, and the transfer parameter information provides parameter information required for running to the system kernel in the system kernel package;
  • the boot program obtains system kernel operation information set by the system kernel in the parameter area during the running process. In this way, the boot program and the system kernel can implement bidirectional transfer of parameters in the parameter area, and pass parameter information through presets, thereby realizing customization of parameter transfer and improving parameter transfer flexibility.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A parameter passing method and apparatus, and a computer storage medium. The method comprises: before booting a system kernel to be started, modifying parameter passing information depending on a running environment (101), wherein the parameter passing information is parameter information required for the operation of a system kernel in a system kernel package; and acquiring system kernel operation information set in a parameter region by the system kernel during operation (102).

Description

一种参数传递方法、装置及计算机存储介质Parameter transmission method, device and computer storage medium

相关申请的交叉引用Cross-reference to related applications

本申请基于申请号为201610567374.0、申请日为2016年07月18日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. PCT Application No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No

技术领域Technical field

本发明实施例涉及操作系统启动引导技术,尤其涉及一种参数传递方法、装置及计算机存储介质。Embodiments of the present invention relate to an operating system booting technology, and in particular, to a parameter transfer method and apparatus, and a computer storage medium.

背景技术Background technique

在传统的操作系统引导过程中,引导程序(bootloader)需要向操作系统内核(Kernel)传递一些必要的参数,比如页面大小、内存的起始地址和大小等运行环境信息;在多用户、多任务、支持多线程和多中央处理器(Central Processing Unit,CPU)的操作系统Linux操作系统中,这些信息存放在标签(tag)结构体中。In the traditional operating system boot process, the bootloader needs to pass some necessary parameters to the operating system kernel (Kernel), such as page size, memory start address and size, etc.; in multi-user, multi-tasking In an operating system Linux operating system that supports multi-threading and a central processing unit (CPU), this information is stored in a tag structure.

现有的参数传递机制中,参数的格式相对固定,不方便对参数进行个性化定制;参数的传递对象仅限于系统内核,没有实现系统内核之外的其它模块获得这些参数的方法;并且,参数传递是单向的,即只能由引导程序向系统内核传递参数,系统内核不能向引导程序传递参数。In the existing parameter passing mechanism, the format of the parameter is relatively fixed, and it is inconvenient to personalize the parameter; the parameter passing object is limited to the system kernel, and no module other than the system kernel obtains these parameters; and, the parameter The pass is one-way, that is, the bootstrap can only pass parameters to the system kernel, and the system kernel cannot pass parameters to the bootstrap.

因此,如何实现引导程序和系统内核之间的参数双向传递,实现参数传递定制化,提高参数传递灵活性,是亟待解决的问题。 Therefore, how to realize the bidirectional transfer of parameters between the boot program and the system kernel, realize the parameter transfer customization, and improve the parameter transfer flexibility are urgent problems to be solved.

发明内容Summary of the invention

本发明实施例提供一种参数传递方法、装置及计算机存储介质,能实现引导程序和系统内核之间的参数双向传递,实现参数传递定制化,提高参数传递灵活性。The embodiment of the invention provides a parameter transmission method and device and a computer storage medium, which can realize bidirectional transmission of parameters between the boot program and the system kernel, realize parameter transfer customization, and improve parameter transmission flexibility.

本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:

第一方面,本发明实施例提供一种参数传递方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a parameter delivery method, where the method includes:

引导所述系统内核启动前,根据运行环境,修正所述传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;Before the booting of the system kernel, the transfer parameter information is modified according to the operating environment, and the transfer parameter information is to provide parameter information required for running to a system kernel in the system kernel package;

获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。Obtaining system kernel operation information set in the parameter area during the running of the system kernel.

在一实施例中,所述向系统内核包中的系统内核提供运行所需的参数信息,包括:In an embodiment, the providing a system kernel in a system kernel package with parameter information required for operation, including:

向所述系统内核提供所述系统内核启动过程中的运行环境参数信息、;或所述系统内核提供所述系统内核运行过程中所需的运行参数信息。Providing, to the system kernel, operating environment parameter information during startup of the system kernel; or the system kernel providing operational parameter information required during operation of the system kernel.

在一实施例中,所述根据运行环境修正所述传递参数信息,包括:In an embodiment, the modifying the delivery parameter information according to an operating environment includes:

在系统非易失性存储器中确定用于启动的系统内核包;Determining a system kernel package for booting in the system non-volatile memory;

根据运行环境修正所述用于启动的系统内核包中的所述传递参数信息。The delivery parameter information in the system kernel package for booting is modified according to the operating environment.

在一实施例中,所述方法还包括:In an embodiment, the method further includes:

在所述传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;Setting first upgrade information in the delivery parameter information; the first upgrade information is used to provide information required when the bootstrap program is upgraded;

将所述引导程序升级结果信息设置到所述传递参数信息中;Setting the boot program upgrade result information into the delivery parameter information;

所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息。 The first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information.

在一实施例中,所述方法还包括:In an embodiment, the method further includes:

在所述传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;Setting second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade;

将所述系统内核升级结果信息设置到所述传递参数信息中;Setting the system kernel upgrade result information into the delivery parameter information;

所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标分区信息。The second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information.

在一实施例中,所述系统内核在运行过程中设置在所述参数区的系统内核运行信息,包括:所述系统内核在所述参数区保存的重启信息;In an embodiment, the system kernel sets the system kernel running information in the parameter area during the running, and includes: restart information saved by the system kernel in the parameter area;

所述重启信息包括如下至少之一:重启标志位、重启日志信息;The restart information includes at least one of the following: restarting a flag bit, and restarting log information;

所述重启标志位用于向引导程序指示系统重启原因。The restart flag is used to indicate to the boot program the reason for the system reboot.

在一实施例中,所述方法还包括:In an embodiment, the method further includes:

在内核程序系统内核包中设置所述参数区,并在所述参数区中预设所述传递参数信息。The parameter area is set in a kernel program system kernel package, and the delivery parameter information is preset in the parameter area.

在一实施例中,所述传递参数信息还包括:系统内核的编译时间、版本号、版本类型。In an embodiment, the delivery parameter information further includes: a compile time, a version number, and a version type of the system kernel.

第二方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行本发明实施例所述参数传递方法。In a second aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores executable instructions, and the executable instructions are used to execute the parameter transfer method according to the embodiment of the present invention.

第三方面,本发明实施例提供一种参数传递装置,所述装置包括:修正模块和获取模块;其中,In a third aspect, an embodiment of the present invention provides a parameter transmission device, where the device includes: a correction module and an acquisition module;

所述修正模块,配置为引导所述系统内核启动前,根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;The correction module is configured to: before the system kernel is booted, modify the transfer parameter information according to the operating environment, where the transfer parameter information is to provide parameter information required for operation to a system kernel in the system kernel package;

所述获取模块,配置为获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。 The obtaining module is configured to obtain system kernel running information that is set in the parameter area during the running of the system kernel.

在一实施例中,所述向系统内核包中的系统内核提供运行所需的参数信息,包括:In an embodiment, the providing a system kernel in a system kernel package with parameter information required for operation, including:

向所述系统内核提供所述系统内核启动过程中的运行环境参数信息;或向所述系统内核提供所述系统内核运行过程中所需的运行参数信息。Providing, to the system kernel, operating environment parameter information during startup of the system kernel; or providing the system kernel with operational parameter information required during operation of the system kernel.

在一实施例中,所述修正模块,配置为在系统非易失性存储器中确定用于启动的系统内核包;根据运行环境修正所述用于启动的系统内核包中的所述传递参数信息。In an embodiment, the correction module is configured to determine a system kernel package for booting in a system non-volatile memory; and modify the delivery parameter information in the system kernel package for booting according to a running environment. .

在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:

设置模块,配置为在所述传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;将所述引导程序升级结果信息设置到所述传递参数信息中;a setting module configured to set first upgrade information in the delivery parameter information; the first upgrade information is used to provide information required for bootloader upgrade; and the bootloader upgrade result information is set to the delivery parameter Information

所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息。The first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information.

在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:

设置模块,配置为在所述传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;将所述系统内核升级结果信息设置到所述传递参数信息中;a setting module configured to set second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; and the system kernel upgrade result information is set to the delivery parameter Information

所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标分区信息。The second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information.

在一实施例中,所述获取模块,还配置为获取所述系统内核在所述参数区保存的重启信息;In an embodiment, the acquiring module is further configured to acquire restart information saved by the system kernel in the parameter area;

所述重启信息包括如下至少之一:重启标志位、重启日志信息;The restart information includes at least one of the following: restarting a flag bit, and restarting log information;

所述重启标志位用于向引导程序指示系统重启原因。The restart flag is used to indicate to the boot program the reason for the system reboot.

在一实施例中,所述装置还包括: In an embodiment, the apparatus further includes:

设置模块,配置为在内核程序系统内核包中设置所述参数区,并在所述参数区中预设所述传递参数信息。And a setting module configured to set the parameter area in a kernel program system kernel package, and preset the delivery parameter information in the parameter area.

本发明实施例所提供的参数传递方法、装置及计算机存储介质,引导所述系统内核启动前,引导程序根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;引导程序获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。如此,引导程序和系统内核可以在参数区实现参数的双向传递,并通过预设传递参数信息,实现参数传递的定制化,提高参数传递灵活性。The parameter transfer method and device and the computer storage medium provided by the embodiments of the present invention, before booting the system kernel, the boot program corrects the transfer parameter information according to the operating environment, and the transfer parameter information is provided to the system kernel in the system kernel package. Run the required parameter information; the boot program obtains the system kernel running information set by the system kernel in the parameter area during the running process. In this way, the boot program and the system kernel can implement bidirectional transfer of parameters in the parameter area, and pass parameter information through presets, thereby realizing customization of parameter transfer and improving parameter transfer flexibility.

附图说明DRAWINGS

图1为本发明实施例参数传递方法的流程示意图;1 is a schematic flowchart of a parameter transmission method according to an embodiment of the present invention;

图2为本发明实施例系统内核包的组成结构示意图;2 is a schematic structural diagram of a system core package according to an embodiment of the present invention;

图3为本发明实施例引导程序升级步骤流程示意图;3 is a schematic flowchart of a procedure for upgrading a boot program according to an embodiment of the present invention;

图4为本发明实施例系统内核升级步骤流程示意图;4 is a schematic flowchart of a system kernel upgrade step according to an embodiment of the present invention;

图5为本发明实施例参数传递装置的组成结构示意图。FIG. 5 is a schematic structural diagram of a parameter transmission device according to an embodiment of the present invention.

具体实施方式detailed description

本发明实施例中,引导所述系统内核启动前,根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。In the embodiment of the present invention, before the booting of the system kernel, the transfer parameter information is modified according to the operating environment, and the transfer parameter information is to provide parameter information required for running to the system kernel in the system kernel package; acquiring the system kernel System kernel operation information set in the parameter area during operation.

下面结合实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below with reference to the embodiments.

本发明实施例提供的参数传递方法,如图1所示,所述方法包括:The parameter transmission method provided by the embodiment of the present invention is as shown in FIG. 1 , and the method includes:

步骤101:引导系统内核启动前,根据运行环境修正传递参数信息;Step 101: Before booting the system kernel, correct the parameter information according to the operating environment;

其中,所述传递参数信息为向所述系统内核包中的系统内核提供运行所需的参数信息。 The delivery parameter information is to provide parameter information required for operation to a system kernel in the system kernel package.

系统启动后,由引导程序引导系统内核启动;引导程序遍历存储器,查找所有可用的系统内核,并确定需要启动的系统内核;这里,可以根据传递参数信息中的系统内核版本号来确定需要启动的系统内核;确定需要启动的系统内核后,引导程序可以在存储器中读取需要启动的系统内核所属的系统内核包中的参数区,确定参数区的传递参数信息,获取系统内核启动所需的参数信息;引导程序可以根据当前的运行环境等信息,修改所述传递参数信息;如可以根据当前系统的双倍速率同步动态随机存储器(Double Data Rate Synchronous Dynamic-Random Access Memory DDR SD-RAM,)等随机存储器的页面大小、起始地址和大小等参数信息,修正所述传递参数信息中处于初始状态的随机存储器参数信息;After the system is booted, the bootloader boots the system kernel; the bootloader traverses the memory, finds all available system kernels, and determines the system kernel that needs to be booted; here, you can determine which ones need to be started based on the system kernel version number in the passed parameter information. The system kernel; after determining the system kernel that needs to be started, the boot program can read the parameter area in the system kernel package to which the system kernel to be started belongs in the memory, determine the parameter of the parameter area, and obtain the parameters required for the system kernel to start. The information can be modified according to the current operating environment and the like; for example, the Double Data Rate Synchronous Dynamic-Random Access Memory DDR SD-RAM can be used according to the current system. Parameter information such as a page size, a start address, and a size of the random access memory, and correcting the random access memory parameter information in the initial state in the transfer parameter information;

完成传递参数信息修改后,引导程序将需要启动的系统内核搬运到DDR SD-RAM等内存中,并引导所述系统内核启动;After the modification of the delivery parameter information is completed, the boot program transfers the system kernel that needs to be booted into the memory such as DDR SD-RAM, and boots the system kernel to boot;

系统内核启动后,读取与自身对应系统内核包中的参数区的传递参数信息,从而获取引导程序传递的参数。After the system kernel is started, the transfer parameter information of the parameter area in the system kernel package corresponding to itself is read, thereby obtaining the parameters passed by the boot program.

需要补充说明的是,在本发明实施例参数传递方法实现之前,需要预先在系统内核包中设置参数区,并在所述参数区中预设传递参数信息。It should be noted that, before the parameter transfer method of the embodiment of the present invention is implemented, the parameter area needs to be set in the system kernel package in advance, and the parameter information is preset in the parameter area.

通常在编译生成标准系统内核后,结合幻数,将两者的结合文件烧录到闪存(Flash Memory,Flash)等系统的非易失性存储器中,在系统启动时由引导程序引导所述系统内核启动;这里,将幻数和系统内核两者的结合文件为系统内核包;存储器中可以存储一个以上的系统内核包;其中,所述幻数由一组特定的数组成,引导程序可以通过幻数区分不同的系统内核包,在Flash中查找到有效的系统内核包;Usually, after compiling and generating the standard system kernel, combined with the magic number, the combined files of the two are burned into the non-volatile memory of the system such as flash memory (Flash), and the system is booted by the boot program at system startup. Kernel boot; here, the combined file of the magic number and the system kernel is the system kernel package; more than one system kernel package can be stored in the memory; wherein the magic number is composed of a specific set of numbers, and the boot program can pass The magic number distinguishes different system kernel packages, and finds a valid system kernel package in Flash;

如图2所示,可以在所述系统内核包中设置参数区;可以将所述参数区设置在所述幻数和系统内核之间,所述参数区成为所述系统内核包的文件头;在所述参数区可以预先根据系统内核启动或运行时需要参数设置传 递参数信息;所述传递参数信息可以设置成初始化状态;As shown in FIG. 2, a parameter area may be set in the system kernel package; the parameter area may be set between the magic number and a system kernel, and the parameter area becomes a file header of the system kernel package; In the parameter area, it may be pre-set according to the system kernel to start or run. Transfer parameter information; the transfer parameter information may be set to an initialization state;

进一步的,所述传递参数信息包括:所述系统内核启动过程中的运行环境参数信息、和/或提供所述系统内核运行过程中所需的运行参数信息;这里,所述运行环境参数信息包括:内存页面大小、内存的起始地址和大小等;所述运行参数信息包括针对不同系统内核在运行过程中所需的参数信息,如存储器分区占用情况等;所述传递参数信息还可以包括:系统内核的编译时间、和/或版本号、和/或版本类型等一些定制化的参数信息。Further, the delivery parameter information includes: operating environment parameter information in the system kernel startup process, and/or providing operation parameter information required during operation of the system kernel; where the operating environment parameter information includes The memory page size, the starting address and the size of the memory, and the like; the running parameter information includes parameter information required for the running of the different system kernels, such as the memory partition occupancy, and the like; the delivery parameter information may further include: Some customized parameter information such as the compilation time of the system kernel, and/or version number, and/or version type.

实际应用中,可以将所述传递参数信息以文件的形式和所述幻数和系统内核一起合并成为最终的烧录文件;如在Linux系统中,首先可以编译生成标准系统内核,Linux系统环境下为uImage;再准备传递参数信息文件,该文件包含要传递的参数的初始值;然后运行构建内核(buildImage)等文件处理工具,将传递参数信息文件以文件头形式与uImage和幻数合并成烧录文件;最后,将烧录文件烧录到Flash等存储器。In practical applications, the transfer parameter information may be merged into the final burned file together with the magic number and the system kernel in the form of a file; for example, in a Linux system, the standard system kernel may be compiled and generated under the Linux system environment. For uImage; then prepare to pass the parameter information file, which contains the initial value of the parameter to be passed; then run the file processing tool such as buildImage (buildImage), and pass the parameter information file into the file header form and merge with uImage and magic number to burn Record the file; finally, burn the burned file to a memory such as Flash.

由于所述参数区存在于存储器中,因此在系统运行过程中,其他模块也可以读取参数区的传递参数信息;解决引导程序传递给系统内核的参数其他模块无法获取的问题。Since the parameter area exists in the memory, other modules can also read the parameter information of the parameter area during the running of the system; and solve the problem that other modules that the boot program passes to the system kernel cannot obtain.

步骤102:获取所述系统内核在运行过程中设置在参数区的系统内核运行信息;Step 102: Acquire system kernel running information that is set in the parameter area during operation of the system kernel;

这里,在系统内核运行过程中,可以将运行过程中的系统内核运行信息,如运行标志信息或日志信息,存储到自身对应的参数区中,当系统重启后引导程序可以在所述参数区获取所述系统内核运行信息,并作相应处理;如此,完成系统内核对引导程序的信息传递;Here, during the running of the system kernel, the system kernel running information, such as the running flag information or the log information, may be stored in the corresponding parameter area, and the booting program may be obtained in the parameter area when the system is restarted. The system kernel runs information and performs corresponding processing; thus, completing information transfer of the system kernel to the boot program;

如在系统内核运行过程中,系统出现重启;通常引导程序无法获知重启原因,因此也无法做出处理。这里,系统内核在重启前可以在参数区设置重启标志位,通过重启标志位告知引导程序重启的原因,如用户指示重 启、系统内核升级完成重启、系统崩溃重启等;并且可以将重启时的日志存储到参数区,引导程序可以通过重启日志确定问题,并作相应处理,如重新分配内存等。If the system kernel is running, the system restarts; usually the boot program cannot know the reason for the restart, so it cannot be processed. Here, the system kernel can set the restart flag bit in the parameter area before restarting, and inform the boot program of the reason for restarting by the restart flag bit, such as user indication Start, system kernel upgrade complete restart, system crash restart, etc.; and the log at the restart can be stored in the parameter area, the boot program can determine the problem by restarting the log, and deal with it, such as reallocating memory.

进一步的,还可以在所述参数区传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息;这里,所述第一升级信息可以是预先在烧录系统内核包的时候烧录的,也可以是在系统运行后设置的;在系统重启后引导程序获取第一升级信息,进行引导程序升级;Further, the first upgrade information may be set in the parameter parameter delivery parameter information; the first upgrade information is used to provide information required for the boot program upgrade; the first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information; where the first upgrade information may be pre-burned When the system kernel package is burned, it can also be set after the system is running; after the system restarts, the boot program obtains the first upgrade information and performs the boot program upgrade;

具体的,如图3所示,引导程序根据所述第一升级信息进行升级包括以下步骤:Specifically, as shown in FIG. 3, the booting process according to the first upgrade information includes the following steps:

步骤301,判断参数区传递参数信息中的第一升级触发标志,这里,第一升级触发标志可以采用upgrade_flag表示;如果upgrade_flag=0,则表示引导程序不需要升级,可以修正传递参数信息并引导系统内核启动流程;如果upgrade_flag=1,则触发引导程序升级流程,转到步骤302;Step 301: Determine a first upgrade trigger flag in the parameter area delivery parameter information. Here, the first upgrade trigger flag may be represented by an upgrade_flag; if the upgrade_flag=0, the boot program does not need to be upgraded, and the parameter information may be corrected and the system may be guided. Kernel startup process; if upgrade_flag=1, trigger the bootloader upgrade process, go to step 302;

步骤302,读取引导程序升级所需的参数信息,包括引导程序升级状态标志、升级目标文件所在分区位置和文件大小、升级目标分区信息等;Step 302: Read parameter information required for the boot program upgrade, including a boot program upgrade status flag, a partition location and file size of the upgrade target file, and an upgrade target partition information.

步骤303,读取并检查升级目标文件是否为有效版本,如果为有效版本,执行烧录程序,将该版本烧录到升级目标分区;Step 303, reading and checking whether the upgrade target file is a valid version, if it is a valid version, executing a burning program, and burning the version to the upgrade target partition;

步骤304,如果烧录成功,将引导程序升级状态标志置升级完成;如果烧录失败,将引导程序升级状态标志置升级失败;Step 304: If the programming is successful, the boot program upgrade status flag is set to be upgraded; if the programming fails, the boot program upgrade status flag is set to fail to be upgraded;

步骤305,最后,将引导程序升级结果信息,如引导程序升级状态标志等,写入到参数区的传递参数信息中,系统内核或其他模块可以通过读取传递参数信息获取所述引导程序升级结果。 Step 305, finally, the boot program upgrade result information, such as the boot program upgrade status flag, is written into the parameter parameter of the parameter area, and the system kernel or other module can obtain the boot program upgrade result by reading the transfer parameter information. .

进一步的,还可以参数区传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标分区信息。Further, the second upgrade information may be set in the parameter area delivery parameter information; the second upgrade information is used to provide information required for the system kernel upgrade; and the second upgrade information includes at least one of the following: the second upgrade Status flag, second upgrade target partition information.

具体的,如图4所示,根据所述第二升级信息进行系统内核升级包括以下步骤:Specifically, as shown in FIG. 4, performing system kernel upgrade according to the second upgrade information includes the following steps:

步骤401:系统运行中如果已触发系统内核升级进程,则进入步骤402;Step 401: If the system kernel upgrade process has been triggered during system operation, proceed to step 402;

步骤402:下载新版本系统内核包到内存;Step 402: Download a new version of the system kernel package to the memory;

步骤403:读取新版本系统内核包参数区的传递参数信息,可以通过版本号等信息检查该版本是否为有效的可升级版本;Step 403: Read the delivery parameter information of the parameter zone of the new version of the system kernel package, and check whether the version is a valid upgradeable version by using a version number or the like;

步骤404:如果为有效可升级版本,烧录新版本系统内核包到传递参数信息中规定的目标分区;Step 404: If it is a valid upgradeable version, burn the new version of the system kernel package to the target partition specified in the delivery parameter information;

步骤405:烧录完成,将所述升级状态标志置为1,表明升级成功,将所述系统内核升级结果信息,如系统内核升级状态标志等,写入到参数区的传递参数信息中,供后续引导程序等读取。Step 405: The programming is completed, and the upgrade status flag is set to 1, indicating that the upgrade is successful, and the system kernel upgrade result information, such as the system kernel upgrade status flag, is written into the parameter information of the parameter area for Subsequent boot programs, etc. read.

本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述参数传递方法。The embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the parameter transfer method according to the embodiment of the present invention.

本发明实施例提供的参数传递装置,如图5所示,所述装置包括修正模块51和获取模块52;其中,The parameter transmission device provided by the embodiment of the present invention, as shown in FIG. 5, the device includes a correction module 51 and an acquisition module 52;

所述修正模块51,配置为引导所述系统内核启动前,根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;The correction module 51 is configured to: before the system kernel is booted, modify the transfer parameter information according to the operating environment, where the transfer parameter information is to provide parameter information required for operation to a system kernel in the system kernel package;

系统启动后,由引导程序引导系统内核启动;引导程序遍历存储器,查找所有可用的系统内核,并确定需要启动的系统内核;这里,可以根据传递参数信息中的系统内核版本号来确定需要启动的系统内核;确定需要 启动的系统内核后,引导程序可以在存储器中读取需要启动的系统内核所属的系统内核包中的参数区,确定参数区的传递参数信息,获取系统内核启动所需的参数信息;引导程序可以根据当前的运行环境等信息,修改所述传递参数信息;如可以根据当前系统的DDR SD-RAM等随机存储器的页面大小、起始地址和大小等参数信息,修正所述传递参数信息中处于初始状态的随机存储器参数信息;After the system is booted, the bootloader boots the system kernel; the bootloader traverses the memory, finds all available system kernels, and determines the system kernel that needs to be booted; here, you can determine which ones need to be started based on the system kernel version number in the passed parameter information. System kernel; determine the need After the system kernel is started, the boot program can read the parameter area in the system kernel package to which the system kernel to be started belongs in the memory, determine the parameter information of the parameter area, and obtain the parameter information required for the system kernel to start; the boot program can Modifying the delivery parameter information according to information such as the current operating environment; for example, according to the parameter information such as the page size, the starting address, and the size of the random memory such as the current system DDR SD-RAM, the initial modification of the delivery parameter information is Status of random access memory parameter information;

完成传递参数信息修改后,引导程序将需要启动的系统内核搬运到DDR SD-RAM等内存中,并引导所述系统内核启动;After the modification of the delivery parameter information is completed, the boot program transfers the system kernel that needs to be booted into the memory such as DDR SD-RAM, and boots the system kernel to boot;

系统内核启动后,读取与自身对应系统内核包中的参数区的传递参数信息,从而获取了引导程序传递的参数。After the system kernel is started, the transfer parameter information of the parameter area in the system kernel package corresponding to itself is read, thereby obtaining the parameters passed by the boot program.

所述获取模块52,配置为获取所述系统内核在运行过程中设置在参数区的系统内核运行信息;The obtaining module 52 is configured to obtain system kernel running information that is set in the parameter area during the running of the system kernel;

这里,在系统内核运行过程中,可以将运行过程中的系统内核运行信息,如运行标志信息或日志信息存储到自身对应的参数区中,当系统重启后引导程序可以在所述参数区获取所述系统内核运行信息,并作相应处理;如此完成了系统内核对引导程序的信息传递;Here, during the running of the system kernel, the system kernel running information during the running process, such as the running flag information or the log information, may be stored in the corresponding parameter area, and the booting program may acquire the location in the parameter area when the system is restarted. The system kernel running information is described and processed accordingly; thus, the information transfer of the bootloader by the system kernel is completed;

如在系统内核运行过程中,系统出现重启;通常,引导程序无法获知重启原因,因此也无法做出处理;这里,系统内核在重启前可以在参数区设置重启标志位,通过重启标志位告知引导程序重启的原因,如用户指示重启、系统内核升级完成重启、系统崩溃重启等;并且可以将重启时的日志存储到参数区,引导程序可以通过重启日志确定问题,并作相应处理,如重新分配内存等。For example, during the running of the system kernel, the system restarts; usually, the boot program cannot know the cause of the restart, so it cannot be processed; here, the system kernel can set the restart flag in the parameter area before restarting, and inform the boot by the restart flag. The reason for restarting the program, such as user indication restart, system kernel upgrade complete restart, system crash restart, etc.; and the log at the restart can be stored in the parameter area, and the boot program can determine the problem by restarting the log and perform corresponding processing, such as reallocation. Memory, etc.

在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:

设置模块53,配置为在系统内核包中设置参数区,并在所述参数区中预设所述传递参数信息。 The setting module 53 is configured to set a parameter area in the system kernel package, and preset the delivery parameter information in the parameter area.

通常在编译生成标准系统内核后,结合幻数,将两者的结合文件烧录到Flash等存储器中,在系统启动时由引导程序引导所述系统内核启动;这里,将幻数和系统内核两者的结合文件为系统内核包;存储器中可以存储1个以上的系统内核包;其中,所述幻数由一组特定的数组成,引导程序可以通过幻数区分不同的系统内核包,在FLASH中查找到有效的系统内核包;Usually after compiling and generating the standard system kernel, combined with the magic number, the combined file of the two is burned into the memory such as Flash, and the booting of the system kernel is started by the boot program at the startup of the system; here, the magic number and the system kernel are two The combined file is a system kernel package; the memory can store more than one system kernel package; wherein the magic number is composed of a specific set of numbers, and the boot program can distinguish different system kernel packages by magic numbers, in FLASH Find a valid system kernel package;

如图2所示,可以在所述系统内核包中设置参数区;可以将所述参数区设置在所述幻数和系统内核之间,所述参数区成为所述系统内核包的文件头;在所述参数区可以预先根据系统内核启动或运行时需要参数设置传递参数信息;所述传递参数信息可以设置成初始化状态;As shown in FIG. 2, a parameter area may be set in the system kernel package; the parameter area may be set between the magic number and a system kernel, and the parameter area becomes a file header of the system kernel package; In the parameter area, the parameter information may be set in advance according to a parameter setting required when the system kernel is started or run; the transfer parameter information may be set to an initialization state;

进一步的,所述传递参数信息包括:所述系统内核启动过程中的运行环境参数信息,或提供所述系统内核运行过程中所需的运行参数信息;这里,所述运行环境参数信息包括:内存页面大小、内存的起始地址和大小等;所述运行参数信息包括针对不同系统内核在运行过程中所需的参数信息,如存储器分区占用情况等;所述传递参数信息还可以包括:系统内核的编译时间、和/或版本号、和/或版本类型等一些定制化的参数信息。Further, the delivery parameter information includes: running environment parameter information in the system kernel startup process, or providing operation parameter information required during operation of the system kernel; where the operating environment parameter information includes: The size of the page, the starting address and size of the memory, and the like; the running parameter information includes parameter information required for running in different system kernels, such as a memory partition occupancy, etc.; the parameter information may also include: a system kernel Some custom parameter information such as compile time, and/or version number, and/or version type.

实际应用中,可以将所述传递参数信息以文件的形式和所述幻数和系统内核一起合并成为最终的烧录文件;如在Linux系统中,首先可以编译生成标准系统内核,Linux系统环境下为uImage;再准备传递参数信息文件,该文件包含了要传递的参数的初始值;然后运行buildImage等文件处理工具,将传递参数信息文件以文件头形式与uImage和幻数合并成烧录文件;最后,将烧录文件烧录到Flash等存储器。In practical applications, the transfer parameter information may be merged into the final burned file together with the magic number and the system kernel in the form of a file; for example, in a Linux system, the standard system kernel may be compiled and generated under the Linux system environment. It is uImage; then prepare to pass the parameter information file, which contains the initial value of the parameter to be passed; then run the file processing tool such as buildImage, and pass the parameter information file into the burning file in the form of the file header and uImage and magic number; Finally, burn the burned file to a memory such as Flash.

由于,所述参数区存在于存储器中,因此,在系统运行过程中,其他模块也可以读取参数区的传递参数信息;解决引导程序传递给系统内核的参数其他模块无法获取的问题。 Because the parameter area exists in the memory, other modules can also read the parameter information of the parameter area during the running of the system; and solve the problem that other modules that the boot program passes to the system kernel cannot obtain.

在一实施例中,所述设置模块53,配置为在所述参数区传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息;这里,所述第一升级信息可以是预先在烧录系统内核包的时候烧录的,也可以是在系统运行后设置的;在系统重启后引导程序获取第一升级信息,进行引导程序升级。In an embodiment, the setting module 53 is configured to set first upgrade information in the parameter area delivery parameter information; the first upgrade information is used to provide information required when the bootstrap program is upgraded; The upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information; An upgrade information may be burned in advance when the system kernel package is burned, or may be set after the system is running; after the system is restarted, the boot program obtains the first upgrade information and performs boot program upgrade.

具体的,如图3所示,引导程序根据所述第一升级信息进行升级包括以下步骤:Specifically, as shown in FIG. 3, the booting process according to the first upgrade information includes the following steps:

步骤301,判断参数区传递参数信息中的第一升级触发标志,这里,第一升级触发标志可以采用upgrade_flag表示;如果upgrade_flag=0,则表示引导程序不需要升级,可以修正传递参数信息并引导系统内核启动流程;如果upgrade_flag=1,则触发引导程序升级流程,转到步骤302;Step 301: Determine a first upgrade trigger flag in the parameter area delivery parameter information. Here, the first upgrade trigger flag may be represented by an upgrade_flag; if the upgrade_flag=0, the boot program does not need to be upgraded, and the parameter information may be corrected and the system may be guided. Kernel startup process; if upgrade_flag=1, trigger the bootloader upgrade process, go to step 302;

步骤302,读取引导程序升级所需的参数信息,包括引导程序升级状态标志、升级目标文件所在分区位置和文件大小、升级目标分区信息等;Step 302: Read parameter information required for the boot program upgrade, including a boot program upgrade status flag, a partition location and file size of the upgrade target file, and an upgrade target partition information.

步骤303,读取并检查升级目标文件是否为有效版本,如果为有效版本,执行烧录程序,将该版本烧录到升级目标分区;Step 303, reading and checking whether the upgrade target file is a valid version, if it is a valid version, executing a burning program, and burning the version to the upgrade target partition;

步骤304,如果烧录成功,将引导程序升级状态标志置升级完成;如果烧录失败,将引导程序升级状态标志置升级失败;Step 304: If the programming is successful, the boot program upgrade status flag is set to be upgraded; if the programming fails, the boot program upgrade status flag is set to fail to be upgraded;

步骤305,最后,将引导程序升级结果信息,如引导程序升级状态标志等,写入到参数区的传递参数信息中,系统内核或其他模块可以通过读取传递参数信息获取所述引导程序升级结果。Step 305, finally, the boot program upgrade result information, such as the boot program upgrade status flag, is written into the parameter parameter of the parameter area, and the system kernel or other module can obtain the boot program upgrade result by reading the transfer parameter information. .

在一实施例中,所述设置模块53,配置为在所述传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标 分区信息。In an embodiment, the setting module 53 is configured to set second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; the second upgrade The information includes at least one of the following: a second upgrade status flag, a second upgrade target Partition information.

具体的,如图4所示,根据所述第二升级信息进行系统内核升级包括以下步骤:Specifically, as shown in FIG. 4, performing system kernel upgrade according to the second upgrade information includes the following steps:

步骤401:系统运行中如果已触发系统内核升级进程,则进入步骤402;Step 401: If the system kernel upgrade process has been triggered during system operation, proceed to step 402;

步骤402:下载新版本系统内核包到内存;Step 402: Download a new version of the system kernel package to the memory;

步骤403:读取新版本系统内核包参数区的传递参数信息,可以通过版本号等信息检查该版本是否为有效的可升级版本;Step 403: Read the delivery parameter information of the parameter zone of the new version of the system kernel package, and check whether the version is a valid upgradeable version by using a version number or the like;

步骤404:如果为有效可升级版本,烧录新版本系统内核包到传递参数信息中规定的目标分区;Step 404: If it is a valid upgradeable version, burn the new version of the system kernel package to the target partition specified in the delivery parameter information;

步骤405:烧录完成,将所述升级状态标志置为1,表明升级成功,将所述系统内核升级结果信息,如系统内核升级状态标志等,写入到参数区的传递参数信息中,供后续引导程序等读取。Step 405: The programming is completed, and the upgrade status flag is set to 1, indicating that the upgrade is successful, and the system kernel upgrade result information, such as the system kernel upgrade status flag, is written into the parameter information of the parameter area for Subsequent boot programs, etc. read.

在实际应用中,设置模块53可以由外部电脑系统等实现;修正模块51和获取模块52可以由操作系统所在系统的CPU、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the setting module 53 can be implemented by an external computer system or the like; the correction module 51 and the obtaining module 52 can be implemented by a CPU, a Micro Processor Unit (MPU), and a digital signal processor (Digital Signal) of the system in which the operating system is located. Processor, DSP), or Field Programmable Gate Array (FPGA) implementation.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a general purpose computer, a special purpose computer, An processor of an embedded processor or other programmable data processing device to generate a machine such that instructions executed by a processor of a computer or other programmable data processing device are generated for implementation in a flow or a flow of flowcharts and/or Or a block diagram of a device in a box or a function specified in a plurality of boxes.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

以上所述,仅为本发明的最佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

工业实用性Industrial applicability

本发明实施例所述参数传递方法,引导所述系统内核启动前,引导程序根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;引导程序获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。如此,引导程序和系统内核可以在参数区实现参数的双向传递,并通过预设传递参数信息,实现参数传递的定制化,提高参数传递灵活性。 The parameter transfer method of the embodiment of the present invention, before booting the system kernel, the boot program corrects the transfer parameter information according to the operating environment, and the transfer parameter information provides parameter information required for running to the system kernel in the system kernel package; The boot program obtains system kernel operation information set by the system kernel in the parameter area during the running process. In this way, the boot program and the system kernel can implement bidirectional transfer of parameters in the parameter area, and pass parameter information through presets, thereby realizing customization of parameter transfer and improving parameter transfer flexibility.

Claims (17)

一种参数传递方法,所述方法包括:A parameter transfer method, the method comprising: 引导所述系统内核启动前,根据运行环境,修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;Before booting the system kernel, correcting the delivery parameter information according to the operating environment, where the delivery parameter information is to provide parameter information required for operation to the system kernel in the system kernel package; 获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。Obtaining system kernel operation information set in the parameter area during the running of the system kernel. 根据权利要求1所述的方法,其中,所述向系统内核包中的系统内核提供运行所需的参数信息,包括:The method of claim 1 wherein said providing a system kernel in a system kernel package with parameter information required for operation comprises: 向所述系统内核提供所述系统内核启动过程中的运行环境参数信息;或,向所述系统内核提供所述系统内核运行过程中所需的运行参数信息。Providing the operating system parameter information in the system kernel startup process to the system kernel; or providing the system kernel with operation parameter information required during the system kernel running process. 根据权利要求1所述的方法,其中,所述根据运行环境修正所述传递参数信息,包括:The method of claim 1, wherein the modifying the delivery parameter information according to an operating environment comprises: 在系统非易失性存储器中确定用于启动的系统内核包;Determining a system kernel package for booting in the system non-volatile memory; 根据运行环境修正所述用于启动的系统内核包中的所述传递参数信息。The delivery parameter information in the system kernel package for booting is modified according to the operating environment. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises: 在所述传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;Setting first upgrade information in the delivery parameter information; the first upgrade information is used to provide information required when the bootstrap program is upgraded; 将所述引导程序升级结果信息设置到所述传递参数信息中;Setting the boot program upgrade result information into the delivery parameter information; 所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息。The first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information. 根据权利要求1所述的方法,其中,所述方法还包括: The method of claim 1 wherein the method further comprises: 在所述传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;Setting second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; 将所述系统内核升级结果信息设置到所述传递参数信息中;Setting the system kernel upgrade result information into the delivery parameter information; 所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标分区信息。The second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information. 根据权利要求1所述的方法,其中,所述系统内核在运行过程中设置在所述参数区的系统内核运行信息,包括:所述系统内核在所述参数区保存的重启信息;The method according to claim 1, wherein the system kernel sets system kernel operation information in the parameter area during operation, comprising: restart information saved by the system kernel in the parameter area; 所述重启信息包括如下至少之一:重启标志位、重启日志信息;The restart information includes at least one of the following: restarting a flag bit, and restarting log information; 所述重启标志位用于向引导程序指示系统重启原因。The restart flag is used to indicate to the boot program the reason for the system reboot. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises: 在内核程序系统内核包中设置所述参数区,并在所述参数区中预设所述传递参数信息。The parameter area is set in a kernel program system kernel package, and the delivery parameter information is preset in the parameter area. 根据权利要求1至7任一项所述的方法,其中,所述传递参数信息还包括如下至少之一:系统内核的编译时间、版本号、版本类型。The method according to any one of claims 1 to 7, wherein the delivery parameter information further comprises at least one of: a compilation time of the system kernel, a version number, and a version type. 一种参数传递装置,所述装置包括:修正模块和获取模块;A parameter transfer device, the device comprising: a correction module and an acquisition module; 所述修正模块,配置为引导所述系统内核启动前,根据运行环境修正传递参数信息,所述传递参数信息为向系统内核包中的系统内核提供运行所需的参数信息;The correction module is configured to: before the system kernel is booted, modify the transfer parameter information according to the operating environment, where the transfer parameter information is to provide parameter information required for operation to a system kernel in the system kernel package; 所述获取模块,配置为获取所述系统内核在运行过程中设置在参数区的系统内核运行信息。The obtaining module is configured to obtain system kernel running information that is set in the parameter area during the running of the system kernel. 根据权利要求9所述的装置,其中,所述向系统内核包中的系统内核提供运行所需的参数信息,包括:The apparatus of claim 9, wherein said providing a system kernel in a system kernel package with parameter information required for operation comprises: 向所述系统内核提供所述系统内核启动过程中的运行环境参数信息;或向所述系统内核提供所述系统内核运行过程中所需的运行参数信 息。Providing, to the system kernel, operating environment parameter information during startup of the system kernel; or providing the system kernel with an operating parameter letter required during operation of the system kernel interest. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein 所述修正模块,配置为在系统非易失性存储器中确定用于启动的系统内核包;根据运行环境修正所述用于启动的系统内核包中的所述传递参数信息。The correction module is configured to determine a system kernel package for booting in the system non-volatile memory; and modify the transfer parameter information in the system kernel package for booting according to an operating environment. 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises: 设置模块,配置为在所述传递参数信息中设置第一升级信息;所述第一升级信息用于提供引导程序升级时所需的信息;将所述引导程序升级结果信息设置到所述传递参数信息中;a setting module configured to set first upgrade information in the delivery parameter information; the first upgrade information is used to provide information required for bootloader upgrade; and the bootloader upgrade result information is set to the delivery parameter Information 所述第一升级信息包括如下至少之一:第一升级触发标志、第一升级状态标志、第一升级目标文件位置信息、第一升级目标文件大小信息、及第一升级目标分区信息。The first upgrade information includes at least one of the following: a first upgrade trigger flag, a first upgrade status flag, first upgrade target file location information, first upgrade target file size information, and first upgrade target partition information. 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises: 设置模块,配置为在所述传递参数信息中设置第二升级信息;所述第二升级信息用于提供系统内核升级时所需的信息;将所述系统内核升级结果信息设置到所述传递参数信息中;a setting module configured to set second upgrade information in the delivery parameter information; the second upgrade information is used to provide information required for system kernel upgrade; and the system kernel upgrade result information is set to the delivery parameter Information 所述第二升级信息包括如下至少之一:第二升级状态标志、第二升级目标分区信息。The second upgrade information includes at least one of the following: a second upgrade status flag, and second upgrade target partition information. 根据权利要求9所述的装置,其中,The apparatus according to claim 9, wherein 所述获取模块,还配置为获取所述系统内核在所述参数区保存的重启信息;The obtaining module is further configured to acquire restart information saved by the system kernel in the parameter area; 所述重启信息包括如下至少之一:重启标志位、重启日志信息;The restart information includes at least one of the following: restarting a flag bit, and restarting log information; 所述重启标志位用于向引导程序指示系统重启原因。The restart flag is used to indicate to the boot program the reason for the system reboot. 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises: 设置模块,配置为在内核程序系统内核包中设置所述参数区,并在 所述参数区中预设所述传递参数信息。Setting a module configured to set the parameter area in a kernel program system kernel package and The delivery parameter information is preset in the parameter area. 根据权利要求9至15任一项所述的装置,其中,所述传递参数信息还包括如下至少之一:系统内核的编译时间、版本号、版本类型。The apparatus according to any one of claims 9 to 15, wherein the delivery parameter information further comprises at least one of: a compile time of the system kernel, a version number, and a version type. 一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行权利要求1至8任一项所述的参数传递方法。 A computer storage medium having stored therein executable instructions for performing the parameter transfer method of any one of claims 1 to 8.
PCT/CN2017/089076 2016-07-18 2017-06-19 Parameter passing method and apparatus, and computer storage medium Ceased WO2018014687A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610567374.0A CN107632892B (en) 2016-07-18 2016-07-18 A method and device for passing parameters
CN201610567374.0 2016-07-18

Publications (1)

Publication Number Publication Date
WO2018014687A1 true WO2018014687A1 (en) 2018-01-25

Family

ID=60991915

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089076 Ceased WO2018014687A1 (en) 2016-07-18 2017-06-19 Parameter passing method and apparatus, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107632892B (en)
WO (1) WO2018014687A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031998A (en) * 2021-02-26 2021-06-25 芜湖美的厨卫电器制造有限公司 Method, processor, electronic device and storage medium for system upgrade
CN113672267A (en) * 2021-09-03 2021-11-19 中国银行股份有限公司 A method and device for updating parameters
CN115185442A (en) * 2022-07-07 2022-10-14 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN116719788A (en) * 2023-06-09 2023-09-08 展讯通信(上海)有限公司 Log level modification method and device, electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780259B (en) * 2022-04-18 2025-08-29 杭州义益钛迪信息技术有限公司 Kernel matching method, server and storage medium

Citations (4)

* 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
US20100205587A1 (en) * 2009-02-10 2010-08-12 Huafei Dai Method, device and system for realizing kernel online patching
CN103092662A (en) * 2013-02-04 2013-05-08 烽火通信科技股份有限公司 Software module upgrading method for terminal device based on embedded operating system
CN103995717A (en) * 2014-05-07 2014-08-20 南京国电南自电网自动化有限公司 Method for upgrading software in embedded device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100347672C (en) * 2005-08-26 2007-11-07 清华大学 Long-distance guide chip of transparent computing equipment based on dragon chip rack and panel construction and method thereof
CN102541572B (en) * 2010-12-08 2015-09-16 中兴通讯股份有限公司 A kind of method, system and device realizing operating system nucleus and guide
WO2012100535A1 (en) * 2011-01-30 2012-08-02 华为技术有限公司 Updating method and computer system for hypervisor components
CN104461621B (en) * 2014-11-28 2018-01-02 青岛海信宽带多媒体技术有限公司 A kind of method and device of Update attribute information
CN104765697A (en) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 Embedded device interaction method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205587A1 (en) * 2009-02-10 2010-08-12 Huafei Dai Method, device and system for realizing kernel online patching
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN103092662A (en) * 2013-02-04 2013-05-08 烽火通信科技股份有限公司 Software module upgrading method for terminal device based on embedded operating system
CN103995717A (en) * 2014-05-07 2014-08-20 南京国电南自电网自动化有限公司 Method for upgrading software in embedded device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031998A (en) * 2021-02-26 2021-06-25 芜湖美的厨卫电器制造有限公司 Method, processor, electronic device and storage medium for system upgrade
CN113672267A (en) * 2021-09-03 2021-11-19 中国银行股份有限公司 A method and device for updating parameters
CN115185442A (en) * 2022-07-07 2022-10-14 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN115185442B (en) * 2022-07-07 2024-06-04 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN116719788A (en) * 2023-06-09 2023-09-08 展讯通信(上海)有限公司 Log level modification method and device, electronic equipment

Also Published As

Publication number Publication date
CN107632892B (en) 2021-06-22
CN107632892A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
KR101856284B1 (en) Backing up firmware during initialization of device
JP5575338B2 (en) Information processing apparatus, information processing method, and computer program
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
WO2018014687A1 (en) Parameter passing method and apparatus, and computer storage medium
US20140325496A1 (en) Apparatus and method for firmware upgrade using usb
CN111240720A (en) Boot program upgrade method, device and storage medium
CN105760191A (en) Embedded system equipment programming mass production method
WO2016091071A1 (en) Linux kernel driver loading method and device
CN107220060A (en) It is a kind of while supporting the method and system of multiple OTA AKUs upgrading
CN102609290B (en) The method for upgrading software of electronic product
WO2016119548A1 (en) Method for preventing software decompilation, and method and apparatus for preventing decompilation software from starting
WO2017000567A1 (en) Bootrom upgrading method and device
US9348603B2 (en) Electronic apparatus and booting method
CN102880478B (en) Software update method
WO2015154538A1 (en) Memory booting method and device
WO2015184732A1 (en) Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium
CN106951257A (en) A kind of implementation method for starting WinCE with Uboot_CDROM
CN116339908A (en) Virtual machine starting method, device, computer equipment and storage medium
CN114546454A (en) bootloader upgrading method and device, computer equipment and storage medium
TW202044027A (en) Computer system and a booting method for the same
CN104298618A (en) Instruction processing method and device for intelligent terminal
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN105204896A (en) BootLoader design method of digital storage oscilloscope
WO2017076034A1 (en) Method and device for formatting memory of mobile terminal
CN116954674A (en) eMMC firmware upgrading method, firmware upgrading equipment and storage device

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: 17830322

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: 17830322

Country of ref document: EP

Kind code of ref document: A1