Convert H330 to HBA330 remotely

Original link: https://blog.phoenixlzx.com/2023/06/27/remote-flash-h330-to-hba/

Since the passthrough mode of PERC H330 is not applicable to ZFS, it has to be forced to flash as HBA330.

Notice! This method is not applicable to H730/H830 series RAID cards, and H730 cards support direct conversion to HBA.

Backup before proceeding! Backup before proceeding! Backup before proceeding! Say important things three times! ! !

Prepare necessary programs and firmware

  1. DOS version of megacli.exe
  2. DOS version megarec3.exe , sas3flsh.exe and other necessary files
  3. HBA330 firmware

I won’t install it anymore, here is the file package prepared by Sleyk.

Prepare the FreeDOS boot image

First download the USB Lite image of FreeDOS as the basic system environment. The current version 1.3 gives the FD13LITE.img file after decompression.

Expand the img image to 128M:

 1
 ~> truncate -s 96 M FD13LITE .img

Extended mirrored FAT partition

 1
 ~> fatresize -n 1 -s max FD13LITE.img

Mount the img image

 1
2
3
4
5
 ~> udisksctl loop-setup -f FD13LITE.img
Mapped file FD13LITE.img as /dev/ loop0.
~> udisksctl mount -b /dev/ loop0p1
Mounted /dev/ loop0p1 at /run/media /user/ FD13-LITE
~> cp /path/ to /flash/ files /run/ media /user/ FD13-LITE/

Note that DOS cannot recognize part of the file name, if not modified, it will be displayed in a form similar to HBA~1 in DOS.

Uninstall the image after copying the files

 1
2
3
 ~> udisksctl unmount -b /dev/ loop0p1
Unmounted /dev/ loop0p1.
~> udisksctl loop- delete -b /dev/ loop0

After finishing the work, remotely mount the modified version of FD13LITE.img to iDRAC KVM, then restart the server and start it from Virtual Floppy.

  • Note: If the Virtual Floppy option is not recognized as [Hard Disk] Virtual Floppy you may need to restart again, because the image is not recognized correctly and you cannot enter FreeDOS. The specific reason is unknown.

Crossflash!

After entering the FreeDOS environment, you will be prompted whether to install, choose No to return to FreeDOS and you can execute the command.

  1. Flash into SMC3018 ROM
 1
 > megacli -adpfwflash -f smc3108.rom -novecchk -a0

Then, because the mirror is mounted remotely, a bunch of write errors will be reported, and these errors need to be ignored all the time. Wait until the operation finishes reporting success.

  1. Restart, and then wait patiently until Baseport not responding. No adapter available appears before entering the FreeDOS environment.

  2. Clear Serial Boot ROM (SBR)

 1
 > megarec3 -writesbr 0 sbrempty.bin

Errors in the process can be ignored, and the final report is successful.

  1. clear flash
 1
 > megarec3 -cleanflash 0
  1. reboot.

  2. Enter the FreeDOS environment again, and flash the HBA330 firmware.

 1
 > sas3flsh -o -f hba330.fw -b mptx64.rom _

If it is H330Mini, you need to refresh hba330mini.fw , otherwise the hard disk will not be recognized.

  1. In the last step, reprogram the SAS address. It seems that it can be omitted, the default is 16 0.
 1
 > sas3flsh -o -sasadd 0000000000000000

Only numbers and letters can be used, and must be 16 digits. You can make it yourself or use the original address ( megacli -adpallinfo -a0 ). If you make it yourself, you need to ensure that it does not conflict with other cards in the same system.

Finish

Great! (≧∇≦)/

refer to:

  1. https://sandelinos.com/nerd-stuff/Creating_customized_FreeDOS_images/
  2. https://forums.servethehome.com/index.php?threads/flash-crossflash-dell-h330-raid-card-to-hba330-12gbps-hba-it-firmware.25498/

By the way, I also tossed an old HPE P420i, the steps are very simple, just need the official ssacli .

 1
2
3
4
 # Clear all logical disks
~> ssacli controller slot =0 logicaldrive all delete forced
# Set to HBA Mode
~> ssacli controller slot =0 modify hbamode =on forced

If you do not know the slot number, you can check it with ssacli ctrl all show .

but! yes!

Although it is changed to HBA, you cannot boot from the hard disk of this HBA.

(╯° °)╯︵ ┻━┻

This article is transferred from: https://blog.phoenixlzx.com/2023/06/27/remote-flash-h330-to-hba/
This site is only for collection, and the copyright belongs to the original author.