Hello @NPal.2 ,
The module galcore.ko is provided into the rootfs when the image is built from the distribution package. Which is the case of the starter package.
This module is provided already compiled and it is not compiled again by the linux of the developer package.
If you have set CONFIG_MODVERSIONS=y, you are able to use a module built for another kernel, which is the case here.
I think you encounter this error because you are using a starter package misaligned with the v3.1.0.
You have to use the Starter Package of the v3.1.0 to have the correct rootfs and the correct galcore.ko, to be used with the developer package v3.1.0.
Please follow this page to be sure to flash the Starter package v3.1.0 on your board: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image#Download_the_image
Then copy again your modified kernel on the board.
To verify if you use the right version of galcore.ko related to your kernel version, you can use these commands:
Check the kernel version:
root@stm32mp1:~# uname -a
Linux stm32mp1 5.10.61 #1 SMP PREEMPT Thu Aug 26 12:51:21 UTC 2021 armv7l armv7l armv7l GNU/Linux
Then check for which version of kernel the module is made:
root@stm32mp1:~# modinfo galcore
filename: /lib/modules/5.10.61/extra/galcore.ko
license: Dual MIT/GPL
description: Vivante Graphics Driver
alias: of:N*T*Cvivante,gcC*
alias: of:N*T*Cvivante,gc
alias: of:N*T*Cst,gcnanoC*
alias: of:N*T*Cst,gcnano
depends:
name: galcore
vermagic: 5.10.61 SMP preempt mod_unload modversions ARMv7 p2v8
The kernel versions of the two commands must match.
Regards,
Kevin
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'