TW201351128A - A pre-boot execute environment device and method and system for testing pre-boot execute environment - Google Patents

A pre-boot execute environment device and method and system for testing pre-boot execute environment Download PDF

Info

Publication number
TW201351128A
TW201351128A TW101121046A TW101121046A TW201351128A TW 201351128 A TW201351128 A TW 201351128A TW 101121046 A TW101121046 A TW 101121046A TW 101121046 A TW101121046 A TW 101121046A TW 201351128 A TW201351128 A TW 201351128A
Authority
TW
Taiwan
Prior art keywords
execution environment
computer
mode
flash memory
test device
Prior art date
Application number
TW101121046A
Other languages
Chinese (zh)
Inventor
Feng Gao
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201351128A publication Critical patent/TW201351128A/en

Links

Abstract

The present invention provides a pre-boot execute environment device. The device includes a master chip, a firmware, a flash memory and a universal serial bus interface. The device also includes a NIC interface that used to connect the NIC interface of a computer, and a dynamic host configuration protocol (DHCP) module that used to receive a DHCP request from the computer and distribute an internet protocol (IP) address to the computer, and a trivial file transfer protocol (TFTP) module that used to download an image file of the flash memory to the computer. The present invention also provides a method and system for testing pre-boot execute environment. The present invention can use the pre-boot execute environment device to start the pre-boot execute environment for the computer.

Description

預啟動執行環境測試裝置、方法及系統Pre-launch execution environment test device, method and system

本發明涉及一種預啟動執行環境測試裝置、方法及系統。The invention relates to a pre-launch execution environment testing device, method and system.

預啟動執行環境(Pre-boot Execute Environment,PXE)是一項可支援電腦透過網路從遠端伺服器下載映射檔案,並由此支援來自網路的作業系統的啟動過程的技術。目前各種伺服器主板都具有PXE啟動的功能,對該功能的測試需求也越來越多。測試時需要在PXE伺服器配置好儲存動態主機設置協定(Dynamic Host Configuration Protocol,DHCP)、簡單檔案傳輸協議(Trivial File Transfer Protocol,TFTP)和Test Image(測試映射,即映射檔案)等模組,用戶端電腦則透過帶PXE啟動功能的網卡連接到伺服器,下載映射檔案並啟動作業系統。The Pre-boot Execute Environment (PXE) is a technology that enables a computer to download a mapping file from a remote server over a network and thereby support the boot process of the operating system from the network. At present, various server boards have the function of PXE startup, and the testing requirements for this function are also increasing. During the test, the PXE server needs to be configured to store modules such as Dynamic Host Configuration Protocol (DHCP), Trivial File Transfer Protocol (TFTP), and Test Image (map file). The client computer connects to the server through a network card with PXE boot function, downloads the mapping file and starts the operating system.

但該種測試方法有明顯缺點。如當多個用戶端電腦連接到伺服器進行測試時,如果此時伺服器出現當機、斷電、中病毒等異常情況或者網路有問題時,所有的用戶端電腦都會受到影響,因此對伺服器的穩定性要求非常高;而如果只有一個用戶端電腦需要測試時,伺服器也必須同時工作,不能降低成本。當需要把伺服器架設到不同廠房時,則必須在每個廠房均另外架設和配置一台伺服器,顯得很不方便,限制了PXE的使用範圍。However, this test method has obvious disadvantages. For example, when multiple client computers are connected to the server for testing, if the server has an abnormality such as a crash, power failure, or virus, or if there is a problem with the network, all the client computers will be affected, so The stability requirements of the server are very high; if only one client computer needs to be tested, the server must work at the same time, and the cost cannot be reduced. When it is necessary to set up the server to different plants, it is necessary to install and configure a server in each factory, which is very inconvenient and limits the scope of use of PXE.

鑒於以上內容,有必要提供一種預啟動執行環境測試裝置、方法及系統,可以透過該預啟動執行環境測試裝置直接與電腦連接,實現PXE技術的直接使用。In view of the above, it is necessary to provide a pre-launch execution environment testing device, method and system, which can be directly connected to a computer through the pre-launch execution environment testing device, thereby realizing the direct use of PXE technology.

一種預啟動執行環境測試裝置,包括主控晶片、韌體、快閃記憶體及通用串列匯流排USB介面,其中,該預啟動執行環境測試裝置還包括:網卡介面,用於連接電腦的網卡介面;動態主機設置協定DHCP模組,用於回應電腦發送過來的DHCP請求,分配IP位址給電腦;及簡單檔案傳輸協議TFTP模組,用於將儲存在快閃記憶體中的映射檔案下載至所述電腦。A pre-launch execution environment testing device includes a main control chip, a firmware, a flash memory, and a universal serial bus USB interface, wherein the pre-boot execution environment testing device further includes: a network card interface, and a network card for connecting to the computer Interface; dynamic host setting protocol DHCP module, used to respond to DHCP requests sent by the computer, assign IP address to the computer; and simple file transfer protocol TFTP module for downloading the map file stored in the flash memory To the computer.

一種預啟動執行環境測試方法,該方法包括:判斷步驟:根據預啟動執行環境測試裝置的網卡介面是否與電腦的網卡介面相連接,及該預啟動執行環境測試裝置的USB介面是否與電腦的USB介面相連接,來判斷該預啟動執行環境測試裝置的工作模式是快閃記憶體模式還是PXE模式,當工作模式是快閃記憶體模式時,接收電腦傳送的資料,並將該資料儲存於快閃記憶體中,當工作模式是PXE模式時,執行接收步驟;接收步驟:接收電腦發送的DHCP請求;分配步驟:調用DHCP模組,並執行該DHCP模組的DHCP功能分配一個國際互聯網路通訊協定IP位址給所述電腦;發送步驟:調用TFTP模組,並執行該TFTP模組的TFTP功能將快閃記憶體中的映射檔案發送至所述電腦。A pre-launch execution environment testing method, the method comprising: determining step: according to whether a network card interface of the pre-launch execution environment testing device is connected to a network card interface of the computer, and whether the USB interface of the pre-launch execution environment testing device is connected to a USB of the computer The interface is connected to determine whether the working mode of the pre-boot execution environment test device is a flash memory mode or a PXE mode. When the working mode is a flash memory mode, the data transmitted by the computer is received, and the data is stored in the fast. In the flash memory, when the working mode is the PXE mode, the receiving step is performed; the receiving step: receiving the DHCP request sent by the computer; the assigning step: calling the DHCP module, and performing the DHCP function of the DHCP module to allocate an international Internet communication The protocol IP address is sent to the computer; the sending step is: calling the TFTP module, and executing the TFTP function of the TFTP module to send the mapping file in the flash memory to the computer.

一種預啟動執行環境測試系統,該系統包括:判斷模組,用於根據預啟動執行環境測試裝置的網卡介面是否與電腦的網卡介面相連接,及該預啟動執行環境測試裝置的USB介面是否與電腦的USB介面相連接,來判斷預啟動執行環境測試裝置的工作模式是快閃記憶體模式還是PXE模式;接收模組,用於當預啟動執行環境測試裝置的工作模式是快閃記憶體模式時,接收電腦傳送的資料,並將該資料儲存於快閃記憶體中;所述接收模組,還用於當預啟動執行環境測試裝置的工作模式是PXE模式時,接收電腦發送的DHCP請求;分配模組,用於調用DHCP模組,並執行該DHCP模組的DHCP功能分配一個IP位址給所述電腦;發送模組,用於調用TFTP模組,執行該TFTP模組的TFTP功能將快閃記憶體中的映射檔案發送至所述電腦。A pre-launch execution environment test system, comprising: a judging module, configured to connect with a network card interface of a computer according to a pre-launch execution environment test device, and whether a USB interface of the pre-launch execution environment test device is The USB interface of the computer is connected to determine whether the working mode of the pre-launch execution environment test device is a flash memory mode or a PXE mode; and the receiving module is configured to perform a working mode of the pre-boot environment test device in a flash memory mode. Receiving data transmitted by the computer and storing the data in the flash memory; the receiving module is further configured to receive a DHCP request sent by the computer when the working mode of the pre-launch execution environment testing device is PXE mode a distribution module for calling a DHCP module, and performing a DHCP function of the DHCP module to assign an IP address to the computer; a sending module for calling a TFTP module to perform a TFTP function of the TFTP module; Send the mapping file in the flash memory to the computer.

相較於習知技術,本發明所述之預啟動執行環境測試裝置、方法及系統,可以透過該預啟動執行環境測試裝置直接與電腦連接,實現PXE技術的直接使用,無需將所述電腦透過網路與遠端伺服器連接,增加了PXE技術使用的便利性。Compared with the prior art, the pre-launch execution environment testing device, method and system of the present invention can be directly connected to a computer through the pre-launch execution environment testing device, thereby realizing the direct use of the PXE technology without passing the computer through The network is connected to the remote server, which increases the convenience of PXE technology.

如圖1所示,係為本發明預啟動執行環境測試裝置之硬體架構圖。As shown in FIG. 1, it is a hardware architecture diagram of the pre-launch execution environment testing device of the present invention.

預啟動執行環境測試裝置1是在通用串列匯流排(Universal Serial Bus,USB)快閃記憶體的基礎上加以改進形成的。該預啟動執行環境測試裝置1中包括主控晶片10、韌體(Firmware)20、快閃記憶體(Flash Memory)30、第一USB介面40及第一網卡介面50等,該第一網卡介面50可為RJ45介面等網卡介面。所述主控晶片10分別與韌體20、快閃記憶體30、第一USB介面40及第一網卡介面50連接。該預啟動執行環境測試裝置1包括USB快閃記憶體中所包含的所有器件,如指示燈電路、防寫電路、時鐘電路及供電電路等,圖1中未完全標出。所述韌體20包括預啟動執行環境測試系統21、DHCP(Dynamic Host Configuration Protocol,儲存動態主機設置協定)模組22及TFTP(簡單檔案傳輸協議,Trivial File Transfer Protocol)模組23。所述快閃記憶體30用於儲存資料,比如儲存映射檔案31,在本較佳實施例中,是作業系統的映射檔案。The pre-launch execution environment test device 1 is formed based on a general-purpose serial bus (USB) flash memory. The pre-boot execution environment testing device 1 includes a main control chip 10, a firmware 20, a flash memory 30, a first USB interface 40, a first network interface 50, and the like, and the first network interface 50 can be the RJ45 interface and other network card interface. The master wafer 10 is connected to the firmware 20, the flash memory 30, the first USB interface 40, and the first network interface 50, respectively. The pre-boot execution environment test apparatus 1 includes all the devices included in the USB flash memory, such as an indicator circuit, a write-protection circuit, a clock circuit, and a power supply circuit, which are not completely marked in FIG. The firmware 20 includes a pre-launch execution environment test system 21, a DHCP (Dynamic Host Configuration Protocol) module 22, and a TFTP (Trivial File Transfer Protocol) module 23. The flash memory 30 is used to store data, such as a storage map file 31. In the preferred embodiment, it is a mapping file of the operating system.

所述主控晶片10是預啟動執行環境測試裝置1的控制中心,對預啟動執行環境測試裝置1中的各器件進行協調和控制。所述DHCP模組22用於實現DHCP功能,可自動分配IP(Internet Protocol,網際網路通訊協定)位址給用戶端電腦。所述TFTP模組23用於實現TFTP功能,可用於傳送資料。The master wafer 10 is a control center of the pre-activation execution environment testing device 1, and coordinates and controls each device in the pre-launch execution environment testing device 1. The DHCP module 22 is configured to implement a DHCP function, and can automatically allocate an IP (Internet Protocol) address to the client computer. The TFTP module 23 is used to implement a TFTP function and can be used for transmitting data.

如圖2所示,係為本發明預啟動執行環境測試系統較佳實施例之架構圖。2 is an architectural diagram of a preferred embodiment of the pre-launch execution environment testing system of the present invention.

所述預啟動執行環境測試裝置1與電腦3連接,該電腦3中包括第二USB介面60和第二網卡介面70。該第二網卡介面70可為RJ45介面等網卡介面。The pre-boot execution environment testing device 1 is connected to a computer 3, which includes a second USB interface 60 and a second network interface 70. The second network interface 70 can be a network interface such as an RJ45 interface.

所述預啟動執行環境測試裝置1有兩種工作模式,分別為快閃記憶體模式和PXE模式。當所述預啟動執行環境測試裝置1的第一USB介面40連接至電腦3的第二USB介面60,但所述預啟動執行環境測試裝置1沒有透過網線2將第一網卡介面50連接至電腦3的第二網卡介面70時,所述預啟動執行環境測試裝置1工作於快閃記憶體模式。在快閃記憶體模式時,預啟動執行環境測試裝置1作為一個普通的USB快閃記憶體,用於進行資料的儲存,此時可以將電腦3的映射檔案31複製至該預啟動執行環境測試裝置1中,該映射檔案31是電腦3作業系統的映射檔案。The pre-boot execution environment testing device 1 has two working modes, namely a flash memory mode and a PXE mode. When the first USB interface 40 of the pre-boot execution environment testing device 1 is connected to the second USB interface 60 of the computer 3, but the pre-boot execution environment testing device 1 does not connect the first network card interface 50 to the network cable 2 to When the second network interface 70 of the computer 3 is 70, the pre-boot execution environment testing device 1 operates in a flash memory mode. In the flash memory mode, the pre-boot execution environment test device 1 is used as a normal USB flash memory for storing data. At this time, the mapping file 31 of the computer 3 can be copied to the pre-boot execution environment test. In the device 1, the mapping file 31 is a mapping file of the computer 3 operating system.

當所述預啟動執行環境測試裝置1的第一USB介面40連接至電腦3的第二USB介面60,且所述預啟動執行環境測試裝置1透過網線2將第一網卡介面50連接至電腦3的第二網卡介面70時,所述預啟動執行環境測試裝置1工作於PXE模式。在PXE模式時,第一USB介面40中的資料信號失效,該第一USB介面40只起到一個供電的作用,電腦3亦無法透過第一USB介面40訪問預啟動執行環境測試裝置1中的內容,該預啟動執行環境測試裝置1作為伺服器使用。此時,預啟動執行環境測試裝置1透過第一網卡介面50接收電腦3的DHCP請求,利用DHCP模組22分配IP位址給電腦3,並利用TFTP模組23將映射檔案31經第一網卡介面50及第二網卡介面70傳送至電腦3中。When the first USB interface 40 of the pre-boot execution environment testing device 1 is connected to the second USB interface 60 of the computer 3, and the pre-boot execution environment testing device 1 connects the first network card interface 50 to the computer through the network cable 2 When the second network interface 70 of the third network card interface 70, the pre-boot execution environment testing device 1 operates in the PXE mode. In the PXE mode, the data signal in the first USB interface 40 is disabled. The first USB interface 40 only functions as a power supply, and the computer 3 cannot access the pre-execution environment test device 1 through the first USB interface 40. Content, the pre-launch execution environment testing device 1 is used as a server. At this time, the pre-launch execution environment test device 1 receives the DHCP request of the computer 3 through the first network card interface 50, allocates the IP address to the computer 3 by using the DHCP module 22, and passes the mapping file 31 to the first network card by using the TFTP module 23. The interface 50 and the second network interface 70 are transferred to the computer 3.

如圖3所示,係為本發明預啟動執行環境測試系統較佳實施例之功能模組圖。As shown in FIG. 3, it is a functional module diagram of a preferred embodiment of the pre-launch execution environment test system of the present invention.

所述預啟動執行環境測試系統21包括判斷模組210、接收模組211、分配模組212及發送模組213。各模組的功能將結合圖4之流程圖進行詳細介紹。The pre-launch execution environment testing system 21 includes a determination module 210, a receiving module 211, an allocation module 212, and a sending module 213. The function of each module will be described in detail in conjunction with the flowchart of FIG.

如圖4所示,係為本發明預啟動執行環境測試方法較佳實施例之流程圖。As shown in FIG. 4, it is a flowchart of a preferred embodiment of the pre-launch execution environment testing method of the present invention.

步驟S10,所述判斷模組210根據預啟動執行環境測試裝置1的第一網卡介面50是否與電腦3的第二網卡介面70相連接,及第一USB介面40是否與電腦3的第二USB介面60相連接,來判斷預啟動執行環境測試裝置1的工作模式是快閃記憶體模式還是PXE模式,當預啟動執行環境測試裝置1的工作模式是快閃記憶體模式,執行步驟S14,否則,執行步驟S12。In step S10, the determining module 210 is connected to the second network card interface 70 of the computer 3 according to whether the first network interface 50 of the pre-execution environment testing device 1 is connected, and whether the first USB interface 40 is connected to the second USB of the computer 3. The interface 60 is connected to determine whether the working mode of the pre-boot execution environment testing device 1 is a flash memory mode or a PXE mode. When the working mode of the pre-boot execution environment testing device 1 is a flash memory mode, step S14 is performed, otherwise , step S12 is performed.

在該步驟S10中,當第一USB介面40連接至第二USB介面60且第一網卡介面50連接至第二網卡介面70時,判斷模組210判定預啟動執行環境測試裝置1的工作模式為PXE模式;當第一USB介面40連接至第二USB介面60且第一網卡介面50未連接至第二網卡介面70時,判斷模組210判定預啟動執行環境測試裝置1的工作模式為快閃記憶體模式。In the step S10, when the first USB interface 40 is connected to the second USB interface 60 and the first network interface 50 is connected to the second network interface 70, the determining module 210 determines that the working mode of the pre-launch execution environment testing device 1 is In the PXE mode, when the first USB interface 40 is connected to the second USB interface 60 and the first network interface 50 is not connected to the second network interface 70, the determination module 210 determines that the working mode of the pre-launch execution environment testing device 1 is flashing. Memory mode.

步驟S12,所述接收模組211接收電腦3傳送的資料,並將該資料儲存於快閃記憶體30中,並結束流程。此時,預啟動執行環境測試裝置1作為一個普通的USB快閃記憶體使用,用於進行資料的儲存。In step S12, the receiving module 211 receives the data transmitted by the computer 3, stores the data in the flash memory 30, and ends the process. At this time, the pre-launch execution environment test device 1 is used as a normal USB flash memory for storing data.

步驟S14,所述接收模組211接收電腦3發送的DHCP請求,該DHCP請求為電腦3發出的IP租用請求報文。In step S14, the receiving module 211 receives a DHCP request sent by the computer 3, and the DHCP request is an IP lease request message sent by the computer 3.

步驟S16,所述分配模組212調用DHCP模組22,並執行該DHCP模組22的DHCP功能分配一個IP位址給電腦3。該IP位址用於定位電腦3,預啟動執行環境測試裝置1透過該IP位址可訪問電腦3。In step S16, the distribution module 212 calls the DHCP module 22, and executes the DHCP function of the DHCP module 22 to allocate an IP address to the computer 3. The IP address is used to locate the computer 3, and the pre-launch execution environment test device 1 can access the computer 3 through the IP address.

步驟S18,所述發送模組213調用TFTP模組23,並執行該TFTP模組23的TFTP功能將快閃記憶體30中的映射檔案31發送至電腦3。當電腦3接收到該映射檔案31時,該電腦3即可完成作業系統的啟動過程。In step S18, the transmitting module 213 calls the TFTP module 23, and executes the TFTP function of the TFTP module 23 to send the mapping file 31 in the flash memory 30 to the computer 3. When the computer 3 receives the mapping file 31, the computer 3 can complete the startup process of the operating system.

本發明解決了一般測試方法嚴重依賴伺服器的缺點,其便攜性和可移動的特點給用戶帶來了使用上的方便,如在需要演示PXE啟動功能時,可隨身攜帶該預啟動執行環境測試裝置1,而不需要架設一台真正的PXE伺服器。因此本發明可應用於各種需要可擕式PXE伺服器的場合。在實際測試中,也可直接替代普通PXE伺服器,廣泛應用於工廠測試環境。The invention solves the shortcomings that the general test method relies heavily on the server, and the portability and the movable feature bring convenience to the user, for example, when the PXE startup function needs to be demonstrated, the pre-launch execution environment test can be carried with the user. Device 1, without the need to set up a real PXE server. Therefore, the present invention can be applied to various occasions requiring a portable PXE server. In the actual test, it can also directly replace the ordinary PXE server, which is widely used in the factory test environment.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅爲本發明之較佳實施例,本發明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.

1...預啟動執行環境測試裝置1. . . Pre-launch execution environment test device

10...主控晶片10. . . Master chip

20...韌體20. . . firmware

21...預啟動執行環境測試系統twenty one. . . Pre-launch execution environment test system

22...DHCP模組twenty two. . . DHCP module

23...TFTP模組twenty three. . . TFTP module

30...快閃記憶體30. . . Flash memory

31...映射檔案31. . . Mapping file

40...第一USB介面40. . . First USB interface

50...第一網卡介面50. . . First NIC interface

2...網線2. . . cable

3...電腦3. . . computer

60...第二USB介面60. . . Second USB interface

70...第二網卡介面70. . . Second NIC interface

210...判斷模組210. . . Judging module

211...接收模組211. . . Receiving module

212...分配模組212. . . Distribution module

213...發送模組213. . . Sending module

圖1係為本發明預啟動執行環境測試裝置之硬體架構圖。1 is a hardware architecture diagram of a pre-launch execution environment testing device of the present invention.

圖2係為本發明預啟動執行環境測試系統較佳實施例之架構圖。2 is a block diagram of a preferred embodiment of a pre-boot execution environment test system of the present invention.

圖3係為本發明預啟動執行環境測試系統較佳實施例之功能模組圖。3 is a functional block diagram of a preferred embodiment of the pre-launch execution environment testing system of the present invention.

圖4係為本發明預啟動執行環境測試方法較佳實施例之流程圖。4 is a flow chart of a preferred embodiment of a pre-launch execution environment testing method of the present invention.

1...預啟動執行環境測試裝置1. . . Pre-launch execution environment test device

10...主控晶片10. . . Master chip

20...韌體20. . . firmware

21...預啟動執行環境測試系統twenty one. . . Pre-launch execution environment test system

22...DHCP模組twenty two. . . DHCP module

23...TFTP模組twenty three. . . TFTP module

30...快閃記憶體30. . . Flash memory

31...映射檔案31. . . Mapping file

40...第一USB介面40. . . First USB interface

50...第一網卡介面50. . . First NIC interface

Claims (7)

一種預啟動執行環境測試裝置,包括主控晶片、韌體、快閃記憶體及通用串列匯流排USB介面,其中,該預啟動執行環境測試裝置還包括:
網卡介面,用於連接電腦的網卡介面;
動態主機設置協定DHCP模組,用於回應電腦發送過來的DHCP請求,分配IP位址給電腦;及
簡單檔案傳輸協議TFTP模組,用於將儲存在快閃記憶體中的映射檔案下載至所述電腦。
A pre-launch execution environment testing device includes a main control chip, a firmware, a flash memory, and a universal serial bus USB interface, wherein the pre-boot execution environment testing device further includes:
NIC interface, used to connect to the NIC interface of the computer;
The dynamic host setting protocol DHCP module is used for responding to the DHCP request sent by the computer, and assigning the IP address to the computer; and the simple file transfer protocol TFTP module for downloading the mapping file stored in the flash memory to the office Said the computer.
如申請專利範圍第1項所述之預啟動執行環境測試裝置,其中,該預啟動執行環境測試裝置的工作模式包括快閃記憶體模式和預啟動執行環境PXE模式:
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面未連接至電腦的網卡介面時,該預啟動執行環境測試裝置工作於快閃記憶體模式;
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面連接至電腦的網卡介面時,該預啟動執行環境測試裝置工作於PXE模式。
The pre-launch execution environment testing device of claim 1, wherein the pre-execution execution environment test device operating mode comprises a flash memory mode and a pre-boot execution environment PXE mode:
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-boot execution environment test device is not connected to the network card interface of the computer, the pre-boot execution environment test device works in the flash memory mode;
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-launch execution environment test device is connected to the network card interface of the computer, the pre-launch execution environment test device operates in the PXE mode.
如申請專利範圍第2項所述之預啟動執行環境測試裝置,其中,所述快閃記憶體中儲存的映射檔案為電腦作業系統的映射檔案,該映射檔案在預啟動執行環境測試裝置工作於快閃記憶體模式時,從電腦中複製至該預啟動執行環境測試裝置。The pre-launch execution environment testing device of claim 2, wherein the mapping file stored in the flash memory is a mapping file of a computer operating system, and the mapping file operates in a pre-launch execution environment testing device. In flash memory mode, copy from the computer to the pre-boot execution environment test set. 一種預啟動執行環境測試方法,其中,該方法包括步驟:
判斷步驟:根據預啟動執行環境測試裝置的網卡介面是否與電腦的網卡介面相連接,及該預啟動執行環境測試裝置的USB介面是否與電腦的USB介面相連接,來判斷該預啟動執行環境測試裝置的工作模式是快閃記憶體模式還是PXE模式,當工作模式是快閃記憶體模式時,接收電腦傳送的資料,並將該資料儲存於快閃記憶體中,當工作模式是PXE模式時,執行接收步驟;
接收步驟:接收電腦發送的DHCP請求;
分配步驟:調用DHCP模組,並執行該DHCP模組的DHCP功能分配一個網際網路通訊協定IP位址給所述電腦;
發送步驟:調用TFTP模組,並執行該TFTP模組的TFTP功能將快閃記憶體中的映射檔案發送至所述電腦。
A pre-launch execution environment testing method, wherein the method comprises the steps of:
Judging step: determining whether the pre-boot execution environment test is based on whether the network card interface of the pre-launch execution environment test device is connected to the network card interface of the computer, and whether the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer. The working mode of the device is the flash memory mode or the PXE mode. When the working mode is the flash memory mode, the data transmitted by the computer is received, and the data is stored in the flash memory when the working mode is the PXE mode. , performing a receiving step;
Receiving step: receiving a DHCP request sent by a computer;
Allocation step: calling a DHCP module and performing a DHCP function of the DHCP module to assign an Internet Protocol IP address to the computer;
Sending step: calling the TFTP module, and executing the TFTP function of the TFTP module to send the mapping file in the flash memory to the computer.
如申請專利範圍第4項所述之預啟動執行環境測試方法,其中,所述判斷步驟判斷預啟動執行環境測試裝置的工作模式是快閃記憶體模式還是PXE模式包括:
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面未連接至電腦的網卡介面時,判定該預啟動執行環境測試裝置的工作模式為快閃記憶體模式;
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面連接至電腦的網卡介面時,判定該預啟動執行環境測試裝置的工作模式為PXE模式。
The pre-launch execution environment test method of claim 4, wherein the determining step determines whether the working mode of the pre-launch execution environment test device is a flash memory mode or a PXE mode:
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-boot execution environment test device is not connected to the network card interface of the computer, it is determined that the pre-boot execution environment test device operates in a fast mode. Flash memory mode;
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-boot execution environment test device is connected to the network card interface of the computer, it is determined that the working mode of the pre-boot execution environment test device is PXE mode. .
一種預啟動執行環境測試系統,其中,該系統包括:
判斷模組,用於根據預啟動執行環境測試裝置的網卡介面是否與電腦的網卡介面相連接,及該預啟動執行環境測試裝置的USB介面是否與電腦的USB介面相連接,來判斷預啟動執行環境測試裝置的工作模式是快閃記憶體模式還是PXE模式;
接收模組,用於當預啟動執行環境測試裝置的工作模式是快閃記憶體模式時,接收電腦傳送的資料,並將該資料儲存於快閃記憶體中;
所述接收模組,還用於當預啟動執行環境測試裝置的工作模式是PXE模式時,接收電腦發送的DHCP請求;
分配模組,用於調用DHCP模組,並執行該DHCP模組的DHCP功能分配一個IP位址給所述電腦;
發送模組,用於調用TFTP模組,執行該TFTP模組的TFTP功能將快閃記憶體中的映射檔案發送至所述電腦。
A pre-launch execution environment test system, wherein the system includes:
The judging module is configured to connect according to whether the network card interface of the pre-launch execution environment testing device is connected to the network card interface of the computer, and whether the USB interface of the pre-launch execution environment testing device is connected with the USB interface of the computer to determine the pre-boot execution. The working mode of the environmental test device is the flash memory mode or the PXE mode;
a receiving module, configured to receive data transmitted by the computer when the working mode of the pre-launch execution environment testing device is a flash memory mode, and store the data in the flash memory;
The receiving module is further configured to receive a DHCP request sent by the computer when the working mode of the pre-launch execution environment testing device is the PXE mode;
a distribution module, configured to invoke a DHCP module, and execute a DHCP function of the DHCP module to allocate an IP address to the computer;
The sending module is configured to invoke the TFTP module, and execute the TFTP function of the TFTP module to send the mapping file in the flash memory to the computer.
如申請專利範圍第6項所述之預啟動執行環境測試系統,其中,所述判斷模組透過以下步驟判斷預啟動執行環境測試裝置的工作模式:
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面未連接至電腦的網卡介面時,判定該預啟動執行環境測試裝置的工作模式為快閃記憶體模式;
當預啟動執行環境測試裝置的USB介面連接至電腦的USB介面,且該預啟動執行環境測試裝置的網卡介面連接至電腦的網卡介面時,判定該預啟動執行環境測試裝置的工作模式為PXE模式。
The pre-launch execution environment test system of claim 6, wherein the determining module determines the working mode of the pre-launch execution environment testing device by the following steps:
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-boot execution environment test device is not connected to the network card interface of the computer, it is determined that the pre-boot execution environment test device operates in a fast mode. Flash memory mode;
When the USB interface of the pre-launch execution environment test device is connected to the USB interface of the computer, and the network card interface of the pre-boot execution environment test device is connected to the network card interface of the computer, it is determined that the working mode of the pre-boot execution environment test device is PXE mode. .
TW101121046A 2012-06-11 2012-06-13 A pre-boot execute environment device and method and system for testing pre-boot execute environment TW201351128A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210189841.2A CN103490913A (en) 2012-06-11 2012-06-11 Pre-boot execution environment testing device, method and system

Publications (1)

Publication Number Publication Date
TW201351128A true TW201351128A (en) 2013-12-16

Family

ID=49830885

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101121046A TW201351128A (en) 2012-06-11 2012-06-13 A pre-boot execute environment device and method and system for testing pre-boot execute environment

Country Status (2)

Country Link
CN (1) CN103490913A (en)
TW (1) TW201351128A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104237699B (en) * 2014-09-28 2018-01-02 上海斐讯数据通信技术有限公司 A kind of USB interface communication test system and method
CN106598773B (en) * 2015-10-20 2019-09-24 深圳市中电智慧信息安全技术有限公司 Trusted system reduction apparatus
CN106526447A (en) * 2016-09-27 2017-03-22 曙光信息产业股份有限公司 Mainboard detection device and method

Also Published As

Publication number Publication date
CN103490913A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
US10282192B1 (en) Updating device code through a bus
US11640363B2 (en) Managing a smart network interface controller (NIC) of an information handling system
US9182998B2 (en) Remote bios update in system having multiple computers
US8489871B2 (en) Preboot execution environment test device and method
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US9423958B2 (en) System and method for managing expansion read-only memory and management host thereof
US11194588B2 (en) Information handling systems and method to provide secure shared memory access at OS runtime
EP2927812A1 (en) Method and apparatus for extending pcie bus domain
US7617400B2 (en) Storage partitioning
US20070169076A1 (en) Methods and systems for updating a BIOS image
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
US11159367B2 (en) Apparatuses and methods for zero touch computing node initialization
US20130262700A1 (en) Information processing system and virtual address setting method
US20160371107A1 (en) System and Method to Discover Virtual Machines from a Management Controller
US20120005321A1 (en) Router and remote boot method using the router
TW201430561A (en) System and method of starting baseboard management controller
EP3332325A1 (en) Methods, apparatus, and systems for providing access to serial ports of virtual machines in self-deployed virtual applications
TW201234195A (en) System and method for processing log files
CN107247596B (en) Starting method and device and electronic equipment
TW201351128A (en) A pre-boot execute environment device and method and system for testing pre-boot execute environment
WO2012163231A1 (en) Address resource allocation method and storage
CN107659621B (en) RAID control card configuration method and device
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN112069113B (en) I2C device configuration method and system
US9858085B2 (en) Information processing including BIOS apparatus, information processing method thereof, and storage medium