Syniurge / i2c-amd-mp2

DKMS-ready driver for AMD PCI-E MP2 I2C controllers
22 stars 4 forks source link

Problem with installing #16

Closed modicin closed 4 years ago

modicin commented 4 years ago

Hiya, thank you for your project! I'm on a Lenovo ideapad 330S-15ARR and have the following output from installing:

[modicin@modicin-81fb i2c-amd-mp2-master]$ sudo ./dkms-install.sh
[sudo] password for modicin: 
About to run dkms install steps...
cp: cannot stat '../i2c-amd-mp2': No such file or directory
./dkms-install.sh: line 16: dkms: command not found
./dkms-install.sh: line 17: dkms: command not found
./dkms-install.sh: line 18: dkms: command not found
Finished running dkms install steps.

After doing that I thought: "hmm okay i'll install dkms" and then got the following output:

[modicin@modicin-81fb i2c-amd-mp2-master]$ sudo ./dkms-install.sh
[sudo] password for modicin: 
About to run dkms install steps...
cp: cannot stat '../i2c-amd-mp2': No such file or directory
./dkms-install.sh: line 16: dkms: command not found
./dkms-install.sh: line 17: dkms: command not found
./dkms-install.sh: line 18: dkms: command not found
Finished running dkms install steps.

Thank you in advance for your help :)

Syniurge commented 4 years ago

Hi and once again apologies for missing the issue. If you still haven't figured out, you need to install dkms first:

sudo apt install dkms

and also rename the i2c-amd-mp2-master directory to i2c-amd-mp2.

modicin commented 4 years ago

Hiya thank you, I've now encountered another problem, can you please help me with this? :)

modicin@localhost:~/Downloads/i2c-amd-mp2> sudo ./dkms-install.sh
[sudo] Passwort für root: 
About to run dkms install steps...

Creating symlink /var/lib/dkms/i2c-amd-mp2/1.0.0/source ->
                 /usr/src/i2c-amd-mp2-1.0.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.5.11-1-default -C /lib/modules/5.5.11-1-default/build M=/var/lib/dkms/i2c-amd-mp2/1.0.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.5.11-1-default (x86_64)
Consult /var/lib/dkms/i2c-amd-mp2/1.0.0/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.5.11-1-default -C /lib/modules/5.5.11-1-default/build M=/var/lib/dkms/i2c-amd-mp2/1.0.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.5.11-1-default (x86_64)
Consult /var/lib/dkms/i2c-amd-mp2/1.0.0/build/make.log for more information.
Finished running dkms install steps.
Syniurge commented 4 years ago

So if you're using a 5.2 kernel or later you don't need this DKMS module, the driver was already added to the official 5.2 kernel and should be loaded automatically if your laptop has a MP2 I2C controller.

Could you paste the output of: lsmod | grep mp2 and sudo lspci ?

My guess is that your laptop doesn't have the MP2 chip this driver is made for.

After some googling you'll probably find the fix for your touchpad somewhere else, e.g : https://gist.github.com/debojyoti/228729498628e898497557db57619a28#gistcomment-2952230