LOADING KERNEL MODULE ISSUE IN IMX6UL evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LOADING KERNEL MODULE ISSUE IN IMX6UL evk

1,682 Views
nagaprasadvasam
Contributor III

Hi everyone,

 i am using imx6ul evk , in that board i have booted kernel, i need to load my module to run in that board,i was created a .ko file using cross-compile tool-chain,but when i am trying to load module using insmod hello.ko i am getting an error as hello: loading out-of-tree module taints kernel.how to over come this problem.

Thanks&Regards,

Naga Prasad.

Labels (2)
0 Kudos
3 Replies

1,162 Views
Carlos_Musich
NXP Employee
NXP Employee

Is it a simple hello KLM? Can you share the code?

Carlos

0 Kudos

1,161 Views
nagaprasadvasam
Contributor III

#include <linux/init.h>
#include <linux/module.h>

static int __init hello_init(void)
{
    printk("loading module....hello world!!!!\n");
    return 0;
}

static void __exit hello_exit(void)
{
    printk("unloading...module good bye!!!!\n");
}


module_init(hello_init);
module_exit(hello_exit);

MODULE_AUTHOR("prasad");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("simple hello world");

output:insmod hello.ko

hello: loading out-of-tree module taints kernel.

0 Kudos

1,161 Views
Carlos_Musich
NXP Employee
NXP Employee
0 Kudos