[go: up one dir, main page]

CN107632782B - A BMC code protection method and device based on ARM whole cabinet server node - Google Patents

A BMC code protection method and device based on ARM whole cabinet server node Download PDF

Info

Publication number
CN107632782B
CN107632782B CN201710810655.9A CN201710810655A CN107632782B CN 107632782 B CN107632782 B CN 107632782B CN 201710810655 A CN201710810655 A CN 201710810655A CN 107632782 B CN107632782 B CN 107632782B
Authority
CN
China
Prior art keywords
bmc
node
flash
protection
server node
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
CN201710810655.9A
Other languages
Chinese (zh)
Other versions
CN107632782A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710810655.9A priority Critical patent/CN107632782B/en
Publication of CN107632782A publication Critical patent/CN107632782A/en
Application granted granted Critical
Publication of CN107632782B publication Critical patent/CN107632782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)
  • Power Sources (AREA)

Abstract

本发明提供了一种基于ARM整机柜服务器节点的BMC代码保护方法及装置,属于服务器安全领域。所述装置包括:插拔触发电路模块,用于获知用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;BMC保护模块,用于接收所述插拔触发电路模块发出的拔出节点信号,并在接收到信号后停止BMC对Flash的读写操作,同时对Flash内部的数据做读写保护处理;显示模块,用于在BMC保护模块完成对Flash内部的数据保护后,通知用户可以进行拔出节点操作。本发明用于基于ARM CPU的整机柜服务器产品中,可在插拔整机柜节点时对BMC Flash中的软件代码信息形成有效的保护,提高产品的可靠性。

Figure 201710810655

The invention provides a BMC code protection method and device based on an ARM complete cabinet server node, belonging to the field of server security. The device includes: a plug-in trigger circuit module, which is used to know the information of the node to be pulled out by the user, and transmits the obtained information to the server node in the form of an electrical signal; a BMC protection module is used for receiving the plug-in trigger The circuit module sends out the signal of pulling out the node, and after receiving the signal, it stops the read and write operations of the BMC to the Flash, and at the same time, it performs read and write protection processing on the data inside the Flash; the display module is used for the BMC protection module. After the data is protected, the user is notified that it is possible to unplug the node. The invention is used in the whole cabinet server product based on the ARM CPU, and can effectively protect the software code information in the BMC Flash when plugging and unplugging the whole cabinet node, thereby improving the reliability of the product.

Figure 201710810655

Description

一种基于ARM整机柜服务器节点的BMC代码保护方法及装置A BMC code protection method and device based on ARM whole cabinet server node

技术领域technical field

本发明涉及服务器安全技术领域,具体来说涉及一种基于ARM整机柜服务器节点的BMC代码保护方法及装置。The invention relates to the technical field of server security, in particular to a BMC code protection method and device based on an ARM whole cabinet server node.

背景技术Background technique

整机柜服务器是一种新型的服务器系统,它可以在一个机柜中集成电源、散热、交换等模块。作为一个整体的平台,整机柜拥有更高的集成度,便于集中维护管理,可以实现整机柜一体化的快速交付,提高了管理效率和交付速度。同传统服务器相比,整机柜服务器每个服务器节点可以独立插拔单独维护,使得运维更加简单。通常整机柜上服务器节点关机是将主板上CPU系统掉电关机,但是为了用户可通过BMC远程对节点进行监控管理,主板上的BMC电路系统还是在工作的。因此,当对节点进行关机维护时,有可能BMC还在工作,如BMC正在往Flash中读写信息等,如果这时对服务器节点进行插拔,BMC突然掉电,就会损坏BMC flash中的软件信息,导致服务器节点系统出错。The whole cabinet server is a new type of server system, which can integrate modules such as power supply, cooling, and switching in one cabinet. As a whole platform, the whole cabinet has a higher degree of integration, which is convenient for centralized maintenance and management, can realize the rapid delivery of the whole cabinet, and improve the management efficiency and delivery speed. Compared with traditional servers, each server node of the entire cabinet server can be independently plugged and maintained for independent maintenance, which makes operation and maintenance simpler. Usually, the shutdown of the server node on the entire cabinet is to power off and shut down the CPU system on the motherboard. However, in order for users to remotely monitor and manage the node through the BMC, the BMC circuit system on the motherboard is still working. Therefore, when the node is shut down for maintenance, it is possible that the BMC is still working, for example, the BMC is reading and writing information to the Flash. Software information, causing an error in the server node system.

现有技术中,BMC对Flash的操作通常是通过文件系统完成,文件系统是操作系统用于明确存储设备或分区上文件的方法和数据结构,即在存储设备上组织文件的方法。文件系统通过基于日志结构等方式可以在一定程度上保证意外掉电时数据不会损坏,但这是一种被动的方法,系统不知道什么时候掉电,不知道什么时候可能会损坏数据,不能从根本上对数据进行保护。In the prior art, BMC's operations on Flash are usually completed through a file system, which is a method and data structure used by an operating system to specify files on a storage device or partition, that is, a method for organizing files on a storage device. The file system can ensure that the data will not be damaged in the event of an unexpected power failure to a certain extent through the log structure and other methods, but this is a passive method. The system does not know when the power is lost or when the data may be damaged. Fundamentally protect data.

发明内容SUMMARY OF THE INVENTION

本发明的主要目的在于提供一种基于ARM整机柜服务器节点的BMC代码保护装置及方法,用于在插拔整机柜节点时对BMC Flash中的软件代码信息进行保护,提高产品的可靠性。The main purpose of the present invention is to provide a BMC code protection device and method based on an ARM whole cabinet server node, which is used to protect the software code information in the BMC Flash when plugging and unplugging the whole cabinet node, so as to improve the reliability of the product .

为实现上述目的,本发明提供的一种基于ARM整机柜服务器节点的BMC代码保护装置,所述装置包括:In order to achieve the above object, the present invention provides a BMC code protection device based on an ARM whole cabinet server node, the device comprising:

插拔触发电路模块,用于获知用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;The plug-in trigger circuit module is used to know the information of the node to be pulled out by the user, and transmit the obtained information to the server node in the form of electrical signals;

BMC保护模块,用于接收所述插拔触发电路模块发出的拔出节点信号,并在接收到信号后停止BMC对Flash的读写操作,同时对Flash内部的数据做读写保护处理,防止用户拔出节点掉电时对Flash内部数据损坏;The BMC protection module is used to receive the pull-out node signal sent by the plug-in trigger circuit module, and after receiving the signal, stop the BMC's read and write operations on the Flash, and at the same time perform read and write protection on the data inside the Flash to prevent users from The internal data of Flash is damaged when the unplugged node is powered off;

显示模块,用于在所述BMC保护模块完成对Flash内部的数据保护后,通知用户可以进行拔出节点操作。The display module is used for notifying the user that the operation of pulling out the node can be performed after the BMC protection module completes the data protection inside the Flash.

作为一种优化,所述插拔触发电路模块包括插拔触发电路,插拔触发电路将服务器节点的电源开关按键复用为该电路的输入按键,当短按该按键时表示系统正常开关机;当长按该按键时表示用户要拔出该节点。As an optimization, the plug-in trigger circuit module includes a plug-in trigger circuit, and the plug-in trigger circuit multiplexes the power switch button of the server node as the input button of the circuit, and when the button is pressed for a short time, the system is normally turned on and off; When the button is long pressed, it means that the user wants to unplug the node.

作为一种优化,所述BMC保护模块通过CPLD和BMC芯片配合实现对BMC Flash中的信息保护,所述CPLD接收插拔触发电路模块发出的拔出节点信号,然后通知BMC停止对Flash的读写操作,同时根据需要设置Flash的状态寄存器,以配置Flash内部数据的保护范围及保护方式,最后BMC停止工作并挂起等待用户的拔出节点操作。As an optimization, the BMC protection module realizes the protection of information in the BMC Flash through the cooperation of the CPLD and the BMC chip. The CPLD receives the pull-out node signal sent by the plug-in trigger circuit module, and then notifies the BMC to stop reading and writing to the Flash. At the same time, set the status register of Flash according to the need to configure the protection range and protection mode of the internal data of Flash. Finally, the BMC stops working and suspends waiting for the user to pull out the node operation.

作为一种优化,所述显示模块包括显示灯,所述BMC保护模块完成对Flash内部数据的保护后,返回通知信号至CPLD,CPLD接收到返回的通知信号后将所述显示灯点亮,以通知用户安全拔出节点。As an optimization, the display module includes a display light. After the BMC protection module completes the protection of the internal data of the Flash, it returns a notification signal to the CPLD, and the CPLD lights the display light after receiving the returned notification signal to Inform the user to safely unplug the node.

此外,本发明还提供一种基于ARM整机柜服务器节点的BMC代码保护方法,所述方法包括以下步骤:In addition, the present invention also provides a BMC code protection method based on an ARM whole cabinet server node, the method comprising the following steps:

S1、获取用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;S1. Acquire the information of the node to be pulled out by the user, and transmit the obtained information to the server node in the form of an electrical signal;

S2、服务器节点主板上的BMC接收所述S1中发出的电信号,并在收到电信号后停止对Flash的读写操作,同时对Flash内部的数据做读写保护处理;S2, the BMC on the main board of the server node receives the electrical signal sent in the S1, and stops reading and writing operations on the Flash after receiving the electrical signal, and at the same time performs read-write protection processing on the data inside the Flash;

S3、在服务器节点的BMC完成对Flash内部的数据保护后,通知用户进行拔出节点操作。S3. After the BMC of the server node completes the protection of the data inside the Flash, the user is notified to perform an operation of pulling out the node.

作为优化,在所述的S1中,将服务器节点的电源开关按键复用为输入按键,当短按输入按键时表示系统正常开关机;当长按输入按键时表示用户要拔出该节点。As an optimization, in the above S1, the power switch button of the server node is reused as the input button. When the input button is pressed for a short time, the system is normally turned on and off; when the input button is long pressed, it indicates that the user wants to unplug the node.

作为优化,在所述的S2中,将CPLD和BMC芯片配合实现对BMC Flash中的信息保护,所述CPLD接收S1中发出的拔出节点信号,然后通知BMC停止对Flash的读写操作,同时根据需要设置Flash的状态寄存器,以配置Flash内部数据的保护范围及保护方式,最后BMC停止工作并挂起等待用户的拔出节点操作。As an optimization, in the S2, the CPLD and the BMC chip cooperate to realize the protection of the information in the BMC Flash. The CPLD receives the pull-out node signal sent in S1, and then notifies the BMC to stop the read and write operations on the Flash, and at the same time Set the status register of the Flash as required to configure the protection range and protection mode of the internal data of the Flash. Finally, the BMC stops working and suspends waiting for the user to pull out the node operation.

作为优化,在所述的S3中,BMC完成对Flash内部数据的保护后,返回通知信号至CPLD,CPLD接收到返回的通知信号后将服务器节点上对应的显示灯点亮,以通知用户安全拔出节点。As an optimization, in the above S3, after the BMC completes the protection of the internal data of the Flash, it returns a notification signal to the CPLD. After receiving the returned notification signal, the CPLD lights up the corresponding indicator on the server node to notify the user to safely pull out out node.

发明内容中提供的效果仅仅是实施例的效果,而不是发明所有的全部效果,上述技术方案中的一个技术方案具有如下优点或有益效果:The effects provided in the summary of the invention are only the effects of the embodiments, rather than all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

本发明提出的一种基于ARM整机柜服务器节点的BMC代码保护装置及方法,通过硬件电路让节点知道什么时候将要断电,在断电前让系统完成正常操作,并在正常操作完成后通知用户可以拔出节点,从而避免了损坏Flash中的数据。该发明的装置及方法应用在基于ARM CPU的整机柜服务器产品中,可在插拔整机柜节点时对BMC Flash中的软件代码信息形成有效的保护,有效防止用户插拔节点造成的BMC Flash中的数据损坏,提高了产品的可靠性。The invention proposes a BMC code protection device and method based on an ARM whole cabinet server node. The hardware circuit lets the node know when the power is going to be cut off, the system completes the normal operation before the power cut off, and notifies the system after the normal operation is completed. The user can unplug the node, thus avoiding corrupting the data in the Flash. The device and method of the invention are applied to the whole cabinet server product based on ARM CPU, can effectively protect the software code information in the BMC Flash when plugging and unplugging the whole cabinet node, and effectively prevent the BMC caused by the user plugging and unplugging the node. Data corruption in Flash improves product reliability.

附图说明Description of drawings

图1是本发明实施例提供的基于ARM整机柜服务器节点的BMC代码保护装置的结构示意图;1 is a schematic structural diagram of a BMC code protection device based on an ARM whole cabinet server node provided by an embodiment of the present invention;

图2是图1中插拔触发电路模块的工作示意图;Fig. 2 is the working schematic diagram of the plug-in trigger circuit module in Fig. 1;

图3是图1中BMC保护模块的工作流程图;Fig. 3 is the working flow chart of BMC protection module in Fig. 1;

图4是本发明实施例提供的基于ARM整机柜服务器节点的BMC代码保护方法的实现流程图。FIG. 4 is a flowchart for realizing the BMC code protection method based on the server node of the ARM whole cabinet provided by the embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

如图1所示为本实施例基于ARM整机柜服务器节点的BMC代码保护装置的结构示意图,所述装置包括插拔触发电路模块1、BMC保护模块2和显示模块3。所述插拔触发电路模块1用于获知用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;所述BMC保护模块2用于接收所述插拔触发电路模块发出的拔出节点信号,并在接收到信号后停止BMC对Flash的读写操作,同时对Flash内部的数据做读写保护处理,防止用户拔出节点掉电时对Flash内部数据损坏;所述显示模块3用于在所述BMC保护模块完成对Flash内部的数据保护后,通知用户可以进行拔出节点操作。用户在插拔节点前需先触发所述的插拔触发电路模块1,该电路模块可以由用户主动触发,也可以是被动触发,被动触发是指电路模块具有锁死功能,拔出节点必须先触发电路,不触发的话会将节点锁死在机柜上,防止节点从机柜上脱落。FIG. 1 is a schematic structural diagram of a BMC code protection device based on an ARM entire cabinet server node in this embodiment. The device includes a plug-in trigger circuit module 1 , a BMC protection module 2 and a display module 3 . The plug-in trigger circuit module 1 is used to know the information of the plug-in node to be performed by the user, and transmit the obtained information to the server node in the form of an electrical signal; the BMC protection module 2 is used to receive the plug-in trigger circuit The module sends out the unplug node signal, and after receiving the signal, the BMC stops the read and write operations of the Flash, and at the same time, it performs read and write protection on the data inside the Flash to prevent the user from pulling out the node when the power is turned off. The display module 3 is used to notify the user that the node can be pulled out after the BMC protection module completes data protection inside the Flash. The user needs to trigger the plugging trigger circuit module 1 before plugging and unplugging the node. The circuit module can be triggered by the user actively or passively. Trigger the circuit. If it is not triggered, the node will be locked on the cabinet to prevent the node from falling off the cabinet.

具体而言,如图2所示,所述插拔触发电路模块1包括插拔触发电路,插拔触发电路将服务器节点的电源开关按键复用为该电路的输入按键,当短按输入按键时表示系统正常开关机;当长按该按键时表示用户要拔出该节点。在实际设计中,所述电路设计可通过单片机来实现,具体实现过程为:按下输入按键后“KEY_Power_On”信号由高电平变为低电平,单片机开始计时检测输入信号,若按下输入按键的时间小于7s,则认为用户是开关机操作,单片机将开关机信号“Power_on”发送至服务器节点;若检测到按下输入按键的时间大于7s,则认为用户是拔出节点操作,单片机将节点拔出信号“Node_present”发送至服务器节点。Specifically, as shown in FIG. 2 , the plug trigger circuit module 1 includes a plug trigger circuit, and the plug trigger circuit multiplexes the power switch button of the server node as the input button of the circuit. When the input button is pressed for a short time Indicates that the system is normally switched on and off; when the button is long-pressed, it indicates that the user wants to unplug the node. In the actual design, the circuit design can be realized by the single-chip microcomputer. The specific realization process is as follows: after pressing the input button, the "KEY_Power_On" signal changes from high level to low level, and the single-chip microcomputer starts timing to detect the input signal. If the time of pressing the key is less than 7s, it is considered that the user is switching the machine on and off, and the microcontroller sends the power-on signal "Power_on" to the server node. The node unplug signal "Node_present" is sent to the server node.

进一步而言,如图3所示,所述BMC保护模块2通过CPLD和BMC芯片相互配合实现对BMC Flash中的信息保护。CPLD接收插拔触发电路模块1中的单片机发出的拔出节点信号“Node_present”后,通知BMC停止对Flash的读写操作,同时进行如下动作:首先根据需要设置Flash的状态寄存器的SRP0、SRP1及SEC、TB、BP3、BP2、BP1等几位,用以配置Flash内部数据的保护范围以及保护方式,然后将Flash的WP和CS信号位拉低来禁止对Flash进行读写操作,防止掉电过程中的干扰信号通过信号线对Flash内数据进行错误的改写,最后BMC停止工作,挂起等待用户拔出节点。Further, as shown in FIG. 3 , the BMC protection module 2 realizes the protection of information in the BMC Flash through the cooperation of the CPLD and the BMC chip. After receiving the pull-out node signal "Node_present" sent by the single-chip microcomputer in the plug-in trigger circuit module 1, the CPLD notifies the BMC to stop reading and writing operations to the Flash, and performs the following actions at the same time: first, set the SRP0, SRP1 and SRP1 of the status register of the Flash as required. SEC, TB, BP3, BP2, BP1 and other bits are used to configure the protection range and protection mode of the internal data of the Flash, and then pull down the WP and CS signal bits of the Flash to prohibit reading and writing operations to the Flash and prevent the power-down process The interfering signal in the Flash will erroneously rewrite the data in the Flash through the signal line, and finally the BMC stops working and hangs up waiting for the user to unplug the node.

所述显示模块3包括显示灯,当所述的BMC保护模块2完成对Flash内部数据的保护后,返回通知信号“BMC_protect_ok”至CPLD,CPLD接收到返回的通知信号后将服务器节点上的显示灯点亮,并以相应的频率闪烁,以通知用户安全拔出节点。Described display module 3 comprises display light, when described BMC protection module 2 completes the protection to Flash internal data, returns notification signal " BMC_protect_ok " to CPLD, CPLD receives the returned notification signal and displays light on server node. Lights up and flashes at the appropriate frequency to inform the user that it is safe to unplug the node.

图4给出了基于ARM整机柜服务器节点的BMC代码保护方法的实现流程图,所述方法包括以下步骤:Fig. 4 provides the realization flow chart of the BMC code protection method based on ARM whole cabinet server node, described method comprises the following steps:

S1、获取用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;S1. Acquire the information of the node to be pulled out by the user, and transmit the obtained information to the server node in the form of an electrical signal;

S2、服务器节点主板上的BMC接收所述S1中发出的电信号,并在收到电信号后停止对Flash的读写操作,同时对Flash内部的数据做读写保护处理;S2, the BMC on the main board of the server node receives the electrical signal sent in the S1, and stops reading and writing operations on the Flash after receiving the electrical signal, and at the same time performs read-write protection processing on the data inside the Flash;

S3、在服务器节点的BMC完成对Flash内部的数据保护后,通知用户进行拔出节点操作。S3. After the BMC of the server node completes the protection of the data inside the Flash, the user is notified to perform an operation of pulling out the node.

具体而言,在所述的S1中,将服务器节点的电源开关按键复用为输入按键,当短按输入按键时表示系统正常开关机;当长按输入按键时表示用户要拔出该节点。具体可通过单片机来实现,具体实现过程为:单片机计时检测输入信号,若按下输入按键的时间较短,如小于7s,则认为用户是开关机操作,单片机将开关机信号发送至服务器节点;若检测到按下输入按键的时间较长,如大于7s,则认为用户是拔出节点操作,单片机将节点拔出信号发送至服务器节点。Specifically, in the above S1, the power switch button of the server node is multiplexed as an input button. When the input button is pressed for a short time, the system is normally turned on and off; when the input button is long pressed, it indicates that the user wants to unplug the node. Specifically, it can be realized by single-chip microcomputer. The specific realization process is: single-chip microcomputer detects the input signal by timing. If the time for pressing the input button is short, such as less than 7s, it is considered that the user is switching the machine on and off, and the single-chip microcomputer sends the power-on and off signal to the server node; If it is detected that the input button is pressed for a long time, such as more than 7s, it is considered that the user is pulling out the node operation, and the single-chip microcomputer sends the node pulling out signal to the server node.

进一步来说,在所述的S2中,将CPLD和BMC芯片相互配合实现对BMC Flash中的信息保护,CPLD接收S1中单片机发出的拔出节点信号后,通知BMC停止对Flash的读写操作,同时进行如下动作:首先根据需要设置Flash的状态寄存器的相应位,用以配置Flash内部数据的保护范围以及保护方式,然后将Flash的WP和CS信号位拉低来禁止对Flash进行读写操作,防止掉电过程中的干扰信号通过信号线对Flash内数据进行错误的改写,最后BMC停止工作,挂起等待用户拔出节点。Further, in the described S2, the CPLD and the BMC chip cooperate with each other to realize the protection of the information in the BMC Flash. After the CPLD receives the pull-out node signal sent by the single-chip microcomputer in S1, it notifies the BMC to stop the read and write operations to the Flash. At the same time, the following actions are performed: first, set the corresponding bits of the status register of the Flash as required to configure the protection range and protection mode of the internal data of the Flash, and then pull down the WP and CS signal bits of the Flash to prohibit reading and writing operations to the Flash. To prevent the interference signal in the power-down process from incorrectly rewriting the data in the Flash through the signal line, and finally the BMC stops working and suspends waiting for the user to unplug the node.

更进一步而言,在所述的S3中,当BMC完成对Flash内部数据的保护后,返回通知信号至CPLD,CPLD接收到返回的通知信号后将服务器节点上对应的显示灯点亮,以通知用户安全拔出节点。Further, in the described S3, after the BMC completes the protection of the internal data of the Flash, it returns a notification signal to the CPLD, and after the CPLD receives the returned notification signal, the corresponding display lamp on the server node is lit to notify the The user safely unplugs the node.

本实施例的基于ARM整机柜服务器节点的BMC代码保护装置及方法,将其应用于基于ARM CPU的整机柜服务器产品中,可有效防止用户在运维时插拔节点造成的BMC Flash中的数据损坏,提高产品的可靠性。The BMC code protection device and method based on an ARM whole cabinet server node in this embodiment, when applied to a whole cabinet server product based on an ARM CPU, can effectively prevent users from plugging and unplugging nodes in the BMC Flash during operation and maintenance. data corruption and improve product reliability.

以上所述仅为本发明的较佳实施例而已,并不用以限定本发明,对于本技术领域的技术人员来说,在不脱离本发明原理的前提下所作的任何修改、改进和等同替换等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, any modifications, improvements and equivalent replacements made without departing from the principles of the present invention, etc. , are included in the protection scope of the present invention.

Claims (6)

1.一种基于ARM整机柜服务器节点的BMC代码保护装置,其特征在于,所述装置包括:1. a BMC code protection device based on ARM whole cabinet server node, is characterized in that, described device comprises: 插拔触发电路模块,用于获知用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;The plug-in trigger circuit module is used to know the information of the node to be pulled out by the user, and transmit the obtained information to the server node in the form of electrical signals; BMC保护模块,用于接收所述插拔触发电路模块所发出的拔出节点信号,并在接收到信号后停止BMC对Flash的读写操作,同时对Flash内部的数据做读写保护处理;The BMC protection module is used for receiving the pull-out node signal sent by the plug-in trigger circuit module, and after receiving the signal, stops the read-write operation of the Flash by the BMC, and at the same time performs read-write protection processing on the data inside the Flash; 所述BMC保护模块通过CPLD和BMC芯片配合实现对BMC Flash中的信息保护,所述CPLD接收插拔触发电路模块发出的拔出节点信号,然后通知BMC停止对Flash的读写操作,同时根据需要设置Flash的状态寄存器,以配置Flash内部数据的保护范围及保护方式,最后BMC停止工作并挂起等待用户的拔出节点操作;The BMC protection module realizes the protection of information in the BMC Flash through the cooperation of the CPLD and the BMC chip. The CPLD receives the pull-out node signal sent by the plug-in trigger circuit module, and then notifies the BMC to stop the read and write operations on the Flash, and at the same time as required. Set the status register of the Flash to configure the protection range and protection mode of the internal data of the Flash, and finally the BMC stops working and suspends waiting for the user to pull out the node operation; 显示模块,用于在所述BMC保护模块完成对BMC Flash内部的数据保护处理后,通知用户进行拔出节点操作。The display module is used for notifying the user to perform the operation of pulling out the node after the BMC protection module completes the data protection processing inside the BMC Flash. 2.根据权利要求1所述的一种基于ARM整机柜服务器节点的BMC代码保护装置,其特征在于,所述插拔触发电路模块包括插拔触发电路,插拔触发电路将服务器节点的电源开关按键复用为该电路的输入按键,当短按该按键时表示正常开关机,当长按该按键时表示用户要拔出该节点。2. a kind of BMC code protection device based on ARM whole cabinet server node according to claim 1, is characterized in that, described plug-in trigger circuit module comprises plug-in trigger circuit, and the plug-in trigger circuit changes the power supply of server node. The switch button is multiplexed as the input button of the circuit. When the button is pressed for a short time, it means that the machine is turned on and off normally, and when the button is pressed for a long time, it means that the user wants to unplug the node. 3.根据权利要求1所述的一种基于ARM整机柜服务器节点的BMC代码保护装置,其特征在于,所述显示模块包括显示灯,所述BMC保护模块完成对Flash内部数据的保护后,返回通知信号至CPLD,CPLD接收到返回的通知信号后将所述显示灯点亮,以通知用户安全拔出节点。3. a kind of BMC code protection device based on ARM whole cabinet server node according to claim 1, is characterized in that, described display module comprises display lamp, after described BMC protection module completes the protection to Flash internal data, The notification signal is returned to the CPLD, and after receiving the returned notification signal, the CPLD lights the display light to notify the user to safely unplug the node. 4.一种基于ARM整机柜服务器节点的BMC代码保护方法,其特征在于,所述方法包括以下步骤:4. a BMC code protection method based on ARM whole cabinet server node, is characterized in that, described method comprises the following steps: S1、获取用户将要进行的拔出节点信息,并将获得的信息以电信号的方式传送至服务器节点;S1. Acquire the information of the node to be pulled out by the user, and transmit the obtained information to the server node in the form of an electrical signal; S2、服务器节点主板上的BMC接收所述S1中发出的电信号,并在收到电信号后停止对Flash的读写操作,同时对Flash内部的数据做读写保护处理;S2, the BMC on the main board of the server node receives the electrical signal sent in the S1, and stops reading and writing operations on the Flash after receiving the electrical signal, and at the same time performs read-write protection processing on the data inside the Flash; 在所述的S2中,将CPLD和BMC芯片配合实现对BMC Flash中的信息保护,所述CPLD接收S1中发出的拔出节点信号,然后通知BMC停止对Flash的读写操作,同时根据需要设置Flash的状态寄存器,以配置Flash内部数据的保护范围及保护方式,最后BMC停止工作并挂起等待用户的拔出节点操作;In the S2, the CPLD and the BMC chip are used together to protect the information in the BMC Flash. The CPLD receives the pull-out node signal sent in the S1, and then notifies the BMC to stop reading and writing operations to the Flash. The status register of the Flash is used to configure the protection range and protection method of the internal data of the Flash. Finally, the BMC stops working and suspends to wait for the user's unplugging node operation; S3、在服务器节点的BMC完成对Flash内部的数据保护后,通知用户进行拔出节点操作。S3. After the BMC of the server node completes the protection of the data inside the Flash, the user is notified to perform an operation of pulling out the node. 5.根据权利要求4所述的一种基于ARM整机柜服务器节点的BMC代码保护方法,其特征在于,在所述的S1中,将服务器节点的电源开关按键复用为输入按键,当短按输入按键时表示系统正常开关机;当长按输入按键时表示用户要拔出该节点。5. a kind of BMC code protection method based on ARM whole cabinet server node according to claim 4, is characterized in that, in described S1, the power switch key of server node is multiplexed as input key, when short When the input button is pressed, it means that the system is turned on and off normally; when the input button is long-pressed, it means that the user wants to unplug the node. 6.根据权利要求4所述的一种基于ARM整机柜服务器节点的BMC代码保护方法,其特征在于,在所述的S3中,BMC完成对Flash内部数据的保护后,返回通知信号至CPLD,CPLD接收到返回的通知信号后将服务器节点上对应的显示灯点亮,以通知用户安全拔出节点。6. a kind of BMC code protection method based on ARM whole cabinet server node according to claim 4, is characterized in that, in described S3, after BMC completes the protection to Flash internal data, returns notification signal to CPLD , after receiving the returned notification signal, the CPLD lights up the corresponding indicator on the server node to notify the user to safely pull out the node.
CN201710810655.9A 2017-09-11 2017-09-11 A BMC code protection method and device based on ARM whole cabinet server node Active CN107632782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710810655.9A CN107632782B (en) 2017-09-11 2017-09-11 A BMC code protection method and device based on ARM whole cabinet server node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710810655.9A CN107632782B (en) 2017-09-11 2017-09-11 A BMC code protection method and device based on ARM whole cabinet server node

Publications (2)

Publication Number Publication Date
CN107632782A CN107632782A (en) 2018-01-26
CN107632782B true CN107632782B (en) 2020-09-18

Family

ID=61100704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710810655.9A Active CN107632782B (en) 2017-09-11 2017-09-11 A BMC code protection method and device based on ARM whole cabinet server node

Country Status (1)

Country Link
CN (1) CN107632782B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304056A (en) * 2018-01-29 2018-07-20 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium of button multiplexing
CN109086634A (en) * 2018-07-25 2018-12-25 浪潮(北京)电子信息产业有限公司 A kind of BMC chip management method, system and BMC chip and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995575A (en) * 2014-05-27 2014-08-20 浪潮(北京)电子信息产业有限公司 Server starting method and server
CN104238480A (en) * 2013-06-21 2014-12-24 鸿富锦精密工业(深圳)有限公司 Cabinet server BMC startup and shutdown control system and method
CN104407541A (en) * 2014-10-17 2015-03-11 中国电子科技集团公司第四十一研究所 Intelligent instrument circuit board intellectual property protection device and method
CN104679116A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Server cabinet system, circuit board combined system and circuit board of circuit combined system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717208B2 (en) * 2002-06-11 2004-04-06 Taiwan Semiconductor Manufacturing Co., Ltd. Disabling flash memory to protect memory contents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238480A (en) * 2013-06-21 2014-12-24 鸿富锦精密工业(深圳)有限公司 Cabinet server BMC startup and shutdown control system and method
CN104679116A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Server cabinet system, circuit board combined system and circuit board of circuit combined system
CN103995575A (en) * 2014-05-27 2014-08-20 浪潮(北京)电子信息产业有限公司 Server starting method and server
CN104407541A (en) * 2014-10-17 2015-03-11 中国电子科技集团公司第四十一研究所 Intelligent instrument circuit board intellectual property protection device and method

Also Published As

Publication number Publication date
CN107632782A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN111767244B (en) Dual-redundancy computer equipment based on domestic Loongson platform
TWI512603B (en) Electronic appatus and data rolling method therefof
CN103853678B (en) Board managing device and use its plate card management system and control card
WO2016202040A1 (en) Pcie-based sub-card hot plugging method and apparatus
CN104899055A (en) BIOS control based ME updating system and updating method thereof
US9026685B2 (en) Memory module communication control
CN111858178B (en) Method, device, equipment and readable medium for judging the type of power supply startup
CN103412836B (en) Hot plug processing method, device and system
CN105095142A (en) System and method for controlling expander card
CN107632782B (en) A BMC code protection method and device based on ARM whole cabinet server node
CN103778024A (en) Server system and message processing method thereof
CN111726563A (en) Video storage device for train video monitoring system
CN109086192B (en) IPMI-based onboard SATA hard disk lighting system and method
CN201159898Y (en) U disk isolator
CN105468123A (en) Rack management controller, power management program update system and method
CN112114901A (en) Standby control circuit, method, device and storage medium
CN105095043B (en) Monitoring management system and method thereof
CN116701285A (en) Remote access control apparatus, remote access control method, remote access control device, and computer readable medium
CN105975382A (en) Hardware configuration change alarming method
CN106301804A (en) A kind of realize the server of WOL, system and method
CN115098342A (en) System log collection method, system, terminal and storage medium
CN116539992A (en) Storage device in-place stable state detection device, method, logic module and medium
CN116701074A (en) Device and method for testing cyclic restarting of server
CN116627729A (en) External cable, external cable presence detection device, power-on self-inspection method and system
CN115934616A (en) Serial port information storage method and device, server, electronic equipment and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200821

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant