Open mjbrowns opened 3 years ago
Hi,
I also got stuck in that stage. Then I found the kernel modules are locate not in /usr/lib/
but in /lib/
.
Then, I remove dkms previously added
# dkms remove hpsa-dkms/1.0 --all
Edit the make file to fix the path
KDIR := /lib/modules/$(KRELEASE)/build
Then, re run all the steps... and it build the module fine
# dkms install --force hpsa-dkms/1.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j2 KERNELRELEASE=5.4.0-89-generic.....
cleaning build area...
DKMS: build completed.
hpsa.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.0-89-generic/updates/dkms/
depmod.....
DKMS: install completed.
After module load, in dmesg
the disks are shown
[Sat Nov 6 14:28:19 2021] hpsa 0000:02:00.0: NVRAM HBA flag: enabled
[Sat Nov 6 14:28:19 2021] hpsa 0000:02:00.0: scsi 2:0:0:0: added RAID HP P212 controller SSDSmartPathCap- En- Exp=1
[Sat Nov 6 14:28:19 2021] hpsa 0000:02:00.0: scsi 2:0:1:0: added Direct-Access ATA Hitachi HTS72323 PHYS DRV SSDSmartPathCap- En- Exp=1
[Sat Nov 6 14:28:19 2021] hpsa 0000:02:00.0: scsi 2:0:2:0: added Direct-Access ATA Hitachi HTS72503 PHYS DRV SSDSmartPathCap- En- Exp=1
[Sat Nov 6 14:28:19 2021] hpsa 0000:02:00.0: scsi 2:0:3:0: added Direct-Access ATA KINGSTON SV300S3 PHYS DRV SSDSmartPathCap- En- Exp=1
Cheers,
I think I found reason, the kernel version in
./patch.sh
VERSION=${1:-5.8}
is default 5.8, you have to change to your kernel version and add it then install
All looks good running patch.sh and I have installed dkms and the headers:
dkms add works fine, but the install fails:
Contents of make.log:
It seems that on Ubuntu 20.04.02 LTS there is no /usr/lib/modules directory. There is a /usr/lib/modules-load.d but there's nothing in it.
I'm very comfortable with linux but I really haven't done anything with dkms so I have no idea what to try to do here.