Error while compiling module driver for rpi4
tchereau opened this issue · comments
thomas commented
# make -C . KBUILD_EXTRA_SYMBOLS=drivers/misc/cardreader/Module.symvers M=drivers/mmc/host
make: Entering directory '/root/linux-6f921e98008589258f97243fb6658d09750f0a2f'
CC [M] drivers/mmc/host/mmc_spi.o
CC [M] drivers/mmc/host/of_mmc_spi.o
CC [M] drivers/mmc/host/rtsx_usb_sdmmc.o
MODPOST drivers/mmc/host/Module.symvers
ERROR: modpost: "cpu_hwcap_keys" [drivers/mmc/host/rtsx_usb_sdmmc.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [drivers/mmc/host/rtsx_usb_sdmmc.ko] undefined!
ERROR: modpost: "__const_udelay" [drivers/mmc/host/rtsx_usb_sdmmc.ko] undefined!
ERROR: modpost: "__warn_printk" [drivers/mmc/host/mmc_spi.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:134: drivers/mmc/host/Module.symvers] Error 1
make[1]: *** Deleting file 'drivers/mmc/host/Module.symvers'
make: *** [Makefile:1783: modules] Error 2
make: Leaving directory '/root/linux-6f921e98008589258f97243fb6658d09750f0a2f'
Ignas Urba commented
Hello!
You might be using the 64-bit OS version.
I believe rpi-source works for 32-bit architectures.
Let me know if that helps!
Ignas
thomas commented
yes I use the arm64 version
I will try with the arm32 version ty ^^