Skip to content

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

Description

@michael-kricheldorf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions