[go: up one dir, main page]

CN103176908A - Desktop management interface (DMI) information storage method and system - Google Patents

Desktop management interface (DMI) information storage method and system Download PDF

Info

Publication number
CN103176908A
CN103176908A CN2011104389015A CN201110438901A CN103176908A CN 103176908 A CN103176908 A CN 103176908A CN 2011104389015 A CN2011104389015 A CN 2011104389015A CN 201110438901 A CN201110438901 A CN 201110438901A CN 103176908 A CN103176908 A CN 103176908A
Authority
CN
China
Prior art keywords
dmi
kernel
file
memory
host computer
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.)
Granted
Application number
CN2011104389015A
Other languages
Chinese (zh)
Other versions
CN103176908B (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201110438901.5A priority Critical patent/CN103176908B/en
Publication of CN103176908A publication Critical patent/CN103176908A/en
Application granted granted Critical
Publication of CN103176908B publication Critical patent/CN103176908B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明提出一种DMI信息存储方法及系统。其中,DMI信息存储方法包括以下步骤:上位机生成设备管理信息DMI信息;上位机将DMI信息进行转化以生成DMI文件;上位机将引导装载下载至嵌入式设备中的第一存储器中;引导装载向上位机发送内核初始化请求,并将上位机发送的内核下载到内存中;内核对嵌入式设备的第二存储器进行格式化分区;内核向上位机发送镜像文件下载请求;以及上位机将DMI文件发送至内核,且内核将DMI文件存储至第二存储器。通过本发明的DMI信息存储技术,能够弥补Android系统DMI存储和显示的局限性,使得开发人员在操纵设备DMI信息时,能够灵活、快速地完成定制化任务。

The invention provides a DMI information storage method and system. Wherein, the DMI information storage method comprises the following steps: the host computer generates device management information DMI information; the host computer converts the DMI information to generate a DMI file; the host computer downloads the bootloader to the first memory in the embedded device; bootloader Send a kernel initialization request to the host computer, and download the kernel sent by the host computer to the memory; the kernel formats and partitions the second memory of the embedded device; the kernel sends a mirror file download request to the host computer; and the host computer downloads the DMI file sent to the kernel, and the kernel stores the DMI file to the second memory. The DMI information storage technology of the present invention can make up for the limitation of DMI storage and display in the Android system, so that developers can flexibly and quickly complete customized tasks when manipulating the DMI information of the device.

Description

DMI information storage means and system
Technical field
The present invention relates to technical field of information storage, relate in particular to a kind of DMI information storage means and system.
Background technology
Day by day open along with Android (Android) Open Source Platform yielded unusually brilliant results in consumer electronics field based on the embedded product of Android system.As equipment manufacturers, utilize DMI (Device Manage Information, device management information) information to carry out follow-up of quality to product, provide better value-added service to the user, be a kind of general and effective means.
According to the difference (for example Android2.2 and Android2.3) of the platform release that adopts, open system is limited to user and developer's DMI information and (for example quantity and the attribute-bit) of back compatible.Because Android system itself increases income, so equipment manufacturers can choose different hardware platforms and product solution is completed the transplanting of Android system, thereby customize out the product of wanting.These different combinations also are not quite similar on the impact of DMI information, when depending primarily on system transplantation to the customization of Android file system.The Android system preserves DMI information with the right form of key/value, and each key/value is to DMI attribute of correspondence, and most of DMI information is kept in a file of being accessed control of authority.Due to the difference on Product Definition, although can cause the key of a certain DMI information identical, the situation that value does not wait in some occasion, is unfavorable for the mutual discriminating between product.
According to the specific demand of product, can need extra DMI information, this just need to customize DMI.Obviously, existing Android platform can't satisfy the demand of DMI customization.
Summary of the invention
The present invention is intended to solve at least one of technical matters that exists in prior art.
For this reason, one aspect of the present invention proposes a kind of DMI information storage means, comprises the following steps: host computer generates DMI information; Described host computer transforms to generate the DMI file with described DMI information; Described host computer is downloaded to boot-loader in first memory in embedded device; Described boot-loader sends the kernel initialization requests to described host computer, and the kernel that described host computer is sent downloads in internal memory; The second memory of checking described embedded device in described formats subregion; Described kernel sends the image file download request to described host computer; Described host computer is sent to described kernel with described DMI file, and described kernel is stored to described second memory with described DMI file.
DMI information storage means according to the embodiment of the present invention, by before system image is burnt to embedded device, complete the write operation of DMI data to embedded device, the limitation that makes up the Android DMI of system storage and show, make the developer when maneuvering device DMI information, can complete flexibly, rapidly the customization task.
For this reason, the present invention also proposes a kind of DMI information storage system on the other hand, comprise host computer and embedded device, wherein said embedded device comprises first memory, kernel, internal memory and second memory, described host computer generates DMI information, and described DMI information is transformed to generate the DMI file, and boot-loader is downloaded in the first memory of described embedded device; Described boot-loader sends the kernel initialization requests to described host computer; Described kernel receives the kernel file that described host computer sends according to described kernel initialization requests, and described kernel file is downloaded in internal memory, and the second memory of described embedded device is formatd subregion, and send the image file download request to described host computer; Described host computer is sent to described kernel with described DMI file, and described kernel is stored to described second memory with described DMI file.
DMI information storage system according to the embodiment of the present invention, by before system image is burnt to embedded device, complete the write operation of DMI data to embedded device, the limitation that makes up the Android DMI of system storage and show, make the developer when maneuvering device DMI information, can complete flexibly, rapidly the customization task.
Additional aspect of the present invention and advantage part in the following description provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or additional aspect of the present invention and advantage are from obviously and easily understanding becoming the description of embodiment in conjunction with following accompanying drawing, wherein:
Fig. 1 is the process flow diagram of the DMI information storage means of one embodiment of the invention;
Fig. 2 is the schematic flow sheet of the DMI information storage means of one embodiment of the invention; And
Fig. 3 is the structured flowchart of the DMI information storage system of one embodiment of the invention.
Embodiment
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.
In description of the invention, unless otherwise prescribed and limit, need to prove, term " installation ", " being connected ", " connection " should be done broad understanding, for example, can be mechanical connection or electrical connection, can be also the connection of two element internals, can be directly to be connected, and also can indirectly be connected by intermediary, for the ordinary skill in the art, can understand as the case may be the concrete meaning of above-mentioned term.
Fig. 1 is the process flow diagram of the DMI information storage means of one embodiment of the invention.Fig. 2 is the schematic flow sheet of the DMI information storage means of one embodiment of the invention.As depicted in figs. 1 and 2, these DMI information storage means comprise the following steps:
Step S101, host computer generates DMI information.
Be different from PC (Personal Computer, personal computer) equipment, three phases mainly passes through at the normal start-up and operation of embedded device in the Android system: (1) uses the firmware burning instrument that system image is burnt to flash memory; (2) boot-loader guiding linux kernel; (3) kernel loads Android file system and startup.In the present invention, before the phase one begins, complete the write operation of DMI data to flash memory.
Particularly, be provided with a cover for the mirror image replication tool of Android platform device in host computer, this replication tool can be based on the Linux operating environment, also can be based on the Windows operating platform.Replication tool uses UTP (Universal Transfer Protocol, the general transmission agreement) as means of communication, host computer and embedded device are by USB (Universal Serial Bus, USB (universal serial bus)) line carries out data interaction, but carry out wanting before subsequent action the erecting equipment driving, embedded device is mounted to host computer with the form of exterior storage.
At first host computer starts replication tool, generates DMI information according to predetermined algorithm.Wherein, predetermined algorithm can for the DMI Information generation algorithm of prior art, be not described in detail herein.
Step S102, host computer transforms to generate the DMI file with DMI information.
In one embodiment of the invention, the DMI file is the binary file of ASCII fromat coding.Those of ordinary skill in the art writes DMI information in the binary file of ASCII fromat coding according to the right form of key/value by programming, and check information is put into the fixed byte position of this DMI top of file.In file, every record is as a DMI attribute, and the differentiation mode between different attribute depends on user's programmed method.
Step S103, host computer is downloaded to boot-loader in first memory in embedded device.
In one embodiment of the present of invention, first memory is SDRAM (synchronous static memory).Replication tool downloads to the Boot loader that can be used for Boot Dernel under the built-in Linux environment in the SDRAM at embedded device CPU place by the usb data line, and the entry address of Boot loader is passed to CPU, afterwards, Boot loader obtains the control of embedded device.
Step S104, boot-loader sends the kernel initialization requests to host computer, and the kernel that host computer is sent downloads in internal memory.
According to an example of the present invention, Boot loader begins to carry out, initialization internal memory and necessary peripherals.Afterwards, send the request obtain kernel file to host computer, receive the kernel file that host computer sends, and it is loaded into the internal memory appointed area, afterwards system's control of embedded device is given kernel.
Step S105, in check embedded device second memory format subregion.
In one embodiment of the invention, second memory is flash memory, for example nand flash memory chip.Nand flash memory chip has that price is low, capacity is large, carry out data writing operation and the fast characteristics of obliterated data speed.
According to an example of the present invention, after kernel brings into operation, at first flash memory is formatd division operation, then the apparatus for establishing node, be used for carry operating system mirror image, the initialization system environmental variance.
Step S106, kernel sends the image file download request to host computer.
According to an example of the present invention, after device node created successfully, kernel sent the image file download request to host computer.
Step S107, host computer is sent to kernel with the DMI file, and kernel is stored to the DMI file in second memory.
According to one embodiment of present invention, the DMI top of file has check information, after kernel receives the DMI data, first carries out file verification according to check information, to judge whether information has change or whether information dropout arranged, and verification by after the DMI file is stored to second memory.Then, host computer can be sent to kernel with corresponding image file, and kernel is stored to image file in second memory again.
In another embodiment of the present invention, corresponding image file can comprise the system file system mirror image, recover the file that other equipment such as mirror image, upgrade image work and system is recovered, upgrading is required.
After kernel is completed the read-write of DMI data, report this event to host computer.The user can receive report after, disconnect the physical connection relation between embedded device and host computer.After the embedded device boot system starts, the DMI data by auto-initiation to a certain zone of internal memory.
DMI information storage means according to the embodiment of the present invention, by before system image is burnt to embedded device, complete the write operation of DMI data to embedded device, the limitation that makes up the Android DMI of system storage and show, make the developer when maneuvering device DMI information, can complete flexibly, rapidly the customization task.
Fig. 3 is the structured flowchart of the DMI information storage system of one embodiment of the invention.As shown in Figure 3, this DMI information storage system comprises host computer 10 and embedded device 20.Embedded device 20 comprises first memory 210, kernel 220, internal memory 230 and second memory 240.
Host computer 10 generates DMI information, and DMI information is transformed to generate the DMI file, and boot-loader is downloaded in the first memory 210 of embedded device.In an example of the present invention, the DMI file is the binary file of ASCII fromat coding.Boot-loader sends the kernel initialization requests to host computer 10.Kernel 220 receives the kernel file that host computer 10 sends according to the kernel initialization requests, and kernel file is downloaded in internal memory 230, and the second memory 240 of embedded device is formatd subregion, and send the image file download request to host computer 10.Host computer 10 is sent to kernel 220 with the DMI file, and kernel 220 is stored to second memory 240 with the DMI file.
In another embodiment of the present invention, host computer 10 can also be after kernel 220 be stored to second memory 240 with the DMI file, corresponding image file is sent to kernel 220, as system file system mirror image, recovery mirror image, upgrade image etc., kernel 220 is stored to image file in second memory 240 again.
In one embodiment of the invention, host computer 10 is connected with embedded device by the connection of USB line.
According to an example of the present invention, first memory is SDRAM, and second memory is flash memory.More specifically, flash memory can be enable nand gate.
In one embodiment of the invention, the top of file of DMI file has check information, wherein, kernel 220 carries out verification according to check information after receiving the DMI file, and verification by after the DMI file is stored to second memory 240.
DMI information storage system according to the embodiment of the present invention, by before system image is burnt to embedded device, complete the write operation of DMI data to embedded device, the limitation that makes up the Android DMI of system storage and show, make the developer when maneuvering device DMI information, can complete flexibly, rapidly the customization task.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that do not break away from principle of the present invention and aim can be carried out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.

Claims (13)

1. DMI information storage means, is characterized in that, comprises the following steps:
Host computer generates DMI information;
Described host computer transforms to generate the DMI file with described DMI information;
Described host computer is downloaded to boot-loader in first memory in embedded device;
Described boot-loader sends the kernel initialization requests to described host computer, and the kernel that described host computer is sent downloads in internal memory;
The second memory of checking described embedded device in described formats subregion;
Described kernel sends the image file download request to described host computer; And
Described host computer is sent to described kernel with described DMI file, and described kernel is stored to described second memory with described DMI file.
2. DMI information storage means as claimed in claim 1, is characterized in that, also comprises:
Described host computer is sent to described kernel with corresponding image file, and described kernel is stored to described second memory with described image file.
3. DMI information storage means as claimed in claim 1, is characterized in that, described first memory is synchronous static memory SDRAM, and described second memory is flash memory.
4. DMI information storage means as claimed in claim 3, is characterized in that, described flash memory is enable nand gate.
5. DMI information storage means as claimed in claim 1, is characterized in that, described DMI file is the binary file of ASCII fromat coding.
6. DMI information storage means as claimed in claim 5, it is characterized in that, the top of file of described DMI file has check information, wherein, described kernel is after receiving described DMI file, carry out verification according to described check information, and verification by after described DMI file is stored to described second memory.
7. DMI information storage means as claimed in claim 1, is characterized in that, described boot-loader downloads in internal memory to the kernel that host computer sends kernel initialization requests and also host computer transmission, specifically comprises:
Described boot-loader begins to carry out, initialization internal memory and peripheral the setting;
Described boot-loader sends described kernel initialization requests to described host computer;
Described boot-loader receives the kernel that described host computer sends;
Described boot-loader is with the appointed area of described kernel loads to described internal memory; And
Described guiding device is given described kernel with system's control of described embedded device.
8. a DMI information storage system, is characterized in that, comprises host computer and embedded device, and wherein said embedded device comprises first memory, kernel, internal memory and second memory,
Described host computer generates DMI information, and described DMI information is transformed to generate the DMI file, and boot-loader is downloaded in the first memory of described embedded device;
Described boot-loader sends the kernel initialization requests to described host computer;
Described kernel receives the kernel file that described host computer sends according to described kernel initialization requests, and described kernel file is downloaded in internal memory, and the second memory of described embedded device is formatd subregion, and send the image file download request to described host computer;
Described host computer is sent to described kernel with described DMI file, and described kernel is stored to described second memory with described DMI file.
9. DMI information storage system as claimed in claim 8, is characterized in that, described host computer is sent to described kernel with corresponding image file, and described kernel is stored to described second memory with described image file.
10. DMI information storage system as claimed in claim 8, is characterized in that, described first memory is SDRAM, and described second memory is flash memory.
11. DMI information storage system as claimed in claim 10 is characterized in that, described flash memory is enable nand gate.
12. DMI information storage system as claimed in claim 8 is characterized in that, described DMI file is the binary file of ASCI I form coding.
13. DMI information storage system as claimed in claim 12, it is characterized in that, the top of file of described DMI file has check information, wherein, described kernel is after receiving described DMI file, carry out verification according to described check information, and verification by after described DMI file is stored to described second memory.
CN201110438901.5A 2011-12-23 2011-12-23 DMI information storage means and system Expired - Fee Related CN103176908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110438901.5A CN103176908B (en) 2011-12-23 2011-12-23 DMI information storage means and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110438901.5A CN103176908B (en) 2011-12-23 2011-12-23 DMI information storage means and system

Publications (2)

Publication Number Publication Date
CN103176908A true CN103176908A (en) 2013-06-26
CN103176908B CN103176908B (en) 2016-03-30

Family

ID=48636802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110438901.5A Expired - Fee Related CN103176908B (en) 2011-12-23 2011-12-23 DMI information storage means and system

Country Status (1)

Country Link
CN (1) CN103176908B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098139A (en) * 2022-07-20 2022-09-23 深圳市普渡科技有限公司 Firmware update method, system, lower computer and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200428287A (en) * 2003-06-10 2004-12-16 Wistron Corp Alternative type upgrading method of firmware
US20090037722A1 (en) * 2007-08-01 2009-02-05 Chong Benedict T Integration Model for Instant-On Environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200428287A (en) * 2003-06-10 2004-12-16 Wistron Corp Alternative type upgrading method of firmware
US20090037722A1 (en) * 2007-08-01 2009-02-05 Chong Benedict T Integration Model for Instant-On Environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098139A (en) * 2022-07-20 2022-09-23 深圳市普渡科技有限公司 Firmware update method, system, lower computer and storage medium

Also Published As

Publication number Publication date
CN103176908B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
KR101856284B1 (en) Backing up firmware during initialization of device
CN103473067B (en) Embedded Linux partition and data restoration method, system and system development method
CN104850762B (en) Method, computer program, and computer for preventing malfunction of computer
US8423991B2 (en) Embedded network device and firmware upgrading method
CN103942065B (en) For updating the method and system of firmware compatibility data
US8484631B2 (en) Supporting hardware configuration changes in a UEFI firmware component
US9448889B2 (en) BIOS failover update with service processor
US9411601B2 (en) Flexible bootstrap code architecture
US20090254898A1 (en) Converting a device from one system to another
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
KR20200090010A (en) Method for updating firmware, electronic device and storage medium therefor
CN103559052A (en) Apparatus and methods for updating firmware
CN103514015A (en) Method and device for booting operation system from storage medium
CN103688268A (en) Vehicle unit and method for operating the vehicle unit
CN104407878A (en) On-line upgrading method of C6000 digital signal processor
CN108319520A (en) Mobile device alternate operating system based on secure storage
CN108694060A (en) Promote the technology quickly guided using high speed and low speed nonvolatile memory
CN102707963A (en) Device flags
CN102662688B (en) A kind of Nor flash update method and device
CN106155713B (en) Startup information management method and device
US10664598B1 (en) Firmware security patch deployment
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
US20100287364A1 (en) Boot systems and methods, and related devices
CN103106086B (en) Operating system disposal route and system
CN103995717A (en) Method for upgrading software in embedded device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160330