fixing sesutil for mpr and SAS2X36 expanders

From: mike tancsa <mike_at_sentex.net>
Date: Wed, 13 Mar 2024 18:01:40 UTC
keywords: mpr RELENG_14 sas expander Supermicro CSE-826E16-R1200LPB 
BPN-SAS2-826EL1 12-port 2U SAS2 6Gbps single-expander backplane backplane


More of a post for the archives, but I noticed with my new "old" SAS 
backplane and MPR controller, I was not able to get sesutil show to work 
properly.  I was able to fix it by updating the firmware of the 
backplane which was a bit of an obscure process. I was only able to get 
the flash working by booting from an ubuntu USB stick.

But the steps in
https://www.truenas.com/community/threads/clixtl-results-in-error-device-doesnt-contain-required-data.105195/
and

https://forums.servethehome.com/index.php?threads/supermicro-sas2-expander-chassi-firmware-update.25694/

are what you need

grab the tools

https://www.supermicro.com/wdl/utility/ExpanderXtools_Lite/Linux/64bits%20for%20SAS2%20Expander/SMC%20ExpanderXtoolsLite%20v1.5_Linux64.zip
https://www.supermicro.com/wdl/utility/ExpanderXtools_Lite/Linux/CLIXTL7.10.C_Linux.zip
https://forums.servethehome.com/index.php?attachments/eco_bpn_fw55-14-18-0-zip.25089/


CLIXTL -l to list the device

     PRODUCT ID          SAS ADDRESS             DEVICE NAME
01) SAS2X28             5003048001549A7F        /dev/sg2

then
xflash -i "5003048001549A7F" down fw "sas2xfw_55.14.18.0.fw" 0 xflash -i 
"5003048001549A7F" down fw "sas2xfw_55.14.18.0.fw" 2 xflash -i 
"5003048001549A7F" down mfg "sc846mfg_primary_fw55_14_18_0_mfg_2_38.bin"



Note the 0 and 2 slots and the mfg vs fw on the last download (download 
to the backplane)


It will look like this along the lines

xflash -i "5003048001549A7F" down fw "sas2xfw_55.14.18.0.fw" 0

********************************************************************************
     Xflash

     LSI SAS Expander Flash Utility

     Version: 7.0.0.0

     Copyright (c) 2010 LSI Corporation.  All rights reserved.
********************************************************************************

Initializing Interface.
Expander: SAS2x28


    Expander Validation: Passed
               Checksum: Passed
Target Firmware Region: 00
        Current Version: 55.07.23.00
    Replacement Version: 55.14.18.00
       Image Validation: Passed

Pre-Validation of image is successful.

Are you sure to download file to expander?(y/n):y

Downloading File.Download Complete.

Post-validating.......Post-Validation of image is successful.

Download Successful.

xflash -i "5003048001549A7F" down fw "sas2xfw_55.14.18.0.fw" 2

********************************************************************************
     Xflash

     LSI SAS Expander Flash Utility

     Version: 7.0.0.0

     Copyright (c) 2010 LSI Corporation.  All rights reserved.
********************************************************************************

Initializing Interface.
Expander: SAS2x28


    Expander Validation: Passed
               Checksum: Passed
Target Firmware Region: 02
        Current Version: 255.255.255.255
    Replacement Version: 55.14.18.00
       Image Validation: Passed

Pre-Validation of image is successful.

Are you sure to download file to expander?(y/n):y

Downloading File.Download Complete.

Post-validating.......Post-Validation of image is successful.

Download Successful.

xflash -i "5003048001549A7F" down mfg 
"sc846mfg_primary_fw55_14_18_0_mfg_2_38.bin"

********************************************************************************
     Xflash

     LSI SAS Expander Flash Utility

     Version: 7.0.0.0

     Copyright (c) 2010 LSI Corporation.  All rights reserved.
********************************************************************************

Initializing Interface.
Expander: SAS2x28


       Image Validation: Passed
               Checksum: Passed
        Current Version: 02.1d
    Replacement Version: 02.26

Pre-Validation of image is successful.

Are you sure to download file to expander?(y/n):y

Downloading File.Download Complete.

Post-validating.......Post-Validation of image is successful.

Download Successful.


In the end, this will now work

  # sesutil show
ses0: <LSI SAS2X36 0e12>; ID: 500304800000007f
Desc            Dev     Model Ident                Size/Status
Slot 01         da0     ATA WDC WDS500G2B0A- 180450420903         500G
Slot 02         -       - -                    Not Installed
Slot 03         -       - -                    Not Installed
Slot 04         da1     ATA Samsung SSD 870 S625NJ0R132552Y      1T
Slot 05         da2     ATA Samsung SSD 870 S75BNL0X201380F      1T
Slot 06         da3     ATA Samsung SSD 870 S625NJ0R132596L      1T
Slot 07         da4     ATA Samsung SSD 870 S625NJ0R133094E      1T
Slot 08         da5     ATA Samsung SSD 870 S75BNL0X201256A      1T
Slot 09         da6     ATA Samsung SSD 870 S625NJ0R133097T      1T
Slot 10         -       - -                    Not Installed
Slot 11         da7     ATA WD Blue SA510 2. 240406800001         1T
Slot 12         -       - -                    Not Installed
Slot 13         -       - -                    Not Installed
Slot 14         -       - -                    Not Installed
Slot 15         -       - -                    Not Installed
Slot 16         -       - -                    Not Installed
Slot 17         ses0    - -                    OK
Slot 18         -       - -                    OK
Slot 19         -       - -                    OK
Slot 20         -       - -                    OK
Slot 21         -       - -                    OK
Slot 22         -       - -                    OK
Slot 23         -       - -                    OK
Slot 24         -       - -                    OK

Temperatures: Temperature: 26 C
Voltages: 5V: 5.09 V, 12V: 11.71 V

  mprutil show all
Adapter:
mpr0 Adapter:
        Board Name: SAS9300-8i
    Board Assembly:
         Chip Name: LSISAS3008
     Chip Revision: ALL
     BIOS Revision: 18.00.00.00
Firmware Revision: 16.00.12.00
   Integrated RAID: no
          SATA NCQ: ENABLED
  PCIe Width/Speed: x8 (8.0 GB/sec)
         IOC Speed: Full
       Temperature: 59 C

PhyNum  CtlrHandle  DevHandle  Disabled  Speed   Min    Max Device
0       0001        0009       N         6.0     3.0    12     SAS 
Initiator
1       0001        0009       N         6.0     3.0    12     SAS 
Initiator
2       0001        0009       N         6.0     3.0    12     SAS 
Initiator
3       0001        0009       N         6.0     3.0    12     SAS 
Initiator
4                              N                 3.0    12     SAS 
Initiator
5                              N                 3.0    12     SAS 
Initiator
6                              N                 3.0    12     SAS 
Initiator
7                              N                 3.0    12     SAS 
Initiator

Devices:
B____T    SAS Address      Handle  Parent    Device        Speed Enc  
Slot  Wdt
           500304800000007f 0009    0001      SMP Target    6.0 0002 00    4
00   21   500304800000006c 000a    0009      SATA Target   6.0 0002 00    1
00   24   500304800000006f 000b    0009      SATA Target   6.0 0002 03    1
00   25   5003048000000070 000c    0009      SATA Target   6.0 0002 04    1
00   26   5003048000000071 000d    0009      SATA Target   6.0 0002 05    1
00   27   5003048000000072 000e    0009      SATA Target   6.0 0002 06    1
00   28   5003048000000073 000f    0009      SATA Target   6.0 0002 07    1
00   29   5003048000000074 0010    0009      SATA Target   6.0 0002 08    1
00   31   5003048000000076 0011    0009      SATA Target   6.0 0002 10    1
00   37   500304800000007d 0012    0009      SEP Target    6.0 0002 16    1

Enclosures:
Slots      Logical ID     SEPHandle  EncHandle    Type
   08    56c92bf00035be05    0000       0001     Direct Attached SES-2
   25    500304800000007f    0012       0002     External SES-2

Expanders:
NumPhys   SAS Address     DevHandle   Parent  EncHandle  SAS Level
   30    500304800000007f    0009       0001     0002       1

      Phy  RemotePhy  DevHandle  Speed  Min   Max    Device
      00                                1.5   6.0   No Device
      01                                1.5   6.0   No Device
      02                                1.5   6.0   No Device
      03                                1.5   6.0   No Device
      04      02        0001      6.0   1.5   6.0   SAS Initiator
      05      03        0001      6.0   1.5   6.0   SAS Initiator
      06      01        0001      6.0   1.5   6.0   SAS Initiator
      07      00        0001      6.0   1.5   6.0   SAS Initiator
      08                                1.5   6.0   No Device
      09                                1.5   6.0   No Device
      10                                1.5   6.0   No Device
      11                                1.5   6.0   No Device
      12      00        000a      6.0   1.5   6.0   SATA Target
      13                                1.5   6.0   No Device
      14                                1.5   6.0   No Device
      15      00        000b      6.0   1.5   6.0   SATA Target
      16      00        000c      6.0   1.5   6.0   SATA Target
      17      00        000d      6.0   1.5   6.0   SATA Target
      18      00        000e      6.0   1.5   6.0   SATA Target
      19      00        000f      6.0   1.5   6.0   SATA Target
      20      00        0010      6.0   1.5   6.0   SATA Target
      21                                1.5   6.0   No Device
      22      00        0011      6.0   1.5   6.0   SATA Target
      23                                1.5   6.0   No Device
      24                                1.5   6.0   No Device
      25                                1.5   6.0   No Device
      26                                1.5   6.0   No Device
      27                                1.5   6.0   No Device
      28      00        0012      6.0   6.0   6.0   SEP Target
      29                                6.0   6.0   No Device