CN109871240A - A kind of parameter transfer method, device, electronic equipment and storage medium - Google Patents
A kind of parameter transfer method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109871240A CN109871240A CN201910147750.4A CN201910147750A CN109871240A CN 109871240 A CN109871240 A CN 109871240A CN 201910147750 A CN201910147750 A CN 201910147750A CN 109871240 A CN109871240 A CN 109871240A
- Authority
- CN
- China
- Prior art keywords
- parameter
- assignment
- file
- target variable
- instruction
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a kind of parameter transfer method, device, electronic equipment and storage mediums, this method comprises: transmitting file according to parameter, carry out assignment to target variable;In the case where receiving parameter transmitting instruction, the assignment of target variable is updated;In the case where not receiving parameter transmitting instruction, the assignment of target variable is kept;Export the current assignment of target variable.And then can, when DTB parameter is not transmitted, the parameter transmitting file provided using chip producer carries out preassignment to DTB parameter, realizes that the normal transmitting of DTB parameter improves the stability of system to guarantee the normal starting of system.
Description
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of parameter transfer method, a kind of address converting device, one
Kind electronic equipment and a kind of storage medium.
Background technique
In general, in the prior art, system kernel can receive firmware transmitting DTB (Chinese: binary device tree, it is English:
Device tree binary) parameter, in order to which kernel knows device attribute, and (Chinese: file is set other support FDT
Standby tree, English: File device tree), the processor of this hardware description method is also to know equipment category according to DTB parameter
Property.
However, kernel will be unable to know facility information when firmware does not transmit DTB parameter, cause system normal
Starting and use.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
The parameter transfer method to solve the above problems, to guarantee the normal starting of operating system.
Correspondingly, the embodiment of the invention also provides a kind of parameter transfer device, a kind of electronic equipment and a kind of storages
Medium, to guarantee the implementation and application of the above method.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of parameter transfer methods, which comprises
File is transmitted according to parameter, assignment is carried out to target variable;
In the case where receiving parameter transmitting instruction, the assignment of the target variable is updated;
In the case where not receiving the parameter transmitting instruction, the assignment of the target variable is kept;
Export the current assignment of the target variable.
Optionally, described that file is transmitted according to predetermined parameter, assignment is carried out to target variable, comprising:
The parameter transmitting file is obtained, the parameter transmitting file is the file of source device tree DTS format;
Parameter transmitting file is converted to the file of binary device tree DTB format;
The file of the DTB format is assigned to the target variable as pointer variable.
Optionally, after described the step of transmitting file according to predetermined parameter, carrying out assignment to target variable,
The method also includes:
Obtain the target component that firmware is used to carry out DTB parameter transmitting;
In the case where the target component is equal to preset value, determines and do not receive the parameter transmitting instruction;
In the case where the target component is not equal to the preset value, determines and receive the parameter transmitting instruction.
It is optionally, described that the assignment of the target variable is updated in the case where receiving parameter transmitting instruction,
Include:
In the case where receiving the parameter transmitting instruction, the target component is assigned to the target variable.
The embodiment of the invention also discloses a kind of parameter transfer device, described device includes:
Assignment module carries out assignment to target variable for transmitting file according to parameter;
Update module, for being carried out more to the assignment of the target variable in the case where receiving parameter transmitting instruction
Newly;
Module is kept, for keeping the tax of the target variable in the case where not receiving the parameter transmitting instruction
Value;
Output module, for exporting the current assignment of the target variable.
Optionally, the assignment module, comprising:
File acquisition submodule, for obtaining the parameter transmitting file, the parameter transmitting file is source device tree DTS
The file of format;
File transform subblock, for parameter transmitting file to be converted to the file of binary device tree DTB format;
Variable assignments submodule, for the file of the DTB format to be assigned to the target variable as pointer variable.
Optionally, described device further include:
Parameter acquisition module carries out assignment to target variable for transmitting file according to predetermined parameter described
The step of after, obtain firmware and be used to carry out the target component of DTB parameter transmitting;
Determining module is instructed, in the case where the target component is equal to preset value, determination not to receive the ginseng
Number transmitting instruction;
Described instruction determining module is also used in the case where the target component is not equal to the preset value, and determination connects
Receive the parameter transmitting instruction.
Optionally, the update module, is used for:
In the case where receiving the parameter transmitting instruction, the target component is assigned to the target variable.
It include memory and one or more than one journey the embodiment of the invention also discloses a kind of electronic equipment
Sequence, perhaps more than one program is stored in memory and is configured to by one or more than one processor for one of them
Executing the one or more programs includes the instruction for performing the following operation:
File is transmitted according to parameter, assignment is carried out to target variable;
In the case where receiving parameter transmitting instruction, the assignment of the target variable is updated;
In the case where not receiving the parameter transmitting instruction, the assignment of the target variable is kept;
Export the current assignment of the target variable.
The embodiment of the invention also discloses a kind of readable storage medium storing program for executing, when the instruction in the storage medium is by electronic equipment
Processor execute when so that electronic equipment is able to carry out in the embodiment of the present invention parameter transmitting side described in one or more
Method.
The embodiment of the present invention includes following advantages:
File is transmitted according to parameter, assignment is carried out to target variable;In the case where receiving parameter transmitting instruction, to institute
The assignment for stating target variable is updated;In the case where not receiving the parameter transmitting instruction, the target variable is kept
Assignment;Export the current assignment of the target variable.And then can, when DTB parameter is not transmitted, utilize chip producer
The parameter transmitting file of offer carries out preassignment to DTB parameter, the normal transmitting of DTB parameter is realized, to guarantee the normal of system
Starting, improves the stability of system.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of parameter transfer method embodiment of the invention;
Fig. 2 is the step flow chart of another parameter transfer method embodiment of the invention;
Fig. 3 is the step flow chart of another parameter transfer method embodiment of the invention;
Fig. 4 is a kind of structural block diagram of parameter transfer device embodiment of the invention;
Fig. 5 is the structural block diagram of another parameter transfer device embodiment of the invention;
Fig. 6 is a kind of structural block diagram of electronic equipment for parameter transmitting of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of parameter transfer method embodiment of the invention is shown, can specifically include
Following steps:
Step 101, file is transmitted according to parameter, assignment is carried out to target variable.
It should be noted that the board of chip producer production can be provided with reference to DTS file in kernel, in advance will
By DTS (Chinese: source device tree;English: Device tree source) file compiling generate DTB (Chinese: binary device
Tree;English: Device tree binary) parameter assignment is to target variable, and then the case where firmware does not transmit DTB parameter
Under, kernel, which can choose, to be exported by the DTB parameter that the compiling of DTS file generates as target variable, and below step is carried out
Operation.
Illustratively, defining loongson_fdt_blob is target variable, and for obtaining DTB parameter, according to chip, producer is mentioned
The DTB file of confession carries out preassignment to target variable:
Loongson_fdt_blob=__dtb_loongson3_ls7a_begin;
Wherein _ _ dtb_loongson3_ls7a_begin is the mechanism provided by kernel and corresponding chip producer
The DTB file that the DTS file of offer compiles out.
Step 102, in the case where receiving parameter transmitting instruction, the assignment of target variable is updated.
In a particular application, kernel can define a global variable for receive firmware transmitting parameter, such as MIPS (in
Text: the microprocessor without inner interlocked pipelining-stage;English: Microprocessor without interlocked piped
Stages) the undefined variable of platform is void*loongson_fdt_blob;Parameter transmitting instruction is received it is meant that DTB
Parameter for example passes through esys- > of_dtb_addr and is transferred in kernel by firmware, therefore by the DTB parameter assignment of transmitting to target
Variable, i.e., when receiving transmitting instruction:
Loongson_fdt_blob=(void*) (esys- > of_dtb_addr).
Step 103, in the case where not receiving parameter transmitting instruction, the assignment of target variable is kept.
In a particular application, in the case where not receiving parameter transmitting instruction, due in advance to the assignment of target variable
(DTB file) then keeps step 101 to keep the assignment of loongson_fdt_blob, that is, loongson_fdt_blob
For _ _ dtb_loongson3_ls7a_begin.
Step 104, the current assignment of target variable is exported.
Illustratively, when receive parameter transmitting instruction when, that is, execute step 102 when, then by (void*) (esys- >
Of_dtb_addr) the current assignment as loongson_fdt_blob (target variable) is exported, in order to which system is normal
Starting;Otherwise, _ _ dtb_loongson3_ls7a_begin exports the current assignment as target variable, still ensures that and is
The normal starting of system.
In conclusion the technical solution that the application proposes, transmits file according to parameter, assignment is carried out to target variable;?
In the case where receiving parameter transmitting instruction, the assignment of target variable is updated;Parameter transmitting instruction is not being received
In the case of, keep the assignment of target variable;Export the current assignment of target variable.And then can, it is not transmitted in DTB parameter
When, the parameter transmitting file provided using chip producer carries out preassignment to DTB parameter, realize the normal transmitting of DTB parameter, with
The normal starting of guarantee system, improves the stability of system.
Optionally, referring to Fig. 2, the step flow chart of another address conversion method embodiment of the invention is shown, is walked
File is transmitted according to predetermined parameter described in rapid 101, assignment is carried out to target variable, may include steps of:
Step 1011, it gets parms and transmits file.
Wherein, parameter transmitting file is the file of source device tree DTS format.It is, obtaining chip producer in interior core
The DTS file of setting.
Step 1012, parameter transmitting file is converted to the file of binary device tree DTB format.
In a particular application, after being compiled to parameter transmitting file (DTS file), DTB file is generated, e.g.: _ _
dtb_loongson3_ls7a_begin。
Step 1013, the file of DTB format is assigned to target variable as pointer variable.
Illustratively, loongson_fdt_blob=__dtb_loongson3_ls7a_begin.
Optionally, referring to Fig. 3, the step flow chart of another address conversion method embodiment of the invention is shown,
After step 101, the method may include following steps:
Step 105, the target component that firmware is used to carry out DTB parameter transmitting is obtained.
Step 106, it in the case where target component is equal to preset value, determines and does not receive parameter transmitting instruction.
Step 107, it in the case where target component is not equal to preset value, determines and receives parameter transmitting instruction.
Illustratively, after carrying out preassignment to target variable, kernel will test whether firmware has Transfer Parameters, that is,
Judge the value of the esys- > of_dtb_addr (target component).Esys- > of_dtb_addr as DTB Transfer Parameters, when its not
When for NULL (0), that is, illustrate that firmware transmitting has DTB parameter, that is, determine and receive parameter transmitting instruction, kernel can will be consolidated
The DTB parameter assignment of part transmitting executes the operation of step 102, target component is assigned to mesh to loongson_fdt_blob
Variable is marked, with the DTB parameter (preassignment of step 101) in kernel before covering;If firmware does not transmit DTB parameter,
Esys- > of_dtb_addr is 0 (NULL), it is determined that not receive parameter transmitting instruction, is not executed to loongson_fdt_
The assignment of blob also continues to the preassignment for keeping step 101, using the DTB parameter of kernel as loongson_fdt_blob's
Value, so that, when firmware does not have Transfer Parameters, system also can be used normally for the board of chip producer oneself.
Illustratively, loongson_fdt_blob=__dtb_loongson3_ls7a_begin;(the pre- tax of target variable
Value)
If (esys- > of_dtb_addr) (judges whether esys- > of_dtb_addr is 0)
Loongson_fdt_blob=(void*) (esys- > of_dtb_addr) (is not 0, target component is assigned to
Target variable is realized and is updated to the numerical value of target variable).
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 4, show a kind of structural block diagram of parameter transfer device embodiment of the invention, can specifically include as
Lower module:
Assignment module 410 carries out assignment to target variable for transmitting file according to parameter.
Update module 420, for being carried out more to the assignment of target variable in the case where receiving parameter transmitting instruction
Newly.
Module 430 is kept, for keeping the assignment of target variable in the case where not receiving parameter transmitting instruction.
Output module 440, for exporting the current assignment of target variable.
Optionally, referring to Fig. 5, the structural block diagram of another parameter transfer device embodiment of the invention is shown, specifically
Assignment module 410 may include following module:
File acquisition submodule 411 transmits file for getting parms, and it is source device tree DTS format that parameter, which transmits file,
File.
File transform subblock 412, for parameter transmitting file to be converted to the file of binary device tree DTB format.
Variable assignments submodule 413, for the file of DTB format to be assigned to target variable as pointer variable.
Optionally, device 400 further include:
Parameter acquisition module 450 carries out assignment to target variable for transmitting file according to predetermined parameter
After step, the target component that firmware is used to carry out DTB parameter transmitting is obtained;
Determining module 460 is instructed, for determining and not receiving parameter transmitting in the case where target component is equal to preset value
Instruction.
Determining module 460 is instructed, is also used to determine in the case where target component is not equal to preset value and receive parameter biography
Pass instruction.
Optionally, update module 420 are used for:
In the case where receiving parameter transmitting instruction, target component is assigned to target variable.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
Fig. 6 is a kind of structural block diagram of electronic equipment 600 for parameter transmitting shown according to an exemplary embodiment.
For example, electronic equipment 600 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console put down
Panel device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, electronic equipment 600 may include following one or more components: processing component 602, memory 604,
Power supply module 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614,
And communication component 616.
The integrated operation of the usual controlling electronic devices 600 of processing component 602, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing element 602 may include one or more processors 620 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more moulds
Block, convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, with
Facilitate the interaction between multimedia component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown
Example includes the instruction of any application or method for operating on electronic equipment 600, contact data, telephone directory number
According to, message, picture, video etc..Memory 604 can by any kind of volatibility or non-volatile memory device or they
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Electric power assembly 604 provides electric power for the various assemblies of electronic equipment 600.Electric power assembly 604 may include power supply pipe
Reason system, one or more power supplys and other with for electronic equipment 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between the electronic equipment 600 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 608 includes a front camera and/or rear camera.When electronic equipment 600 is in operation mode, as clapped
When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition
Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when electronic equipment 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or via logical
Believe that component 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, for providing the state of various aspects for electronic equipment 600
Assessment.For example, sensor module 614 can detecte the state that opens/closes of equipment 600, the relative positioning of component, such as institute
The display and keypad that component is electronic equipment 600 are stated, sensor module 614 can also detect electronic equipment 600 or electronics
The position change of 600 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 600,600 orientation of electronic equipment
Or the temperature change of acceleration/deceleration and electronic equipment 600.Sensor module 614 may include proximity sensor, be configured to
It detects the presence of nearby objects without any physical contact.Sensor module 614 can also include optical sensor, such as
CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with
Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between electronic equipment 600 and other equipment.
Electronic equipment 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one
In example property embodiment, communication component 614 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 614 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 600 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal
When row, enable the terminal to execute a kind of parameter transfer method, which comprises
File is transmitted according to parameter, assignment is carried out to target variable;
In the case where receiving parameter transmitting instruction, the assignment of the target variable is updated;
In the case where not receiving the parameter transmitting instruction, the assignment of the target variable is kept;
Export the current assignment of the target variable.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In the computer-readable memory to work in a predictive manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It is situated between above to a kind of parameter transfer method provided by the present invention and device, a kind of electronic equipment and a kind of storage
Matter is described in detail, and used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of parameter transfer method, which is characterized in that the described method includes:
File is transmitted according to parameter, assignment is carried out to target variable;
In the case where receiving parameter transmitting instruction, the assignment of the target variable is updated;
In the case where not receiving the parameter transmitting instruction, the assignment of the target variable is kept;
Export the current assignment of the target variable.
2. the method according to claim 1, wherein described transmit file according to predetermined parameter, to mesh
It marks variable and carries out assignment, comprising:
The parameter transmitting file is obtained, the parameter transmitting file is the file of source device tree DTS format;
Parameter transmitting file is converted to the file of binary device tree DTB format;
The file of the DTB format is assigned to the target variable as pointer variable.
3. according to the method described in claim 2, it is characterized in that, it is described according to predetermined parameter transmit file, it is right
After target variable carries out the step of assignment, the method also includes:
Obtain the target component that firmware is used to carry out DTB parameter transmitting;
In the case where the target component is equal to preset value, determines and do not receive the parameter transmitting instruction;
In the case where the target component is not equal to the preset value, determines and receive the parameter transmitting instruction.
4. according to the method described in claim 3, it is characterized in that, it is described receive parameter transmitting instruction in the case where, it is right
The assignment of the target variable is updated, comprising:
In the case where receiving the parameter transmitting instruction, the target component is assigned to the target variable.
5. a kind of parameter transfer device, which is characterized in that described device includes:
Assignment module carries out assignment to target variable for transmitting file according to parameter;
Update module, for being updated to the assignment of the target variable in the case where receiving parameter transmitting instruction;
Module is kept, for keeping the assignment of the target variable in the case where not receiving the parameter transmitting instruction;
Output module, for exporting the current assignment of the target variable.
6. device according to claim 5, which is characterized in that the assignment module, comprising:
File acquisition submodule, for obtaining the parameter transmitting file, the parameter transmitting file is source device tree DTS format
File;
File transform subblock, for parameter transmitting file to be converted to the file of binary device tree DTB format;
Variable assignments submodule, for the file of the DTB format to be assigned to the target variable as pointer variable.
7. device according to claim 6, which is characterized in that described device further include:
Parameter acquisition module carries out the step of assignment to target variable for transmitting file according to predetermined parameter described
After rapid, the target component that firmware is used to carry out DTB parameter transmitting is obtained;
Determining module is instructed, in the case where the target component is equal to preset value, determining that not receiving the parameter passes
Pass instruction;
Described instruction determining module is also used in the case where the target component is not equal to the preset value, and determination receives
The parameter transmitting instruction.
8. device according to claim 7, which is characterized in that the update module is used for:
In the case where receiving the parameter transmitting instruction, the target component is assigned to the target variable.
9. a kind of electronic equipment, which is characterized in that include memory and one or more than one program, wherein one
A perhaps more than one program is stored in memory and is configured to execute described one by one or more than one processor
A or more than one program includes the instruction for performing the following operation:
File is transmitted according to parameter, assignment is carried out to target variable;
In the case where receiving parameter transmitting instruction, the assignment of the target variable is updated;
In the case where not receiving the parameter transmitting instruction, the assignment of the target variable is kept;
Export the current assignment of the target variable.
10. a kind of readable storage medium storing program for executing, which is characterized in that when the instruction in the storage medium is held by the processor of electronic equipment
When row, so that electronic equipment is able to carry out the parameter transfer method as described in one or more in claim to a method 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910147750.4A CN109871240A (en) | 2019-02-27 | 2019-02-27 | A kind of parameter transfer method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910147750.4A CN109871240A (en) | 2019-02-27 | 2019-02-27 | A kind of parameter transfer method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109871240A true CN109871240A (en) | 2019-06-11 |
Family
ID=66919392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910147750.4A Pending CN109871240A (en) | 2019-02-27 | 2019-02-27 | A kind of parameter transfer method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109871240A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022161317A1 (en) * | 2021-01-29 | 2022-08-04 | 展讯通信(上海)有限公司 | Lcd debugging method and apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2479673A2 (en) * | 2011-01-20 | 2012-07-25 | Fujitsu Limited | Software architecture for validating C++ programs using symbolic execution |
CN103676937A (en) * | 2013-12-10 | 2014-03-26 | 中联重科股份有限公司 | Method and device for processing control parameters in controller |
CN107577477A (en) * | 2017-09-06 | 2018-01-12 | 武汉虹信通信技术有限责任公司 | A kind of multi-platform software version adaptive approach and system based on DTB files |
-
2019
- 2019-02-27 CN CN201910147750.4A patent/CN109871240A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2479673A2 (en) * | 2011-01-20 | 2012-07-25 | Fujitsu Limited | Software architecture for validating C++ programs using symbolic execution |
CN103676937A (en) * | 2013-12-10 | 2014-03-26 | 中联重科股份有限公司 | Method and device for processing control parameters in controller |
CN107577477A (en) * | 2017-09-06 | 2018-01-12 | 武汉虹信通信技术有限责任公司 | A kind of multi-platform software version adaptive approach and system based on DTB files |
Non-Patent Citations (1)
Title |
---|
ZHAOXIAOJ: "龙芯内核编程技术规范", 《HTTPS://MAX.BOOK118.COM/HTML/2018/1103/7152063115001155.SHTM》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022161317A1 (en) * | 2021-01-29 | 2022-08-04 | 展讯通信(上海)有限公司 | Lcd debugging method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2653276C2 (en) | Communication module firmware and plug-in generation method and apparatus | |
CN104486451B (en) | Application program recommends method and device | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN105487658A (en) | Application operation control method and apparatus | |
CN104580019A (en) | Network service supplying method and device | |
CN104636453A (en) | Illegal user data identification method and device | |
CN104020924A (en) | Label establishing method and device and terminal | |
CN104793843A (en) | Desktop display method and device | |
CN104461348A (en) | Method and device for selecting information | |
CN109358933A (en) | The creation method and device applied fastly | |
CN104881342B (en) | terminal test method and device | |
CN104375760B (en) | Method for information display and device | |
CN111061452A (en) | Voice control method and device of user interface | |
CN104750478B (en) | The display methods and device of application interface | |
CN106547705A (en) | USB (universal serial bus) operating mode control method and device | |
CN109582297A (en) | A kind of generation method of Code Template, device, electronic equipment and storage medium | |
CN105808096A (en) | Sliding block display method and apparatus | |
CN105260201A (en) | Application installation methods and devices, and smart devices | |
CN104951522A (en) | Searching method and device | |
CN109871240A (en) | A kind of parameter transfer method, device, electronic equipment and storage medium | |
CN104539497A (en) | Network connecting method and device | |
CN106331337A (en) | Terminal peripheral starting method and device | |
CN105677435A (en) | Function invoking method, apparatus and terminal | |
CN105516895A (en) | User information push method and device | |
RU2645590C2 (en) | Data processing means and method |
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 | ||
CB02 | Change of applicant information |
Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing Applicant after: Loongson Zhongke Technology Co.,Ltd. Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing Applicant before: LOONGSON TECHNOLOGY Corp.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190611 |