My failed attempt at attempting to compile the stmpe-ts module from source is as follows:
Cloned xob's git repository and ensured that branch v3.19-novena-etnadrm-r3 was checked out.
Edited arch/arm/configs/novena_defconfig and made the following changes:
CONFIG_TOUCHSCREEN_USB_COMPOSITE=m -> CONFIG_TOUCHSCREEN_USB_COMPOSITE=y
...
# CONFIG_TOUCHSCREEN_STMPE is not set -> CONFIG_TOUCHSCREEN_STMPE=m
executed the following commands:
$ make novena_defconfig && make modules_prepare && make modules M=drivers/input/touchscreen
This generated stmpe-ts.ko file inside drivers/input/touchscreen. However, insmod returned an "invalid module format" error.
modinfo revealed that the version number 'vermagic' field was
3.19.0-00468-g53b6c5d-dirty
, which did not match my native precompiled and installed kernel (i.e., the output of
).
I can change the vermagic field by changing the contents of include/config/kernel.release and include/generated/utsrelease.h files manually before generating modules, but the insmod error remains.
Is there a way around this issue?