Netronome提供了两种刷写flash的方法,Update via Ethtool和Update via BSP Userspace Tools。由于nfp驱动无法正常的与卡通讯,导致没法拉起端口。所以ethtool的升级法无法使用。故而只能转向Update via BSP Userspace Tools
1 2 3 4 5 6 7 8 9 10 11 12 13
Obtain Out of Tree NFP Driver To update the flash usingthe BSP userspace tools, use the following steps. Refer to Appendix C: Installing the Out-of-Tree NFP Driver oninstallingtheoutoftreeNFPdriverandtoloadthedriverwithCPPaccess.
Flash the Card The following commands may be executed foreach card installed inthesystemusingthe PCI address ofthe particular card. In this section, the card’s PCI address is assumed to be 0000:04:00.0. First reload the NFP drivers with CPP access enabled:
# rmmod nfp # modprobe nfp nfp_pf_netdev=0 nfp_dev_cpp=1 Then use the included Netronome flashing tools to reflash the card:
NFP DEVICE ID:1 SMAAMDA0081-000116110061 r15 BSP version is 020028.020028.02007f and should be 23.07-3 CPLD version is 0x01000002 and should be 0x01030000 Updates are required. Reboot required for updates to take effect. Updates are required. AC power cycle required for updates to take effect. [root@localhost bin]# ./nfp-fw-update -n 1 -u
NFP DEVICE ID:1 SMAAMDA0081-000116110061 r15 BSP version is 020028.020028.02007f and should be 23.07-3 CPLD version is 0x01000002 and should be 0x01030000 /opt/netronome/bin/nfp-cpld-prog -n1 -f/tmp/cpld.jed JTAG probe TAP 0 IDCODE:012b9043 (LMXO2) Good Transmission Checksum:0xb2ba image contains 1 CFG sections, totaling 699 pages image contains 0 UFM sections, totaling 0 pages
Mach XO2 Prog Start ... Checking device ID ... Enable config interface TRANSPARENT MODE... Erase flash ... Programming CONFIG flash ... programming CFG flash page 0 to 698 ... 698 Not programming UFM Programming usercode ... Checking usercode ... Verifying CONFIG flash ... reading CFG flash page 0 to 698 ... 698 Not verifying UFM Writing feature row ... Writing feature bits ... Signaling flash program done ... Checking for status done ... Not writing SECURITY BIT Not programming OTP fuses Disabling config interface ... Average CPLD busy period 17 ms Total elapsed time 01:06.250 00:00:01 [============================================================] 100% 00:00:34 [============================================================] 100% Reboot required for updates to take effect. AC power cycle required for updates to take effect. [root@localhost bin]# reboot