The content of the invention
The embodiments of the invention provide a kind of interface chip upgrade method, device, storage medium and processor, at least to solve
Certainly prior art can not carry out the technical problem of firmware upgrade to the interface chip of large scale deployment.
One side according to embodiments of the present invention, there is provided a kind of interface chip upgrade method, including:Obtain chip liter
Level instruction, wherein, the chip upgrade is instructed for upgrading to the interface chip;Instructed according to the chip upgrade,
The file to be upgraded of the interface chip is stored in by spatial cache by interface accessory channel;According to the institute in the spatial cache
The file to be upgraded of interface chip is stated, the interface chip is upgraded.
Further, instructed according to the chip upgrade, wait to rise by the interface chip by interface accessory channel
Before level file deposit spatial cache, in addition to:Identify the type for the video card being connected with the interface chip, and the interface
The interface type that chip is connected with the video card;The interface auxiliary is determined according to the type of the video card and the interface type
The type of passage.
Further, after chip upgrade instruction is obtained, methods described includes:In the first reservations database obtain with
The type of the interface accessory channel corresponds to reading manner;Connect described in being read according to the reading manner from the spatial cache
File in mouth chip;The file in the interface chip is adjusted according to chip upgrade instruction, obtains institute
State file to be upgraded.
Further, the file to be upgraded of the interface chip is stored in into spatial cache by interface accessory channel includes:
Writing mode corresponding with the type of the interface accessory channel is obtained in the second reservations database;Will according to said write mode
The file to be upgraded is stored in the spatial cache.
Further, the file to be upgraded according to the interface chip in the spatial cache, to the interface chip
Carrying out upgrading includes at least one of:Replaced using predetermined upgrade file described in the interface chip of the spatial cache
File to be upgraded, the interface chip is upgraded using the predetermined upgrade file;Wipe the described of the spatial cache
The file to be upgraded of interface chip, the interface chip is upgraded using the file to be upgraded after erasing;Repair
Change the file to be upgraded of the interface chip of the spatial cache, using the amended file to be upgraded to described
Interface chip is upgraded;The file to be upgraded of the interface chip of the spatial cache and predetermined file are contrasted,
Judge whether the file to be upgraded and the predetermined file are identical.
Further, after upgrading to the interface chip, methods described includes:The interface chip is treated
Upgrade file write-protect.
Another aspect according to embodiments of the present invention, a kind of interface chip update device is additionally provided, including:Obtain single
Member, for obtaining chip upgrade instruction, wherein, the chip upgrade is instructed for upgrading to the interface chip;Caching
Unit, for being instructed according to the chip upgrade, the file to be upgraded of the interface chip is stored in by interface accessory channel
Spatial cache;Upgrade unit, for the file to be upgraded according to the interface chip in the spatial cache, to the interface
Chip is upgraded.
Further, the upgrade unit includes at least one of:Replacement unit, for being replaced using predetermined upgrade file
The file to be upgraded of the interface chip of the spatial cache is changed, using the predetermined upgrade file to the interface core
Piece is upgraded;Unit is wiped, the file to be upgraded of the interface chip for wiping the spatial cache, uses wiping
The file to be upgraded after removing upgrades to the interface chip;Unit is changed, for changing the institute of the spatial cache
The file to be upgraded of interface chip is stated, the interface chip is upgraded using the amended file to be upgraded;
Verification unit, for the file to be upgraded of the interface chip of the spatial cache and predetermined file to be contrasted, judge
Whether the file to be upgraded and the predetermined file are identical.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage
Program, wherein, the method described in any of the above-described is performed when described program is run.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used for operation program, its
In, the method described in any of the above-described is performed when described program is run.
In embodiments of the present invention, the feelings of the chip upgrade instruction upgraded for indicating docking port chip are being got
Under condition, the file to be upgraded in interface chip is stored to spatial cache by interface accessory channel, so it is empty by caching
Interior file docking port chip to be upgraded is upgraded, due to that can pass through interface accessory channel access cache space so that
The file to be upgraded of the chip upgrade instruction of docking port chip can be transmitted into spatial cache, and then is made in spatial cache
The process that data are adjusted is carried out without using EVB development boards, it is only necessary to accomplishes to carry out the file to be upgraded in spatial cache
The firmware upgrade for mouthful chip that can achieve a butt joint is replaced, so as to reduce the difficulty that firmware upgrade is carried out to chip, is realized fast
Firmware upgrade fastly is carried out to the interface chip of large scale deployment, solving prior art can not be to the interface core of large scale deployment
Piece carries out the technical problem of firmware upgrade.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
First, the part noun or term occurred during the embodiment of the present invention is described is applied to following solution
Release:
I2C, it is that a kind of universal serial bus only needs both threads to transmit information between the device being connected in bus.
EVB, English full name are Evaluation board, evaluation board, for chip development.
Firmware, English name are that Firmware is exactly to write EROM (EROM) or EEPROM (electrically erasables
Programmable read only memory) in program, refer to device interior preservation equipment " driver ", pass through firmware, operating system
It can realize that the run action of particular machine, such as CD-ROM drive, CD writer etc. have internal firmware, firmware according to the device drives of standard
It is the software for serving as the most basic bottom work of a system.
According to embodiments of the present invention, there is provided a kind of interface chip upgrade method embodiment is, it is necessary to illustrate, in accompanying drawing
Flow the step of illustrating can be performed in the computer system of such as one group computer executable instructions, although also,
Show logical order in flow charts, but in some cases, can with different from order herein perform it is shown or
The step of description.
Fig. 1 is a kind of schematic diagram of optional interface chip upgrade method according to embodiments of the present invention, as shown in figure 1,
This method comprises the following steps:
Step S102, chip upgrade instruction is obtained, wherein, chip upgrade instructs to be upgraded for docking port chip;
Step S104, is instructed according to chip upgrade, is stored in the file to be upgraded of interface chip by interface accessory channel
Spatial cache;
Step S106, according to the file to be upgraded of the interface chip in spatial cache, docking port chip is upgraded.
According to the above embodiment of the present invention, getting for indicating that the chip upgrade that docking port chip is upgraded instructs
In the case of, the file to be upgraded in interface chip is stored to spatial cache by interface accessory channel, and then by slow
The file docking port chip to be upgraded deposited in space is upgraded, due to can by interface accessory channel access cache space,
The file to be upgraded that the chip upgrade of docking port chip is instructed is transmitted into spatial cache, and then is made to spatial cache
In the process that is adjusted of data carried out without using EVB development boards, it is only necessary to accomplish to the file to be upgraded in spatial cache
The firmware upgrade for mouthful chip that can achieve a butt joint is replaced, it is real so as to reduce the difficulty that firmware upgrade is carried out to chip
Firmware upgrade rapidly now is carried out to the interface chip of large scale deployment, solving prior art can not connect to large scale deployment
Mouth chip carries out the technical problem of firmware upgrade.
Alternatively, the file to be upgraded in interface chip is called firmware, and the file to be upgraded in docking port chip is risen
Level is firmware upgrade.
Alternatively, file to be upgraded can be Hex files, and Hex files are stored in spatial cache, you can empty by caching
Between in Hex file docking port chips upgraded.
It should be noted that Hex file formats are can be with programming into single-chip microcomputer, by a kind of tray of single-chip microcomputer execution
Formula, the mode of generation Hex files have many kinds, can be generated c program or assembler compiling by different compilers
Hex。
Alternatively, the firmware stored in the register of interface chip, it is empty that caching can be mapped to by interface accessory channel
Between in Flash, wherein, spatial cache and register pair should, can docking port by the file to be upgraded adjusted in spatial cache
Firmware in chip is upgraded, i.e. firmware upgrade.
It is alternatively possible to file to be upgraded is imported in spatial cache, so as to realize by spatial cache docking port
The upgrading of chip.
It is alternatively possible to the file to be upgraded in spatial cache could be adjusted to achieve a butt joint according to chip upgrade instruction
The upgrading of mouth chip.
Alternatively, interface chip can be applied in display end or VR equipment, for DP to be switched to MIPI chip.
It should be noted that VR is called virtual reality, it is a kind of display terminal;DP refers to DisplayPort, is a kind of high definition
Digital display interface standard;MIPI movement Industry Processor Interfaces (Mobile Industry Processor Interface),
The open standard formulated for Mobile solution processor and a specification that MIPI alliances initiate.
Alternatively, chip upgrade instruction can be sent by operating system, and the operating system can be computer system, example
Such as Windows systems.
Alternatively, interface chip can be connected with the video card of computer, the chip upgrade that the operating system of computer is sent
Instruction, can be transmitted by video card to interface chip.
As a kind of optional embodiment, instructed according to chip upgrade, by interface accessory channel by interface chip
Before file deposit spatial cache to be upgraded, in addition to:Identify the type for the video card being connected with interface chip, and interface chip
The interface type being connected with video card;The type of interface accessory channel is determined according to the type of video card and interface type.
Using the above embodiment of the present invention, the file to be upgraded of interface chip is being stored in by caching by interface accessory channel
Before space, by identifying the video card type with interface chip, and the interface type that interface chip is connected with video card, Ran Houzai
The interface type being connected according to the type of video card and interface chip with video card determines the type of interface accessory channel, so as to
The communication of interface chip and spatial cache is accurately established according to the type of the interface accessory channel, realizes and is docked using spatial cache
The possibility of the firmware upgrade of mouth chip.
As a kind of optional example, if video card is A, video card A is connected by DP interfaces with interface chip, by identifying,
According to video card A DP interfaces and the annexation of interface chip, the communication of spatial cache and interface chip can be established.
As a kind of optional embodiment, after chip upgrade instruction is obtained, method includes:In the first reservations database
It is middle to obtain reading manner corresponding with the type of interface accessory channel;Read according to reading manner from spatial cache in interface chip
File;Instruct the file in docking port chip to be adjusted according to chip upgrade, obtain file to be upgraded.
Using the above embodiment of the present invention, according to the type of interface accessory channel, obtain to read in the first database and delay
The reading manner of the file in space is deposited, then reads the file in spatial cache according still further to the reading manner, and to reading
File in spatial cache is adjusted, and obtains the file to be upgraded of the interface chip, so as to be treated with what is obtained after adjustment
The upgrading of upgrade file docking port chip.
Alternatively, it is logical that polytype video card interface auxiliary corresponding with polytype interface is stored in the first database
The type in road, and reading manner corresponding to the type of interface accessory channel.
As a kind of optional embodiment, according to the file to be upgraded of the interface chip in spatial cache, docking port chip
Carrying out upgrading includes:Writing mode corresponding with the type of interface accessory channel is obtained in the second reservations database;According to write-in
File to be upgraded is stored in spatial cache by mode.
Using the above embodiment of the present invention, according to the type of interface accessory channel, obtained in the second database to be upgraded
File to be upgraded, is then stored in spatial cache by the writing mode in file write-in spatial cache according still further to the writing mode,
So as to the file docking port chip upgrade to be upgraded in cushion space.
Alternatively, it is logical that polytype video card interface auxiliary corresponding with polytype interface is stored in the second database
The type in road, and writing mode corresponding to the type of interface accessory channel.
As a kind of optional embodiment, according to the file to be upgraded of the interface chip in spatial cache, docking port chip
Carrying out upgrading includes at least one of:The file to be upgraded of the interface chip of spatial cache is replaced using predetermined upgrade file,
Upgraded using predetermined upgrade file docking port chip;The file to be upgraded of the interface chip of spatial cache is wiped, uses wiping
File docking port chip to be upgraded after removing is upgraded;The file to be upgraded of the interface chip of spatial cache is changed, using repairing
File docking port chip to be upgraded after changing is upgraded;By the file to be upgraded and predetermined file of the interface chip of spatial cache
Contrast, judges whether file to be upgraded is identical with predetermined file.
Using the above embodiment of the present invention, in the file to be upgraded of the interface chip according to spatial cache, docking port chip
The process upgraded, predetermined upgrade file can be used to replace the file to be upgraded in spatial cache, come mouthful core that achieves a butt joint
The upgrading of piece;Or the file to be upgraded in erasing spatial cache, come the upgrading for mouthful chip that achieves a butt joint;Or in modification spatial cache
File to be upgraded, come the upgrading for mouthful chip that achieves a butt joint, or file to be upgraded and predetermined file pair in extraction interface chip
Than judging whether file to be upgraded is identical with predetermined file, so as to check and correction to be upgraded in mouthful chip that achieves a butt joint, and then realizing
The upgrading of docking port chip.
As a kind of optional embodiment, after docking port chip is upgraded, method includes:Docking port chip is treated
Upgrade file write-protect.
Using the above embodiment of the present invention, can wait to rise in docking port chip after docking port chip is upgraded
Level file write-protect, is avoided to the faulty operation of the file to be upgraded in chip after firmware upgrade is completed, and then avoid causing
The failure of interface chip.
Alternatively, the file write-protect to be upgraded of docking port chip, can with the connection of de-interfaced chip and spatial cache,
So as to which in the case where changing the file to be upgraded of spatial cache, the file to be upgraded that will not also change in interface chip is (i.e. solid
Part).
Present invention also offers a kind of preferred embodiment, the preferred embodiment provides one kind by DP AUX Channel
Upgrade the device and implementation of Chicago chips.
Chicago chips are a kind of interface conversion chips, can be that DP turns MIPI chips specifically.
During firmware upgrade is carried out to Chicago chips, interface accessory channel (DP Aux can be passed through
Channel) signal wire and access control interface, accessory channel (Aux Channel) caching is mapped to using Chicago chips
Space Flash operates Chicago chip registers, realizes the access to Chicago chip internal spatial caches.
According to the different qualities of each platforms of Windows, interface accessory channel (the DP Aux of each video card offer
Channel) access control interface, and skill provided by the invention is established to manipulation of the spatial cache (Flash) in read-write sequence
Art scheme.
Fig. 2 is a kind of schematic diagram of optional interface chip hardware connection according to embodiments of the present invention, as shown in Fig. 2
Chicago chips (interface chip 21) are located at the equipment of VR 22 or display end 23 (Monitor ends), pass through display port data wire
24 (DP Cable) or embedded display port data wires 25 (eDP Cable) are connected to the display port 26 (DP) or embedding of video card 28
Enter display port 27 (eDP), the application program in the operating system of computer 29 passes through display port data wire or embedded display end
Accessory channel (Aux channel) signal wire in mouth data wire (DP/eDP Cable) reads and writes Chicago chip internals
(Flash), so as to reach upgrading Chicago internal processes purpose.
Alternatively, video card includes Intel video cards, Nvidia video cards and AMD video cards.
It is alternatively possible to realize identification to video card by preliminary examinationization operation, and identify different types of video card with
The connected mode of interface chip.
For example, the display ports (DP) of AMD video cards can be identified by display port data wire (DP Cable) with connecing
The connection of mouthful chip, and then determine that the type of the interface accessory channel is AMD DP Aux channel.
It is alternatively possible to determined to read the generation of the file of interface chip in spatial cache according to the type of interface accessory channel
Code, it can also be determined to write file to be upgraded into the code of spatial cache according to the type of interface accessory channel.
Fig. 3 is a kind of schematic diagram of optional user interface according to embodiments of the present invention, as shown in figure 3, the interface is wrapped
Include and browse " Browse ", erasing " Erase ", program " Program ", verification " Verify " four buttons, user opens interface core
After piece upgrading tool (i.e. Chicago Aux Update Tool instruments), first click on and browse " Browse " button selection needs
The Hex files of upgrading, following user can be according to actual use demands, and selection clicks on program " Program " button by Hex texts
Part is upgraded in the spatial cache Flash inside interface chip;Or click on erasing " Erase " button, erasing and interface chip phase
To spatial cache (i.e. Flash spaces) in file;Or verification " Verify " button is clicked on, by the upgrading inside interface chip
Data read-out is come, and then contrasts the Hex files that the data read out select with user.
Technical scheme provided by the invention, in the user interface, user only need, by each button of mouse action, to realize
The functions such as the programming (upgrading) of interface chip, erasing, verification, make user become transparent to the access control of different video cards.
, can be with spatial cache (Flash) write-protect of docking port chip after the firmware upgrade of docking port chip is completed.Tool
Body, the function of spatial cache (Flash) access interface chip can be closed, wipes the code in spatial cache (Flash), it is real
Now to spatial cache (Flash) write-protect.
According to another aspect of the present invention, the embodiment of the present invention additionally provides a kind of storage medium, and storage medium includes depositing
The program of storage, wherein, equipment performs above-mentioned interface chip upgrade method where controlling storage medium when program is run.
According to another aspect of the present invention, the embodiment of the present invention additionally provides a kind of processor, and processor is used to run journey
Sequence, wherein, program performs above-mentioned interface chip upgrade method when running.
According to embodiments of the present invention, a kind of interface chip update device embodiment is additionally provided, it is necessary to which explanation, this connects
Mouthful chip upgrade device can be used for performing the interface chip upgrade method in the embodiment of the present invention, connecing in the embodiment of the present invention
Mouth chip upgrade method can perform in the interface chip update device.
Fig. 4 is a kind of schematic diagram of optional interface chip update device according to embodiments of the present invention, as shown in figure 4,
The device can include:Acquiring unit 41, for obtaining chip upgrade instruction, wherein, chip upgrade is instructed for docking port core
Piece is upgraded;Buffer unit 43, for being instructed according to chip upgrade, by interface accessory channel by the to be upgraded of interface chip
File is stored in spatial cache;Upgrade unit 45, for the file to be upgraded according to the interface chip in spatial cache, docking port core
Piece is upgraded.
According to the above embodiment of the present invention, getting for indicating that the chip upgrade that docking port chip is upgraded instructs
In the case of, the file to be upgraded in interface chip is stored to spatial cache by interface accessory channel, and then by slow
The file docking port chip to be upgraded deposited in space is upgraded, due to can by interface accessory channel access cache space,
The file to be upgraded that the chip upgrade of docking port chip is instructed is transmitted into spatial cache, and then is made to spatial cache
In the process that is adjusted of data carried out without using EVB development boards, it is only necessary to accomplish to the file to be upgraded in spatial cache
The firmware upgrade for mouthful chip that can achieve a butt joint is replaced, it is real so as to reduce the difficulty that firmware upgrade is carried out to chip
Firmware upgrade rapidly now is carried out to the interface chip of large scale deployment, solving prior art can not connect to large scale deployment
Mouth chip carries out the technical problem of firmware upgrade.
It should be noted that the acquiring unit 41 in the embodiment can be used for performing the step in the embodiment of the present application
S102, the buffer unit 43 in the embodiment can be used for performing the step S104 in the embodiment of the present application, in the embodiment
Upgrade unit 45 can be used for performing the step S106 in the embodiment of the present application.Above-mentioned module is shown with what corresponding step was realized
Example is identical with application scenarios, but is not limited to above-described embodiment disclosure of that.
As a kind of optional embodiment, the embodiment can also include:Recognition unit, for referring to according to chip upgrade
Order, before the file to be upgraded of interface chip is stored in into spatial cache by interface accessory channel, identification is connected with interface chip
Video card type, and the interface type that interface chip is connected with video card;Determining unit, for the type according to video card and connect
Mouth type determines the type of interface accessory channel, wherein, interface accessory channel is used to connect video card and interface chip.
As a kind of optional embodiment, the embodiment can include:First acquisition module, for obtaining chip upgrade
After instruction, reading manner corresponding with the type of interface accessory channel is obtained in the first reservations database;Read module, it is used for
The file in interface chip is read from spatial cache according to reading manner;Adjusting module, for according to chip upgrade instruction pair
File in interface chip is adjusted, and obtains file to be upgraded.
As a kind of optional embodiment, buffer unit includes:Second acquisition module obtains in the second reservations database
Writing mode corresponding with the type of interface accessory channel;Writing module, it is slow for being stored in file to be upgraded according to writing mode
Deposit space.
As a kind of optional embodiment, upgrade unit includes at least one of:Replacement unit, for being risen using predetermined
Level file replaces the file to be upgraded of the interface chip of spatial cache, is upgraded using predetermined upgrade file docking port chip;
Unit is wiped, the file to be upgraded of the interface chip for wiping spatial cache, uses the file docking port to be upgraded after erasing
Chip is upgraded;Unit is changed, the file to be upgraded of the interface chip for changing spatial cache, waits to rise using amended
Level file docking port chip is upgraded;Verification unit, for by the file to be upgraded of the interface chip of spatial cache with it is predetermined
File contrasts, and judges whether file to be upgraded is identical with predetermined file.
As a kind of optional embodiment, in addition to:Write-protect unit, after being upgraded in docking port chip,
The file write-protect to be upgraded of docking port chip.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.