BIOS option rom setup option network translation system and method
The BIOS Option ROM Setup online translation system solves the problem of the lack of Chinese language packs for UEFI Option ROM in PCIe cards, enabling Chinese display on the BIOS interface, improving user experience and automatic translation efficiency.
Patent Information
- Application Number
- CN202210720151.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-06-02
AI Technical Summary
The UEFI Option ROM in existing PCIe cards lacks a Chinese language pack in the BIOS interface configuration options, causing inconvenience for users of domestic platforms.
A BIOS Option ROM Setup network translation system is provided, including a peripheral matching module, a language pack parsing module, a dynamic translation module, and a language pack encapsulation module. By detecting the peripheral board type, parsing the Option ROM, translating English into Chinese using a local translation font library or a network translation engine, and encapsulating it in memory into a BIOS-recognizable language pack format.
It enables Chinese language display of PCIe cards in the BIOS interface, improving the ease of use for domestic users. The dynamic translation process does not require a pre-installed Chinese language pack, thus improving the automatic language adaptation capability of peripheral boards.
Smart Images

Figure CN115221898B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer firmware technology, and more specifically to a BIOS Option Rom Setup network translation system and method. Background Technology
[0002] The BIOS is used to initialize the computer's processor platform and load the operating system. Its basic functions include: gaining system control after the hardware platform is powered on; initializing key components such as the processor, memory, and chipset; enumerating peripherals and allocating resources to them; initializing necessary peripherals such as graphics cards, hard drives, and network cards; establishing a runtime environment for the operating system; and then handing control over to the operating system.
[0003] PCI-Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. PCIe is a high-speed serial point-to-point dual-channel high-bandwidth transmission. Connected devices are allocated dedicated channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot-plugging, and Quality of Service (QoS) functions.
[0004] The UEFI Option ROM in existing PCIe cards has the following problems:
[0005] Most PCIe cards offer UEFI Option ROM configuration options in the BIOS interface, but most commercial PCIe cards do not come with a Chinese language pack, which is not user-friendly for users of domestic platforms. Summary of the Invention
[0006] In view of this, the present invention provides a BIOS Option Rom Setup network translation system and method, which can solve the problem of providing Chinese localization translation for commercial PCIe peripherals.
[0007] The BIOS Option Rom Setup network translation system of the present invention includes: a peripheral matching module, a language pack parsing module, a dynamic translation module, a language pack encapsulation module, and a local translation character library;
[0008] The peripheral matching module is used to perform type detection on peripheral boards; the language pack parsing module is used to parse the Option ROM in the peripheral board to confirm whether it has a Chinese language pack; the dynamic translation module translates English into Chinese using a local translation character library or network translation and obtains the corresponding Chinese characters; the language pack encapsulation module encapsulates the translated Chinese into a BIOS-recognizable Chinese language pack format and inserts or replaces the language pack in the peripheral board's Option ROM in memory; the BIOS dynamically loads the Chinese language pack stored in memory and displays it on the screen.
[0009] Preferably, the local translation character set includes a Chinese-English glossary of commonly used options, which are translated according to the general semantics of the industry.
[0010] Preferably, the dynamic translation module, for English words or phrases in the peripheral board, first searches in the local translation character library. If a corresponding Chinese character exists, the Chinese character in the local translation character library is used; otherwise, the English character is encapsulated according to the network protocol format and sent to the translation engine for translation, and the Chinese character returned by the translation engine is used.
[0011] This invention also provides a translation method for the aforementioned BIOS Option Rom Setup network translation system, comprising:
[0012] Step 1: Power on the computer, start the BIOS, load the peripheral card drivers, and load the translation system.
[0013] Step 2: The peripheral matching module detects the type of peripheral board. If a board needs to be translated, proceed to Step 3. If no board needs to be translated, the translation ends and returns to the BIOS.
[0014] Step 3: The language pack parsing module parses the Option ROM of the peripheral board and checks whether it contains the Chinese language pack. If it does, the translation ends and returns to the BIOS; otherwise, proceed to step 4.
[0015] Step 4: The dynamic translation module parses the English language package of the board and extracts the English text. If the English text is in the form of words or phrases, it is translated using the local translation character set, and then proceeds to Step 6. If the local translation character set does not have a corresponding Chinese text, then proceeds to Step 5. If the English text is in the form of sentences, then proceeds to Step 5.
[0016] Step 5: The dynamic translation module packages the English text into data packets that the network translation engine can recognize through the network protocol stack built into the BIOS, sends them to the network translation engine, and receives the corresponding Chinese translation, then proceeds to Step 6;
[0017] Step Six: The language pack packaging module summarizes and packages the translated Chinese text into a Chinese language pack in the Option ROM standard format, and inserts and replaces it in memory;
[0018] Step 7: The BIOS loads the Chinese language pack for Option ROM and displays it on the screen.
[0019] Preferably, in step two, the peripheral matching module first obtains the HIIHANDLE of the peripheral board; based on the HIIHANDLE, it obtains the device path of the peripheral board through devicepath; based on the device path, it accesses the configuration space of the peripheral board through PCIIO to obtain the vendor ID and device ID of the peripheral board, and thus obtains the type of the peripheral board.
[0020] Preferably, in step three, the language pack parsing module obtains the character library and VFR interface package of the peripheral board based on the HIIHANDLE of the peripheral board. The language supported by the board can be parsed from the character library of the board, and it can be determined whether the Chinese language pack is included.
[0021] Beneficial effects:
[0022] (1) During the UEFI BIOS boot process, support is only provided for the language pack included with the PCIe card. This invention allows the BIOS to parse the UEFI Option ROM to be supported during power-on, obtain the English language pack, connect to the network translation port via HTTP, and add the translated result as a language pack to a new package. The UEFI BIOS automatically matches and displays all supported languages. This invention can display the Chinese language option for Option ROM on the BIOS interface, solving the problem of commercial boards not having Chinese language packs, and improving the convenience for domestic users of commercial boards. Furthermore, this invention is a dynamic translation, eliminating the need for BIOS manufacturers or other BIOS personnel to extract, translate, and pre-install Chinese language packs for commercial boards, thus improving the automatic adaptation capability of peripheral boards to local languages.
[0023] (2) This invention categorizes English words and phrases. For words and phrases, it first constructs a local translation database to translate words and phrases with common semantic meanings in the industry, thereby improving professional accuracy. For short sentences and long sentences, it directly packages them for online translation to improve translation speed.
[0024] (3) The configuration space of the external board can be accessed by following the device path of the external board. The board manufacturer ID and device ID can be obtained, and the type of the external board can be determined, which is convenient and quick.
[0025] (4) The character library of the peripheral board can be obtained by using the HIIHANDLE of the peripheral board, so as to determine whether it contains Chinese language pack, which is convenient and quick. Attached Figure Description
[0026] Figure 1 This is a network translation framework diagram of the BIOS Option Rom Setup option in this invention;
[0027] Figure 2 Flowchart for BIOS Option Rom Setup (Network Translation)
[0028] Figure 3 This is a screenshot of the character library of the RAID card. Detailed Implementation
[0029] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0030] This invention provides a BIOS Option ROM Setup network translation system, comprising three layers:
[0031] (1) Hardware level. The hardware level includes processor platform, memory and other key computer components, as well as peripherals such as RAID card and graphics card.
[0032] (2) BIOS level. The BIOS level includes the BIOS core framework and dynamic translation components.
[0033] (3) Operating system level. No special requirements are placed on the operating system in this invention.
[0034] This invention, a BIOS Option ROM Setup network translation system, can automatically translate peripheral boards that lack a Chinese language pack. The system can detect the type of external computer board and whether it has a built-in Chinese language pack. When no Chinese language pack is built-in, it searches and translates the English phrases for the Option ROM locally. For short and long sentences, it dynamically obtains Chinese text through network translation. Furthermore, the system can automatically repackage the obtained Chinese text into a Chinese language pack in memory, completing the built-in replacement of the Chinese language pack. This achieves dynamic language translation for peripheral boards, improving the convenience of using peripheral boards for users.
[0035] Specifically, the BIOS Option ROM Setup network translation system includes a peripheral matching module, a language pack parsing module, a language pack encapsulation module, a dynamic translation module, and a local translation font library;
[0036] The BIOS core framework is used to load the Network Dynamic Translation (NRT) component. It also establishes the system service tables in UEFI, including Boot Service and Runtime Service, and provides unified management of all modules and resources within the firmware. The NRT component can be loaded and run through the BIOS core framework.
[0037] The BIOS Option ROM Setup network translation system uses a peripheral matching module to perform type detection on peripheral boards; the system uses a language pack parsing module to parse the Option ROM in the peripheral boards to confirm whether they have a Chinese language pack; the system uses a dynamic translation module to translate English phrases or long sentences into Chinese using both local and network translation methods, and obtains the corresponding Chinese characters; the system uses a language pack encapsulation module to encapsulate the translated Chinese into a BIOS-recognizable Chinese language pack format in memory; the BIOS dynamically loads the language pack from the Option ROM and displays the Chinese on the screen.
[0038] When the peripheral matching module detects the type of the peripheral board, if it finds that the type of the board does not require translation, the translation step is ignored for the peripheral board; if it does require translation, dynamic translation continues.
[0039] When the language pack parsing module detects the language pack of the peripheral board, if a Chinese language pack is available, the translation step is ignored for the peripheral board; otherwise, dynamic translation is performed.
[0040] The local translation character set includes a Chinese-English glossary of commonly used options. These translations are based on industry-standard semantics and are highly accurate.
[0041] When translating foreign languages (taking English as an example) from peripheral boards, the dynamic translation module first searches for English words or phrases in the local translation dictionary. If a corresponding Chinese character exists, it uses that character; otherwise, it performs online translation. Secondly, for short or long English sentences in the peripheral boards, and for English words not found in the local dictionary, the dynamic translation module encapsulates the English text according to a network protocol (such as HTTP) and sends it to the translation engine for translation, then receives the returned Chinese text.
[0042] The language pack encapsulation module is used to package Chinese text translated from local character sets or the internet into a Chinese language pack format in the Option ROM, and insert or replace the language pack in the peripheral board's Option ROM in memory. After the Chinese language pack replacement is completed, the BIOS will directly recognize and load the corresponding Chinese language, realizing the function of dynamic Chinese translation of peripheral board options.
[0043] This invention also provides a method for translating BIOS Option ROM Setup options over a network, the steps of which include:
[0044] Prerequisites: The computer must have peripheral cards installed, and at least one of these peripheral cards must not have a Chinese language pack. The computer must be connected to a network, and the network must have access to at least one online translation engine.
[0045] Step 1: Power on the computer, start the BIOS, and load the board driver.
[0046] Step 2: Load the network dynamic translation component. The peripheral matching module detects the computer's plug-in cards and confirms the card type. If a card type that needs translation is found, proceed to the next step; otherwise, end the process.
[0047] Step 3: The language pack parsing module parses the Option ROM (OPROM) of the peripheral board and checks whether it contains the Chinese language pack. If it does, the process ends; otherwise, it proceeds to the next step.
[0048] Step 4: The language pack parsing module parses the board's English language pack and extracts the English text. This English text is divided into two categories: English words and phrases from the options, and short and long sentences. Local translation of English words and phrases from the options is performed first; if no matching Chinese-English translation is found, the process proceeds to the next step for online translation. Short and long sentences are directly translated online.
[0049] Step 5: The dynamic translation module will use the BIOS's built-in network protocol stack to package the English text into data packets that the network translation engine can recognize, send them to the network translation engine, and receive the corresponding Chinese translation. If there is no corresponding English translation, the original English text will still be displayed.
[0050] Step Six: After all English translations are completed, the language pack packaging module will summarize the corresponding Chinese text and package it into a Chinese language pack in the Option ROM standard format, and then insert and replace it in memory.
[0051] Step 7: The BIOS will load the Chinese language pack for Option ROM and display it on the screen.
[0052] The translation process for a RAID card is explained in detail below:
[0053] Step 1: Power on the computer, boot into BIOS, and load the board driver;
[0054] After the BIOS BDS phase has finished connecting all drivers (including the board's Option ROM), once the Option ROM is loaded, it will register the font library and interface in the BIOS kernel.
[0055] Step 2: Load the network dynamic translation component, detect network connectivity and computer plug-in cards, and filter cards that need translation based on features such as device path, vendor ID, and device ID (e.g., vendor ID 0x1122, device ID 0x6A). The peripheral matching module first obtains all device handles, then obtains the device path through the device handles, and finally retrieves the device path through the devicepath (each card has a unique device path). It can then access the RAID card's configuration space to obtain the vendor ID 0x1122 and device ID 0x6A to filter RAID cards.
[0056] Step 3: Extract the character library from the board and parse it;
[0057] Once the language pack parsing module obtains the device handle of the RAID card, it can access the RAID card's character set and VFR (BIOS Interface Language) packet. From the character set (which has a specific format), it parses the languages supported by the card and discovers that the card only supports English. Figure 3 This is just a small screenshot of the font library.
[0058] Step 4: After the language pack parsing module obtains the font packet header, it parses the total size of the packet. The PACKAGE HEADER contains the languages to be supported in the PACKAGE DATA below. We locate the PACKAGE DATA. Each English sentence ends with two 0s, so we iterate through it to extract phrases or words. We prioritize translating the English words and phrases in the options locally, and then send HTTP translation request packets for short and long English sentences.
[0059] Step 5: The dynamic translation module will use the BIOS's built-in network protocol stack to package the English text into data packets that the network translation engine can recognize, send them to the network translation engine, and receive the corresponding Chinese translation. If there is no corresponding English translation, the original English text will still be displayed.
[0060] Step Six: After all English translations are completed, the language pack packaging module will summarize the corresponding Chinese characters and package them into a Chinese language pack in Option ROM standard format. The Chinese characters must be encoded in Unicode format and end with three 0x00s after each translated format. The pack header will be reconstructed and the total pack header size will be modified. Since the original font library memory space is fixed, directly appending it may cause memory corruption. Therefore, we cannot construct it after the pack. So we need to remove the old font library and update the font library that is reconstructed with newly allocated memory.
[0061] Step 7: After the update is successful, enter BIOS Setup, switch the language to the language you want to translate, and check and configure the RAID card's Option ROM.
[0062] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A BIOS Option ROM Setup network translation system for implementing a BIOS Option ROM Setup network translation method, characterized in that the BIOS Option ROM Setup network translation system comprises: The system includes a peripheral matching module, a language pack parsing module, a dynamic translation module, a language pack encapsulation module, and a local translation character set. The peripheral matching module performs type detection on the peripheral board. The language pack parsing module parses the Option ROM in the peripheral board to determine if it contains a Chinese language pack. The dynamic translation module translates English into Chinese using a local translation character set or online translation and obtains the corresponding Chinese characters. The language pack encapsulation module encapsulates the translated Chinese into a BIOS-recognizable Chinese language pack format and inserts or replaces the language pack in the peripheral board's Option ROM in memory. The BIOS dynamically loads the Chinese language pack stored in memory and displays it on the screen. The BIOS Option Rom Setup network translation method includes: Step 1, powering on, starting the BIOS, loading peripheral card drivers, and loading the translation system; Step 2: The peripheral matching module detects the type of peripheral board. If a board needs to be translated, proceed to Step 3. If no board needs to be translated, the translation ends and returns to the BIOS. Step 3: The language pack parsing module parses the Option ROM of the peripheral board and checks whether it contains the Chinese language pack. If it does, the translation ends and returns to the BIOS; otherwise, proceed to step 4. Step 4: The dynamic translation module parses the English language package of the board and extracts the English text. If the English text is in the form of words or phrases, it is translated using the local translation character set, and then proceeds to Step 6. If the local translation character set does not have a corresponding Chinese text, then proceeds to Step 5. If the English text is in the form of sentences, then proceeds to Step 5. Step 5: The dynamic translation module packages the English text into data packets that the network translation engine can recognize through the network protocol stack built into the BIOS, sends them to the network translation engine, and receives the corresponding Chinese translation, then proceeds to Step 6; Step Six: The language pack packaging module summarizes and packages the translated Chinese text into a Chinese language pack in the Option ROM standard format, and inserts and replaces it in memory; Step 7: The BIOS loads the Chinese language pack for Option ROM and displays it on the screen.
2. The BIOS Option ROM Setup network translation system as described in claim 1, characterized in that, The local translation character set includes a Chinese-English glossary of commonly used options, which are translated according to the general semantics of the industry.
3. The BIOS Option ROM Setup network translation system as described in claim 1 or 2, characterized in that, The dynamic translation module first searches the local translation character library for English words or phrases in the peripheral board. If the corresponding Chinese characters exist, the Chinese characters in the local translation character library are used. If not, the English text is encapsulated according to network protocol format and sent to the translation engine for translation, using the Chinese text returned by the translation engine.
4. The BIOS Option ROM Setup network translation system as described in claim 1, characterized in that, In step two, the peripheral matching module obtains the HIIHANDLE of the peripheral board; based on the HIIHANDLE, the device path of the peripheral board is obtained through devicepath. Based on the device path, access the configuration space of the peripheral board via PCIIO to obtain the peripheral board's vendor ID and device ID, and thus determine the type of the peripheral board.
5. The BIOS Option ROM Setup network translation system as described in claim 1 or 4, characterized in that, In step three, the language pack parsing module obtains the character library and VFR interface package of the peripheral board based on the HIIHANDLE of the peripheral board, parses the language supported by the board from the character library, and determines whether it contains the Chinese language pack.
Citation Information
Patent Citations
Quick searching dictionary
CN103353884A
Method and system for configuring machine language, word stock file and translation file through PC
CN104536955A
System and method for localizing JAVA GUI application without modifying source code
CN1885265A