Skip to content

Commit

Permalink
linux-4.14.39: Use aacraid Linux kernel driver
Browse files Browse the repository at this point in the history
In contrast to Linux 4.9, with Linux 4.14.x and the out-of-tree aacraid
driver the system crashes, when unplugging a JBOD.

This doesn’t happen with the in-tree-driver, so switch to that one. This
is also possible, since our tools where adapted to work around a missing
symbolic link under `/sys`.
  • Loading branch information
pmenzel committed May 4, 2018
1 parent 504bba8 commit 8b1978c
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions linux-4.14.39-213.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=55022

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 @@ -893,7 +864,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 8b1978c

Please sign in to comment.