整理一下最近的笔记

博主近期专注于Linux内核移植的学习,记录下遇到的难点和学习过程,包括makefile的使用、定时器配置、结构体理解及IO操作。期待未来能逐一攻克这些知识点。
摘要由CSDN通过智能技术生成

[linux kernel porting] 

说实话,内核移植这块确实太深奥了,自己最近在搞移植,所以找了些资料看,很多自己不明白,当时做了笔记,希望以后可以一一搞懂吧;

 


/**********************************************************************************************************
*  @Description: linux内核移植相关源代码分析
*
*  @Author:    liyangth@gmail.com         
*    
*    @Changelog:
*    2007-05-30    LiYang    First Version
*
*    @FQA:
*    [0%]Q1:
*********************************************************************************************************
*/

Porting Linux

基本原则和方法:
1  理解OS中硬件相关的部分
1 .1Linux 硬件相关源码
1.1 .1ARM - specific files
|-- arch
|      |-- arm
|      |      |-- kernel      // - core kernel code;
|      |      |-- mm          // - memory management code;
|      |      |-- lib          // - ARM-specific or optimised internal library functions 
|      |      |                             (backtrace,memcpy, io functions, bit - twiddling etc);
|      |      |-- nwfpe and fastfpe      // - two different floating-point
|      |      |                                             implementations;
|      |      |-- boot                          // - the directory in which the final compiled
|      |      |                                         kernel  is  left and contains stuff  for  generating
|      |      |                                         compressed kernels;
|      |      |-- tools                  // - has scripts for autogenerating files, such
|      |      |                                  as  mach - types (see Registering a Machine ID);
|       |     |
|      |      |-- def - configs          // - contains the default configuration
|      |      |                                         files  for  each machine.
|      |      |
|      |      |-- mach - xxx                 // 具体的体系架构SOC的相关部分
|
|-- include
|      |-- asm - arm
|      |      |-- arch                  // - the link to the configured machine headers sub-
|      |      |                                 directory arch - XXX;
|      |      |-- hardware          // - headers for ARM-specific companion chips or
|      |      |                                         devices;
|      |      |-- mach                  // - generic interface definitions for things used by many
|      |      |                             machines (irq, dma, pci) and the machine description macros
|      |      |-- proc                  // - link to proc-armo or proc-armv appropriate for
|      |      |                                 configured machine
|      |      |-- proc - armo, and proc - armv  -   26  and  32 - bit versions of core
|      |      |                             processor - related headers.
|      |      |
|      |      |-- arch - xxx
|
|-- drivers


1.1 . 1 .1ARM - specific files  in  linux / arch / arm
    
2  理解所要移植的硬件
3  理解移植的关键部分




***************************************************************
注册机器 ID(Register Machine ID)
Name: 
< name of your architecture >
ArchDir: 
< name of include / asm - arm / arch -*  directory >
Type:
< MACH_TYPE_ *  macro name >
Description: 
< description of your architecture >
http:
// www.armlinux.org.uk/developer/machines/.
rmk@arm.linux.org.uk
Add info to linux
/ arch / arm / tools / mach -
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值