Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insmod: ERROR: could not insert module galcore.ko: Invalid module format #16

Closed
wuqiangch opened this issue Feb 24, 2021 · 10 comments
Closed

Comments

@wuqiangch
Copy link

wuqiangch commented Feb 24, 2021

A311D,Fenix 0.8.2 Ubuntu 18.04.3 LTS Linux 5.5.0-rc2
sudo insmod galcore.ko
insmod: ERROR: could not insert module galcore.ko: Invalid module format

@thezha
Copy link
Contributor

thezha commented Feb 24, 2021

Please share result of dmesg and uname -a.

@wuqiangch
Copy link
Author

@thezha
Linux Khadas 5.5.0-rc2 #0.8.2 SMP PREEMPT Fri Jan 3 09:48:06 CST 2020 aarch64 aarch64 aarch64 GNU/Linux

@thezha
Copy link
Contributor

thezha commented Feb 24, 2021

The provided "galcore.ko" is built using Fenix 0.8.1 based on Kernel 4.9.0, so it might not be compatible with 5.5.0 kernel.

Linux Khadas 4.9.206 #13 SMP PREEMPT Tue Dec 31 00:37:47 CST 2019 aarch64 aarch64 aarch64 GNU/Linux

It would be good to get the exact error messages in dmesg on failed insmod

@wuqiangch
Copy link
Author

@thezha
tmp.txt
Maybe I have to built it myself.

@thezha
Copy link
Contributor

thezha commented Feb 24, 2021

Have you tried --force option with insmod?

@wuqiangch
Copy link
Author

@thezha I have try it,but failed.

@thezha
Copy link
Contributor

thezha commented Feb 24, 2021

@wuqiangch The fastest way is to switch to 4.9.0 system image until we can supply a prebuilt-sdk for 5.5.0. You may also have trouble building it yourself since the galcore used by TIM-VX might not match the opensource version you have. Thanks!

@wuqiangch
Copy link
Author

@thezha Ok.Thanks!

@kalcohol
Copy link

@wuqiangch your system need to switch to VIM3_V0.9-20200530(i guess your board is vim3).
download last fireware and flash your vim3, than do apt full-update.
KHADAS VIM3 fireware download page: https://docs.khadas.com/firmware/Vim3Firmware.html
update your board:

sudo apt update
sudo apt full-upgrade

you can switch to other apt source, such as Ali source(https://developer.aliyun.com/mirror/).
sample is below:

deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse

other reference: https://github.com/OAID/Tengine/blob/tengine-lite/doc/npu_tim-vx_user_manual.md
our qq group: 829565581.

@wuqiangch
Copy link
Author

It's solved.
https://docs.khadas.com/firmware/Vim3Firmware.html
Latest system:
VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530(Latest release)

sunshinemyson added a commit to sunshinemyson/TIM-VX that referenced this issue Jan 20, 2023
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants