alexdelifer / i915-nolvds

i915 support for x230/x220 thinkpads with fhd mod
8 stars 5 forks source link

Error! Bad return status for module build on kernel: 5.0.0-32-generic (x86_64) #1

Open computerex opened 4 years ago

computerex commented 4 years ago
            .-/+oossssoo+/-.               mohd@mohd-ThinkPad-X230 
        `:+ssssssssssssssssss+:`           ----------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 19.04 x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: 23201D6 ThinkPad X230 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.0.0-32-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 16 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2294 (dpkg), 9 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.3 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 3.32.0 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: GNOME Shell 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-3520M (4) @ 3.600GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel 3rd Gen Core processor Graphics Controller 
      -+sssssssssssssssssyyyssss+-         Memory: 2652MiB / 15737MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.                                       
mohd@mohd-ThinkPad-X230:~/projects/i915-nolvds$ sudo ./dkms-install.sh 
About to run dkms install steps...

Creating symlink /var/lib/dkms/i915-nolvds/1/source ->
                 /usr/src/i915-nolvds-1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
'make' -j4 KVER=5.0.0-32-generic KSRC=/lib/modules/5.0.0-32-generic/build......(bad exit status: 2)
ERROR (dkms apport): binary package for i915-nolvds: 1 not found
Error! Bad return status for module build on kernel: 5.0.0-32-generic (x86_64)
Consult /var/lib/dkms/i915-nolvds/1/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
'make' -j4 KVER=5.0.0-32-generic KSRC=/lib/modules/5.0.0-32-generic/build......(bad exit status: 2)
ERROR (dkms apport): binary package for i915-nolvds: 1 not found
Error! Bad return status for module build on kernel: 5.0.0-32-generic (x86_64)
Consult /var/lib/dkms/i915-nolvds/1/build/make.log for more information.
Finished running dkms install steps.
mohd@mohd-ThinkPad-X230:~/projects/i915-nolvds$ cat /var/lib/dkms/i915-nolvds/1/build/make.log
DKMS make.log for i915-nolvds-1 for kernel 5.0.0-32-generic (x86_64)
Tue 05 Nov 2019 04:52:01 AM PKT
Downloading Linux kernel source for v5.0.0
Cloning into '/var/lib/dkms/i915-nolvds/1/build/linux-5.0.0'...
warning: Could not find remote branch v5.0.0 to clone.
fatal: Remote branch v5.0.0 not found in upstream origin
make: *** [Makefile:40: download] Error 128

Looks like the script can't find the remote branch corresponding to the kernel?

dorianfm commented 4 years ago

and easy kludge to make this build is to change the Make file so that CKERNELVERSION = $(shell echo $(KVER) | cut -d- -f1 line to CKERNELVERSION = 5.0

The problem being that the first line tries to pull version 5.0.0 but a tag only exists on github for 5.0

dorianfm commented 4 years ago

BTW I've create a fork with 5.0 and 5.3 kernel support in it, in case you upgrade to ubuntu 19.10 ... dorianfm/i915-nolvds.

Happy to issue a PR, but it's a bit messy and there are a number of changes which might break things (model number conflicts) if merged into this and I don't really have time to try and resolve and test all of those.