An operation method of a software program meeting specifications of Unified Extensible Firmware Interface (UEFI) for configuring a general-purpose input/output (GPIO) port of a server system, the software program being installed in the server system that includes a display device, the GPIO port including a plurality of GPIO pins, the operation method comprising steps of:
- the software program operating in a command-line mode to display, on the display device, a first prompt for guiding a user to input a string of command-line arguments;
- in response to receipt of a string of command-line arguments for reading content stored in a register that corresponds to one of the GPIO pins under the command-line mode, the software program displaying, on the display device, a default value of the register, wherein the default value corresponds to a function of said one of the GPIO pins;
- and
- in response to receipt of a string of command-line arguments for setting a register that corresponds to one of the GPIO pins to a set value under the command-line mode, the software program writing the set value to the register to replace a current value with the set value.