Skip to content

Add Linux 4.9.68 #551

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
linux-4.9.68: Build out-of-tree aacraid driver
Compile the aacraid driver supplied by Adaptec, because the in-tree
aacraid driver lacks support for async mode.

Patch by Thomas Kreitler
donald authored and pmenzel committed Dec 16, 2017
commit edec9e0a141211f9a79b5d209fd70b0c45c948ef
31 changes: 31 additions & 0 deletions linux-4.9.68-193.bee
Original file line number Diff line number Diff line change
@@ -29,6 +29,35 @@ 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 55022 is documented in the comment above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that too and asked Thomas. He wanted that version, because its tested.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then put that version in the comment to not confuse people.

Copy link
Collaborator Author

@donald donald Dec 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed that in #555


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
}

mee_patch() {
echo "PATCH $@"
bee_patch $@
@@ -821,6 +850,8 @@ mee_install() {
make install INSTALL_PATH=${D}/boot
# make firmware_install INSTALL_MOD_PATH=${D}

build_aacraid_driver_update_and_do_depmod

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

ln -sv /usr/src/linux/${PKGALLPKG}/source ${D}/lib/modules/${FULLKERNELVERSION}/source