Simple driver module does not print logs
Hello,
I am trying to insert a simple hello_workd kernel module in emteria Android OS.
The lsmod does show the module inserted but the printk logs mentioned in module_init function is not visible in dmesg.
Here is the code I am referring to;
#
include <linux/module.h>
include <linux/version.h>
include <linux/kernel.h>
static int __init m_init(void) /* Constructor */
{
printk(KERN_ERR "Hello World!!");
return 0;
}
static void __exit m_exit(void) /* Destructor */
{
printk(KERN_ERR "Bye, Cruel world");
}
module_init(m_init);
module_exit(m_exit);
Can anyone help me to resolve this?
Thanks
Tagged:
0
This discussion has been closed.
Comments
What OS version are you using?
This is a duplicate of https://forum.emteria.com/discussion/978/out-of-kernel-module-not-working-after-upgrade