Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Strange Photos Academic Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




kernel secrets


Posted Date: 07 Apr 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: arunkumar       Member Level: Gold
Rating:     Points: 3



About ‘make’

All throughout this workshop, and in many of the previous workshops, we keep bumping into this command called ‘make’, every time we have to compile and install any application. What exactly is make, and why do we keep appending it with words such as ‘install’, ‘clean’, etc.? The secret of all this lies in a single ‘Makefile’ that resides in the directory in which you are compiling the
software. Typically, this is the main directory that is created once you untar a ‘xxx.tar.gz’ or ‘xxx.tar.bz2’ file using the tar -zxvf or tar -jxvf commands. This Makefile has all the directions that the make utility needs to compile and install the application. But all these instructions are not just executed in
one single go. Instead, various groups of commands, called targets, are clubbed
together in different sections of the Makefile. The word that is appended to make utility is, in fact, the name of the target group, and can be found in the Makefile.


Linux kernel development tree:

The kernel typically has two releases out at a time. One is the ‘Stable’ release—which is currently the 2.6.X series—and one is the ‘Development’ release, which is currently 2.5.X. Stable kernels are well tested and have passed through a great deal of quality assurance testing and bug fixes. Development kernels are experimental with a lot of new, untested code. These are not recommended for production machines. Most Linux distributions ship the latest stable kernel. The stable kernel is always an even number, say 2.2.XX or 2.4.XX. The development kernel is always an odd number, like 2.3.XX, or 2.5.XX.



Cross-compiling:

Linux is an operating system that has been ported to a multitude of platforms. Today, Linux runs on almost any architecture currently available. This has been of immense help to software developers, since the source code for their applications can be compiled on all these platforms with minimal trouble. This is possible because almost all the development tools have also been ported to the respective architectures. In particular, there’s a feature in ‘gcc’ that lets developers cross-compile source code to generate executable files that can be run on a platform other than the one on which it was compiled. What this means is that a simple application, let’s say an mp3 player, that was cross-compiled using gcc on an Intel x86 pc to run on a PowerPC processor, can be just copied to the PPC machine and run as though it were compiled on it. This cross-compiling is not just restricted to Linux applications, the Linux kernel can itself be cross-compiled to run on another platform. So using the same source code and the same compiler, you can create a new kernel image than can run on your Mac running Yellow Dog Linux.You don’t necessarily have to compile
the kernel just to install a new version of the kernel. You could use recompilation to switch on certain features in your existing kernel that were not enabled by the vendor—Red Hat, SuSE, etc. For example, if you just bought a Aironet wireless adapter, and want to configure it to run on Linux, chances are you won’t have to scout the net to get a driver module; it will be right there in the kernel source tree. You can configure the driver to be either built into your kernel, or you can build it as a kernel module during the ‘make xconfig’ stage




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: kernel in linux
Previous Resource: Instruction set and Addressing modes in computer Architecture
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources



Watch TV Channels
  • Watch Asianet TV online
  • Kairali TV in Internet
  • Surya TV online
  • Amritha TV Channel

  • Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.