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

./setup.sh failed to make driver due to compilation error #31

Open
michael-kricheldorf opened this issue Aug 21, 2024 · 0 comments
Open

Comments

@michael-kricheldorf
Copy link

I'm trying to use setup.sh on my Pi 2W running Bullseye 64-bit. The screen is connected standalone on a breadboard and I do not have the beepy device itself. I was wondering if you could help me figure out what I'm missing?

Here's the make code below.

make -C '/lib/modules/6.6.31+rpt-rpi-v8/build' M='/root/Sharp-Memory-LCD-Kernel-Driver' modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
  CC [M]  /root/Sharp-Memory-LCD-Kernel-Driver/src/main.o
  CC [M]  /root/Sharp-Memory-LCD-Kernel-Driver/src/drm_iface.o
/root/Sharp-Memory-LCD-Kernel-Driver/src/drm_iface.c:400:23: error: ‘drm_gem_simple_display_pipe_prepare_fb’ undeclared here (not in a function)
  400 |         .prepare_fb = drm_gem_simple_display_pipe_prepare_fb,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/Sharp-Memory-LCD-Kernel-Driver/src/drm_iface.c: In function ‘drm_probe’:
/root/Sharp-Memory-LCD-Kernel-Driver/src/drm_iface.c:564:9: error: implicit declaration of function ‘drm_fbdev_generic_setup’ [-Werror=implicit-function-declaration]
  564 |         drm_fbdev_generic_setup(drm, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/scripts/Makefile.build:248: /root/Sharp-Memory-LCD-Kernel-Driver/src/drm_iface.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/Makefile:1938: /root/Sharp-Memory-LCD-Kernel-Driver] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.31+rpt-common-rpi/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.31+rpt-rpi-v8'
make: *** [Makefile:17: sharp.ko] Error 2
Error: Failed to compile display driver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant