CN105912337A - Method for implementing graphics card initialization applied in domestic non-X86 platform - Google Patents
Method for implementing graphics card initialization applied in domestic non-X86 platform Download PDFInfo
- Publication number
- CN105912337A CN105912337A CN201610226289.8A CN201610226289A CN105912337A CN 105912337 A CN105912337 A CN 105912337A CN 201610226289 A CN201610226289 A CN 201610226289A CN 105912337 A CN105912337 A CN 105912337A
- Authority
- CN
- China
- Prior art keywords
- video card
- platform
- card initialization
- analog module
- internal memory
- 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
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/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for implementing graphics card initialization applied in a domestic non-X86 platform. The method relates to the field of computer and comprises the steps that a graphics card initialization program is confirmed at first; the whole graphics card initialization program is copied to an internal storage area; a coding analysis module is called to analyze the graphics card initialization program; an internal storage operation analog module, an IO operation analog module and a register simulator are called simultaneously; and finally, a video memory address is mapped into a system, and display output is implemented through data writing into a video memory. The method disclosed by the invention has the advantages that the problems such as that LOGO and a configuration menu cannot be displayed due to the initialization failure of a graphics card during start guidance of a non-X86 platform computer system can be solved fundamentally; and problems of deficiency in graphics card initialization and display functions can be solved.
Description
Technical field
Present invention relates particularly to computer realm, be exactly a kind of method being applied to realize video card initialization on domestic non-X86 platform specifically.
Background technology
In the products such as current domestic non-X86-based server, desk computer and notebook, when arranging in pairs or groups universal display chip (i.e. video card), the startup vectoring phase cannot carry out showing that output shows for LOGO, configuration menu shows by video card as X86 platform computer.Owing to video card manufacturer is generally merely provided for the display controller initialization program of X86 platform, and being integrated on video card, this subprogram cannot be used directly for non-X86 platform.Therefore on non-X86 platform, if required up the above purpose showing information, it usually needs increase other chips with output display and carry out exporting control.Or Kernel Driver is carried out cutting join in the middle of firmware program.The first scheme, technically, increases product development complexity, and significantly increases the development amount of display control section during firmware development, thus brings the hidden danger that product reliability reduces;Saying from angles of product, cost increases.First scheme, though hardware cost does not increase, but carries out cutting to kernel-driven, requires higher to technology, simultaneously because the dependency that kernel-driven is each other, a series of dependency problem, development difficulty and complexity can be caused during cutting the highest.
Summary of the invention
The present invention is directed to the weak point that prior art exists, it is provided that a kind of method being applied to realize video card initialization on domestic non-X86 platform.
A kind of method being applied to realize video card initialization on domestic non-X86 platform of the present invention, the technical scheme solving the employing of above-mentioned technical problem is as follows: a kind of described method being applied to realize video card initialization on domestic non-X86 platform, first confirm that video card initialization program, then by whole video card initialization program copy to region of memory, and call code parsing module, carry out resolving video card initialization program, call internal memory operation analog module simultaneously, I/O operation analog module and register analog device, video memory address is mapped in system the most at last, by carrying out display output to video memory write data.
Preferably, the step for of described confirmation video card initialization program, the main interface by providing in firmware, obtain initialization program entry address integrated on video card, program length is obtained, by whole initialization program copy to standby in region of memory by analyzing the 3rd byte of this section of program.
Preferably, by in whole video card initialization program copy to region of memory, first apply for that at least 256K memory headroom is for simulating the 256K memory address in X86 platform BIOS, at video card initialization program copy to this section internal memory side-play amount 0xC000, and state that several variablees and array are for simulating X86 CPU depositor, 0xC000 is assigned to the CS segment register of simulation, and the IP depositor of simulation is set to 0x03.
Preferably, the 4th byte that described code parsing module is responsible for from video card initialization program proceeds by parsing;According to the binary data read, search operation code synopsis, confirm the function needing to call and the data needing operation, and the IP pointer of mobile simulation carries out data read operation.
Preferably, described internal memory operation analog module is responsible for the operation of X86 platform internal memory is converted into the corresponding internal memory operation of platform;Call internal memory operation analog module, corresponding handling function call internal memory operation analog module, coordinate incoming parameter to complete the read or write operation of internal memory.
Preferably, described I/O operation analog module is responsible for being converted to X86 I/O operation the corresponding I/O operation of target platform;Call I/O operation analog module, respective function call I/O operation analog module and complete I O read or write operation.
Preferably, if JMP skip command, then call the program execution registers variable that CS, IP simulate by internal memory operation analog module and operate.
A kind of method being applied to realize on domestic non-X86 platform video card initialization of the present invention compared with prior art has the beneficial effect that the present invention passes through simulation X86 CPU on target platform and runs, the program (being provided by video card manufacturer) being stored in advance on video card is provided, complete initialization and the configuration of video card, make domestic non-X86 platform can also be booted up the stage, video card is used to carry out display output LOGO, configuration menu etc., can fundamentally solution during X86 platform computer system is booted up by no means, cause showing the problem such as LOGO and configuration menu because video card cannot be carried out initialization, solve video card initialization and display afunction problem.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, a kind of method being applied to realize on domestic non-X86 platform video card initialization of the present invention is further described.
The present invention proposes a kind of method being applied to realize video card initialization on domestic non-X86 platform, run by simulating X86 CPU on target platform, perform the program being stored in advance on video card, complete initialization and the configuration of video card, make domestic non-X86 platform use video card to carry out display output LOGO, configuration menu etc. in the stage that is booted up, solve initialization and the problem of display afunction of video card in non-X86 platform boot start-up course.
Embodiment:
A kind of method being applied to realize video card initialization on domestic non-X86 platform described in the present embodiment, its key step includes: first confirm that video card initialization program, then by whole video card initialization program copy to region of memory, and call code parsing module, carry out resolving video card initialization program, calling I/O operation analog module, internal memory operation analog module and register analog device, video memory address is mapped in system the most at last simultaneously, by realizing display output function to video memory write data.
This realizes in the method for video card initialization, the step for of described confirmation video card initialization program, the main interface by providing in firmware, obtain initialization program entry address integrated on video card, program length is obtained by analyzing the 3rd byte of this section of program, 3rd byte is the length of this section of program, by whole initialization program copy to standby in region of memory.
This realizes in the method for video card initialization, the step for of by whole video card initialization program copy to region of memory, specifically include that and first apply for that at least 256K memory headroom is for simulating the 256K memory address in X86 platform BIOS, at video card initialization program copy to this section internal memory side-play amount 0xC000, and state that several variablees and array are for simulating X86 CPU depositor, 0xC000 is assigned to the CS segment register of simulation, and the IP depositor of simulation is set to 0x03.
This realizes in the method for video card initialization, described the step for call code parsing module, main contents refer to, the 4th byte that described code parsing module is responsible for from video card initialization program proceeds by parsing, due to the fixed value that the first two byte is specification definition, for verifying, the 3rd byte is program length.
This realizes in the method for video card initialization, according to the binary data read, search operation code synopsis, confirms the function needing to call and the data needing operation, and the IP pointer of mobile simulation carries out data read operation.The operation that binary data is corresponding, can find in the X86 platform technology handbook that Intel announces.The corresponding function of each operation code, the data of reading pass to this function as parameter, and complete operation.Calling internal memory operation analog module, main contents refer to, corresponding handling function call internal memory operation analog module, coordinate incoming parameter to complete the read or write operation of internal memory;Described internal memory operation analog module is responsible for the operation of X86 platform internal memory is converted into the corresponding internal memory operation of platform.
This realizes, in the method for video card initialization, calling I/O operation analog module, and main contents refer to, respective function call I/O operation analog module and complete I O read or write operation;Described I/O operation analog module is responsible for being converted to X86 I/O operation the corresponding I/O operation of target platform.
If skip commands such as JMP, then call the program execution registers variable that CS, IP etc. simulate by internal memory operation analog module and operate, reach consistent with X86 CPU to redirect, return operation.Constantly move owing to taking the IP pointer of simulation in parametric procedure in code parsing module, therefore can be run until binary coding is all performed complete continuously as real X86 machine by simulator described in the method.
Using the method realizing video card initialization described in the present embodiment, after the initialization program finishes execution that video card self is integrated, video card can enter upstate;Send the operation code of code parsing analog module and corresponding data to by setting, it is possible to the CRTC Parasites Fauna of video card is set, reaches to revise the effect such as resolution, refresh rate.It is mapped in system eventually through by video memory address, can be by realizing display output function to video memory write data.
Above-mentioned detailed description of the invention is only the concrete case of the present invention; the scope of patent protection of the present invention includes but not limited to above-mentioned detailed description of the invention; suitably change that it is done by any that meet claims of the present invention and any person of an ordinary skill in the technical field or replace, all should fall into the scope of patent protection of the present invention.
Claims (7)
1. the method being applied to realize video card initialization on domestic non-X86 platform, it is characterized in that, first confirm that video card initialization program, then by whole video card initialization program copy to region of memory, and call code parsing module, carry out resolving video card initialization program, call internal memory operation analog module, I/O operation analog module and register analog device simultaneously, video memory address is mapped in system the most at last, by carrying out display output to video memory write data.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterized in that, described confirmation video card initialization program, the main interface by providing in firmware, obtain initialization program entry address integrated on video card, program length is obtained, by whole initialization program copy to standby in region of memory by analyzing the 3rd byte of this section of program.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterized in that, by in whole video card initialization program copy to region of memory, first apply for that at least 256K memory headroom is for simulating the 256K memory address in X86 platform BIOS, at video card initialization program copy to this section internal memory side-play amount 0xC000, and state that several variablees and array are for simulating X86 CPU depositor, 0xC000 is assigned to the CS segment register of simulation, and the IP depositor of simulation is set to 0x03.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterised in that the 4th byte that described code parsing module is responsible for from video card initialization program proceeds by parsing;According to the binary data read, search operation code synopsis, confirm the function needing to call and the data needing operation, and the IP pointer of mobile simulation carries out data read operation.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterised in that described internal memory operation analog module is responsible for the operation of X86 platform internal memory is converted into the corresponding internal memory operation of platform;Call internal memory operation analog module, corresponding handling function call internal memory operation analog module, coordinate incoming parameter to complete the read or write operation of internal memory.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterised in that described I/O operation analog module is responsible for being converted to X86 I/O operation the corresponding I/O operation of target platform;Call I/O operation analog module, respective function call I/O operation analog module and complete I O read or write operation.
A kind of method being applied to realize video card initialization on domestic non-X86 platform, it is characterised in that if JMP skip command, then call the program execution registers variable that CS, IP simulate by internal memory operation analog module and operate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610226289.8A CN105912337A (en) | 2016-04-13 | 2016-04-13 | Method for implementing graphics card initialization applied in domestic non-X86 platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610226289.8A CN105912337A (en) | 2016-04-13 | 2016-04-13 | Method for implementing graphics card initialization applied in domestic non-X86 platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105912337A true CN105912337A (en) | 2016-08-31 |
Family
ID=56746738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610226289.8A Pending CN105912337A (en) | 2016-04-13 | 2016-04-13 | Method for implementing graphics card initialization applied in domestic non-X86 platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105912337A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951358A (en) * | 2017-02-07 | 2017-07-14 | 深圳市智微智能科技开发有限公司 | A kind of quick display status information method and system during computer system power-on self-test based on UEFI standards |
CN107066222A (en) * | 2017-02-10 | 2017-08-18 | 济南浪潮高新科技投资发展有限公司 | A kind of quick display device and method based on domestic processor platform |
CN107220065A (en) * | 2017-06-28 | 2017-09-29 | 山东超越数控电子有限公司 | A kind of Domestic Platform BIOS video driver methods based on X86 simulators |
CN109471668A (en) * | 2018-11-20 | 2019-03-15 | 南方电网科学研究院有限责任公司 | Cross-platform video card firmware translation executes method, apparatus, equipment and readable medium |
CN110580674A (en) * | 2019-07-24 | 2019-12-17 | 西安万像电子科技有限公司 | Information processing method, device and system |
CN111752623A (en) * | 2019-03-29 | 2020-10-09 | 龙芯中科技术有限公司 | Display configuration method and device, electronic equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023889A (en) * | 2010-11-04 | 2011-04-20 | 天津曙光计算机产业有限公司 | Method for realizing operation of X86 VBIOS (video-bios) on MIPS (million instruction per second) framework |
CN103150188A (en) * | 2013-03-19 | 2013-06-12 | 中国人民解放军国防科学技术大学 | Quick initialization method for x86 compatible display card of non-x86 instruction set computer |
-
2016
- 2016-04-13 CN CN201610226289.8A patent/CN105912337A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023889A (en) * | 2010-11-04 | 2011-04-20 | 天津曙光计算机产业有限公司 | Method for realizing operation of X86 VBIOS (video-bios) on MIPS (million instruction per second) framework |
CN103150188A (en) * | 2013-03-19 | 2013-06-12 | 中国人民解放军国防科学技术大学 | Quick initialization method for x86 compatible display card of non-x86 instruction set computer |
Non-Patent Citations (1)
Title |
---|
何超勇 等: ""基于龙芯2F的U-Boot固件移植与显卡优化"", 《计算机与网络》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951358A (en) * | 2017-02-07 | 2017-07-14 | 深圳市智微智能科技开发有限公司 | A kind of quick display status information method and system during computer system power-on self-test based on UEFI standards |
CN107066222A (en) * | 2017-02-10 | 2017-08-18 | 济南浪潮高新科技投资发展有限公司 | A kind of quick display device and method based on domestic processor platform |
CN107220065A (en) * | 2017-06-28 | 2017-09-29 | 山东超越数控电子有限公司 | A kind of Domestic Platform BIOS video driver methods based on X86 simulators |
CN109471668A (en) * | 2018-11-20 | 2019-03-15 | 南方电网科学研究院有限责任公司 | Cross-platform video card firmware translation executes method, apparatus, equipment and readable medium |
CN109471668B (en) * | 2018-11-20 | 2021-11-26 | 南方电网科学研究院有限责任公司 | Cross-platform display card firmware translation execution method, device, equipment and readable medium |
CN111752623A (en) * | 2019-03-29 | 2020-10-09 | 龙芯中科技术有限公司 | Display configuration method and device, electronic equipment and readable storage medium |
CN110580674A (en) * | 2019-07-24 | 2019-12-17 | 西安万像电子科技有限公司 | Information processing method, device and system |
CN110580674B (en) * | 2019-07-24 | 2024-01-16 | 西安万像电子科技有限公司 | Information processing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912337A (en) | Method for implementing graphics card initialization applied in domestic non-X86 platform | |
WO2020006910A1 (en) | Business componentization development method and apparatus, computer device, and storage medium | |
US8819548B2 (en) | Multiple language development environment using shared resources | |
US9772932B2 (en) | Application test across platforms | |
CN102662717A (en) | Bootstrap starting method of embedded system | |
CN111782505B (en) | Train system simulation test method, device, computer equipment and storage medium | |
CN111008132B (en) | Application debugging method and device for Android system, computer equipment and storage medium | |
CN103150188A (en) | Quick initialization method for x86 compatible display card of non-x86 instruction set computer | |
CN103809864A (en) | Method and device for switching interfaces dynamically | |
CN111142935A (en) | Method, apparatus, computer system, and medium for cross-platform running of applications | |
US20180210747A1 (en) | Computing devices | |
Ran et al. | Automated visual testing for mobile apps in an industrial seting | |
CN112379969A (en) | Continuous integrated delivery method based on containerized application and related equipment | |
CN113868174B (en) | Verification platform building method and device and storage medium | |
CN102722438A (en) | Kernel debugging method and equipment | |
CN107657153A (en) | The code protection method and device in flash areas in a kind of chip | |
CN115687146A (en) | BIOS (basic input output System) test method and device, computer equipment and storage medium | |
US9575878B2 (en) | Data-driven testing without data configuration | |
CN111752623A (en) | Display configuration method and device, electronic equipment and readable storage medium | |
US7370186B1 (en) | Multi-tasking bootstrap system and method | |
CN114297592A (en) | Firmware starting method, device, equipment and readable storage medium | |
CN114564241A (en) | Hardware device access method and device, computer device and storage medium | |
CN116149639A (en) | Method and device for developing components, electronic equipment and storage medium | |
WO2016013348A1 (en) | User interface evaluation device and user interface evaluation method | |
CN111190574B (en) | Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160831 |
|
RJ01 | Rejection of invention patent application after publication |