Skip to content

Compile error on 4.14.30-v7+ #10

@Itatsi

Description

@Itatsi

Hy,
I've got problems to make the raspicomm driver for kernel 4.14 for use with PI3B+
Because I was unable to compile the module against the Kernel Header i've tried to compile it with current Raspberry Pi Kernel Source and ended with this.

LC_ALL=C make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C ../linux/linux-raspberrypi-kernel_1.20180328-1/ -j 4 M=$(pwd) modules

make: Entering directory '/home/user/git/raspberrypi/linux/linux-raspberrypi-kernel_1.20180328-1'
  CC [M]  /home/user/git/raspberrypi/raspicomm-module/module.o
In file included from /home/user/git/raspberrypi/raspicomm-module/module.c:16:0:
/home/user/git/raspberrypi/raspicomm-module/platform.h:1:100: fatal error: mach/platform.h: Datei oder Verzeichnis nicht gefunden (translate: File or Directory not found)
 #include <mach/platform.h> /* included for BCM2709 & BCM2708 definitions, e.g. BCM2708_PERI_BASE */
                                                                                                    ^
compilation terminated.
scripts/Makefile.build:328: die Regel für Ziel „/home/user/git/raspberrypi/raspicomm-module/module.o“ scheiterte  (translate: recipe for target ... failed)
make[1]: *** [/home/user/git/raspberrypi/raspicomm-module/module.o] Fehler 1
Makefile:1519: recipe for target '_module_/home/user/git/raspberrypi/raspicomm-module' failed
make: *** [_module_/home/user/git/raspberrypi/raspicomm-module] Error 2
make: Leaving directory '/home/user/git/raspberrypi/linux/linux-raspberrypi-kernel_1.20180328-1'

As far as I found out (raspberrypi/linux#1844) the problem have to do something with the constraint to use devicetree.

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