I tried to built-in(or modules) in new kernel(used arm-none-linux-gnueabi- and got a new baby zImage & Image),then i flashed new kernel to ARM Board. But nothing did happen. The wierd thing is that I can find (i.e.kernel/drivers/char/hello_module.ko) when I ran "cat modules.builtin" command.
So I think this thing already built in Board , but how can i to use it such that printk someting or register a new device name.
dmesg shows the prinkt messages when i insmod hello_module.ko.So I did do something wrong in some making new kernel steps. It's really confused me (i.e. i ran commands like make || make zImage|| make bzImage and make modules make modules_install after finished the step of make menuconfig) then i flash kernel to Board. But nothing works .
I'm pretty new so i think i feked up some fatal things , any help will be much appreciated.
here's my codes
#include <linux/kernel.h>#include <linux/module.h>static int __init hello_module_init(void){ printk("Hello, this module is installed !\n"); return 0;}static void __exit hello_module_cleanup(void){ printk("Good-bye, this module was removed!\n");}module_init(hello_module_init);module_exit(hello_module_cleanup);MODULE_LICENSE("GPL");