CN101751263A - Method for testing dynamic custom starting core - Google Patents

Method for testing dynamic custom starting core Download PDF

Info

Publication number
CN101751263A
CN101751263A CN200810180196A CN200810180196A CN101751263A CN 101751263 A CN101751263 A CN 101751263A CN 200810180196 A CN200810180196 A CN 200810180196A CN 200810180196 A CN200810180196 A CN 200810180196A CN 101751263 A CN101751263 A CN 101751263A
Authority
CN
China
Prior art keywords
testing
hardware
driver
starting core
dynamic custom
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
Application number
CN200810180196A
Other languages
Chinese (zh)
Inventor
王凯
陈玄同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN200810180196A priority Critical patent/CN101751263A/en
Publication of CN101751263A publication Critical patent/CN101751263A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method for testing a dynamic custom starting core which is hung on a computer test platform in order to test hardware. The method comprises the following steps of: initializing hardware slots of the computer test platform after the computer test platform is started, testing information of the hardware connected in these hardware slots, loading corresponding drivers so as to realize the dynamic connection of the equipment in the starting core, and finishing starting up by the starting core and testing hardware. The starting core automatically loads the drivers according to the information of the hardware so loading of the redundancy unused driver is avoided.

Description

The method of testing of dynamic custom starting core
Technical field
The present invention system is about a kind of computer test method, and a kind of method of testing of dynamic custom starting core particularly.
Background technology
The test platform of computer hardware (being designated hereinafter simply as test platform) can select for use different operating system as execution environment, and common operating system for example is DOS, Windows or (SuSE) Linux OS.Select the test platform of different operating system for use, respectively have its advantage and shortcoming.For instance, very fast based on the toggle speed of the test platform of DOS, and it is also comparatively quick to look for hardware device.Yet dos operating system no longer develops at present, causes the extendibility of hardware device to have suitable problem.In addition, 16/32 system does not support to pacify rattan (Itanium) framework, does not support the visit of high capacity internal memory or hard disk yet, and drivable hardware device is also quite limited, thereby has computer hardware quite a lot to test with this type of test platform.Based on the test platform of Windows, then obviously abundant on the hardware supported degree than DOS.And because of the use of Windows operating system is extensive, the hardware that many hardware vendors produced is all supported to some extent to Window operating system.Yet Windows operating system is a kind of operating system environment based on the BIOS boot system, need carry out complicated system driver, quite expends time in during start; Moreover the service of the backstage of Windows operating system too much, also is to cause system running speed one of main cause slowly.In addition, along with the access rights management of operating system development computer hardware gets over strictness, just can carry out readwrite tests to hard disk as needing with additional drive software under Vista operating system, this certainly will increase the instability of test.Though the partial test platform with the (SuSE) Linux OS that can define kernel voluntarily as execution environment, with the problem of the access rights that solve computer hardware.Yet (SuSE) Linux OS still is the operating system environment based on the BIOS boot system.Still exist the complicated and too much system of being derived of backstage service of system driver to move problem slowly based on the test platform of this type operating system.
From the above, the relative merits of various operating systems differ, and are difficult to realize all test functions with the single kind of test platform that operating system was constituted.Therefore, the actual line that produces is used the requirement that the modes that adopt many test platforms to integrate satisfy test speed and test coverage more.For example on single test platform, be loaded with several operation systems; at first finish hardware device scanning and burning, memory test or hard disk protection functional test etc., finish hardware with Windows operating system again and carry out test (RunningTesting) with dos operating system.Yet these schemes must restart and test with another kind of operating system after finishing Alpha test, and it still can't thoroughly satisfy the requirement of test speed and test coverage.In other words, though desire to reach the developing direction that reduces the test duration as far as possible and increase test coverage on the present stage development test platform, the solution of comparatively optimizing is not arranged yet.
Summary of the invention
In view of the test speed of present development test platform reaches problems such as test coverage deficiency slowly, purpose of the present invention is in the method for testing that proposes a kind of dynamic custom starting core, be connected to the hardware device information of test platform by Auto-Sensing, customize automatically and be appropriate to instantly that the startup kernel of hardware device starts test platform.Test platform need not load redundant not appropriate driver when starting, and uses the toggle speed of accelerating test platform.
Problem such as slow and test coverage deficiency is then carried out hardware testing with the method for testing of computer testing platform carry dynamic custom starting core proposed by the invention for the test speed that solves above-mentioned test platform.The method of testing of described dynamic custom starting core may further comprise the steps: at first, open the computer testing platform; Then, the hardware slot of initializing computer test platform; Then, read the hardware device information that is connected to the hardware slot.Afterwards, load corresponding driver according to hardware device information; After having loaded all corresponding drivers, promptly finish equipment dynamically articulating in starting kernel according to these drivers; At last, carry out this startup kernel again and finish start, and carry out hardware testing.
According to the method for testing of the described dynamic custom starting core of preferred embodiment of the present invention, wherein when opening the computer testing platform, can carry out self-trace routine (POST).Subsequently, when the hardware slot of initializing computer test platform, more judge that by the electrical change of hardware slot connection hardware equipment is arranged.
According to the method for testing of the described dynamic custom starting core of preferred embodiment of the present invention, wherein during the hardware slot of initializing computer test platform, more comprise loading the installation instruction internal memory (installOpRom) that stores several hardware device information.Described hardware device information then includes hardware device title, device type, device version and information such as corresponding driver kind and version.
According to the method for testing of the described dynamic custom starting core of preferred embodiment of the present invention, wherein the step that loads corresponding driver according to hardware device information comprises and sees through the local host end or remote server loads.
Method of testing according to the described dynamic custom starting core of preferred embodiment of the present invention, wherein finish the step that dynamically articulate of equipment in starting kernel and comprise that more seeing through the menu interface selectivity loads or the removal driver according to the driver that loads, and the backstage service routine that calls of selectivity adjustment and optimization.
From the above mentioned, the method for testing of dynamic custom starting core is to load the driver of correspondence by the hardware device information of detecting in advance, and finishes equipment dynamically articulating in starting kernel according to this.Start kernel by this and start the computer testing platform, can avoid loading redundant inappropriate driver on the one hand, do not need extra labor intensive to select the required driver of computer testing platform on the one hand, thereby can reach the purpose that shortens the test duration.
About detailed features of the present invention and real the work, now cooperate to be shown in the embodiment and be described in detail as follows, its content is enough to make any related art techniques person of being familiar with to understand technology contents of the present invention and implements according to this, and according to the disclosed content of this instructions and graphic, any related art techniques person of being familiar with can understand purpose and the advantage that the present invention is correlated with easily.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 starts the system architecture synoptic diagram of the computer testing platform of kernel for the employing of preferred embodiment of the present invention;
Fig. 2 is the method for testing process flow diagram of the dynamic custom starting core of preferred embodiment of the present invention;
Fig. 3 is the driver library structure synoptic diagram of preferred embodiment of the present invention;
Fig. 4 is the synoptic diagram of each execute phase of the startup kernel of preferred embodiment of the present invention;
Fig. 5 is the method for testing process flow diagram of the dynamic custom starting core of another preferred embodiment of the present invention.
Wherein, Reference numeral
110 operating system loaders
120 start kernel
130 firmwares
140 hardware
310 driver storehouses
310a~h driver
Embodiment
Purpose of the present invention and manner of execution thereof describe in detail in following preferred embodiment.Yet notion of the present invention also can be used for other scope.Following listed examples only is used to purpose of the present invention and manner of execution are described, is not in order to limit its scope.
Fig. 1 starts the system architecture synoptic diagram of the computer testing platform of kernel for the employing of preferred embodiment of the present invention.Please refer to Fig. 1, in the present embodiment, the computer testing platform area is divided into software and hardware 140 two large divisions, and software is partly divided into operating system (not shown), operating system loader 110, startup kernel 120 and the driving firmware 130 corresponding to hardware 140.Wherein, starting kernel 120 can for example be Extensible Firmware Interface (Extensible Firmware Interface, EFI) system's (being designated hereinafter simply as the EFI system), the EFI system is that a kind of hardware platform starts guidance system, in order to functions such as the hardware access in the realization computer testing platform, network services.The characteristic of EFI system is that it can allow the user revise voluntarily and compile EFI and starts kernel.Based on this characteristic, we propose dynamic load and the optimization of a kind of method of testing of dynamic custom starting core with the realization hardware device driver, and the adjustment and the optimization that realize the backstage service routine.
Fig. 2 is the method for testing process flow diagram of the dynamic custom starting core of preferred embodiment of the present invention.Please refer to Fig. 2, in the present embodiment, the method for testing of dynamic custom starting core for example is the setting script of computer testing platform, can be used as the program of carry in the computer testing platform.The method of testing of described dynamic custom starting core may further comprise the steps: at first, open computer testing platform (step S210); Then, the hardware slot (step S220) of initializing computer test platform; Behind the initiating hardware slot, be about to begin and detect the hardware device information (step S230) that is connected to the hardware slot; Then, load corresponding driver (step S240) according to detected hardware device information again; Afterwards, finish equipment dynamically articulating in starting kernel (step S250) according to the driver that loads; Through after the above-mentioned steps, we have obtained a cover and have conformed with fully in the startup kernel of computer testing platform specification.At last, carrying out this startup kernel finishes start and carries out hardware testing (step S260).
Wherein, can carry out a self-trace routine when opening the computer testing platform, whether this trace routine is mainly used to the internal memory of detection computations machine test platform and reads and writes normally, and sets some program pointers (PCcounter).After carrying out self-trace routine, beginning initiating hardware slot.In certain embodiments, can change, whether connection hardware equipment be arranged to judge the hardware slot according to electrically having or not of hardware slot.If detect when existing hardware device to connect, then further be written into the installation instruction internal memory (installOpRom) that is storing several hardware device information, and use the hardware device information of finding out corresponding to the hardware device of aforementioned connection, information such as hardware device title, device type, device version and corresponding driver kind and version for example.What installation instruction internal memory (installOpRom) was stored is the pairing driver kind of hardware device (or path of driver), rather than stores the driver of hardware device correspondence.After finding corresponding driver kind, the computer testing platform sees through the local host end or remote server loads the backstage service routine that corresponding driver and selectivity adjustment and optimization call.The characteristics of the method for testing of the dynamic custom starting core that is proposed in the present embodiment are: the process of load driver program is the robotization testing process for detecting automatically, differentiating hardware device, can effectively reduce the human resources expenditure.In certain embodiments, after detecting the driver that needs to load automatically, also can see through a menu interface and allow the user optionally add or removal part driver, use cancellation and do not want the part of testing, and then accelerate the test speed of computer testing platform.
From the above, can to compile be a driver storehouse to driver.Fig. 3 is the driver library structure synoptic diagram of preferred embodiment of the present invention.Please refer to Fig. 3, driver storehouse 310 is according to the hardware device kind, and for example kinds such as 310b, keyboard 310c and motherboard 310d are gone in audio 310a, output, cook up the tree structure catalogue, with (the storage of putting into different categories of 310a~310h) of various types of driver.This driver storehouse can be stored in the hard disk of local host end or remote server, or is CD with the driver storehouse, does not limit the storing media in driver storehouse at this.
Fig. 4 is the synoptic diagram of each execute phase of the startup kernel of preferred embodiment of the present invention.Please refer to Fig. 4, in the present embodiment, the startup flow process of EFI system was divided into for four megastages.At first, the phase one is an authentication phase 410, when opening the computer testing platform power, allows the user input through acknowledgement window and logins password to check user identity.Subordinate phase is that initialization starts the kernel stage 420.Subordinate phase is mainly finished the required item of finishing of self-as described above trace routine, for instance, need finish hardware testings such as motherboard, cpu chip, motherboard hardware slot in this stage.Phase III also is a most important ring in the present embodiment for driving the running environment stage 430.In this stage, the EFI system need expend the considerable time and load all hardware device driver and initiating hardware equipment.Because the hardware device of every kind of type is not quite similar, partly machine has CD-ROM drive, and partly type is not with CD-ROM drive.The EFI system can load the startup kernel in the lump with whole drivers in the past, and started kernel unlatching computer testing platform according to this.Yet some types that do not dispose CD-ROM drive are loaded the CD-ROM drive driver, and be thing very consuming time and that there is no need its action of carrying out the CD-ROM drive initialization operation.Therefore, in the present embodiment, the method of testing that sees through aforesaid dynamic custom starting core produces only startup kernel according to the necessary driver of the automatic loading of the hsrdware requirements of computer testing platform, and dynamically judging which driver needs to load, and which does not need loads.Because the computer testing platform can be judged only driver voluntarily, therefore can save the waste of human resource of artificial nuclear choosing, and avoid carrying out unnecessary test, quickening system start-up speed.After the running environment setting is finished, enter quadravalence section selection operation system start-up equipment 440.The quadravalence section is mainly with the EFI operating system loader in the EFI system and loads the operating system of selecting, and as LINUX operating system or WINDOWS operating system and EFI operating system, starts the computer testing platform to finish.
The method of testing of dynamic custom starting core of the present invention then, is described with another preferred embodiment again.Fig. 5 is the method for testing process flow diagram of the dynamic custom starting core of another preferred embodiment of the present invention.Please refer to Fig. 5, at first, the user opens the power switch (step S510) of computer testing platform, after turning on the power switch, the computer testing platform promptly detects (step S520a) substantially, and basic test item comprises whether cpu chip and memory read-write be normal.Then, carry out the basic initialization (step S520b) of PCI slot, only need reach each PCI slot that normally to ask visit computer testing platform in this step and get final product.After determining normally to ask visit PCI slot, beginning detection hardware facility information (step S520c), we need detect the title of the hardware device of connection in this step, and select corresponding driver.
Then, the computer testing platform is again according to the hardware device information or the configuration information that detect, dynamic load driver (step S530).At present embodiment, for example can see through the installation instruction internal memory (installOpRom) that is storing many hardware device information and obtain hardware device information.
After the driver kind that obtains the required loading of hardware device, can be by Local or Remote load driver program (step S540).At first, the computer testing platform is searched the driver database of local host end to load corresponding driver (step S540a), if when local side can't search, the driver database of then searching remote server is to load corresponding driver (step S540b).In certain embodiments, can directly set the path of remote connection, allow the computer testing platform directly see through network to assigned address and obtain driver.When obtain and the load driver program after, promptly realized equipment dynamically articulating in EFI starts kernel, and started this EFI and start kernel (step S550).
After of the EFI startup kernel startup and load operation system of computer testing platform, promptly finish the boot action of computer testing platform with customization.Can carry out the Function detection (step S560) of hardware device this moment, and the testing result of hardware device is recorded in log file (step S570), and wherein log file can leave remote server or this machine disk in, does not limit its scope at this.At last, after record is finished, power-off (step S580) can be finished test this time.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (8)

1. the method for testing of a dynamic custom starting core, the method for testing of this dynamic custom starting core be carry in a computer testing platform in order to carry out hardware testing, it is characterized in that, comprise the following steps:
Open this computer testing platform;
The hardware slot of this computer testing platform of initialization;
Detection is connected to the hardware device information of this hardware slot;
Load corresponding at least one driver according to this hardware device information;
Finish equipment dynamically articulating in starting kernel according to this driver;
Carrying out this startup kernel finishes start and carries out hardware testing.
2. the method for testing of dynamic custom starting core according to claim 1 is characterized in that, the step of wherein opening this computer testing platform more comprises carries out a self-trace routine.
3. the method for testing of dynamic custom starting core according to claim 1 is characterized in that, wherein the step of the hardware slot of this computer testing platform of initialization comprises that more complying with electrical change of this hardware slot judges that connection hardware equipment is arranged.
4. the method for testing of dynamic custom starting core according to claim 3 is characterized in that, wherein the step of the hardware slot of this computer testing platform of initialization comprises that more loading is storing one of several hardware device information the instruction internal memory is installed.
5. the method for testing of dynamic custom starting core according to claim 1, it is characterized in that wherein this hardware device information is to be selected from by one of combinations that information constituted such as hardware device title, device type, device version and corresponding driver kind and version.
6. the method for testing of dynamic custom starting core according to claim 1 is characterized in that, wherein this driver is from seeing through local host end or remote server loading.
7. the method for testing of dynamic custom starting core according to claim 1, it is characterized in that, wherein finish the step that dynamically articulate of equipment in starting kernel and more comprise and see through that a menu interface selectivity loads or those drivers of removal arbitrary according to this driver.
8. the method for testing of dynamic custom starting core according to claim 7, it is characterized in that, wherein finish the step that dynamically articulate of equipment in starting kernel and more comprise and see through the backstage service routine that this menu interface selectivity adjustment and optimization are called according to this driver.
CN200810180196A 2008-11-28 2008-11-28 Method for testing dynamic custom starting core Pending CN101751263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810180196A CN101751263A (en) 2008-11-28 2008-11-28 Method for testing dynamic custom starting core

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810180196A CN101751263A (en) 2008-11-28 2008-11-28 Method for testing dynamic custom starting core

Publications (1)

Publication Number Publication Date
CN101751263A true CN101751263A (en) 2010-06-23

Family

ID=42478279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810180196A Pending CN101751263A (en) 2008-11-28 2008-11-28 Method for testing dynamic custom starting core

Country Status (1)

Country Link
CN (1) CN101751263A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609356A (en) * 2012-01-19 2012-07-25 福建升腾资讯有限公司 Terminal product driver loading stability testing method
CN102819392A (en) * 2012-07-25 2012-12-12 广州视睿电子科技有限公司 Method and system for controlling PPT
CN103096167A (en) * 2012-12-24 2013-05-08 康佳集团股份有限公司 Starting method and starting system of intelligent television
CN103218277A (en) * 2013-03-25 2013-07-24 北京百度网讯科技有限公司 Automatic detection method and device for server environment
CN104216810A (en) * 2013-09-13 2014-12-17 上海炬力集成电路设计有限公司 Method and device for detecting hardware fault of intelligent handheld device
CN105700978A (en) * 2016-01-13 2016-06-22 浪潮电子信息产业股份有限公司 Method for carrying out double-system unattended automatic aging test on server
CN105718346A (en) * 2016-01-22 2016-06-29 浪潮电子信息产业股份有限公司 Computer mainboard PCIe slot function test method based on UEFI
CN106959830A (en) * 2017-03-14 2017-07-18 北京三快在线科技有限公司 Equipment initial method, device and printing device
CN105068902B (en) * 2015-07-31 2018-06-15 国家电网公司 One type Unix operating system computer hardware test methods
CN112114882A (en) * 2020-08-28 2020-12-22 深圳市金锐显数码科技有限公司 Mainboard starting method and device
CN114770603A (en) * 2022-05-17 2022-07-22 上海交通大学 Super-redundancy mechanical arm test system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609356B (en) * 2012-01-19 2014-12-10 福建升腾资讯有限公司 Terminal product driver loading stability testing method
CN102609356A (en) * 2012-01-19 2012-07-25 福建升腾资讯有限公司 Terminal product driver loading stability testing method
CN102819392B (en) * 2012-07-25 2016-08-10 广州视睿电子科技有限公司 Method and system for controlling PPT
CN102819392A (en) * 2012-07-25 2012-12-12 广州视睿电子科技有限公司 Method and system for controlling PPT
CN103096167B (en) * 2012-12-24 2018-11-30 康佳集团股份有限公司 A kind of starting method and system of smart television
CN103096167A (en) * 2012-12-24 2013-05-08 康佳集团股份有限公司 Starting method and starting system of intelligent television
CN103218277A (en) * 2013-03-25 2013-07-24 北京百度网讯科技有限公司 Automatic detection method and device for server environment
CN104216810A (en) * 2013-09-13 2014-12-17 上海炬力集成电路设计有限公司 Method and device for detecting hardware fault of intelligent handheld device
CN105068902B (en) * 2015-07-31 2018-06-15 国家电网公司 One type Unix operating system computer hardware test methods
CN105700978A (en) * 2016-01-13 2016-06-22 浪潮电子信息产业股份有限公司 Method for carrying out double-system unattended automatic aging test on server
CN105718346A (en) * 2016-01-22 2016-06-29 浪潮电子信息产业股份有限公司 Computer mainboard PCIe slot function test method based on UEFI
CN106959830A (en) * 2017-03-14 2017-07-18 北京三快在线科技有限公司 Equipment initial method, device and printing device
CN106959830B (en) * 2017-03-14 2020-07-03 北京三快在线科技有限公司 Equipment initialization method and device and printing equipment
CN112114882A (en) * 2020-08-28 2020-12-22 深圳市金锐显数码科技有限公司 Mainboard starting method and device
CN112114882B (en) * 2020-08-28 2024-08-27 深圳市金锐显数码科技有限公司 Mainboard starting method and device
CN114770603A (en) * 2022-05-17 2022-07-22 上海交通大学 Super-redundancy mechanical arm test system
CN114770603B (en) * 2022-05-17 2024-03-29 上海交通大学 Super redundant arm test system

Similar Documents

Publication Publication Date Title
CN101751263A (en) Method for testing dynamic custom starting core
US7555568B2 (en) Method and apparatus for operating a host computer from a portable apparatus
CN1174307C (en) Method, system and computer readable storage medium for automatic device driver
US5835759A (en) Launching computer applications
US7493614B2 (en) System architecture and related methods for dynamically adding software components to extend functionality of system processes
US7516319B2 (en) Method for booting a computer with second OS involves formatting portion of main memory with a second file system to generate ramdisk
US8966236B2 (en) Dynamically redirecting boot to another operating system
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US20070006220A1 (en) Computer system, system software installation method, and software installation method of portable computer
US20050132352A1 (en) Installation of hardware devices
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
CN106095493A (en) The loading method of dual operating systems and system
CN100541509C (en) A kind of method of scanning and killing computer virus
CN1755628B (en) Method of automatically installing software during operation system startup
CN100410879C (en) Application programme detecting and installing method
CN113254089B (en) System boot method correction method, device, equipment and storage medium
US20030093659A1 (en) Method and system for directly starting a PDA operating system on a portable PC using hardware devices
CN102135923A (en) Method for integrating operating system into BIOS (Basic Input/Output System) chip and method for starting operating system
CN101097519A (en) Computer system capable of rapidly using hard disk data
CN103106086A (en) Processing method of operation system and system
US20090292950A1 (en) Method for making test fixture
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
KR20020041221A (en) Method for setting and restoring computer environment with external storing device and apparatus for setting and restoring computer environment
CN100541432C (en) A kind of loading method of computer system
CN101339512A (en) Computer device and start-up method and module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100623