Page 1 of 1

Wireguard buildroot in luckfox pico ultra w

Posted: 2025-03-29 13:04
by luckfox_prototyper
Hello,

I'm trying to get the wireguard to work on my luckfox pico ultra W board. I have a docker cross-compilation setup and I've built my own images now. I've managed to load the wireguard kernel module on my board as well. However now that I run a

Code: Select all

wg-quick up 
I always sooner or later run into the issue of:

Code: Select all

modprobe: can't change directory to '/lib/modules': No such file or directory
My understanding of the issue is that in this folder should be linux-header files with the folder 5.10.160 (the kernel I'm running) however I can't find where those get generated in your SDK in your docker container (or my host machine for that matter).

I've tried with numerous options in both kernelconfig and buildrootconfig now but I always run into the issue of not having /lib/modules on my board sooner or later.

Re: Wireguard buildroot in luckfox pico ultra w

Posted: 2025-03-31 3:07
by Crocodile
Hello, on the default image of Luckfox-pico, the .ko files are stored in the /oem/usr/ko directory and loaded using a script.
If you need to use modprobe to load the .ko files from /lib/module, you can move the folder <SDK>/sysdrv/source/objs_kernel/drv_ko/lib/modules/5.10.160/ to the /lib/module directory on the board.
If you encounter the prompt "modprobe: can't change directory to '/lib/modules': No such file or directory," it indicates that the corresponding driver loading was not detected during runtime. You can try using insmod to load the driver in advance.