Loader to do two things, let's start with the first item, load the kernel into memory:1. Load the kernel into memory.2. Jump into protected mode.When you first compile a no-kernel:NASM Boot.asm-o Boot.binNASM Loader.asm-o Loader.binDD if=boot.bin of=a.img bs=512 count=1 conv=notruncsudo mount-o loop a.img/mnt/hgfs/sudo cp loader.bin/mnt/hgfs/-Vsudo umount/mnt/hgfs/The results of the operation are as follows
Kernel Source Directory1, Arch: recorded x86 focus on2. Init: Start_kernel in MAIN.C under directory is the starting point of the boot kernel3. IPC: Directory of inter-process communicationExperimentOpen the shell with a virtual machine in the lab buildingCD linuxkernel/Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD rootfs.imgUse gdb Trace Debug Kernelqemu -kerne
Refer to this How to Remove the old (or new) kernelshttp://ubuntuhandbook.org/index.php/2015/08/install-latest-kernel-script/1. In Ubuntu with a graphical interface:1.1 Installing synaptic Package Manager in Ubuntu Software Center1.2 Deleting packages using Synaptic Package Manager:
Click the Reload button in the want to remove the new kernel.
Select Status-installed on the left pane to make se
Recently in doing the kernel from the small-end processor (arm) to the big-endian processor (PPC) of the work, now kernel into the console stable work, the basic work has been completed, but the transplant has a lot of experience or need to summarize, Today, the kernel is summed up for processing the byte-order of the size-end.
Before writing the size-end byte s
Author: Jiang GuangweiDate: 2010-12-28Email: guangwei.jiang@gmail.com/jgw2008@126.com 1. Introduction
The theme of this chapter is "The design and implementation of Kernel Scheduler", "Kernel scheduling" is the necessary module of all multitasking kernel, the design of scheduling algorithm has a direct impact on the efficiency of the whole system.Examples of this
1. Kernel functions map Low-dimensional space to high-dimensional space
The following chart is located in the first to second quadrant. We pay attention to the red door and the purple letters under the words "Beijing courtyard". We think of the dots on the red Door as "+" data, and the dots on the purple letters as "-" data, and their horizontal and vertical coordinates are two characters. Obviously, in this two-dimensional space, the "+" "-" two typ
Tags: style os ar sp on c ad Size RThe kernel function is a program that runs on each thread of the GPU. Must be defined by the __GLOABL__ function type qualifier. The form is as follows: __global__ void kernel (param list) {} The kernel function can only be called on the host side, and the execution parameters must be declared when invoked. The invocation form
Test upgrade centos6.6 kernel to Oracle Uek kernelReference:http://www.tuicool.com/articles/IRbU3e[[Emailprotected]~]#curl-ohttps://linux.oracle.com/switch/centos2ol.sh[[email protected]~]#shcentos2ol.sh[[emailprotected]~]#yumupgradeoh yeah, upgrade complete, pay attention to upgrade time, disk space is enough. [[emailprotected]~]#rpm-qif/etc/redhat-releasename :oraclelinux-release relocations: (notrelocatable) version:6server vendor:oracleamericarel
Recommended blog posts:Linux Kernel "problem Gate"-learning issues and experience highlights
Recommended download:Methodology of essence edition of "Cultivation of Linux kernel"
Just now, I was glad to hear that during the trial run of the Sb, the residents of Shanghai visited the site were in a very stable mood and showed their style with great comfort. So here we need to reflect on why
I. Kernel configuration and compilation of the Development Board
1. decompress the kernel package and copy the smdk6410_config Kernel configuration file to. config (default configuration file) to the kernel source code tree. Generally, the platform configuration file is stored in the arch/ARM/configs/directory of the
Kernel Configuration and compilationFirst, kernel cleanupThe first thing we need to do when we get to the kernel is to clean up the kernel and prevent others from configuring the generated intermediate files to affect us:1. config generated by the configuration process.2. Compile the intermediate file (. o) to generate
The previous chapter describes how to compile the Linux kernel. After an image is obtained, it can be burned to the Development Board for running. However, this will also cause some problems: for example, if you want to add or modify some Linux kernel configurations and components, you must re-compile the Linux kernel and then install it on the Development Board.
"copyright notice: respect for the original, reproduced please retain the source: Blog.csdn.net/shallnet, the article is only for learning exchange, do not use for commercial use " The previous section says that the mechanism of putting the work forward to a time other than the present is the second half, but when you need to postpone the work to a certain period of time, using a timer is a good choice. The last section of kernel time management men
He Bong + Original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000I. Experimental process1, open the shell, enter the start command, the kernel starts to enter the menu program, support three commands help, version and quit.2. Then use GDB to trace the debug kernel, enter the comman
This article provides a brief introduction to kernel-related basic concepts.Main content:
Single Core and micro core
Kernel version number
1. Single Core and micro-core
principle
Advantage
disadvantage
single core
1. Simple. 2. Efficient: All cores are in a large address space, so calls and call functions are s
executing at any time
Soft interrupts and Tasklet: The kernel can wake up or dispatch soft interrupts and tasklet at any time, interrupting code that is currently executing
Kernel preemption: The Linux kernel is preemptive, so the kernel's task may be preempted by another task
Sleep and user space synchronization: Processes that execute in the
Basic synchronization mechanism of the kernel:Key features of the preemption kernel: a process running in the kernel state that may be replaced by another process during kernel functions execution.Kernel preemption: Linux 2.6 Allows users to configure the kernel to be very enabled when compilingProcess critical section
/proc/kallsyms records the names and addresses of all the exported symbols in the kernel
We need to compile 2 kernel modules, and then one of the kernel modules to call functions in another kernel module
The HELLO.C code is as follows
#include
From this we can see that we have called 2 functions Add_integar and Sub
Tags: Linux kernel1, the kernel is what, the kernel is the core of the operating system.In Linux, in fact, the kernel is the system above a file, this file contains the driver of the hardware of the test program and driver module. The kernel file is in the/boot directory in the beginning of the Vmlinuz file, and someti
Phenomenon:CentOS7 boot screen displays multiple kernel optionsReason:Under normal circumstances, there are two startup items, one is "Normal startup" and the other is "Rescue mode Startup" (rescue).If there are more than 2 startup items, the old kernel of the current system is not removed. The reason is that the old kernel is not automatically deleted after the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.