[go: up one dir, main page]

CN109597787B - SIO UART configuration method, system, device and readable storage medium - Google Patents

SIO UART configuration method, system, device and readable storage medium Download PDF

Info

Publication number
CN109597787B
CN109597787B CN201811504676.9A CN201811504676A CN109597787B CN 109597787 B CN109597787 B CN 109597787B CN 201811504676 A CN201811504676 A CN 201811504676A CN 109597787 B CN109597787 B CN 109597787B
Authority
CN
China
Prior art keywords
port
sio
uart
preset configuration
configuration
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.)
Active
Application number
CN201811504676.9A
Other languages
Chinese (zh)
Other versions
CN109597787A (en
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201811504676.9A priority Critical patent/CN109597787B/en
Publication of CN109597787A publication Critical patent/CN109597787A/en
Application granted granted Critical
Publication of CN109597787B publication Critical patent/CN109597787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, a system, a device and a readable storage medium for configuring an SIO UART, comprising the following steps: determining information of an output port, wherein the information comprises an LPC address corresponding to the output port; in an SEC stage of the bios process, the LPC address is configured to a corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port, respectively, so that the SIO UART outputs serial port information through the output port. According to the method and the device, the SIO UART is configured through the first preset configuration port and the second preset configuration port respectively at the SEC stage of the BIOS POST process, the configuration ports do not need to be determined in advance through chip selection signals, when the configuration ports are changed, the BIOS does not need to be compiled and burnt again, the configuration process is simple, serial port information can be normally output at the SEC stage, and monitoring on each operation stage of the BIOS is achieved.

Description

SIO UART配置方法、系统、装置及可读存储介质SIO UART configuration method, system, device and readable storage medium

技术领域technical field

本申请涉及BIOS领域,特别是涉及一种SIO UART配置方法、系统、装置及可读存储介质。The present application relates to the field of BIOS, and in particular, to a SIO UART configuration method, system, device and readable storage medium.

背景技术Background technique

AMI BIOS(Base Input/Output System,基本输入输出系统)在设计时会根据硬件选择LPC(Low Pin Count,低引脚数)地址为0x2E/0x2F的配置端口或者LPC地址为0x4E/0x4F配置端口对SIO(Super Input/Output,超级输入输出芯片)UART(UniversalAsynchronous Receiver/Transmitter,通用异步收发传输器)进行配置,以便在发生宕机时可以通过SIO UART输出的串口信息迅速定位问题位置。AMI BIOS (Base Input/Output System, Basic Input/Output System) will select LPC (Low Pin Count, Low Pin Count) configuration port with address 0x2E/0x2F or LPC address 0x4E/0x4F configuration port pair according to hardware during design SIO (Super Input/Output, super input and output chip) UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Transmitter) is configured, so that the problem location can be quickly located through the serial port information output by the SIO UART in the event of a downtime.

现有技术一般是根据硬件片选信号选择使用0x2E/0x2F配置端口或者0x4E/0x4F配置端口对SIO UART进行配置,然后根据确定的配置端口编译、烧录BIOS,系统上电开机后,在BIOS POST过程的PEI(Pre-EFI Initialization,EFI前期初始化)阶段早期通过确定的配置端口配置SIO UART,以便SIO UART输出串口信息,但是当配置端口变更,则需重新编译、烧录BIOS,导致配置过程复杂,如果预先选择的配置端口的片选信号发生异常,则会导致串口日志信息紊乱或无法正常输出串口信息,且现有技术中是在PEI阶段配置SIO UART,导致在其之前的SEC阶段无法输出串口信息,无法定位SEC阶段的问题。In the prior art, the 0x2E/0x2F configuration port or the 0x4E/0x4F configuration port is generally selected according to the hardware chip select signal to configure the SIO UART, and then the BIOS is compiled and programmed according to the determined configuration port. In the PEI (Pre-EFI Initialization) stage of the process, the SIO UART is configured through the determined configuration port in the early stage, so that the SIO UART can output serial information, but when the configuration port is changed, the BIOS needs to be recompiled and burned, which makes the configuration process complicated. , if the chip select signal of the pre-selected configuration port is abnormal, the serial port log information will be disordered or the serial port information cannot be output normally. In the prior art, the SIO UART is configured in the PEI stage, resulting in the failure to output in the SEC stage before it. Serial port information, unable to locate the problem in the SEC stage.

因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problem is a problem that those skilled in the art need to solve at present.

发明内容SUMMARY OF THE INVENTION

本申请的目的是提供一种SIO UART配置方法、系统、装置及可读存储介质,无需通过片选信号提前确定配置端口,当配置端口变更时,不需要重新编译、烧录BIOS,配置过程简单,同时保证在SEC阶段也可以正常输出串口信息,实现对BIOS的各个运行阶段进行监控。The purpose of this application is to provide a SIO UART configuration method, system, device and readable storage medium, without the need to determine the configuration port in advance through the chip select signal, when the configuration port is changed, there is no need to recompile and burn the BIOS, and the configuration process is simple , and at the same time ensure that the serial port information can be output normally in the SEC stage, so as to monitor each running stage of the BIOS.

为解决上述技术问题,本申请提供了一种SIO UART配置方法,包括:In order to solve the above technical problems, the present application provides a SIO UART configuration method, including:

确定输出端口的信息,所述信息包括与所述输出端口对应的LPC地址;determining the information of the output port, the information including the LPC address corresponding to the output port;

在BIOS POST过程的SEC阶段,将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIO UART通过所述输出端口输出串口信息;In the SEC stage of the BIOS POST process, the LPC address is configured to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that the SIO UART outputs serial port information through the output port ;

其中,所述第一预设配置端口对应的LPC地址为0x2E或0x2F,所述第二预设配置端口对应的LPC地址为0x4E或0x4F。The LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F.

优选的,所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:Preferably, the process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows:

将所述LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn;

或将所述LPC地址依次通过所述第二预设配置端口和所述第一预设配置端口配置给所述SIO UART中对应的寄存器。Or the LPC address is sequentially configured to the corresponding register in the SIO UART through the second preset configuration port and the first preset configuration port.

优选的,所述与所述输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。Preferably, the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8.

优选的,所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIO UART通过所述输出端口输出串口信息之后,该SIO UART配置方法还包括:Preferably, the LPC address is configured to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that after the SIO UART outputs serial port information through the output port, the SIO UART configuration methods also include:

将所述串口信息发送至终端,以便所述终端显示与所述串口信息对应的BIOS信息。The serial port information is sent to the terminal, so that the terminal displays BIOS information corresponding to the serial port information.

优选的,所述将所述串口信息发送至终端的过程具体为:Preferably, the process of sending the serial port information to the terminal is as follows:

将所述串口信息按预设格式发送至终端。Send the serial port information to the terminal in a preset format.

为解决上述技术问题,本申请还提供了一种SIO UART配置系统,包括:In order to solve the above technical problems, the present application also provides a SIO UART configuration system, including:

确定模块,用于确定输出端口的信息,所述信息包括与所述输出端口对应的LPC地址;a determining module, configured to determine the information of the output port, the information including the LPC address corresponding to the output port;

配置模块,用于在BIOS POST过程的SEC阶段,将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIO UART通过所述输出端口输出串口信息;A configuration module, configured to configure the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively in the SEC stage of the BIOS POST process, so that the SIO UART passes the The output port outputs serial information;

其中,所述第一预设配置端口对应的LPC地址为0x2E或0x2F,所述第二预设配置端口对应的LPC地址为0x4E或0x4F。The LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F.

优选的,所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:Preferably, the process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows:

将所述LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn;

或将所述LPC地址依次通过所述第二预设配置端口和所述第一预设配置端口配置给所述SIO UART中对应的寄存器。Or the LPC address is sequentially configured to the corresponding register in the SIO UART through the second preset configuration port and the first preset configuration port.

优选的,所述与所述输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。Preferably, the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8.

为解决上述技术问题,本申请还提供了一种SIO UART配置装置,包括:In order to solve the above technical problems, the present application also provides a SIO UART configuration device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上文任意一项所述SIO UART配置方法的步骤。The processor is configured to implement the steps of the SIO UART configuration method according to any one of the above when executing the computer program.

为解决上述技术问题,本申请还提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上文任意一项所述SIO UART配置方法的步骤。In order to solve the above technical problems, the present application also provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the SIO UART configuration described in any one of the above is realized. steps of the method.

本申请提供了一种SIO UART配置方法,包括:确定输出端口的信息,信息包括与输出端口对应的LPC地址;在BIOS POST过程的SEC阶段,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便SIO UART通过输出端口输出串口信息;其中,第一预设配置端口对应的LPC地址为0x2E或0x2F,第二预设配置端口对应的LPC地址为0x4E或0x4F。The present application provides a SIO UART configuration method, including: determining information of an output port, where the information includes an LPC address corresponding to the output port; and in the SEC stage of the BIOS POST process, passing the LPC address through the first preset configuration port and the first preset configuration port respectively. The second preset configuration port is configured to the corresponding register in the SIO UART, so that the SIO UART outputs serial information through the output port; wherein, the LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC corresponding to the second preset configuration port The address is 0x4E or 0x4F.

可见,在实际应用中,采用本申请的方案,在BIOS POST过程的SEC阶段分别通过第一预设配置端口和第二预设配置端口对SIO UART进行配置,不受硬件影响,无需通过片选信号提前确定配置端口,因此,当配置端口变更时,不需要重新编译、烧录BIOS,配置过程简单,同时保证在SEC阶段也可以正常输出串口信息,从而实现对BIOS的各个运行阶段进行监控。It can be seen that, in practical applications, the solution of the present application is adopted to configure the SIO UART through the first preset configuration port and the second preset configuration port respectively in the SEC stage of the BIOS POST process, which is not affected by hardware and does not need to be selected by chip selection. The signal determines the configuration port in advance. Therefore, when the configuration port is changed, there is no need to recompile and burn the BIOS. The configuration process is simple, and at the same time, the serial port information can be output normally during the SEC stage, so as to monitor each running stage of the BIOS.

本申请还提供了一种SIO UART配置系统、装置及可读存储介质,具有和上述SIOUART配置方法相同的有益效果。The present application also provides a SIO UART configuration system, a device and a readable storage medium, which have the same beneficial effects as the above-mentioned SIO UART configuration method.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the prior art and the drawings required in the embodiments. Obviously, the drawings in the following description are only some of the drawings in the present application. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本申请所提供的一种SIO UART配置方法的步骤流程图;1 is a flow chart of steps of a SIO UART configuration method provided by the application;

图2为本申请所提供的一种SIO UART配置系统的结构示意图。FIG. 2 is a schematic structural diagram of a SIO UART configuration system provided by the application.

具体实施方式Detailed ways

本申请的核心是提供一种SIO UART配置方法、系统、装置及可读存储介质,无需通过片选信号提前确定配置端口,当配置端口变更时,不需要重新编译、烧录BIOS,配置过程简单,同时保证在SEC阶段也可以正常输出串口信息,实现对BIOS的各个运行阶段进行监控。The core of the present application is to provide a SIO UART configuration method, system, device and readable storage medium. It is not necessary to determine the configuration port in advance through the chip select signal. When the configuration port is changed, there is no need to recompile and burn the BIOS, and the configuration process is simple. , and at the same time ensure that the serial port information can be output normally in the SEC stage, so as to monitor each running stage of the BIOS.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

请参照图1,图1为本申请所提供的一种SIO UART配置方法的步骤流程图,包括:Please refer to FIG. 1. FIG. 1 is a flowchart of steps of a SIO UART configuration method provided by the application, including:

步骤1:确定输出端口的信息,信息包括与输出端口对应的LPC地址;Step 1: determine the information of the output port, the information includes the LPC address corresponding to the output port;

具体的,首先选择输出端口的LPC地址,可选的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。Specifically, the LPC address of the output port is selected first, and the optional LPC address is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8.

步骤2:在BIOS POST过程的SEC阶段,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便SIO UART通过输出端口输出串口信息;Step 2: in the SEC stage of the BIOS POST process, configure the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that the SIO UART outputs serial port information through the output port;

其中,第一预设配置端口对应的LPC地址为0x2E或0x2F,第二预设配置端口对应的LPC地址为0x4E或0x4F。The LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F.

具体的,在BIOS POST过程的SEC阶段(即BIOS POST过程的第一个阶段,PEI阶段为BIOS POST过程的第二个阶段),BIOS可根据SIO技术规格书上面的指令进入配置模式,分别通过第一预设配置端口和第二预设配置端口将步骤1确定的LPC地址配置给SIO UART对应的寄存器,并将之使能,以便SIO UART通过该输出端口输出串口信息。可以理解的是,当硬件片选信号为低电平时,需要选择0x2E或0x2F配置端口,当硬件片选信号为高电平时,需要选择0x4E或0x4F配置端口,本申请中,BIOS分别通过第一预设配置端口和第二预设配置端口配置SIO UART,设第一预设配置端口对应的LPC地址为0x2E或0x2F,第二预设配置端口对应的LPC地址为0x4E或0x4F,当片选信号为低电平时,通过第一预设配置端口配置SIO UART生效,当片选信号为高电平时,通过第二预设配置端口配置SIO UART生效,因此,本申请不受硬件片选信号的影响,无论片选信号是高电平还是低电平,都可以保证对SIO UART的配置是有效的,从而可以正常输出串口信息。Specifically, in the SEC stage of the BIOS POST process (that is, the first stage of the BIOS POST process, and the PEI stage is the second stage of the BIOS POST process), the BIOS can enter the configuration mode according to the instructions in the SIO technical specification, and pass the The first preset configuration port and the second preset configuration port configure the LPC address determined in step 1 to the register corresponding to the SIO UART, and enable it, so that the SIO UART outputs serial port information through the output port. It can be understood that when the hardware chip select signal is low, it needs to select 0x2E or 0x2F to configure the port. When the hardware chip select signal is high, it needs to select 0x4E or 0x4F to configure the port. In this application, the BIOS passes the first The preset configuration port and the second preset configuration port are configured with SIO UART, and the LPC address corresponding to the first preset configuration port is set to 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F. When the chip select signal When it is low level, the configuration of the SIO UART through the first preset configuration port takes effect. When the chip select signal is at a high level, the configuration of the SIO UART through the second preset configuration port takes effect. Therefore, the application is not affected by the hardware chip select signal. , no matter the chip select signal is high level or low level, it can ensure that the configuration of the SIO UART is valid, so that the serial port information can be output normally.

可以理解的是,LPC地址可以固定用作某些功能,比如0x2E/0x2F、It is understandable that the LPC address can be fixed for certain functions, such as 0x2E/0x2F,

0x2E/0x2F这两组只会用作SIO的配置地址,不会另做他用。These two groups of 0x2E/0x2F will only be used as the configuration address of SIO, and will not be used for other purposes.

本申请提供了一种SIO UART配置方法,包括:确定输出端口的信息,信息包括与输出端口对应的LPC地址;在BIOS POST过程的SEC阶段,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便SIO UART通过输出端口输出串口信息;其中,第一预设配置端口对应的LPC地址为0x2E或0x2F,第二预设配置端口对应的LPC地址为0x4E或0x4F。The present application provides a SIO UART configuration method, including: determining information of an output port, where the information includes an LPC address corresponding to the output port; and in the SEC stage of the BIOS POST process, passing the LPC address through the first preset configuration port and the first preset configuration port respectively. The second preset configuration port is configured to the corresponding register in the SIO UART, so that the SIO UART outputs serial information through the output port; wherein, the LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC corresponding to the second preset configuration port The address is 0x4E or 0x4F.

可见,在实际应用中,采用本申请的方案,在BIOS POST过程的SEC阶段分别通过第一预设配置端口和第二预设配置端口对SIO UART进行配置,不受硬件影响,无需通过片选信号提前确定配置端口,因此,当配置端口变更时,不需要重新编译、烧录BIOS,配置过程简单,同时保证在SEC阶段也可以正常输出串口信息,从而实现对BIOS的各个运行阶段进行监控。It can be seen that, in practical applications, the solution of the present application is adopted to configure the SIO UART through the first preset configuration port and the second preset configuration port respectively in the SEC stage of the BIOS POST process, which is not affected by hardware and does not need to be selected by chip selection. The signal determines the configuration port in advance. Therefore, when the configuration port is changed, there is no need to recompile and burn the BIOS. The configuration process is simple, and at the same time, the serial port information can be output normally during the SEC stage, so as to monitor each running stage of the BIOS.

在上述实施例的基础上:On the basis of the above-mentioned embodiment:

作为一种优选的实施例,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:As a preferred embodiment, the process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows:

将LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn;

或将LPC地址依次通过第二预设配置端口和第一预设配置端口配置给Or configure the LPC address through the second preset configuration port and the first preset configuration port to

SIO UART中对应的寄存器。The corresponding register in the SIO UART.

具体的,BIOS通过第一预设配置端口和第二预设配置端口对SIO UART进行配置时,既可以是先通过0x2E/0x2F配置端口进行配置再通过0x4E/0x4F配置端口进行配置,也可以先通过0x4E/0x4F配置端口进行配置再通过Specifically, when the BIOS configures the SIO UART through the first preset configuration port and the second preset configuration port, it can be configured first through the 0x2E/0x2F configuration port and then through the 0x4E/0x4F configuration port, or it can be configured first. Configure through the 0x4E/0x4F configuration port and then pass

0x2E/0x2F配置端口进行配置,对于配置顺序本申请不做限定。0x2E/0x2F configure the port for configuration, and this application does not limit the configuration sequence.

作为一种优选的实施例,与输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。As a preferred embodiment, the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8.

作为一种优选的实施例,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便SIO UART通过输出端口输出串口信息之后,该SIO UART配置方法还包括:As a preferred embodiment, the LPC address is configured to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that after the SIO UART outputs serial information through the output port, the SIO UART is configured with Methods also include:

将串口信息发送至终端,以便终端显示与串口信息对应的BIOS信息。Send the serial port information to the terminal so that the terminal can display the BIOS information corresponding to the serial port information.

作为一种优选的实施例,将串口信息发送至终端的过程具体为:As a preferred embodiment, the process of sending serial port information to the terminal is as follows:

将串口信息按预设格式发送至终端。Send the serial port information to the terminal in the preset format.

具体的,在通过第一预设配置端口和第二预设配置端口将步骤1确定的LPC地址配置给SIO UART对应的寄存器,并将之使能之后,串口信息可以正常输出,在宕机时可以通过串口信息快速定位BIOS发生错误的位置,为了便于工程师随时查看,可以将串口信息通过IPMI等方式按预设格式传输到终端,在终端上显示对应的串口信息,从而提高本申请的可靠性和便利性。Specifically, after configuring the LPC address determined in step 1 to the register corresponding to the SIO UART through the first preset configuration port and the second preset configuration port, and enabling it, the serial port information can be output normally. The location of the BIOS error can be quickly located through the serial port information. In order to facilitate the engineer to view it at any time, the serial port information can be transmitted to the terminal in a preset format through IPMI and other methods, and the corresponding serial port information can be displayed on the terminal, thereby improving the reliability of this application. and convenience.

请参照图2,图2为本申请所提供的一种SIO UART配置系统的结构示意图,包括:Please refer to FIG. 2, which is a schematic structural diagram of a SIO UART configuration system provided by the application, including:

确定模块1,用于确定输出端口的信息,信息包括与输出端口对应的LPC地址;Determining module 1, for determining the information of the output port, the information includes the LPC address corresponding to the output port;

配置模块2,用于在BIOS POST过程的SEC阶段,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便SIO UART通过输出端口输出串口信息;The configuration module 2 is used to configure the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively in the SEC stage of the BIOS POST process, so that the SIO UART outputs serial port information through the output port ;

其中,第一预设配置端口对应的LPC地址为0x2E或0x2F,第二预设配置端口对应的LPC地址为0x4E或0x4F。The LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F.

作为一种优选的实施例,将LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:As a preferred embodiment, the process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows:

将LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn;

或将LPC地址依次通过第二预设配置端口和第一预设配置端口配置给Or configure the LPC address through the second preset configuration port and the first preset configuration port to

SIO UART中对应的寄存器。The corresponding register in the SIO UART.

作为一种优选的实施例,与输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。As a preferred embodiment, the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8.

作为一种优选的实施例,该SIO UART配置系统还包括:As a preferred embodiment, the SIO UART configuration system further includes:

传输模块,用于将串口信息发送至终端,以便终端显示与串口信息对应的BIOS信息。The transmission module is used to send the serial port information to the terminal, so that the terminal can display the BIOS information corresponding to the serial port information.

作为一种优选的实施例,传输模块具体用于:As a preferred embodiment, the transmission module is specifically used for:

将串口信息按预设格式发送至终端。Send the serial port information to the terminal in the preset format.

本申请所提供的一种SIO UART配置系统,具有和上述SIO UART配置方法相同的有益效果。The SIO UART configuration system provided by the present application has the same beneficial effects as the above-mentioned SIO UART configuration method.

对于本申请所提供的一种SIO UART配置系统的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of an SIO UART configuration system provided by the present application, please refer to the above-mentioned embodiments, which will not be repeated in the present application.

相应的,本申请还提供了一种SIO UART配置装置,包括:Correspondingly, the present application also provides a SIO UART configuration device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上文任意一项SIO UART配置方法的步骤。The processor is configured to implement the steps of any one of the above SIO UART configuration methods when executing the computer program.

本申请所提供的一种SIO UART配置装置,具有和上述SIO UART配置方法相同的有益效果。The SIO UART configuration device provided by the present application has the same beneficial effects as the above-mentioned SIO UART configuration method.

对于本申请所提供的一种SIO UART配置装置的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of an SIO UART configuration device provided in the present application, please refer to the above-mentioned embodiments, which will not be repeated in the present application.

相应的,本申请还提供了一种可读存储介质,可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上文任意一项SIO UART配置方法的步骤。Correspondingly, the present application also provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of any of the above SIO UART configuration methods are implemented.

本申请所提供的一种可读存储介质,具有和上述SIO UART配置方法相同的有益效果。A readable storage medium provided by the present application has the same beneficial effects as the above-mentioned SIO UART configuration method.

对于本申请所提供的一种可读存储介质的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of a readable storage medium provided by the present application, please refer to the above-mentioned embodiments, which will not be repeated in the present application.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1.一种SIO UART配置方法,其特征在于,包括:1. a SIO UART configuration method, is characterized in that, comprises: 确定输出端口的信息,所述信息包括与所述输出端口对应的LPC地址;determining the information of the output port, the information including the LPC address corresponding to the output port; 在BIOS POST过程的SEC阶段,将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIO UART通过所述输出端口输出串口信息;In the SEC stage of the BIOS POST process, the LPC address is configured to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that the SIO UART outputs serial port information through the output port ; 其中,所述第一预设配置端口对应的LPC地址为0x2E或0x2F,所述第二预设配置端口对应的LPC地址为0x4E或0x4F;Wherein, the LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F; 所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:The process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows: 将所述LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn; 或将所述LPC地址依次通过所述第二预设配置端口和所述第一预设配置端口配置给所述SIO UART中对应的寄存器。Or the LPC address is sequentially configured to the corresponding register in the SIO UART through the second preset configuration port and the first preset configuration port. 2.根据权利要求1所述的SIO UART配置方法,其特征在于,所述与所述输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。2 . The SIO UART configuration method according to claim 1 , wherein the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8. 3 . 3.根据权利要求1所述的SIO UART配置方法,其特征在于,所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIOUART通过所述输出端口输出串口信息之后,该SIO UART配置方法还包括:3. The SIO UART configuration method according to claim 1, wherein the LPC address is configured to a corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively, so that After the SIOUART outputs serial port information through the output port, the SIO UART configuration method further includes: 将所述串口信息发送至终端,以便所述终端显示与所述串口信息对应的BIOS信息。The serial port information is sent to the terminal, so that the terminal displays BIOS information corresponding to the serial port information. 4.根据权利要求3所述的SIO UART配置方法,其特征在于,所述将所述串口信息发送至终端的过程具体为:4. SIO UART configuration method according to claim 3, is characterized in that, the described process that described serial port information is sent to terminal is specifically: 将所述串口信息按预设格式发送至终端。Send the serial port information to the terminal in a preset format. 5.一种SIO UART配置系统,其特征在于,包括:5. a SIO UART configuration system, is characterized in that, comprises: 确定模块,用于确定输出端口的信息,所述信息包括与所述输出端口对应的LPC地址;a determining module, configured to determine the information of the output port, the information including the LPC address corresponding to the output port; 配置模块,用于在BIOS POST过程的SEC阶段,将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器,以便所述SIO UART通过所述输出端口输出串口信息;A configuration module, configured to configure the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively in the SEC stage of the BIOS POST process, so that the SIO UART passes the The output port outputs serial information; 其中,所述第一预设配置端口对应的LPC地址为0x2E或0x2F,所述第二预设配置端口对应的LPC地址为0x4E或0x4F;Wherein, the LPC address corresponding to the first preset configuration port is 0x2E or 0x2F, and the LPC address corresponding to the second preset configuration port is 0x4E or 0x4F; 所述将所述LPC地址分别通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器的过程具体为:The process of configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port respectively is as follows: 将所述LPC地址依次通过第一预设配置端口和第二预设配置端口配置给SIO UART中对应的寄存器;Configuring the LPC address to the corresponding register in the SIO UART through the first preset configuration port and the second preset configuration port in turn; 或将所述LPC地址依次通过所述第二预设配置端口和所述第一预设配置端口配置给所述SIO UART中对应的寄存器。Or the LPC address is sequentially configured to the corresponding register in the SIO UART through the second preset configuration port and the first preset configuration port. 6.根据权利要求5所述的SIO UART配置系统,其特征在于,所述与所述输出端口对应的LPC地址为0x3F8、0x3E8、0x2F8或0x2E8中的任意一个。6 . The SIO UART configuration system according to claim 5 , wherein the LPC address corresponding to the output port is any one of 0x3F8, 0x3E8, 0x2F8 or 0x2E8. 7 . 7.一种SIO UART配置装置,其特征在于,包括:7. A SIO UART configuration device, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1-4任意一项所述SIO UART配置方法的步骤。The processor is configured to implement the steps of the SIO UART configuration method according to any one of claims 1-4 when executing the computer program. 8.一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-4任意一项所述SIO UART配置方法的步骤。8. A readable storage medium, characterized in that, a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the SIO UART configuration method according to any one of claims 1-4 is realized A step of.
CN201811504676.9A 2018-12-10 2018-12-10 SIO UART configuration method, system, device and readable storage medium Active CN109597787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811504676.9A CN109597787B (en) 2018-12-10 2018-12-10 SIO UART configuration method, system, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811504676.9A CN109597787B (en) 2018-12-10 2018-12-10 SIO UART configuration method, system, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN109597787A CN109597787A (en) 2019-04-09
CN109597787B true CN109597787B (en) 2022-06-07

Family

ID=65962320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811504676.9A Active CN109597787B (en) 2018-12-10 2018-12-10 SIO UART configuration method, system, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN109597787B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989244A (en) * 2009-08-05 2011-03-23 华为技术有限公司 Signal conversion device and method as well as communication equipment
CN102521105A (en) * 2011-11-21 2012-06-27 华为技术有限公司 Output method of power on self test information, virtual machine manager and processor
CN103049282A (en) * 2012-11-22 2013-04-17 浪潮电子信息产业股份有限公司 Method for collecting system serial port information through business-manager-consumer (BMC) based on Intel Boxboro-EX platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990549B2 (en) * 2001-11-09 2006-01-24 Texas Instruments Incorporated Low pin count (LPC) I/O bridge
US6792478B2 (en) * 2002-03-29 2004-09-14 Intel Corporation System and method to configure input/output (IO) devices to use selected pairs of port addresses
TWI599876B (en) * 2014-10-09 2017-09-21 緯創資通股份有限公司 Methods for debugging in a post (power-on self-test) and apparatuses using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989244A (en) * 2009-08-05 2011-03-23 华为技术有限公司 Signal conversion device and method as well as communication equipment
CN102521105A (en) * 2011-11-21 2012-06-27 华为技术有限公司 Output method of power on self test information, virtual machine manager and processor
CN103049282A (en) * 2012-11-22 2013-04-17 浪潮电子信息产业股份有限公司 Method for collecting system serial port information through business-manager-consumer (BMC) based on Intel Boxboro-EX platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王兴珍等.基于LPC总线的调试端口设计.《信息技术与信息化》.2015,(第01期), *

Also Published As

Publication number Publication date
CN109597787A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
WO2021212948A1 (en) Storage system boot method and apparatus, and computer-readable storage medium
US10261880B1 (en) Error generation using a computer add-in card
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
WO2021056393A1 (en) Test method, electronic device and computer-readable storage medium
JP6483142B2 (en) Universal serial bus emulation of peripheral devices
CN102662808B (en) Method and device for realizing hardware fault detection on PCIE (peripheral component interconnect express)
US8583966B2 (en) Methods and structure for debugging DDR memory of a storage controller
WO2013075501A1 (en) Method and device for hot-plugging a node
CN108646172B (en) Chip testing device
CN109586987B (en) Method and device for testing equipment in cloud storage system
CN107293330B (en) Method and system for performing simulation verification on Random Access Memory (RAM)
TW202509771A (en) Server test system, method, electronic device and computer readable storage medium
CN114968864B (en) Verification environment construction method, chip verification method and system
CN116467124A (en) A RMT option configuration method, device, equipment and storage medium
CN109597787B (en) SIO UART configuration method, system, device and readable storage medium
US10067894B1 (en) Cable-based configuration
CN111193818A (en) Method, system, equipment and medium for obtaining IP address
US7168029B2 (en) Method for testing a universal serial bus host controller
CN115391168A (en) Sandbox testing method, sandbox testing device, sandbox testing equipment and storage medium
CN111856257A (en) A method, system, device and medium for detecting and protecting CPLD firmware
CN117176606A (en) Initialization anomaly detection method, system, server and media of smart network card
CN111124771B (en) Method, equipment and medium for positioning fault
CN116203395A (en) Integrated circuit chip function full-parameter detection system and method
CN115576765B (en) Test method, test device, electronic equipment and storage medium
CN102141967A (en) Bus time sequence parameter configuration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant