Compare commits

..

No commits in common. "master" and "upstream" have entirely different histories.

11 changed files with 0 additions and 9923 deletions

View File

@ -1,104 +0,0 @@
#!/bin/bash
# the directory of the script
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
echo "Working directory $DIR"
# the temp directory used, within $DIR
WORK_DIR=`mktemp -d -p "$DIR"`
echo "Creating temp working directory $WORK_DIR"
# deletes the temp directory
function cleanup {
rm -rf "$WORK_DIR"
echo "Deleted temp working directory $WORK_DIR"
}
# register the cleanup function to be called on the EXIT signal
trap cleanup EXIT
# Download Files specified in files.diz
while IFS=! read type app version outputfile url md5
do
echo "Downloading $app Version: $version"
#use -O for output file. define $outputfile yourself
wget --no-check-certificate --tries=1 -O $DIR/../$outputfile --timeout=5 "$url"
# use $(..) instead of backticks.
calculated_md5=$(md5sum "$DIR/../$outputfile" | cut -f 1 -d " ")
# compare md5
case "$calculated_md5" in
"$md5" )
echo "$DIR/../$outputfile md5 ok"
;;
*)
echo "$DIR/../$outputfile md5 NOT ok"
exit 1
;;
esac
done < "$DIR/files.diz"
# Extract to specified dir and set some variables
while IFS=! read type app version outputfile url md5
do
mkdir -p $WORK_DIR/${type}
pushd $WORK_DIR/${type}
unzip $DIR/../$outputfile
tar xfvz $DIR/../$outputfile
popd
mkdir -p $WORK_DIR/${app}-${version}/${type}
dos2unix $WORK_DIR/${type}/*/*.txt
mv $WORK_DIR/${type}/*/*.txt $WORK_DIR/${app}-${version}
pushd $WORK_DIR/${app}-${version}/${type}
case "${type}" in
"binary" )
mkdir linux
mv -fv $WORK_DIR/${type}/*_binaries/*inux/* linux
mv -fv $WORK_DIR/${type}/*/*_binaries/*inux/* linux
chmod +x linux/*
mkdir solaris
mv -fv $WORK_DIR/${type}/*_binaries/*olaris/* solaris
mv -fv $WORK_DIR/${type}/*/*_binaries/*olaris/* solaris
chmod +x solaris/*
mkdir dos
mv -fv $WORK_DIR/${type}/*_binaries/dos/* dos
mv -fv $WORK_DIR/${type}/*/*_binaries/dos/* dos
chmod +x dos/*
mkdir efi
mv -fv $WORK_DIR/${type}/*_binaries/efi/* efi
mv -fv $WORK_DIR/${type}/*/*_binaries/efi/* efi
chmod +x efi/*
mkdir windows
mv -fv $WORK_DIR/${type}/*_binaries/windows/* windows
mv -fv $WORK_DIR/${type}/*/*_binaries/windows/* windows
chmod +x windows/*
;;
"source" )
mv -v $WORK_DIR/${type}/lsiutil/* .
;;
*)
echo "Wrong arch"
exit 1
;;
esac
echo "${app}_${version}.orig.tar.gz" > $WORK_DIR/filename.txt
echo "${app}-${version}" > $WORK_DIR/dirname.txt
echo "${version}" > $WORK_DIR/version.txt
popd
done < "$DIR/files.diz"
FILENAME=`cat $WORK_DIR/filename.txt`
DIRNAME=`cat $WORK_DIR/dirname.txt`
echo "Creating $DIR/../$FILENAME "
pushd $WORK_DIR
tar -czf $DIR/../$FILENAME $DIRNAME
popd
VER=`cat $WORK_DIR/version.txt`
echo "Importing $DIR/../$FILENAME as $VER into git"
#exit 1
cleanup
gbp import-orig --pristine-tar -u $VER $DIR/../$FILENAME
exit 0

227
debian/README vendored
View File

@ -1,227 +0,0 @@
******************************************************************************
LsiUtil_ReadMe.txt
******************************************************************************
This file presents general information about the LsiUtil utility for Windows,
Linux and Solaris.
This file is divided into the following sections:
Introduction
Features
LSI Logic Devices Supported
Description
Menu Operation
Command Line Operation
1.0 Introduction
................
LsiUtil is a firmware download and diagnostic utility that can be used with
Windows, Linux, Solaris and DOS environments.
1.1 Features
............
LsiUtil supports:
o All SCSI, SAS and Fiobre Channel Host Adapters from LSI NSPG.
o Identifies and updates the firmware or BIOS images.
o Allows Flash to be completely erased.
o Allows configuration of all HBA and firmware parameters.
o Provides system level debug tools.
o Supports command line execution.
1.2 LSI Logic FC Devices Supported
...................................
o All LSI MPT Fusion (tm) SCSI chips and HBAs
o All LSI Fibre Channel chips and HBAs
o All LSI SAS chips and HBAs
2.0 Description
...............
LsiUtil supports updating the LSI Logic Fusion-MPT (TM) based Firmware
and/or BIOS, for chips and HBAs that use FLASH.
The utility is supported with binaries in several OS environments:
Windows: lsiutil.exe
Linux: lsiutil
Solaris: lsiutil
DOS: lsiutil.exe
The utility requires the LSI host adapter driver to be installed and
loaded.
To run LsiUtil:
Copy lsiutil to C:\ or /usr/sbin/ Windows or Linux respectively.
Open and command prompt.
Command prompt C:\>.
Type lsiutil and press Enter.
2.1 Operation
.............
The main window provides a selction of chip/HBA ports. Dual channel cards will
have two entries (chips) displayed on this screen. Since both channels of a
dual channel board share a flash part, only one of the paths needs to be
chosen. However, no harm will be done if separate updates are done through
both. This screen appears as:
C:\>lsiutil
LSI Logic MPT Configuration Utility, Version 1.52, September 7, 2007
6 MPT Ports found
Port Name Chip Vendor/Type/Rev MPT Rev Firmware Rev IOC
1. Scsi Port 0 LSI Logic 53C1030 B2 102 01032700 0
2. Scsi Port 1 LSI Logic 53C1030 B2 102 01032700 1
3. Scsi Port 5 LSI Logic FC949E A1 105 01031400 0
4. Scsi Port 6 LSI Logic FC949E A1 105 01031400 1
5. Scsi Port 7 LSI Logic FC919X A0 103 01021700 0
6. Scsi Port 8 LSI Logic SAS1068 B0 105 01160000 0
Select a device: [1-6 or 0 to quit] 0
Once a chip has been chosen, another menu list will be displayed as follows:
1. Identify firmware, BIOS, and/or FCode
2. Download firmware (update the FLASH)
4. Download/erase BIOS and/or FCode (update the FLASH)
8. Scan for devices
10. Change IOC settings (interrupt coalescing, EEDP)
13. Change FC Port settings
16. Display logged-in devices
20. Diagnostics
21. RAID actions
22. Reset bus
23. Reset target
30. Beacon on
31. Beacon off
42. Display operating system names for devices
43. Diagnostic Buffer actions
60. Show non-default settings
61. Restore default settings
69. Show board manufacturing information
98. Reset FC link
99. Reset port
e Enable expert mode in menus
p Enable paged mode in menus
w Enable logging
Main menu, select an option: [1-99 or e for expert or 0 to quit]
- The Identify firmware, BIOS, and/or FCode option displays the version
number of the current Fusion-MPT Firmware or the Fusion-MPT BIOS residing on
the adapter. If multiple BIOS images are present (Fusion-MPT BIOS w/EFI BSD
or Fusion-MPT BIOS w/FCode), this option will all versions.
- The Download firmware option prompts for a file name to download.
Example: "Enter firmware filename: it_1030.fw"
The firmware file to download may be in the same directory as the lsiutil
executable, or a full pathname can be provided.
Example: Enter firmware filename:
C:\Fusion-MPT_IT_FW10327_BIOS_50703pt_FLASH_10304\it_1030.fw
- The Download BIOS and/or FCode option also prompts for a file name to download.
Example:
"Enter x86 BIOS filename: mptbios.rom"
"Enter FCode filename: lsi1030f.rom"
"Enter EFI BIOS filename:lsimpt.rom"
If no file is entered and there is currently a version on the card, the current
BIOS version will be displayed.
Example: MPTBIOS-x.xx.xx (xxxx.xx.xx)
Do you want to preserve the current x86 BIOS? [Yes or No, default is Yes]
3.0 Command Line Operation
..........................
The following command line options are supported by this utility and can be
used to create an automated process to perform the utility's operations. When no
command line options are specified, the interactive (menu) is displayed.
-e Turn on Expert Mode (more menu options).
-w, -ww, -www Log internal operations to lsiutil.log, for debug.
-y Answer yes to yes/no questions whose default is yes.
-n Answer no to yes/no questions whose default is no.
-j type[,type] Include just ports of type 'type' (FC, SCSI, SAS).
-x Concatenate SAS firmware and NVDATA files.
Display Options
usage: lsiutil [ -p portNumber ] [ -u ][ -s ] [ -d ] [ -i ] [ -b ]
-p portNumber Specify the port number to operate on.
If not specified, all ports are used.
-u Use untagged, rather than tagged, SCSI commands.
-s Scan for and display all targets.
-d Dump all config pages.
-i Display port settings.
-b Show board manufacturing information.
-m freq[,time] Monitor port performance, updating the display
every 'freq' seconds, for 'time' seconds.
Examples:
1. to display the port settings and targets for port 1:
lsiutil -p 1 -i -s
2. to display the targets found on all known ports:
lsiutil -s
Operational Options
usage: lsiutil -p portNumber [ -l linkSpeed ] [ -t topology ]
[ -c timeout,depth ] [ -r ]
-p portNumber Specify the port number to operate on.
Required parameter for operational options.
-l linkSpeed Set link speed. Valid options for linkSpeed are:
'a' Auto link speed negotiation
'1' Force 1Gb link speed
'2' Force 2Gb link speed
'4' Force 4Gb link speed
-t topology Set topology. Valid options for topology are:
'a' Auto topology negotiation
'1' Force NL_Port topology
'2' Force N_Port topology
-c timeout,depth Set interrupt coalescing values.
Timeout is a value in microseconds between
1 and 1000. Depth is a value between 1 and 128.
Setting either or both values to zero will
disable interrupt coalescing for that port.
-r Perform a chip reset on the given port.
-z Perform an FC link reset on the given port.
NOTE: In order for linkSpeed, topology, or interrupt coalescing
settings to take effect, a chip reset is necessary.
Examples:
1. to force linkspeed to 1Gb on port 2:
lsiutil -p 2 -l 1
2. to set interrupt coalescing to a timeout of 200ms with
a depth of 9 and to force N_Port topology on port 1:
lsiutil -p 1 -c 200,9 -t 2

18
debian/changelog vendored
View File

@ -1,18 +0,0 @@
lsiutil (1.72.0-1) UNRELEASED; urgency=medium
* UNRELEASED
* UNRELEASED
-- Mario Fetka <mario.fetka@gmail.com> Sat, 22 Apr 2017 13:20:55 +0200
lsiutil (1.60-2) unstable; urgency=medium
* Invert uudecode file and args to get it working with newer version.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Wed, 10 Feb 2016 10:37:59 +0100
lsiutil (1.60-1) unstable; urgency=low
* Initial release.
-- Adam Cécile (Le_Vert) <gandalf@le-vert.net> Sun, 01 Feb 2009 00:41:44 +0100

1
debian/compat vendored
View File

@ -1 +0,0 @@
7

14
debian/control vendored
View File

@ -1,14 +0,0 @@
Source: lsiutil
Section: admin
Priority: optional
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
Build-Depends: debhelper (>= 5), sharutils
Standards-Version: 3.8.0
Homepage: http://www.lsi.com
Package: lsiutil
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: LSI Logic Fusion MPT Command Line Interface management tool
This packages contains the "lsiutil" command line tool to manage LSI Fusion
MPT RAID HBAs.

22
debian/copyright vendored
View File

@ -1,22 +0,0 @@
This package was debianized by Adam Cécile (Le_Vert) <gandalf@le-vert.net> on
Sun, 01 Feb 2009 00:41:44 +0100.
It was downloaded from ftp://ftp.lsil.com/HostAdapterDrivers/linux/lsiutil
and http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/
hbas/fibre_channel/hardware_drivers/LSIUtil Kit_1.60.zip (changes.txt)
Upstream Author:
LSI Corporation
Copyright:
Copyright (C) LSI Corporation
License:
Unspecified. Probably under a proprietary license but sources are
available.
The Debian packaging is (C) 2009, Adam Cécile (Le_Vert) <gandalf@le-vert.net>
and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

1
debian/dirs vendored
View File

@ -1 +0,0 @@
usr/sbin

2
debian/docs vendored
View File

@ -1,2 +0,0 @@
debian/user_guide.pdf
debian/README

40
debian/rules vendored
View File

@ -1,40 +0,0 @@
#!/usr/bin/make -f
DESTDIR = $(CURDIR)/debian/lsiutil
debian/user_guide.pdf:
uudecode -o $@ $@.uu
build: debian/user_guide.pdf
clean:
dh_testdir
dh_testroot
dh_clean
rm -f debian/user_guide.pdf
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(CC) source/lsiutil.c -o $(DESTDIR)/usr/sbin/lsiutil
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs changes.txt
dh_installdocs
dh_link
dh_strip
dh_compress -Xusr/share/doc/lsiutil/user_guide.pdf
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

9491
debian/user_guide.pdf.uu vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
binary!lsiutil!1.72.0!lsiutil-1.70.zip!https://kb.nc.tc/_media/lsiutil_1.70_release_binaries.zip!cd9db95a9f45578ba25485d1ba8ce2c3
binary!lsiutil!1.72.0!lsiutil-1.71.zip!https://kb.nc.tc/_media/lsiutil-1.71.zip!82e23b4caeab4048c6f117fa4c8bd0ee
source!lsiutil!1.72.0!lsiutil-1.72.tar.gz!https://github.com/exactassembly/meta-xa-stm/raw/master/recipes-support/lsiutil/files/lsiutil-1.72.tar.gz!f463a5843bed0d82557bc9614a95cd27