CN106681755B - Product ID configuration method and program loading method of embedded device - Google Patents
Product ID configuration method and program loading method of embedded device Download PDFInfo
- Publication number
- CN106681755B CN106681755B CN201611009434.3A CN201611009434A CN106681755B CN 106681755 B CN106681755 B CN 106681755B CN 201611009434 A CN201611009434 A CN 201611009434A CN 106681755 B CN106681755 B CN 106681755B
- Authority
- CN
- China
- Prior art keywords
- product
- embedded
- program
- local memory
- configuration file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
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
The invention provides a product ID configuration method and a corresponding program loading method of embedded equipment. The product ID configuration method is suitable for product ID configuration of embedded equipment and comprises the following steps: (i) connecting a system starting disc to the embedded equipment, wherein a system image file and a product configuration file are stored on the system starting disc; (ii) after the embedded device is powered on and is started from the system boot disk, at least copying the system image file in the system boot disk to a local memory of the embedded device by using a bootstrap program; and (iii) the embedded device automatically reads the product ID in the product configuration file by using the started driver after being restarted from the local memory and writes the product ID into a system registry. Therefore, the invention can reduce the system development complexity of the embedded device such as the LED asynchronous control card, reduce the hardware cost of the product and/or increase the stability of the product.
Description
Technical Field
The invention relates to the technical field of product ID information configuration, in particular to a product ID configuration method and a program loading method of embedded equipment.
Background
Currently, in the LED asynchronous control system industry, there are a product ID (unique identification of product hardware in industrial design) configuration management method and a system version information configuration management method similar to other electronic products; the method stores the product ID and the related initialization configuration in a local SPIFlash (namely an SPI interface Flash memory) for solidification, and reads corresponding information from the SPI Flash after the system is started, or directly compiles the configuration information of the system and the product ID into a kernel registry entry of the system during product production.
The way of storing and solidifying the product ID by using the local SPI Flash undoubtedly increases the hardware cost; the method for compiling the product ID into the kernel registry entry of the system is mainly that the operating system sets different environment variables according to the system before compiling to compile different product IDs, but the method aims at the situation that when different products are developed simultaneously in the same development environment, because the environment variables are different, the system compiling engineering is different, so that the BSP (Board support package) is developed in a cross way, and thus the problems of time increase of development and compilation, complexity increase of development, risk increase of product cross compilation and the like are brought.
Disclosure of Invention
Therefore, the present invention provides a product ID configuration method and a program loading method for an embedded device to overcome the disadvantages and drawbacks of the prior art.
Specifically, the method for configuring a product ID according to the embodiment of the present invention is applicable to configuring a product ID of an embedded device, and includes the steps of: (i) connecting a system starting disc to the embedded equipment, wherein a system image file and a product configuration file are stored on the system starting disc; (ii) after the embedded device is powered on and is started from the system boot disk, at least copying the system image file in the system boot disk to a local memory of the embedded device by using a bootstrap program; and (iii) the embedded device automatically reads the product ID in the product configuration file by using the started driver after being restarted from the local memory and writes the product ID into a system registry.
In one embodiment of the invention, the embedded device is an LED asynchronous control card which comprises an embedded processor, a programmable logic device electrically connected with the embedded processor and the local memory.
In one embodiment of the present invention, step (ii) comprises copying the product configuration file in the system boot disk to a local memory of the embedded device using a boot program; step (iii) includes automatically reading the product ID in the product configuration file from the local memory using the launched driver.
In one embodiment of the invention, the product configuration file further comprises system version information and hardware version information.
In addition, the embodiment of the present invention provides a program loading method for an embedded device, where the embedded device includes an embedded processor, and a local memory and a programmable logic device electrically connected to the embedded processor; the program loading method comprises the following steps: (a) after the embedded processor is powered on, starting from a system boot disk and copying at least a system image file in the system boot disk to the local memory by using a boot program, wherein the system boot disk comprises the system image file and a product configuration file; (b) the embedded processor automatically reads the product ID in the product configuration file by using a started driving program after restarting from the local memory and writes the product ID into a system registry; and (c) the application software of the embedded processor running on the operating system reads the product ID from the system registry, searches the corresponding program from the local memory according to the product ID read from the system registry and loads the searched program to the programmable logic device to realize the corresponding product function.
In one embodiment of the present invention, step (a) comprises copying the product configuration file in the system boot disk to a local memory of the embedded device using a boot program; step (b) comprises automatically reading the product ID in the product configuration file from the local memory using the launched driver.
In one embodiment of the present invention, step (b) comprises automatically reading the product ID in the product profile from the system boot disk using the booted driver.
In one embodiment of the invention, the embedded device is an LED asynchronous control card, the embedded processor is an ARM processor, and the programmable logic device is an FPGA.
In one embodiment of the invention, the system boot disk is an SD card, and is plugged into an SD card slot of the embedded device.
In one embodiment of the invention, the product configuration file further comprises system version information and hardware version information.
As can be seen from the above, the embodiments of the present invention can achieve one or more of the following advantages: 1) the system development complexity of the embedded device such as an LED asynchronous control card is reduced; 2) the hardware cost of the product is reduced; and 3) increase the stability of the product.
Other aspects and features of the present invention will become apparent from the following detailed description, which proceeds with reference to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The following detailed description of embodiments of the invention will be made with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a hardware application architecture related to a product ID configuration method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a specific implementation step of a product ID configuration method according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The following embodiment of the invention is a product ID configuration method designed based on an embedded operating system of an embedded device (such as an LED asynchronous control card), such as a WinCE operating system.
Fig. 1 is a schematic diagram of a hardware application architecture related to a product ID configuration method according to an embodiment of the present invention. The embodiment of the invention mainly writes the product ID into the product configuration file according to the content defined in advance by utilizing the production flow link, and writes the product configuration information (including the product ID) in the product configuration file into the system registry by utilizing the driving program when the embedded equipment product is programmed and cured before leaving the factory. Then, after the application software running on the operating system is started, the corresponding product ID value is read through the system registry information, and functions such as programmable logic device (e.g., FPGA) program loading of different products are carried out according to different product ID values so as to realize the functions of different products. In fig. 1, the embedded device includes an embedded processor such as an ARM processor and a programmable logic device such as an FPGA electrically connected to the embedded processor and a local memory such as Flash; the SD card system boot disk may be inserted into, for example, an SD card slot of an embedded device.
Fig. 2 is a flowchart illustrating a specific implementation step of the product ID configuration method according to an embodiment of the present invention. Specifically, the compiled system image file and related files such as product configuration file are placed on the SD card system boot disk in advance (of course, other external nonvolatile memory is also possible and is not limited to the SD card), the SD card system boot disk is connected to an embedded device such as an LED asynchronous control card, then the system is powered on and started, when the system is started, a bootstrap program is started to copy the system image file in the SD card and even the product configuration file to a local memory of the embedded device (here, the product configuration file can be copied to the local memory, or not), the system then reboots from local memory (e.g., local flash memory), waits for the true kernel write to complete and the driver and system are fully booted, the corresponding driver of the system will automatically read the corresponding product ID from the product configuration file in the local storage or SD card and write the product ID into the system registry.
In this embodiment, the content of the product configuration file may include other product-related information, such as system version information, hardware version information, and the like, in addition to the product ID. When the driver writes the corresponding product ID into the registry during the first system programming, the product ID information is solidified in the system registry, and when the embedded device product is powered on again and restarted later, the relevant parameters do not need to be rewritten into the system registry. In this way, after the application program is started, corresponding product ID information can be acquired from the system registry, and then the application software loads a corresponding programmable logic device (e.g., FPGA) program according to the acquired product ID information to implement a corresponding product function; here, the programmable logic device program, for example, the FPGA program, is stored in the local memory shown in fig. 1, and typically has multiple versions, and each product ID corresponds to one version of the FPGA program (for example, the product ID and the FPGA program relation map are stored), that is, the process of loading the FPGA program is a process of searching for the corresponding FPGA program through the product ID.
Because the prior art has the system cross compilation when different products are distinguished by compiling the product ID into the system registry by setting different environment variables, hardware of the same product platform needs to set different environment variables to distinguish different products when different product functions are expanded, great inconvenience is brought to product development, even when more than 5 products of one hardware platform exist, cross compilation even needs to be carried out back and forth for 1-2 days in the development process, the time consumption is long, the risk of cross compilation is high, and the product development period is long and the stability is low. The above embodiment of the present invention mainly addresses such a problem, and changes a product ID configuration mode from a mode in which a product ID is compiled into a system registry by setting an environment variable in the prior art to a mode in which a driver acquires a product ID from a product configuration file and writes the product ID into the system registry, thereby distinguishing different products, so that when multiple products are developed on the same hardware platform, a kernel does not need to be recompiled, only the product ID in the product configuration file needs to be changed, and the system can distinguish different products according to different product IDs. Therefore, the embodiment of the invention can save the development time and improve the stability of system development on the basis of not modifying hardware.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A product ID configuration method is suitable for product ID configuration of embedded equipment, and is characterized by comprising the following steps:
(i) connecting a system starting disc to the embedded equipment, wherein a system image file and a product configuration file are stored on the system starting disc;
(ii) after the embedded device is powered on and is started from the system boot disk, at least copying the system image file in the system boot disk to a local memory of the embedded device by using a bootstrap program; and
(iii) the embedded equipment automatically reads the product ID in the product configuration file by using a started driving program after restarting from the local memory and writes the product ID into a system registry;
wherein the product ID corresponds to a version of the programmable logic device program stored in the local memory.
2. The product ID configuration method of claim 1, wherein the embedded device is an LED asynchronous control card comprising an embedded processor and a programmable logic device electrically connected to the embedded processor and the local memory.
3. The product ID configuration method of claim 1, wherein step (ii) comprises copying the product configuration file in the system boot disk to a local memory of the embedded device using a boot program; step (iii) includes automatically reading the product ID in the product configuration file from the local memory using the launched driver.
4. The product ID configuration method of claim 1, wherein the product configuration file further comprises system version information and hardware version information.
5. A program loading method of embedded equipment comprises an embedded processor, a local memory electrically connected with the embedded processor and a programmable logic device; the program loading method is characterized by comprising the following steps:
(a) after the embedded processor is powered on, starting from a system boot disk and copying at least a system image file in the system boot disk to the local memory by using a boot program, wherein the system boot disk comprises the system image file and a product configuration file;
(b) the embedded processor automatically reads the product ID in the product configuration file by using a started driving program after restarting from the local memory and writes the product ID into a system registry; and
(c) the application software of the embedded processor running on the operating system reads the product ID from the system registry, searches the program corresponding to the product ID from the local memory according to the product ID read from the system registry and loads the searched program to the programmable logic device to realize the corresponding product function.
6. The program loading method according to claim 5, wherein step (a) comprises copying the product configuration file in the system boot disk to a local memory of the embedded device using a boot program; step (b) comprises automatically reading the product ID in the product configuration file from the local memory using the launched driver.
7. The program loading method of claim 5, wherein step (b) comprises automatically reading a product ID in the product configuration file from the system boot disk using the booted driver.
8. The program loading method according to claim 5, wherein the embedded device is an LED asynchronous control card, the embedded processor is an ARM processor, and the programmable logic device is an FPGA.
9. The program loading method according to claim 8, wherein the system boot disk is an SD card, and is plugged into an SD card slot of the embedded device.
10. The program loading method of claim 5, wherein the product configuration file further comprises system version information and hardware version information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009434.3A CN106681755B (en) | 2016-11-16 | 2016-11-16 | Product ID configuration method and program loading method of embedded device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611009434.3A CN106681755B (en) | 2016-11-16 | 2016-11-16 | Product ID configuration method and program loading method of embedded device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106681755A CN106681755A (en) | 2017-05-17 |
CN106681755B true CN106681755B (en) | 2020-03-31 |
Family
ID=58840397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611009434.3A Active CN106681755B (en) | 2016-11-16 | 2016-11-16 | Product ID configuration method and program loading method of embedded device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106681755B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239310A (en) * | 2017-06-08 | 2017-10-10 | 山东超越数控电子有限公司 | A kind of method that embedded system uses multimedia equipment |
CN108920212B (en) * | 2018-06-29 | 2022-03-08 | 郑州云海信息技术有限公司 | Linux kernel-based product starting method and system and related components |
CN113138784A (en) * | 2021-04-22 | 2021-07-20 | 中山亿联智能科技有限公司 | Method for modifying product ID |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622190A (en) * | 2012-02-15 | 2012-08-01 | 青岛海信电器股份有限公司 | On-line write-in method for product identifying information and electronic product |
CN102662717A (en) * | 2012-04-27 | 2012-09-12 | 深圳市掌讯通讯设备有限公司 | Bootstrap starting method of embedded system |
CN103777977A (en) * | 2012-10-25 | 2014-05-07 | 上海斐讯数据通信技术有限公司 | Starting method for embedded equipment and switch |
CN105590072A (en) * | 2015-12-18 | 2016-05-18 | 上海华测导航技术股份有限公司 | Method for achieving automatic burning of embedded system |
-
2016
- 2016-11-16 CN CN201611009434.3A patent/CN106681755B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622190A (en) * | 2012-02-15 | 2012-08-01 | 青岛海信电器股份有限公司 | On-line write-in method for product identifying information and electronic product |
CN102662717A (en) * | 2012-04-27 | 2012-09-12 | 深圳市掌讯通讯设备有限公司 | Bootstrap starting method of embedded system |
CN103777977A (en) * | 2012-10-25 | 2014-05-07 | 上海斐讯数据通信技术有限公司 | Starting method for embedded equipment and switch |
CN105590072A (en) * | 2015-12-18 | 2016-05-18 | 上海华测导航技术股份有限公司 | Method for achieving automatic burning of embedded system |
Also Published As
Publication number | Publication date |
---|---|
CN106681755A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933348B (en) | Method and device for updating Bootloader in electronic control unit | |
CN106990958B (en) | Expansion assembly, electronic equipment and starting method | |
KR100778293B1 (en) | Digital tv and upgrade method of bootloader for the same | |
CN106528106B (en) | A kind of embedded system start method of adaptive various different Flash chip types | |
US20140201726A1 (en) | Updating firmware compatibility data | |
CN106681755B (en) | Product ID configuration method and program loading method of embedded device | |
CN109408122B (en) | Equipment starting method, electronic equipment and computer storage medium | |
CN104123153A (en) | Apparatus and method for firmware upgrade using USB | |
CN104965725B (en) | A kind of full-automatic firmware programming method of embedded device based on SD card | |
WO2016090836A1 (en) | Method and apparatus for starting embedded system | |
KR102226558B1 (en) | Computer-readable recording having medium customized unified extensible firmware interface driver | |
CN107690630B (en) | Calculate the bridge configuration in equipment | |
CN103218280A (en) | Hardware general testing method of USB (Universal Serial Bus) equipment | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN113238819B (en) | Dynamic loading method and system of drive file suitable for U-Boot | |
WO2015154538A1 (en) | Memory booting method and device | |
WO2016188037A1 (en) | Version burning method, system and terminal, and computer storage medium | |
CN101807152A (en) | Basic output and input system for self verification of selection read only memory and verification method thereof | |
CN105653330A (en) | SD card based NorFlash programming system and method | |
CN112540725A (en) | Nonvolatile data storage method, embedded system and storage medium | |
WO2015184732A1 (en) | Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium | |
WO2018014687A1 (en) | Parameter passing method and apparatus, and computer storage medium | |
CN106611124B (en) | Computer installation and its starting-up method | |
CN110286953B (en) | Method and device for starting embedded system, embedded device and storage medium | |
CN116954674A (en) | eMMC firmware upgrading method, firmware upgrading equipment and storage device |
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 | ||
CB02 | Change of applicant information |
Address after: 710075 DEF101, Zengyi Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province Applicant after: XI'AN NOVASTAR TECH Co.,Ltd. Address before: High tech Zone technology two road 710075 Shaanxi city of Xi'an Province, No. 68 Xi'an Software Park D District 401 Applicant before: Xi'an NovaStar Tech Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |