LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-25-2006, 03:49 AM   #1
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
"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
 
Old 12-25-2006, 07:25 AM   #2
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
The loglevel should be equal to the loglevel of console.

To see the Hello World message do cat /var/log/messages
 
Old 12-25-2006, 11:31 PM   #3
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hiren_bhatt
The loglevel should be equal to the loglevel of console.

To see the Hello World message do cat /var/log/messages
Hiii, Hiren

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
 
Old 12-26-2006, 08:17 AM   #4
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
Go to any of the virtual console using Cltr+Alt+F1-F6, and then insert your module there, you will see the massages
 
Old 01-05-2007, 01:48 AM   #5
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hiren_bhatt
Go to any of the virtual console using Cltr+Alt+F1-F6, and then insert your module there, you will see the massages
Dear Hiren,

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
 
Old 01-05-2007, 12:00 PM   #6
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
You were just very near!!! Ctrl+Alt+F7 will bring you the GUI console.
 
Old 01-06-2007, 04:39 AM   #7
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hiren_bhatt
You were just very near!!! Ctrl+Alt+F7 will bring you the GUI console.
Thanks for the reply...by d way are you from india? if yes then from where?, because Bhatt seems to be gujarati.
 
Old 01-06-2007, 08:45 PM   #8
hiren_bhatt
Member
 
Registered: Oct 2005
Distribution: FC3,Debian
Posts: 127

Rep: Reputation: 15
Yes Nishant you are right I am a gujarati, and I am based at ahmedabad, and I think you are also gujarati.
 
Old 01-07-2007, 09:56 PM   #9
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hiren_bhatt
Yes Nishant you are right I am a gujarati, and I am based at ahmedabad, and I think you are also gujarati.
Yes, You are right, I am also gujarati and staying in Ahmedabad, but as I am doing job at Gandhinagar making up-down, in which company you are working?

Thanks,
Nishant
 
Old 08-31-2009, 01:38 PM   #10
lqu
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to Compile "hello world" Kernel Module (please help!) antdengineer Programming 9 12-04-2010 04:07 AM
Loading modules in Gentoo results in "Unknown symbol module_refcount" Spooled Linux - General 4 05-22-2006 05:48 AM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 09:15 PM
kernel 2.6.0 debian "No module symbols loaded - kernel modules not enabled." toovato Linux - General 2 01-07-2004 07:56 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration