linux kernel
Oliverlyn
学习是一个漫长的过程!长到从出生到死亡……
唯有对新知识、新技术保持激情才能长生不老!
展开
-
如何从硬件获得内存布局(E820)
E820如何从硬件获得内存布局背景在操作系统开始管理内存之前,首先要获取物理内存的信息,比如共有多少物理地址是可用的? 有哪些物理地址是被ACPI(Advanced Configuration and Power Interface)数据使用? 这些信息从何而来?e820就是BIOS像x86架构(包括x86_64)上的操作系统引导程序提供物理内存信息的功能。当请求BIOS中断号15H,并且置操作码AX=E820H的时候,BIOS就会向调用者报告可用的物理地址区间等信息,e820由此得名。什么是E82原创 2020-07-18 22:16:00 · 2225 阅读 · 0 评论 -
如何验证内核是否支持KVM虚拟化?
验证内核支持KVM虚拟化方法X86_64架构的环境验证方法在x86_64架构环境中,或者Intel的硬件,(1)我们检测是否支持KVM的方式:# lsmod |grep kvmkvm_intel 188688 0kvm 636931 1 kvm_intelirqbypass 13503 1 k...原创 2020-05-07 11:09:35 · 5001 阅读 · 0 评论 -
利用qemu-system-aarch64调试Linux内核(arm64)
qemu-system-aarch64调试linux-4.12内核借助Linux操作系统中已有的工具,比如mkinitramfs构建rootfs前提条件(0) arm64物理服务器或虚拟机(1) qemu-2.11.1: qemu-system-aarch64(2) busybox-1.31.1(3) 内核版本为linux-4.12安装qemu由于qemu的编译过程中存在-CFLA...原创 2020-03-29 19:17:51 · 4038 阅读 · 0 评论 -
compile linux kernel encount: make: warning: Clock skew detected. Your build may be incomplete.
问题描述:...make: warning: Clock skew detected. Your build may be incomplete....问题分析:出现这个提示的原因是因为 Makefile 的修改时间与系统的当前时间不匹配.问题解决:# find . -exec touch \{\} \;...原创 2019-01-21 14:11:21 · 331 阅读 · 0 评论 -
Disable the feature: KASLR Before debugging the kernel with qemu+gdb
qemu+gdb debugging kernel (version>4.8)When debugging the linux kernel (version > 4.8) with qemu and gdb, something wrong occurs:picture as follows:Why?The kernel (version >4.8...原创 2018-03-08 21:16:54 · 1149 阅读 · 0 评论 -
VIM+插件构建源码分析工具
以Ubuntu Linux安装为例,并以源码linux-3.13.0为分析目标安装ctags (1) 安装:~> sudo apt-get install exuberant-ctags (2) 确认tags.sh存在. ~/linux3.13.0> ls –al ./scripts/tags.sh (3) 生成x86_64/ARM标签, 且tag 文件大小为89M. ~/linux原创 2017-06-05 17:11:13 · 1339 阅读 · 1 评论 -
GDB调试Qemu程序
1.编译与安装qemu时需要添加debug选项,即--enable-debug,--enable-debug-info2.编译内核,根据需要,选择编译选项(bzImage)3.编译安装BusyBoxBusybox Settings ---> --- Build Options [*] Build BusyBox as a position independent ex原创 2017-10-08 19:41:47 · 1908 阅读 · 2 评论 -
Makefile文件编写
目录开始简单makefile变量自动变量OBJ和伪命令目录结构Makefile 是 Linux 下程序开发的自动化编译工具,用以识别编译目标、源文件、及其依赖关系,并且有着高效的编译效率。每次执行 make 时,就能够自动寻找 Makefile(makefile)文件,执行编译工作。Makefile拥有很多复杂的功能,为了简化问题的复杂性,本文仅和大家讨转载 2017-07-23 15:44:09 · 433 阅读 · 0 评论 -
ubuntu获取源码方法
原文地址:https://github.com/hokein/Wiki/wiki/ubuntu%E8%8E%B7%E5%8F%96%E6%BA%90%E7%A0%81%E6%96%B9%E6%B3%95以下载ls的源码为例说明:首先要知道ls是属于哪个包的,可以通过下面命令: #dpkg -S 'command name' 通用格式 $ dpkg -S /转载 2017-02-16 21:30:39 · 1199 阅读 · 0 评论 -
如何在Debian或Ubuntu上安装完整的内核源码
原文地址:http://ask.xmodulo.com/install-full-kernel-source-debian-ubuntu.html原创:LCTT https://linux.cn/article-5015-1.html 本文地址:https://linux.cn/article-5015-1.html转载 2017-02-16 21:23:05 · 1611 阅读 · 0 评论 -
socket(int family, int type, int protocol)各参数解释
family:/* Supported address families. */#define AF_UNSPEC 0#define AF_UNIX 1/* Unix domain sockets */#define AF_LOCAL 1/* POSIX name for AF_UNIX */#define AF_INET 2/* Internet IP Proto原创 2017-01-09 09:28:35 · 4770 阅读 · 0 评论