Using JetPack 6 I have been unable to correctly build the Logitech F710 Game Controller module. In previous versions of JetPack, we set CONFIG_LOGITECH_FF=Y (which is a flag to tell HID-LOGITECH module to build in support for the F710).
In the 5.15 kernel, HID-LOGITECH is built in. However, it does not have support for the F710, so it needs to be rebuilt. Setting CONFIG_HID_LOGITECH=m should allow us to build it as an external module. This assumes that the built-in can be blacklisted when the new module is installed.
Everything compiles following the instructions in the Jetson Developer Guide. hid-logitech.ko appears in the drivers/hid directory. However when modinfo is run on the module when it’s on the Jetson:
$ modinfo hid-logitech.ko
I get:
filename: /lib/modules/5.15.136-tegra/kernel/drivers/hid/hid-logitech.ko
license: GPL
file: drivers/hid/hid-logitech
The other information about the module, like vermagic, does not display. I know that the vermagic string is in the module:
$ strings hid-logitech.ko | grep vermagic
vermagic=5.15.136-tegra SMP preempt mod_unload modversions aarch64
__UNIQUE_ID_vermagic300
__UNIQUE_ID_vermagic300
Not surprisingly, after blacklisting the built in module and trying to insert the new one, the system denies the insertion saying that it taints the kernel. I’ve tried all the tricks I know, built it on a host, built it on the Jetson, udev rules, rebuild everything but I have to claim defeat. The first question is why does this not appear to be in the correct format as the rest of the modules? The other modules that are built in the same directory have the correct format. The build for this particular module does have some flags, but it should build. The Makefile entry is simple:
hid-logitech-y := hid-lg.o
hid-logitech-$(CONFIG_LOGITECH_FF) += hid-lgff.o
Nothing shows in the log files or console to indicate any build or link issues. This feels like some linker or format issue. BTW, I’m jetsonhacks so I knew how to do this at some point. Can someone actually build this and have it in the correct format? It’s:
CONFIG_HID_LOGITECH=m
CONFIG_LOGITECH_FF=Y
and the result should be a viable hid-logitech.ko when examined by modinfo. I know there’s been other forum entries about this, but no one has seemed to actually solve it.