Compiling Driver code for 2.6 kernel





Hi,

Please Help me as i am newbie to 2.6 kernel.

I have My driver code for 2.4.20 kernel(Here i generate .o with 100's of .objs linked together).

I have a main GNUMakefile linked with 10's of individual make files w.r.t different directories

i am able to compile my source code and able to link all individual modules and generate final module.o (2.6). but i am not sure how to genrate .ko from the module.o i have.

I understand the compilation for 2.6 is different.

How i can generate .ko which is required for 2.6.

1) Is a simple Makefile changes for 2.4 to 2.6 enough..?? then what needs to done in my GNUmakefile(not the kernel source)
2) Is it required to use kernel source GNUMakefile as given in examples ***
3) Is it o.k to compile individual 'c' files with .obj and linked to module.o

Please help me in this regards

THanx in advance
Subbu


"SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India"

SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Existing DSL not detected by re-install
    ... Just in case you compile something that needs the kernel source. ... That's because you initially start in runlevel 5. ...
    (alt.os.linux.suse)
  • Re: Differences between binary images and compiled kernels
    ... installed the vendor-supplied kernel source tree and then copied the config ... they used to compile the particular kernel you're running ... Try the easy thing first unless you're dealing with really bitchy hardware. ...
    (Debian-User)
  • Re: Posted Three Times - Thanks
    ... >> If I were you I'd get the most recent kernel source from kernel.org and ... revealed additional support for usb devices and the compile went smooth ... kernel but then booting and shutting down with the 2.6.11 kernel ... > This footnote also confirms that this email message has been swept by ...
    (Debian-User)
  • Re: Help needed for RedHat Enterprise Linux 4.0 with Marvell Yukon GIgabit
    ... with your current kernel, and you'd need to get the sources and config ... Just get an appropriate kernel source and compile it. ... support before concluding there is or is not support. ...
    (comp.os.linux.setup)
  • Re: Compiling a disabled module in FC2
    ... >> I have the kernel source and I know how to compile a new kernel and ... but is it possible to just compile the missing ... need the old kernel source packages as you once did. ... The new packaging has simplified things, it is just us old timers ...
    (Fedora)