CN113282329B - Method, device, equipment and storage medium for customizing system firmware online - Google Patents

Method, device, equipment and storage medium for customizing system firmware online Download PDF

Info

Publication number
CN113282329B
CN113282329B CN202110480254.8A CN202110480254A CN113282329B CN 113282329 B CN113282329 B CN 113282329B CN 202110480254 A CN202110480254 A CN 202110480254A CN 113282329 B CN113282329 B CN 113282329B
Authority
CN
China
Prior art keywords
customization
firmware
data structure
oem
partition
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.)
Active
Application number
CN202110480254.8A
Other languages
Chinese (zh)
Other versions
CN113282329A (en
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.)
Shenzhen JWIPC Technology Co Ltd
Original Assignee
Shenzhen JWIPC 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 Shenzhen JWIPC Technology Co Ltd filed Critical Shenzhen JWIPC Technology Co Ltd
Priority to CN202110480254.8A priority Critical patent/CN113282329B/en
Publication of CN113282329A publication Critical patent/CN113282329A/en
Application granted granted Critical
Publication of CN113282329B publication Critical patent/CN113282329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention is applicable to the technical field of computers and provides a method for customizing system firmware online, which comprises the steps of dynamically redefining nodes of a device tree in uboot according to a data structure related to bottom-layer customization in a customization partition by receiving a firmware customization file online and writing the firmware customization file into a newly-added customization partition of an Android system, realizing bottom-layer related customization demands, and realizing upper-layer related customization demands according to a data structure related to upper-layer customization.

Description

Method, device, equipment and storage medium for customizing system firmware online
Technical Field
The present invention belongs to the field of computer technology, and in particular, relates to a method, an apparatus, a device, and a storage medium for customizing system firmware online.
Background
Along with the continuous progress of technology, the Android system is increasingly applied to industry scenes, and because of the variability of requirements of various industries, various custom development needs to be performed on the Android system firmware, including the use of different screens, different screen directions, different equipment models, different manufacturer information and the like, engineers are often required to continuously modify the system firmware to adapt to different requirements of clients, hidden danger is brought to the stability of the system due to frequent modification of the system firmware, and a great deal of repeated development work is also required to be performed by the engineers, so that the waste of human resources is caused.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for customizing system firmware on line, which aim to solve the problem that an Android system needs to frequently modify the firmware to realize various customization demands.
In one aspect, the present invention provides a method of customizing system firmware online, the method comprising the steps of:
an OEM custom partition is newly added in the Android system and used for storing the data structure of the custom system;
receiving a firmware customization file sent by a remote background on line, and writing the firmware customization file into the OEM customization partition through a built-in firmware customization daemon;
respectively acquiring a data structure related to bottom layer customization and a data structure related to upper layer customization from the OEM customization partition;
dynamically redefining nodes of a device tree in uboot according to the data structure related to bottom layer customization, wherein the nodes are used for realizing bottom layer related customization demands;
and performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization.
Further, the on-line receiving of the firmware custom file sent by the remote background, and before writing the firmware custom file into the OEM custom partition through the built-in firmware custom daemon, the remote background uniformly edits the firmware custom file and pushes the firmware custom file to the terminal.
Further, the obtaining the data structure related to the bottom layer customization from the OEM customization partition includes the following steps:
defining a bottom custom interface in uboot;
and reading the data structure related to the bottom layer customization in the OEM customization partition through the bottom layer customization interface.
Further, the obtaining the upper layer customization related data structure from the OEM customization partition includes the steps of:
defining a customized software library based on linux in a middle layer of an Android system;
analyzing the upper-layer customization related data structure in the OEM customization partition through the customization software library;
and providing the data structure related to the upper layer customization to an upper layer of the Android system.
Further, the customization requirements associated with the bottom layer include screen parameters, power-on timing, and activation and deactivation of the device.
Further, the function setting and system configuration of the Android system according to the data structure related to the upper layer customization comprises the following steps:
creating an OEM custom daemon;
and performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization in the OEM customization daemon.
Further, the OEM customized partition is not erasable.
In another aspect, the present invention provides an apparatus for customizing system firmware online, the apparatus comprising:
the storage module is used for receiving the firmware customization file on line and writing the firmware customization file into the newly-added OEM customization partition;
the acquisition module is used for respectively acquiring a data structure related to the bottom layer customization and a data structure related to the upper layer customization from the OEM customization partition for storing the customization data;
the bottom layer customizing module is used for dynamically redefining nodes of the equipment tree in the uboot according to the data structure related to bottom layer customizing;
and the upper layer customization module is used for carrying out function setting and system configuration on the Android system according to the data structure related to upper layer customization.
In another aspect, the present invention also provides an apparatus for online customizing system firmware, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for online customizing system firmware when the processor executes the computer program.
In another aspect, the present invention also provides a readable storage medium storing a computer program which, when executed by a processor, implements the steps described in a method of customizing system firmware online.
The invention has the beneficial effects that: according to the method, the firmware customization file is received on line and written into the newly-added customization partition in the Android system, the nodes of the equipment tree in the uboot are dynamically redefined according to the data structure related to the bottom customization in the customization partition, the customization requirement related to the bottom is realized, and the customization requirement related to the upper is realized according to the data structure related to the upper customization.
Drawings
FIG. 1 is a flow chart of a method for customizing system firmware online provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of the architecture of online customization system firmware provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a device for customizing system firmware online according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The following describes in detail the implementation of the present invention in connection with specific embodiments:
embodiment one:
fig. 1 shows an implementation flow of a method for customizing system firmware online according to a first embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, which is described in detail below:
step S101, an OEM custom partition is newly added in an Android system and used for storing a data structure of the custom system;
step S102, receiving a firmware customization file sent by a remote background on line, and writing the firmware customization file into an OEM customization partition through a built-in firmware customization daemon;
step S103, respectively acquiring a data structure related to the bottom layer customization and a data structure related to the upper layer customization from the OEM customization partition;
step S104, dynamically redefining nodes of the equipment tree in the uboot according to the data structure related to the bottom layer customization, wherein the nodes are used for realizing the customization requirements related to the bottom layer;
and step 105, performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization.
Further, step S102 is preceded by uniformly editing the firmware custom file by the remote background and pushing it to the terminal.
Further, the acquiring the data structure related to the bottom layer customization from the OEM customization partition in step S103 includes the following steps:
defining a bottom custom interface in uboot;
and reading the data structure related to the bottom layer customization in the OEM customization partition through the bottom layer customization interface.
Further, the step S103 of obtaining the upper layer customization related data structure from the OEM customization partition includes the following steps:
defining a customized software library based on linux in a middle layer of an Android system;
analyzing the data structure related to upper-layer customization in the OEM customization partition through the customization software library;
and providing the data structure related to the upper layer customization to the upper layer of the Android system.
Further, the underlying related customization requirements include screen parameters, power-on timing, and activation and deactivation of the device.
Further, step S105 includes the steps of:
creating an OEM custom daemon;
and performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization in the OEM customization daemon.
Further, the OEM custom partition is not erasable, and permanently implements the custom functionality.
Embodiment two:
FIG. 2 is a schematic diagram of an apparatus for customizing system firmware online according to an embodiment of the present invention, and for convenience of explanation, only a part related to the embodiment of the present invention is shown, where the apparatus includes:
a storage module 201, configured to receive a firmware customization file online and write the firmware customization file into a newly added OEM customization partition;
an obtaining module 202, configured to obtain an data structure related to the bottom layer customization and an data structure related to the upper layer customization from the OEM customization partition, respectively;
the bottom layer customizing module 203 is configured to dynamically redefine nodes of the device tree in uboot according to a data structure related to bottom layer customization;
the upper layer customizing module 204 is configured to perform function setting and system configuration on the Android system according to the data structure related to upper layer customization.
In the embodiment of the present invention, each module of the device for customizing the system firmware online may be implemented by corresponding hardware or software modules, and each module may be an independent software module or an independent hardware module, or may be integrated into one software module or one hardware module, which is not used to limit the present invention.
Embodiment III:
FIG. 3 is a schematic diagram of an apparatus for customizing system firmware online according to an embodiment of the present invention, and for convenience of explanation, only a part related to the embodiment of the present invention is shown, where the apparatus includes:
in an embodiment of the present invention, there is provided an apparatus including a memory 301, a processor 302, and a computer program 303 stored in the memory and executable on the processor, which when executed by the processor implements the steps of the method embodiment of online customization of system firmware described above, for example, steps S101 to S105 shown in fig. 1. Alternatively, the computer program, when executed by a processor, performs the functions of the modules in the apparatus for online customization of system firmware described above, such as modules 201 through 204 shown in fig. 3.
Embodiment four:
in an embodiment of the present invention, there is provided a readable storage medium storing a computer program which, when executed by a processor, implements the steps in the method embodiment of online customization system firmware described above, for example, steps S101 to S105 shown in fig. 1. Alternatively, the computer program may be executed by a processor to implement the functions of the modules in the above-described apparatus embodiments, for example, the functions of the modules shown in fig. 3.
The computer readable storage medium of embodiments of the present invention may include any entity or device capable of carrying computer program code, recording medium, e.g., ROM/RAM, s-disk, optical disk, flash memory, and so forth.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. A method of customizing system firmware online, the method comprising the steps of:
an OEM custom partition is newly added in the Android system and used for storing the data structure of the custom system;
receiving a firmware customization file sent by a remote background on line, and writing the firmware customization file into the OEM customization partition through a built-in firmware customization daemon;
respectively acquiring a data structure related to bottom layer customization and a data structure related to upper layer customization from the OEM customization partition;
dynamically redefining nodes of a device tree in uboot according to the data structure related to bottom layer customization, wherein the nodes are used for realizing bottom layer related customization demands;
and performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization.
2. The method of on-line customizing system firmware as claimed in claim 1, wherein said on-line receiving a firmware customization file sent by a remote back-office and before writing said firmware customization file into said OEM customization partition by a built-in firmware customization daemon further comprises, uniformly editing the firmware customization file by the remote back-office and pushing it to the terminal.
3. The method of on-line customization system firmware according to claim 1, wherein the retrieving an on-line customization related data structure from the OEM customization partition includes the steps of:
defining a bottom custom interface in uboot;
and reading the data structure related to the bottom layer customization in the OEM customization partition through the bottom layer customization interface.
4. The method of on-line customization system firmware according to claim 1, wherein the retrieving upper-level customization-related data structures from the OEM customization partition includes the steps of:
defining a customized software library based on linux in a middle layer of an Android system;
analyzing the upper-layer customization related data structure in the OEM customization partition through the customization software library;
and providing the data structure related to the upper layer customization to an upper layer of the Android system.
5. The method of on-line customization system firmware of claim 1, wherein the underlying related customization needs include screen parameters, power-on timing and activation and deactivation of devices.
6. The method for customizing system firmware online according to claim 1, wherein the function setting and system configuration of the Android system according to the upper-level customization related data structure comprises the following steps:
creating an OEM custom daemon;
and performing function setting and system configuration on the Android system according to the data structure related to the upper-layer customization in the OEM customization daemon.
7. The method of customizing system firmware online according to claim 1, further comprising, the OEM custom partition being non-erasable.
8. An apparatus for customizing system firmware online, the apparatus comprising:
the storage module is used for receiving the firmware customization file on line and writing the firmware customization file into the newly-added OEM customization partition;
the acquisition module is used for respectively acquiring a data structure related to the bottom layer customization and a data structure related to the upper layer customization from the OEM customization partition;
the bottom layer customizing module is used for dynamically redefining nodes of the equipment tree in the uboot according to the data structure related to bottom layer customizing;
and the upper layer customizing module is used for carrying out function setting and system configuration on the Android system according to the data structure related to the upper layer customizing.
9. An apparatus for customizing system firmware online, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
CN202110480254.8A 2021-04-30 2021-04-30 Method, device, equipment and storage medium for customizing system firmware online Active CN113282329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110480254.8A CN113282329B (en) 2021-04-30 2021-04-30 Method, device, equipment and storage medium for customizing system firmware online

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110480254.8A CN113282329B (en) 2021-04-30 2021-04-30 Method, device, equipment and storage medium for customizing system firmware online

Publications (2)

Publication Number Publication Date
CN113282329A CN113282329A (en) 2021-08-20
CN113282329B true CN113282329B (en) 2023-08-15

Family

ID=77277826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110480254.8A Active CN113282329B (en) 2021-04-30 2021-04-30 Method, device, equipment and storage medium for customizing system firmware online

Country Status (1)

Country Link
CN (1) CN113282329B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7590835B1 (en) * 2006-06-30 2009-09-15 American Megatrends, Inc. Dynamically updating a computer system firmware image
CN110515471A (en) * 2019-08-30 2019-11-29 芯海科技(深圳)股份有限公司 Key configurations method, apparatus, terminal device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9110761B2 (en) * 2012-06-27 2015-08-18 Microsoft Technology Licensing, Llc Resource data structures for firmware updates

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7590835B1 (en) * 2006-06-30 2009-09-15 American Megatrends, Inc. Dynamically updating a computer system firmware image
CN110515471A (en) * 2019-08-30 2019-11-29 芯海科技(深圳)股份有限公司 Key configurations method, apparatus, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN113282329A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN106708587B (en) Parameter configuration method and system
CN110515641A (en) The update method of server firmware, apparatus and system
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
CN111124288A (en) VPD storage management method, device, equipment and readable storage medium
US20020091830A1 (en) Distributed-processing system and command transfer method in the same
CN111414391A (en) Method and system for accessing multiple data sources
US10282190B2 (en) System and method for updating a UEFI image in an information handling system
CN110609678A (en) Function programming method and device and configuration software system
JP2000222179A (en) Computer system and method for operating computer system
CN106484779B (en) File operation method and device
CN111736884A (en) Componentization method and system
CN111399936A (en) BMC customization method, system, equipment and readable storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN107678770B (en) Interface chip upgrading method and device, storage medium and processor
CN113282329B (en) Method, device, equipment and storage medium for customizing system firmware online
CN110806891B (en) Method and device for generating software version of embedded device
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN111694580B (en) Method and device for upgrading and initializing storage device and electronic device
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium
CN113507529A (en) Method for realizing file downloading based on Web application
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
CN112182456A (en) Method and device for adapting various map clients based on JavaScript

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant