"Hello world message is not printing" while loading the modules inside kernel
Dear All,
I want to insert the module inside the kernel and to print the message hello world inside that module, i am able to load the module inside the kernel through insmod command, but when it loads inside the kernel it is not printing the message on the console, can anybody tell me what the wrong thing i have done in this, or what are the other methods to see the message? I think there is a command regarding grep also to see the kernel messages but i couldnt remember actually what is the command to do so? pls.. help me tho know this, and please tell me what is the error because of which message is not printing on the console while loading the modules inside the kernel? Thanks, Nishant |
The loglevel should be equal to the loglevel of console.
To see the Hello World message do cat /var/log/messages |
Quote:
Thanks for the reply, i know this method to see the mesasge from /var/log/messages, but this message should also been print on the screen while i run the command insmod with the module name... that is what not happening and i dont know why? that is what i am trying to find. Thanks anyays. Thanks, Nishant |
Go to any of the virtual console using Cltr+Alt+F1-F6, and then insert your module there, you will see the massages
|
Quote:
Thanks, yes that method is working for go to the virtual console and to inserting the module will print the message, but as we go to the virtual console through Ctrl+Alt+F1-F6, what is the method to come out of that console and back to the GUI? i can only come out of this by rebooting the PC, but i dont think this is the right method, there must be the method for that, pls tell me what to do to come out of that? Thanks, Nishant |
You were just very near!!! Ctrl+Alt+F7 will bring you the GUI console.
|
Quote:
|
Yes Nishant you are right I am a gujarati, and I am based at ahmedabad, and I think you are also gujarati.
|
Quote:
Thanks, Nishant |
are you using printk()? maybe it's because your message doesn't have enough priority to be displayed on console. Try to raise your message's level, or lower the console_loglevel. Anyways, you can see the message by 'dmesg' or 'cat /proc/kmsg.
|
All times are GMT -5. The time now is 03:38 AM. |