Topic: Compiling kernel module for kernel 2.6.29 (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31024" title="Pages that link to Topic: Compiling kernel module for kernel 2.6.29 (Page 1 of 1)" rel="nofollow" >Topic: Compiling kernel module for kernel 2.6.29 <span class="small">(Page 1 of 1)</span>\

 
Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

IP logged posted posted 05-27-2009 21:00 Edit Quote

Sorry if this is in the wrong forum. Feel free to move.

I am trying to compile a module here is wat i have

Module:

code:
int init_module(void)
{
	printk(KERN_INFO "Hello world 1.\n");


	return 0;
}

void cleanup_module(void)
{
	printk(KERN_INFO "Goodbye world 1.\n");
}



and this is my makefile:

code:
obj-m += hello-1.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean



the makefile axecutes without erros but i do not get a binary file (.o or .ko)

any ideas?

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

IP logged posted posted 05-28-2009 05:07 Edit Quote

No idea- never wrote anything in the kernel. I compiled the old broadcom wifi drivers, but that was ages ago..

what are you trying to do?

Keep me posted- I'm really curious as to where your bytes are going. Maybe you can run gcc in verbose mode?

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

IP logged posted posted 05-28-2009 08:17 Edit Quote

I am not trying to achieve anything. Only playing around, but not very succesfull.

ok fixed it. it looks ,like a non printable symbol got caught in my makefile. I rewrote it and it worked fine.

(Edited by Blacknight on 05-28-2009 09:10)



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu