US2018101394A1PendingUtilityA1
Method and embedded device for loading driver
Est. expiryApr 30, 2034(~7.8 yrs left)· nominal 20-yr term from priority
G06F 8/41G06F 9/44505G06F 9/4411
48
PatentIndex Score
0
Cited by
0
References
0
Claims
Abstract
A method and a device for loading a driver is provided, where the method includes: determining a model identifier corresponding to a component comprised in an embedded device, wherein the component is a component onto which a driver is to be loaded, searching for a driver associated with the model identifier corresponding to the component, and loading drivers of components into different memories having different priorities, wherein the drivers of more important components are loaded into memories with higher priority.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for loading a driver, the method comprising:
determining a model identifier corresponding to a component comprised in an embedded device, wherein the component is a component onto which a driver is to be loaded; searching for a driver associated with the model identifier corresponding to the component; and loading drivers of components into different memories having different priorities, wherein the drivers of more important components are loaded into memories with higher priority.
2 . The method according to claim 1 , wherein searching for a driver associated with the model identifier corresponding to the component comprises:
searching for the driver by using a minimum operating system mirror of the embedded device.
3 . The method according to claim 2 , wherein before searching for a driver associated with the model identifier corresponding to the component, the method further comprises:
generating the minimum operating system mirror of the embedded device.
4 . The method according to claim. 3 , wherein generating the minimum operating system mirror of the embedded device comprises:
compiling original code developed based on the service function of the embedded device to generate an initial minimum operating system mirror, wherein the initial minimum operating system mirror comprises an executable file and a file in an executable and linkable format, the original code for implementing the service function of the embedded device; extracting a symbol table from the file in the executable and linkable format, wherein the file in the executable and linkable format is comprised in the initial minimum operating system mirror; generating a C file according to the symbol table, and adding the generated C file to the original code; and compiling the original code to which the C file has been added to obtain the minimum operating system mirror of the embedded device.
5 . The method according to claim 1 , wherein before searching for a driver associated with the model identifier corresponding to the component, the method further comprises:
determining respective model identifiers of components of a same type with the component and each driver corresponding to each of the components of the same type, wherein the components of the same type are components that have a same attribute or function with the component; and storing an association relationship between a determined model identifier of each component of the same type with the component and a determined driver of the component of the same type.
6 . The method according to claim. 5 , wherein storing an association relationship between a determined model identifier of each component of the same type with the component and a determined driver of the component of the same type comprises:
compiling the driver of each component of the same type into a file in a preset format, wherein the file in the preset format has an attribute of relocation; storing the file in the preset format according to a preset rule, and acquiring a logical address in which the file in the preset format is stored; and storing a correspondence between any one of the model identifiers and the acquired logical address.
7 . The method according to claim 6 , wherein an address field of the file in the preset format is an initial preset value, and after storing the file in the preset format according to a preset rule, the method further comprises:
changing the initial preset value in the address field of the file in the preset format to the logical address.
8 . The method according to claim 6 , wherein searching for a driver associated with the model identifier corresponding to the component comprises:
determining, from the stored association relationship, a logical address that is corresponding to the model identifier corresponding to the component; and using a file in a preset format as the driver associated with the model identifier corresponding to the component, wherein the file in the preset format is stored in the determined logical address.
9 . The method according to claim 2 , wherein the minimum operating system mirror is used to start the embedded device, run a service function, and load the driver of the component comprised in the embedded device.
10 . The method according to claim 2 , wherein loading drivers of components into different memories having different priorities by using the minimum operating system mirror comprises
loading drivers of components into different memories having different priorities by using the minimum operating system mirror in a dynamic loading manner.
11 . The method according to claim 10 , wherein loading drivers of components into different memories having different priorities by using the minimum operating system mirror in a dynamic loading manner comprises:
copying the found driver into the memory of the embedded device by using a function and a global variable in the minimum operating system mirror; and based on the minimum operating system mirror and in a form of a function pointer, invoking an interface function in the found driver and linking the driver that is copied into the memory of the embedded device.
12 . The method according to claim 1 , further comprising:
controlling the driver loaded into the memory of the embedded device to drive the component.
13 . The method according to claim 1 , wherein the priority of a memory is determined by the storing efficiency of the memory, where the memory having higher priority has a higher storing efficiency.
14 . The method according to claim 1 , wherein the importance of a component is determined by the using frequency of the component, where the more important component has a higher frequency of use.
15 . The method according to claim 1 , wherein the different memories comprise: a static random access memory (SRAM) and a double data rate (DDR) synchronous dynamic random access memory.
16 . A computer system, comprising
a memory configured to store instructions; and a processor configured to read the instructions from the memory which, when executed by the processor, cause the computer system to:
determine a model identifier corresponding to a component comprised in an embedded device, wherein the component is a component onto which a driver is to be loaded,
search for a driver associated with the model identifier corresponding to the component, and
load drivers of components into different memories having different priorities, wherein the drivers of more important components are loaded into memories with higher priority.
17 . An embedded device for loading a driver, the device comprising:
at least one processor configured to:
determine a model identifier corresponding to a component comprised in an embedded device, wherein the component is a component onto which a driver is to be loaded,
search for a driver associated with the model identifier corresponding to the component, and
load drivers of components into different memories having different priorities, wherein the drivers of more important components are loaded into memories with higher priority.
18 . The device according to claim 17 , wherein a priority of a memory is determined by the storing efficiency of the memory, where the memory having higher priority has a higher storing efficiency.
19 . The device according to claim 17 , wherein the importance of a component is determined by the using frequency of the component, where the more important component has higher frequency of use.
20 . The device according to claim 17 , wherein the different memories comprise: a static random access memory (SRAM) and a double data rate (DDR) synchronous dynamic random access memory.Join the waitlist — get patent alerts
Track US2018101394A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.