I will investigate on this. I’ll report back as soon as possible.
since yesturday i have made progress.
I think there is 2 ways to do it.
1. The slow way patching it into a recipe and then into the image that way
2. the fast way connect by Ethernet make static IP on both ends, SCP the file over and then insmod hello.ko into the kernal that way.
I went with the fast option for now and i'll figure out the recipe one later.
my issue now is it's saying I have the wrong format.
insmod: ERROR: could not insert module hello-1.ko: Invalid module format
How are you compiling your kernel module? Did you use a makefile, if so, can you provide the makefile source code and output of the make command?
insmod: error insertimg 'hello-1.ko': -1 Invalid module format
"obj-m += hello-1.o
make -C $(KERNEL_SRC) M=$(PWD) modules
make -C $(KERNEL_SRC) M=$(PWD) clean
the problem right now is that it is compiling in 64 bit and wont compile in 32.
i'm now making a new kernel module recipe to compile the file
Toolchain is not setup correctly that’s why you get errors, it needs to be compiled in 32 bit not in 64 bit.
gcc will not work with the standard Galileo image as this one uses uclibc. What image are you using?
what do i do to set it up properly ?
I have moved on instead of a toolchain i went and made a receipe to then bitbake the receipe and output the desired .ko file
In order to provide a more complete response we will need more information. Please provide all the progress you’ve done so far on this, if you’ve gotten any errors please send the entire error log. Feel free to attach screenshots if necessary.