The first Linux kernel programming-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. Establish a programming environment
Apt-get install kernel-package libncurses5-dev fakeroot build-essential
2. Download The Kernel File
Http://www.kernel.org/pub/linux/... x-2.6.25-rc9.tar.gz
3. decompress the file to the/usr/src/linux folder.
4. Set ln to/usr/include
Cd/usr/include
Rm asm
Rm linux
Rm scsi
Ln-s/usr/src/linux/linux-2.6.25-rc9/include/asm-x86 asm
Ln-s/usr/src/linux/linux-2.6.25-rc9/include/linux
Ln-s/usr/src/linux/linux-2.6.25-rc9/include/scsi
5. Configure the kernel
It is a good idea to use the current working Kernel configuration file as the basis for the new Kernel configuration file. Therefore, we copy the existing configuration file to/usr/src/linux:
Cp/boot/config-'uname-R'./. config
6. Execute the command
Make menuconfig
Next, the blue configuration page is displayed, the happiest moment of laughter today! The following won't happen. I chose a few randomly.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.