The invention discloses a port lighting method and
system, a mainboard, a storage medium and
electronic equipment, and belongs to the field of network equipment communication, and the method comprises the steps that a CPU of the mainboard carries out port lighting according to the number of
serializer / deserializer
SerDes interfaces provided for each
daughter card slot position and the preset lighting sequence of each
daughter card slot position; determining the number and the position of the lighting
signal of each sub-card slot position in the whole section of lighting
signal code
stream; the CPU of the mainboard configures the lighting
signal type of each
daughter card slot position according to the number of the ports of the daughter cards, and outputs the whole section of lighting signal code
stream to a
programmable logic device of the mainboard through a switching
chip; a
programmable logic device of the mainboard intercepts the lighting signals of the sub-card slot positions from the whole section of lighting signal code
stream according to the determined number and position, and distributes the lighting signals to the sub-card slot positions; and the
programmable logic device of the corresponding daughter card in each daughter card slot receives the lighting signal, analyzes the lighting signal and sends the lighting signal to each port
LED lamp for lighting. According to the method and the device, the problem of abnormal port lighting caused by change of the number of ports of the daughter card in a hardware lighting scheme is solved on equipment supporting hot plugging of the daughter card, meanwhile, the occupied CPU resource is low, and the real-time performance is high.