The invention provides a PXE network card initialization method and device compatible with 64-bit addressing and a medium, and relates to the technical field of network card initialization, and the method comprises the steps: discovering a network card device; reading a
PCI configuration space of the network card equipment, obtaining information of an extended ROM
base address register, and mapping a network card
Option ROM to a memory shadow region; when the access of the
memory mapping input and output mode fails, the initialization code performs read-write operation on the
hardware register through a self-defined capability structure in a
PCI configuration space of the network card equipment; based on the successfully accessed
hardware register, network card hardware initialization is completed, and a PXE
protocol stack structural body is established in a memory; registering
system firmware as PXE starting equipment, and entering a protocol interaction stage with a PXE
server; according to the invention, smooth development of a subsequent network boot flow is guaranteed, and the deployment success rate and the
system stability in a large-scale batch installation scene are improved.