不浮躁
全部博文(691)
发布时间:2014-12-07 21:30:52
内核编译(make)之后会生成两个文件,一个Image,一个zImage,其中Image为内核映像文件,而zImage为内核的一种映像压缩文件,Image大约为4M,而zImage不到2M。 那么uImage又是什么的?它是uboot专用的映像文件,它是在zImage之前加上一个长度为64字节的“头”,说明这个内核的版本、.........【阅读全文】
发布时间:2016-08-03 20:36:37
1.当被问到Linux体系结构(就是Linux系统是怎么构成的)时,我们可以参照下图这么回答:从大的方面讲,Linux体系结构可以分为两块:(1)用户空间:用户空间中又包含了,用户的应用程序,C库(2)内核空间:内核空间包括,系统调用,内核,以及与平台架构相关的代码 2.Linux体系结构要分成用户空间.........【阅读全文】
发布时间:2016-03-21 11:42:31
linux内核启动第二阶段分析456 asmlinkage void __init start_kernel(void)457 {458 char * command_line;459 extern const struct kernel_param __start___param[], __stop___param[];这两个外部变量,是内核编.........【阅读全文】
发布时间:2015-12-15 20:07:29
start_kernel() 定义于 init/main.c/* * linux/init/main.c * * Copyright (C) 1991, 1992 Linus Torvalds * * GK 2/5/95 - Changed to support mounting root fs via NFS * Added initrd & change_root: Werner Almesberger & Han.........【阅读全文】
发布时间:2015-12-14 22:11:41
arch/arm/kernelhead.S:/* * linux/arch/arm/kernel/head.S * * Copyright (C) 1994-2002 Russell King * Copyright (c) 2003 ARM Limited * All Rights Reserved * * This program is free software; you can redistribute it and/or modify.........【阅读全文】
发布时间:2015-12-14 22:05:36
vmlinux-lds 连接器脚本/* * Automatically generated C config: don't edit * Linux/arm 3.0.15 Kernel Configuration *//* ld script to make ARM Linux kernel * taken from the i386 version by Russell King * Written by Martin Mares *//*.........【阅读全文】
发布时间:2015-12-02 10:51:37
源码如下:/* * gen_uuid.c --- generate a DCE-compatible uuid * * Copyright (C) 1999, Andreas Dilger and Theodore Ts'o * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public * License. * %End-Header% */.........【阅读全文】
发布时间:2015-04-19 21:17:05
内核中每个字符设备都对应一个 cdev 结构的变量,下面是它的定义:linux-2.6.22/include/linux/cdev.hstruct cdev { struct kobject kobj; // 每个 cdev 都是一个 kobject struct module *owner; .........【阅读全文】