载板主撑软件包(bootloader部分)

载板主撑软件包(bootloader部分)

译自:《 Embedded Linux System Design and Development 》by P. Raghavan等
刘建文略译( http://blog.csdn.net/keminlau

KEY:BSP HAL 嵌入式 Linux

载板主撑软件包(Board Support Package)

A BSP or “Board Support Package” is the set of software used to initialize the hardware devices on the board and implement the board-specific routines that can be used by the kernel and device drivers alike.

BSP is thus a hardware abstraction layer gluing hardware to the OS by hiding the details of the processor and the board. The BSP hides the board- and CPU-specific details from the rest of the OS, so portability of drivers across multiple boards and CPUs becomes extremely easy. Another term that is often used instead of BSP is the Hardware Abstraction Layer or the HAL.

载板主撑软件包(Board Support Package)是指一集负责初始化硬件载板上的设备和封装硬件相关细节为操作系统提供高层接口的程序。有了BSP,操作系统(包括硬件驱动)有一定的独 立性,从而在不同的硬件平台间移植变得更容易。BSP与常见HAL有类似的功能和角色,但不是完全一样。

 

KEMIN:应该把BSP严格分为两部分,一部分只涉及硬件的初始化,另一部分是硬件底层功能的封装。为什么要这样,因为,前者只与移植任务相关,与操作系统开发(驱动开发)无关,而后者除了有与移植有关的任务,更多是在构建一个[ 系统级应用开发框架 ],这个框架其实是一组抽象接口, 操作系统开发者了解组抽象接口的抽象语义即可作来,但对这些接口 的实现原理有更深入的理解,则更有开发效率。(original:http://blog.csdn.net/keminlau/archive/2009/12/20/5045121.aspx)

BSP两个主要部分

1. The microprocessor support: Linux has wide support for all the leading processors in the embedded market such as MIPS, ARM, and soon the PowerPC.

2. The board-specific routines: A typical HAL for the board hardware will include:

  • a. Bootloader support
  • b. Memory map support
  • c. System timers
  • d. Interrupt controller support
  • e. Real-Time Clock (RTC)
  • f. Serial support (debug and console)
  • g. Bus support
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值