clincha-org / clincha

Configuration and monitoring of clinch-home infrastructure
https://clinch-home.com
1 stars 1 forks source link

Outdated NIC firmware #108

Closed clincha closed 11 months ago

clincha commented 11 months ago

The firmware on one of the 10G NICs I brought is out of date. I think it's caused one of the servers to crash.

The firmware on bri-s-02:

root@bri-s-02:/var/log# ethtool -i enp9s0f0np0
driver: sfc
version: 6.2.16-6-pve
firmware-version: 4.0.6.6689 rx1 tx1
expansion-rom-version:
bus-info: 0000:09:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

The firmware on bri-s-01:

root@bri-s-01:~# ethtool -i enp9s0f1np1
driver: sfc
version: 6.2.16-6-pve
firmware-version: 6.2.5.1000 rx0 tx0
expansion-rom-version:
bus-info: 0000:09:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

I need to update from 4.0.6.6689 to 6.2.5.1000.

clincha commented 11 months ago

Unfortunately this article seems to be the best way to complete this...

In case that forum gets taken down I will take the steps and put them here.

[206767ergaoraor](https://support.xilinx.com/s/profile/0052E00000NCy58QAD) (Customer)

I've fixed this issue. If anyone is dealing with the same issue these are the steaps to follow for upgrading the firmware on those cards:

1- Download this iso from here: https://support-nic.xilinx.com/wp/drivers?sd=SF-111768-LS-40&pe=2858
Since the original link looks like is dead, I've uploaded the file to an alternative location: https://mega.nz/folder/pdUlDKjI#fSOJKZxg1qhI5Gvnc0k2bA
2.- Boot from ISO (I had to choose the 2nd option -graphics safe-)
3.- Run the following on the console:
sfupdate --full-erase
sfupdate --write
4.- Reboot the server
5.- Verify version of the firmware (without the quotes):
ethtool -i "eth-interface-name"

Note1: The last firmware version on the iso file (at least when I downloaded it) was: 6.3.7.1001
Note2: To list all solaflare adapter run: sfupdate --list
Note3: To list all firmwares on ISO run: sfupdate -M
clincha commented 11 months ago

I need to get dad to do the following:

  1. Download that zip
  2. unzip it to the desktop
  3. Use Rufus to burn it onto a USB
  4. Boot from the USB
  5. Check to see which firmware exists
    sfupdate
  6. Full erase
    sfupdate --full-erase
  7. Write the update
    sfupdate --write
  8. Reboot

Then I need to login to the server and check to make sure that the firmware is up to date on the card using ethtool -i enp9s0f0np0

clincha commented 11 months ago

The above did not work. I kept getting stuck at an initramfs prompt in busybox. However, I then did more searching and found another article where someone had the same cards and wanted to update it. After reading through it all this reply had the fix that I needed. These are the commands I ran:

wget https://www.xilinx.com/content/dam/xilinx/publications/solarflare/oem-driver-downloads/dell/8522/linux-utilities/sf-utils-v6.5.0.1003.x86_64.rpm.zip

apt install -y unzip rpm2cpio

unzip sf-utils-v6.5.0.1003.x86_64.rpm.zip

rpm2cpio sfutils-6.5.0.1003-1.x86_64.rpm | cpio -idmv

cd usr/sbin/

./sfupdate

./sfupdate --write

./sfupdate

The output of sfupdate was this the first time:

Solarstorm firmware update utility [v6.5.0]
Copyright Solarflare Communications 2006-2017, Level 5 Networks 2002-2005

enp9s0f0np0 - MAC: 00-0F-53-23-B4-E0
    Firmware version:   v4.0.6
    Controller type:    Solarflare SFC9100 family
    Controller version: v4.0.6.6689
    Boot ROM version:   v4.0.0.6589

This utility contains more recent Boot ROM firmware [v5.0.5.1002]
   - run "sfupdate --write" to perform an update
This utility contains more recent controller firmware [v6.2.7.1000]
   - run "sfupdate --write" to perform an update

enp9s0f1np1 - MAC: 00-0F-53-23-B4-E1
    Firmware cannot be accessed via this interface,
    please use enp9s0f0np0.

Then after witing it the version was up to date:

Solarstorm firmware update utility [v6.5.0]
Copyright Solarflare Communications 2006-2017, Level 5 Networks 2002-2005

enp9s0f0np0 - MAC: 00-0F-53-23-B4-E0
    Firmware version:   v6.5.1
    Controller type:    Solarflare SFC9100 family
    Controller version: v6.2.7.1000
    Boot ROM version:   v5.0.5.1002

The Boot ROM firmware is up to date
The controller firmware is up to date

enp9s0f1np1 - MAC: 00-0F-53-23-B4-E1
    Firmware cannot be accessed via this interface,
    please use enp9s0f0np0.
clincha commented 11 months ago

Updated other NICs as well