
On Wed, 27 Oct 2021 08:05:11 -0700 Roman Bacik roman.bacik@broadcom.com wrote:
chimp_ld_secure #this command loads FW, which is necessary for PCIe to enumerate it pci enum #this command is necessary to call bnxt_bind
Wait, so what is this firmware for? Is it firmware for the netXtreme controller or for PCIe controller itself?
If it is for the ethernet controller, you should be able to determine whether there is netXtreme card present on the PCI bus without loading the firmware, by looking at PCI vendor / device ID.
In that case the firmware should be loaded when the ethernet controller is requested for, i.e. the ethact env variable points to that controller and a network command is executed (dhcp, tftpboot, ...).
(The ethact variable is used to set which ethernet controller is used for network commands when there are multiple etherent controllers.)