Skip to content

Instantly share code, notes, and snippets.

@filviu
Created September 15, 2017 19:41
Show Gist options
  • Save filviu/82fef8f08fc5ceb1ce8d96ebb94ba798 to your computer and use it in GitHub Desktop.
Save filviu/82fef8f08fc5ceb1ce8d96ebb94ba798 to your computer and use it in GitHub Desktop.
Steps to patch mvsas for ASUS P9A-I/C2550/SAS/4L Marvell 88SE9485 - proxmox 4 needed it.
Get the patched file, copy to copy of linux headers path
cd /usr/src/
cp -pr linux-headers-4.4.35-2-pve/ /usr/local/src/
apt-get install pve-headers-4.4.35-1-pve
git pull pve-kernel
tar -xf ubuntu-xenial.tgz
OR
tar -xvf ubuntu-xenial.tgz ubuntu-xenial/drivers/scsi/mvsas
cp ubuntu-xenial/drivers/scsi/mvsas/* ../linux-headers-4.4.35-1-pve/drivers/scsi/mvsas/
cd linux-headers-4.4.35-1-pve/
patch -p1 < ../mvsas.patch
cd /usr/local/src/linux-headers-4.4.35-1-pve
make M=drivers/scsi/mvsas
cp drivers/scsi/mvsas/mvsas.ko /lib/modules/4.4.35-1-pve/kernel/drivers/scsi/mvsas/mvsas.ko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment