随笔分类 - linux内核的配置 编译
记录linux内核的使用等等。。
摘要:简介:前些天才知道, Linux 2.6.32 开始引入了一个 make localmodconfig 用于简化 kernel 的配置。 刚刚找了一下这个方面的资料,分享一下。Most people uses the kernel shipped by distros - and that's good. But some people like to compile their own kernels from kernel.org, or maybe they like following the Linux development and want to try it. Conf
阅读全文
摘要:第一步 安装必要的工具 首先要安装必要的包。 包有:libncurses5-dev(menuconfig需要的)和essentialsudo apt-get install build-essential kernel-packagesudo apt-get install makesudo apt-get install gcc另外,查看系统是否有这样的两个命令 mkinitramfs mkisofs这两个工具在编译内核时用来生成 *.img文件的。如果没有就需安装。 第二步 下载内核 到www.kernel.org下载新内核到/usr/src 我下载的是linux-2.6.24.tar.g
阅读全文
摘要:如何把设备驱动文件添加到Linux内核编译选项配置的menuconfig中【目的】把一个字符设备驱动文件,添加到内核中,希望编译成模块,而非build-in。【参考资料】内核的源码树目录下一般都会有两个文件:Kconfig和Makefile。http://blog.sina.com.cn/s/blog_4a377e150100c896.html【具体步骤】1.首先保证已经有驱动源文件了:as352x_afe_charger.c放在和其他你所要添加的模块放在一个目录下,此处是drivers\i2c\chips下。2.在drivers\i2c\chips\makefile中,添加:obj-$(CO
阅读全文
摘要:作者:许振文内核源码下载内核代码的管理是采用的git来管理的,所以要下载内核最新的代码的话就得使用git工具来下载了。git工具的使用我在上一篇文章中已经写了个大概,所以具体可以参考其中的使用说明。一般测试可以下载部分或是全部的源代码,我们一般会下载Linus Torvalds的git树下的源码。URL如下:http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summarydescription Linus' kernel treeowner Linus Torvaldslast change Sun,
阅读全文
摘要:问题尚未解决 明天继续了# Unable to handle kernel NULL pointer dereference at virtual address 00000005 pgd = c3b00000 [00000005] *pgd=23af7031, *pte=00000000, *ppte=00000000 Internal error: Oops: 17 [#1]Modules linked in: micint at91_gpio(P) cd4053 mcp251x can_dev can_bcm can_raw canCPU: 0 Tainted: P (2.6.27 #2
阅读全文
摘要:request_module: runaway loop modprobe binfmt-464c
Populating /dev using udev: error initializing udevd socket
阅读全文

浙公网安备 33010602011771号