[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Adolf Ahmad MS <adolf@ratelindo.co.id>] (fwd)



>From owner-rtl Mon May  7 20:19:30 2001
Received: from wbmail.ratelindo.co.id (rtiwb.ratelindo.co.id [202.155.4.226])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f482JRJ18120
	for <rtl@fsmlabs.com>; Mon, 7 May 2001 20:19:28 -0600
Received: by WBMAIL with Internet Mail Service (5.5.2650.10)
	id <JR700N81>; Tue, 8 May 2001 09:03:16 +0700
Message-ID: <41B6E7DDA9D5D3119B5700508B8B04E1075367F7@WBMAIL>
From: Adolf Ahmad MS <adolf@ratelindo.co.id>
To: rtl@fsmlabs.com
Subject: RE: [rtl] something wrong with printk???
Date: Tue, 8 May 2001 09:03:10 +0700 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.10)
Content-Type: text/plain

Make sure that you run/login from tty0(ALT+F1) console

> -----Original Message-----
> From:	Jeff Krasky [SMTP:jkrasky@hotmail.com]
> Sent:	Sunday, May 06, 2001 5:29 AM
> To:	rtl@rtlinux.org
> Subject:	[rtl] something wrong with printk???
> 
> Hi all,
> this is probably a simple question but I am not sure where to look for
> the answer.  I have Rubini's Linux Device Drivers book, and I am trying
> to get his example Hello World module going.  I am running Red Hat 6.2
> kernel 2.2.14-5.0.  Here is the code that I use:
> 
> #define MODULE
> #include <linux/module.h>
> 
> int init_module(void) { printk("<1>Hello World\n"); return 0;}
> void cleanup_module(void) {printk("<1>Goodbye\n");}
> 
> and this is what I type when I am logged in as root:
> 
> # gcc -c hello.c
> # insmod hello.o
> 
> the message "Hello World" does not get displayed
> 
> then I type:
> 
> #rmmod hello
> 
> the message "Goodbye" does not get displayed.
> 
> I can tell (I think) that the module is being inserted because if I try to
> 
> insert it twice without removing it first, it says a module with that name
> 
> already exists.
> 
> Any ideas?
> 
> thanks...
> 
> Jeffrey
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/