Skip to content

Commit

Permalink
linux-4.14: Do not use external AACRAID driver
Browse files Browse the repository at this point in the history
According to the developer asynchronous mode is supported in Linux 4.14.

As the external driver fails to build, do not do that, and use the
shipped version.

```
$ uname -a
Linux mrtorgue.molgen.mpg.de 4.14.8.mx64.197 #1 SMP Thu Dec 21 17:35:49 CET 2017 x86_64 GNU/Linux
$ dmesg | grep -i aac
[    0.000000] ACPI: MSCT 0x000000007BAAC000 000090 (v01 DELL   PE_SC3 00000001 DELL 00000001)
[  171.387352] Adaptec aacraid driver 1.2.1[50834]-custom
[  171.387427] aacraid 0000:84:00.0: can't disable ASPM; OS doesn't have ASPM control
[  171.387960] aacraid: Comm Interface type3 enabled
[  171.391800] AAC0: kernel 3.52-0[0] Sep  7 2017
[  171.391802] AAC0: monitor 0.0-0[0]
[  171.391803] AAC0: bios 0.13-209[32000]
[  171.391804] AAC0: serial 10F447
[  171.391805] AAC0: Non-DASD support enabled.
[  171.391806] AAC0: 64bit support enabled.
[  171.391807] aacraid 0000:84:00.0: 64 Bit DAC enabled
[  171.393542] scsi host11: aacraid
```
  • Loading branch information
pmenzel committed Jan 8, 2018
1 parent aa0a6a5 commit 5fc0117
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions linux-4.14.8-197.bee
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,6 @@ same_revision_files=$(ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64.
&& echo "A kernel with revision ${PKGREVISION} has already been build: $same_revision_files" \
&& exit

# aacraid
# https://storage.microsemi.com/en-us/downloads/linux_source/linux_source_code/productid=aha-1000-8e&dn=microsemi+adaptec+hba+1000-8e.php
# http://download.adaptec.com/raid/aac/linux/aacraid-linux-src-1.2.1-55022.tgz
# http://twiki.molgen.mpg.de/foswiki/Medv/SoftwareRaid
# CONFIG_SCSI_AACRAID=m
#
build_aacraid_driver_update_and_do_depmod() {
local DRIVERBUILD=54013

pushd .

echo "aacraid driver"

mkdir -pv ${B}/aacraid_update
cd ${B}/aacraid_update
tar -xf /src/mariux/beeroot/downloads/aacraid_source_1.2.1-${DRIVERBUILD}.tgz
cd aacraid-1.2.1-${DRIVERBUILD}
chmod -x *
make -C ${B} M=${B}/aacraid_update/aacraid-1.2.1-${DRIVERBUILD} modules

mkdir -pv ${D}/lib/modules/${FULLKERNELVERSION}/updates/drivers/scsi/aacraid
cp -v aacraid.ko ${D}/lib/modules/${FULLKERNELVERSION}/updates/drivers/scsi/aacraid

cd ${D}/lib/modules/${FULLKERNELVERSION}
depmod -a -b ${D} ${FULLKERNELVERSION}

popd
}

plaininstall_for_modules() {
local dir=$1
local tar=$2
Expand Down Expand Up @@ -884,7 +855,6 @@ mee_install() {
make install INSTALL_PATH=${D}/boot
# make firmware_install INSTALL_MOD_PATH=${D}

build_aacraid_driver_update_and_do_depmod
build_spl_zfs_extra_modules_and_do_depmod

rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build}
Expand Down

0 comments on commit 5fc0117

Please sign in to comment.