摘要:节点:pg_data_ttypedef struct pglist_data { zone_t node_zones[MAX_NR_ZONES]; zonelist_t node_zonelists[NR_GFPINDEX]; struct page *node_mem_map; ...
阅读全文
摘要:scull from 《Linux设备驱动程序》memdev.c/* * memdev.c * create at 2015/01/07 * 字符设备驱动程序框架 */#include #include #include #include #include #include #include #in...
阅读全文
摘要:1.概览2.逻辑地址到线性地址逻辑地址到线性地址的映射在IA-32体系结构中又被称为段式映射。如上图所示,段式映射我们首先需要获取逻辑地址和段选择符,段选择符用于获取GDT中段的基地址,将逻辑地址作为偏移和段基地址相加获得线性地址。如图为详细的逻辑地址到线性地址的映射过程:根据指令的性质来确定使用哪...
阅读全文
摘要:当我们在Qemu上运行起来自己编译的内核之后,需要使用busybox构建一个文件系统,将此文件系统挂载上去就可以使用busybox提供的各种命令了。1.编译安装busybox源码下载地址:http://www.busybox.net/downloads/编译安装过程:tar jxvf busybox...
阅读全文
摘要:http://blog.csdn.net/bobbat/article/details/38568885安装VMware Tools,解决无法找到kernel header path的问题安装 VMware Tools,运行vmware-config-tools.pl 时,总是提示The path ...
阅读全文
摘要:http://wiki.qemu.org/Manualhttp://qemu.weilnetz.de/qemu-doc.htmlhttp://www.linuxcertif.com/man/1/qemu-system-i386/http://www.osadl.org/Use-BuildRoot-t...
阅读全文
摘要:1.编译安装QemuQemu源码下载地址:http://wiki.qemu.org/Downloadlinux下可以直接用wget下载:wget http://wiki.qemu.org/download/qemu-2.2.0.tar.bz解压缩bz2文件:tar -jxvf qemu-2.2.0....
阅读全文
摘要:晚上下载的linux kernel源码的压缩文件为tar.xz格式的,这种文件解压方式为xz -d xxx.tar.xztar xvf xxx.tar
阅读全文