November 22, 2024, 03:55:00 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: SOS!!!!Help required  (Read 7967 times)

Offline Equinox

  • Linux Noob !
  • *
  • Posts: 6
SOS!!!!Help required
« 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...

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: SOS!!!!Help required
« Reply #1 on: May 18, 2007, 06:29:20 PM »
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 !

Offline Equinox

  • Linux Noob !
  • *
  • Posts: 6
Re: SOS!!!!Help required
« Reply #2 on: May 22, 2007, 06:51:17 AM »
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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: SOS!!!!Help required
« Reply #3 on: May 30, 2007, 12:00:12 PM »
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