
linux 学习
brokerW
这个作者很懒,什么都没留下…
展开
-
grub2与linux
bzImage=vmlinuz-*.*.*= setup.bin + vmlinux.bingrub2从硬盘上将bzImage读到内存,跳过setup.bin(因为grub2会代替它做一些初始化工作),并执行vmlinux.binvmlinux.bin自解压,体内携带内置模块。原创 2012-04-26 14:36:50 · 952 阅读 · 0 评论 -
vfs学习
数据结构:struct path {//路径查找过程中用 struct vfsmount *mnt; struct dentry *dentry;};struct qstr {//quick string,查找时用的 union { struct { HASH_LEN_原创 2012-10-19 09:55:16 · 1225 阅读 · 0 评论 -
vfs学习-sysfs
/* * 一、说明 * sysfs与设备、驱动相关。系统将驱动的层级结构通过sysfs以 * 文件系统的形式展现给用户。在驱动方面涉及到的概念有kobject, * kset,bus,device_driver,device,class等等;而在文件系统方面 * 涉及到的概念有inode,dentry,super_block,vfsmount等虚拟文件 * 系统方面的内容。既然sys原创 2012-10-29 16:06:17 · 2907 阅读 · 0 评论 -
linux/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 & Hans Lerm原创 2012-09-17 11:22:55 · 4438 阅读 · 1 评论 -
linux-boot-arch_x86_kernel_head_32.S
/* * * Copyright (C) 1991, 1992 Linus Torvalds * * Enhanced CPU detection and feature setting code by Mike Jagdis * and Martin Mares, November 1997. */.text#include #include #include #原创 2012-07-18 16:34:39 · 2725 阅读 · 0 评论 -
键盘相关知识
trackback:http://www.huihoo.org/gnu_linux/own_os/driver-keyboard_2.htm4.2 Keyboard [Home] [Top] [Previous] [Next] 4.2.1 Overview 键盘是计算机系统的重要输入设备,所有的IBM PC及其兼容机都有一个键盘。所以键转载 2012-05-24 10:55:45 · 1856 阅读 · 0 评论 -
linux boot-protected_mode_jump
/* * The actual transition into protected mode * 文档: * /arch/x86/include/asm/segment.h 【1】 * /arch/x86/boot/pmjump.S【本文】 */ #include #include #include #include原创 2012-05-24 19:06:29 · 1922 阅读 · 1 评论 -
linux boot-go_to_protected_mode
/* * Prepare the machine for transition to protected mode. * 从实模式向保护模式跳转 * 文档: * /arch/x86/include/asm/segment.h 【1】 * arch/x86/boot/pm.c【2】本文 * arch/x86/boot/a20.c【3】 */#include "boot.h"#in原创 2012-05-24 19:04:23 · 1769 阅读 · 0 评论 -
A20 - a pain from the past
trackback:http://www.win.tue.nl/~aeb/linux/kbd/A20.htmlA20 - a pain from the pastEverybody hates the CapsLock key, but keyboard manufacturers continue producing keyboards with CapsLock - it co转载 2012-05-23 14:53:32 · 985 阅读 · 0 评论 -
linux boot -main
来到main()函数后。进行了一系列的设置工作,然后通过调用go_to_protected_mode()进行下一步工作/* -*- linux-c -*- ------------------------------------------------------- * * * Copyright (C) 1991, 1992 Linus Torvalds * Copyrig原创 2012-05-21 17:56:31 · 1995 阅读 · 0 评论 -
linux boot 学习
零、文档【1】 http://lxr.linux.no/linux+v3.3.6/arch/x86/boot/header.S header.S位置 【2】 http://lxr.linux.no/linux+v3.3.6/Documentation/x86/boot.txt header.S的文档【3】 http://lxr.linux.no/linux+v3.3.6/arch/x86/i原创 2012-05-14 15:49:28 · 2649 阅读 · 0 评论 -
linux-boot-arch_x86_boot_compressed_head_32
/* * linux/boot/head.S * * Copyright (C) 1991, 1992, 1993 Linus Torvalds *//* * head.S contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x00001000, which原创 2012-05-29 20:31:13 · 977 阅读 · 0 评论 -
物理地址映射
http://lxr.linux.no/linux+v3.3.2/arch/x86/include/asm/e820.h#L58 58struct e820entry { 59 __u64 addr; /* start of memory segment */ 60 __u64 size; /* size of memory segment原创 2012-04-20 18:01:00 · 941 阅读 · 0 评论 -
lfs-笔记
bin=ld0. ld,gcc,glibc,其中glibc是核心,一步步转向新系统1.用host的glibc-0,gcc-0,ld-0生成了ld-1,ld-1会link host/lib下的库(也只能这样,因为新的还没生出来)2.用ld-0,glibc-0,gcc-0生成gcc-1,gcc-1会使用host/lib下的ld-0而不是ld-1(也只能这样,因为它是新生出来的,没有修改过li原创 2012-11-16 14:57:37 · 573 阅读 · 0 评论