confusingboat / flash-it Goto Github PK
View Code? Open in Web Editor NEWEasy one-step flashing for LSI SAS2-based HBA/RAID devices
License: GNU Affero General Public License v3.0
Easy one-step flashing for LSI SAS2-based HBA/RAID devices
License: GNU Affero General Public License v3.0
Ran the script (Debian buster, dell r220), and things kind of went OK - there was a failure at one point, and when it was attempting to reset/rescan, it ended up killing/freezing my SSH, and things were also hard looked up in the IDRAC console. A downside, also, was because of the reset I lost all of the backups in /tmp. However, I hard rebooted, and I think it actually works. The OS can see connected drivers, and the Dell bios/firmware no longer recognizes it as a RAID controller.
The only thing I cannot get working is using an attached drive as a boot device. Is there any way to do this? I have read with other methods that this is generally the flash just firmware vs firmware and bios back (using sas2flash). Figured I would at least see if this is possible with lsirec.
Hello,
I just tried to flash my H310 with the script from the Debian Live and run into some problem because I didn't boot with iomem=relaxed flag (Yes, my bad for not reading the instructions). Anyway, I downloaded your SBR restore script, run it and it said that everything is rolled back.
BUT after reboot with the right flag, I cant see the H310 anymore. Script didn't find the SAS address and even when I starting my server (R720) I can see S110 instead of H310. What should I do to fix it?
sudo opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -a0
User specified controller is not present.
Failed to get CpController object.
Exit Code: 0x01
Thank you for your help.
I guess the output format of lspci verbose changed and the script stops with
Could not retrieve PCI address from lspci
man lspci
suggest to use the -m
flag for machine readable output
To properly work on Ubuntu 18.04.3 live out of the box, one shall add:
deb http://archive.ubuntu.com/ubuntu bionic main universe to /apt/sources.list
and
run on the root folder with cd /
We have tested this script with an IBM ServeRAID M1015 card in a Huawei RH2288v2 server.
Ubuntu 18.04 LXDE Live (NetbootXYZ)
Changed the ADAPTER_PATTERN to "M1015"
Works without issues.
Hi,
We tested the script with the H200E in a Dell R510.
Changed the ADAPTER_PATTERN to "H200"
No issues found.
Instead of relying on a static .cfg
file for the SBR modification, alter the necessary values in the one pulled off the device.
Server: Dell R720XD
Card: Dell H310(Full Size PCI Card, this is not mini monolithic card)
Issue:
Every time I run script, it says
Could not retrieve PCI address from lspci, attempting to load from existing backup file.
I tried manually as well https://i.imgur.com/dT5l1tV.png
Ubuntu 18.04(installed on USB) booted in BIOS mode, tried with UEFI, same issue. I tried running live Ubuntu as well.
Title says it all, test resetting the device before making any changes to the adapter.
Prompted by #23
Pretty sure I followed directions, but stuff happened...
From the very first step of erasing data, it said "erasing failed" and it continued to fail throughout.
I was booted on Ubuntu LTS usb drive. Ran the scripts, when I noticed it failed, I did a restore, said successful.
The H310 mini mono was latest dell firmware if it makes a difference.
Bummer.. The error I get at boot says "needs to be reflashed" and "verification failed".
Title says it all. Support other adapters like the H200 without having to change the script. This issue mostly pertains to the device selection portions of the script, but also depends on #1 .
Would be nice if this weren't dependent on bash and apt specifically.
the readme can be updated
Used flash-it as described.
Process exited on waiting for IOC stage.
Now trying to reflash it back.
I bought a h200 off ebay, turns out it was pre-flashed to IR mode which caused the card to not get recognized by script and gets stuck at the part where it is grabbing the SAS address of the card.
Hi. I am getting the error Line 105 megacli64 not found. Is there a solution to this. Been stuck here for days. I gave tried using ubuntu live, centOS and also ubuntu desktop on a Dell R720.
Thanks in advance
The lsirec tool seems to be incompatible with hardware I/O MMUs and standard iommu settings on most recent Ubuntu Kernels. I had to disable I/O MMU in UEFI before I could successfully update my SAS card. The iommu=soft
GRUB command line should work, too. You may want to mention the trick in your documentation.
PS: Thanks for your tool. ๐
First of all, thanks for taking your time and effort to make this script!
I have a Dell r320 with a PERC H310 Mini Monolithic and I have run the script from a Ubuntu 20.04 LTS live USB and I get the following error:
`LSI Logic MPT Configuration Utility, Version 1.72, Sep 09, 2014
1 MPT Port found
Port Name Chip Vendor/Type/Rev MPT Rev Firmware Rev IOC
Main menu, select an option: [1-99 or e/p/w or 0 to quit] 2
Firmware image's version is MPTFW-20.00.07.00-IT
LSI Logic
Not Packaged Yet
MPTFW-20.00.07.00-BL
LSI Logic
Not Packaged Yet
Do you want to continue? [Yes or No, default is No] yes
Downloading image...
Download succeeded
Verifying download...
Verification succeeded
Main menu, select an option: [1-99 or e/p/w or 0 to quit] 0
Waiting for IOC to become ready...IOC is OPERATIONAL
Resetting device...
Device in MPT mode
Kernel driver unbound from device
Resetting adapter...
IOC is RESET
IOC is RESET
IOC failed to become ready
Trying unlock in MPT mode...
Device in MPT mode
Removing PCI device...
Rescanning PCI bus...
PCI bus rescan complete.
Waiting for MPT........................................................................................................................................................................................timed out
Operation incomplete, exiting early. Please check the state of the device.`
Any idea of what has happend?
Please let me know if you need additional information or the complete console output.
This may already work or be close, but I have not tested it. Adapter index selection for part of the script is hard-coded to the first one, so currently it will only operate on the lowest-indexed device.
This issue is mostly relevant for other cards, which is another issue in itself (#2).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.