Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"make" doesn't work on raspberry pi #54

Open
amelgikha opened this issue Dec 27, 2020 · 3 comments
Open

"make" doesn't work on raspberry pi #54

amelgikha opened this issue Dec 27, 2020 · 3 comments

Comments

@amelgikha
Copy link

when i type make, the feedback error is like bellow:

pi@raspberrypi:~/Downloads/veikk-linux-driver-master $ make
make -C /lib/modules/5.4.79-v7l+/build M=/home/pi/Downloads/veikk-linux-driver-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.79-v7l+'
Building modules, stage 2.
MODPOST 1 modules
ERROR: "__aeabi_ldivmod" [/home/pi/Downloads/veikk-linux-driver-master/veikk.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1645: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.79-v7l+'
make: *** [Makefile:8: all] Error 2

please help me to fix this issued

@mirrorsonthewall
Copy link

mirrorsonthewall commented Dec 28, 2020

The two issues I tested on Ubuntu were to first check if Secureboot was enabled (it needs to be disabled) and to also try manually loading with some different commands.

Here is a issue #56 on how installing on Ubuntu worked when tested

which is based off of issue #3 which deals with disabling Secureboot

and issue #27 which required some extra commands to install with.

The Ubuntu install also had Errors 1 and 2 but I'm not sure if they're the same.

mcyph added a commit to mcyph/veikk-linux-driver that referenced this issue Feb 3, 2021
@mcyph
Copy link

mcyph commented Feb 3, 2021

This looks to be caused by 64 bit division on a 32 bit kernel.

I've submitted a PR to #58 to use div64_s64 from <linux/math64.h>, which should fix this.

@kip-the-elder
Copy link

kip-the-elder commented Apr 16, 2021

I have got this to work on the 64 bit beta OS on a model 3 Pi.

I found that using just the 64bit kernel did not work for me.

Thought this might be useful to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants