how to properly upload my module to beaglebone from computer

Viewed 28

I created my module for the beagle,something like a chat from a computer to a beagle and back using uart4. I compile it on my computer with a makefile like this:

obj-m := test_uart_module.o 
ARCH=arm 
CROSS_COMPILE=arm-linux-gnueabi-
KERNELDIR=/usr/src/kernels/linux-4.9.82-ti-r102
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(PWD) modules
echo "bulding module for arm architecture:"

I transfer the finished test_uart_module.ko file to the beagle with

scp test_uart_module.ko debian@192.168.7.2:/home/debian

on beagle I run insmod test_uart_module.ko and get the next dmesg

test_uart_module: no symbol version for module_layout
test_uart_module: loading out-of-tree module taints kernel

lsmod my module is listed

Am I loading the module in the wrong way or am I transferring it incorrectly from the computer to the beagle?or I created the module incorrectly (not working)?

0 Answers
Related