<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.mywiki.cn/Hovercool/index.php?action=history&amp;feed=atom&amp;title=%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA</id>
	<title>驱动开发环境搭建 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://www.mywiki.cn/Hovercool/index.php?action=history&amp;feed=atom&amp;title=%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA"/>
	<link rel="alternate" type="text/html" href="https://www.mywiki.cn/Hovercool/index.php?title=%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA&amp;action=history"/>
	<updated>2026-09-01T04:00:58Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.mywiki.cn/Hovercool/index.php?title=%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA&amp;diff=779&amp;oldid=prev</id>
		<title>2015年5月6日 (三) 08:09 Hovercool</title>
		<link rel="alternate" type="text/html" href="https://www.mywiki.cn/Hovercool/index.php?title=%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA&amp;diff=779&amp;oldid=prev"/>
		<updated>2015-05-06T08:09:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 准备开发工具 ===&lt;br /&gt;
&lt;br /&gt;
暂略&lt;br /&gt;
&lt;br /&gt;
=== 下载内核源码 ===&lt;br /&gt;
&lt;br /&gt;
获取源码列表：&lt;br /&gt;
&lt;br /&gt;
 $:sudo apt-cache search linux-source&lt;br /&gt;
&lt;br /&gt;
返回：&lt;br /&gt;
&lt;br /&gt;
 linux-source - Linux kernel source with Ubuntu patches&lt;br /&gt;
 linux-source-2.6.38 - Linux kernel source for version 2.6.38 with Ubuntu patches&lt;br /&gt;
&lt;br /&gt;
下载之：&lt;br /&gt;
&lt;br /&gt;
 $:sudo apt-get install linux-source-2.6.38&lt;br /&gt;
&lt;br /&gt;
下载完成后，会在/usr/src/中出现一个 &amp;quot;linux-source-2.6.38&amp;quot;文件夹和一个指向 &amp;quot;linux-source-2.6.32.tar.bz2&amp;quot;的同名符号链接，进入该目录并解压之：&lt;br /&gt;
&lt;br /&gt;
 $:tar jxvf linux-source-2.6.32.tar.bz2&lt;br /&gt;
&lt;br /&gt;
=== 编译内核 ===&lt;br /&gt;
&lt;br /&gt;
配置.config（其他选项可以通过 make help查看）&lt;br /&gt;
&lt;br /&gt;
 $:make menuconfig&lt;br /&gt;
&lt;br /&gt;
 $:make&lt;br /&gt;
&lt;br /&gt;
结束后，将生成一个新的文件: vmlinux&lt;br /&gt;
&lt;br /&gt;
 $:make modules /* 编译 模块 */&lt;br /&gt;
&lt;br /&gt;
 $:make modules_install  /*这条命令能在/lib/modules目录下产生一个目录*/&lt;br /&gt;
&lt;br /&gt;
=== 使用内核 ===&lt;br /&gt;
&lt;br /&gt;
拷贝文件（进入/usr/src/linux-source-2.6.38/）：&lt;br /&gt;
&lt;br /&gt;
 $:cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.38&lt;br /&gt;
 $:cp System.map /boot/System.map-2.6.38&lt;br /&gt;
&lt;br /&gt;
生成 initrd.img文件&lt;br /&gt;
&lt;br /&gt;
 $:cd /lib/modules/2.6.38.2/&lt;br /&gt;
 $:update-initramfs -c -k 2.6.38-8-generic&lt;br /&gt;
&lt;br /&gt;
自动查找新内核，并添加至grub引导&lt;br /&gt;
&lt;br /&gt;
 $:update-grub&lt;br /&gt;
&lt;br /&gt;
重启系统&lt;br /&gt;
&lt;br /&gt;
 $:reboot 或 shutdown -r now&lt;br /&gt;
&lt;br /&gt;
验证：&lt;br /&gt;
&lt;br /&gt;
 $:uname -a&lt;br /&gt;
 结果为：&lt;br /&gt;
 Linux tgdn-1828 2.6.38.2 #1 SMP Fri Feb 10 12:28:43 CST 2012 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
&lt;br /&gt;
参考文献：&lt;br /&gt;
&lt;br /&gt;
http://www.linuxidc.com/Linux/2010-09/28656.htm&lt;br /&gt;
&lt;br /&gt;
http://www.ylmf.net/ubuntu/tips/201010126648.html&lt;br /&gt;
&lt;br /&gt;
http://hi.baidu.com/imfam520/blog/item/1abb60d14d083f259b5027c4.html&lt;br /&gt;
&lt;br /&gt;
http://linux.vbird.org/linux_basic/0540kernel.php&lt;br /&gt;
&lt;br /&gt;
http://wenku.baidu.com/view/58b260717fd5360cba1adb11.html&lt;/div&gt;</summary>
		<author><name>Hovercool</name></author>
	</entry>
</feed>