Author: Sandy Original works reproduced please indicate the source"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000 "Experimental environment: C+linux64 bit (32-bit system may result in different)In accordance with the academic integrity of the terms, I guarantee that the answer for my original, all the references to the external materials have been marked by provenance.
Experimental environment: ubuntu14.04 operatin
Question: How are you sure the machine will run a 64-bit kernel?
Answer: Running the 64-bit kernel requires 64-bit hardware. For AIX 5.2, all IBM eserver pseries 64-bit hardware can run 64-bit or 32-bit cores. The order is as follows:
#/usr/sbin/bootinfo-p
When running on a machine that can only run a 32-bit kernel, the string "32" is returned. If the machine
Specific questions
Reference Solutions
Solution Ideas
Deep solution
1. Specific questions:After porting the kernel of 3.6.6, download the startup card to die, specifically the serial printing information stuck in "uncompressing Linux ... done, booting the kernel."2. Reference Solution:According to the online statement to ensure that the following conditions:
2.1 Core clock frequenc
Kernel and kernel modules: Depmod,lsmod,modinfo,insmod,rmmod,mdprobeFirst, we need to know where the kernel and kernel modules are placed. Kernel:/boot/vmlinuz or/boot/vmlinuz-version; kernel decompression required RAMDISK:/BOOT/I
The Linux 2.4 kernel provides a better description than the kernel-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. Module Subsystem, Unified Device Model, and PnP support Module Subsystem have undergone major changes.
2. Improved Stability
To completely prevent the
Linux Architecture:Knowledge: Linux architecture is divided into user space and kernel spaceWhat is the reason for dividing into user space and kernel space? Protect the operating system so that the application and the kernel have different permissions. Create different levels for different codes ...Kernel space and us
Linux Kernel Learning notes collation.UnixUnix has a history of 40, but computer scientists still think it is the largest and best system in the existing operating system, it has become a legendary existence, the test of time is still a reputation.In 1973, after the UNIX system was rewritten in C, a large number of Unix-derived versions began to emerge, and many companies migrated UNIX to new models, and developers continued to enhance the system's fu
Transferred from: http://blog.chinaunix.net/uid-12461657-id-3487463.htmlOriginal address: A supplemental description of the interrupt stack and kernel stack in the Linux kernel MagicBoy2010interrupt stack and kernel stack topic is more of the core category, so in the "deep Linux device driver kernel mechanism" in the 5
Sometimes it is necessary to read and write file data in Linux kernel--most of the drivers that need to be debugged. There are no standard libraries available for manipulating files in kernel, and some of the functions of kernel need to be exploited: Filp_open () Filp_close (), Vfs_read () Vfs_write (), Set_fs (), GET_FS (), etc. These functions are declared in t
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation code level;The advantage is that two machines are not required for debugging.
GDB: it lacks some essential functions when debugging A module. It can be used to view the running status of the kernel, including disassembly of kernel functions.
Kgdb: it is conven
Use kgdb to debug Linux kernel and Kernel Modules
Created:Article attributes: originalArticle submission: xcspy (xcspy.com _ at_gmail.com)
Author: xcspy member ladybugE-mail: xcspy.com@gmail.comHome: www.xcspy.com
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation code level;The advantage is that two machines a
The mutex Kernel Object ensures that a thread exclusively accesses resources.
The behavior characteristics of mutex kernel objects are similar to those of key code segments, but they are kernel objects, and key code segments are user mode objects, as a result, the mutually exclusive kernel objects run at a lower speed
Press the power supply, click it, start the computer, and then the BIOS screen will pop up. After a while, the GRUB interface will pop up, and a line after line of characters will pop up on the black screen, from time to time there are OK words. oh, don't worry. Enter your username and password ,.... The system is successfully started. So what happened in this process and what are worth learning? This article describes the relationship between the boot loader,
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the Linux kernel programming, 10 days will defini
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the Linux kernel programming, 10 days will defini
(This method is limited to the CentOS faction's yum/rpm.) Supplement: limited to 64Bit. CentOS7 32-bit, I tried to use CentOS6 32-bit kernel to upgrade, can be upgraded to use the restart can be used, half an hour after the deletion of the system no longer try to use, so do not know what will bring bad experience. )
The way to upgrade the kernel of CentOS and Debian has been mentioned in the previous logs.
Features of Linux kernel development
Compared with applications in a user spaceProgramThere are many differences in development and kernel development. The most important differences include:
1) The C library cannot be accessed during kernel programming.
2) gnu c must be used for Kernel programming.
3) There is
Kernel-level thread and user-level thread, kernel-level thread user
When I wrote this blog these two days, I reviewed the operating system materials and encountered a problem that I did not understand before, that is, about kernel-level threads and user-level threads. After reading some documents, I will share my personal profile.
Threads have been implemented in
Linux kernel design and implementation (1)-Introduction to the kernel this section briefly introduces the basic concepts related to the kernel. Main content: single-core and micro-kernel version 1. single-core and micro-kernel www.2cto.com principle advantages and disadvanta
Linux Kernel development-Process Control and Linux kernel development process
This chapter mainly analyzes the definition, status, data structure, and other concepts of processes from the perspective of code.
Process Definition
A process is a running program and a dynamic executable entity. A program is a collection of code and data. A code is a static entity and can be used by multiple processes, for exam
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.