Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Linux in General => Linux Kernel => Topic started by: Equinox on May 18, 2007, 04:08:47 AM
-
Hi one and all,
I am new to Linux, using a Linux Mandrake distro. I need urgent help in this..please help me
1. Where do I get to see the kernel code in my system..
2. How do I build a kernel?
3. From where can I get an original mainstream kernel, one that is not too much divergent from the existing ones or the one that is not changed by local vendors?
4. How do I get to see/change my kernel tree
5. How do I compile and make .o, .ko files for kernel programming from .c files...
6. In my system make command is not working, and I am not able to understand it even....
Please help. Your help will be very much appreciated...
-
Answer to 1, 2 is http://www.gentoo.org/doc/en/articles/linux-kernel-compiling.xml
Answer to 3 , you can get it at kernel.org
Answer to 4 is also in answer of 1,2
Answer 5, I am not sure
Answer 6, Install Gcc !
-
Hi....and thanks...I have gcc, and g++ compiler in my system yet I am not understanding how to use the make command....
If I want to install a particular software with configure file and makefile...its giving errors...
./configure is working properly
but when I type make...its giving all sorts of errors relating to the code....
Another interesting thing it works perfectly fine in FC4 distro...
help me...
do i need to change my kernel??
I certainly believe .o and .ko files can be made via gcc but what options has to be given I dont know...
PLZZZZ HElp!!!1
-
I am not sure why its giving the errors , it may be due to uncompatible libraries or versions ....
To create .o or .ko files with gcc compiler the option which you have to give is -c
like if your file name is test.c
give command
#gcc -c test.c
now it will produce a file named test.o which is a relocatable file