Code Monkey home page Code Monkey logo

platform_bootloader_legacy's Introduction

The bootloader environment consists of a set of libraries that provide
various features and a couple small driver programs that build against
these libraries.  The libraries used come from three categories --
generic (containing code useful to any bootloader), architecture
(containing code useful to a specific cpu, system-on-chip, etc), and
board (containing code useful to a single specific device)

For the purpose of this discussion, we will involve the fictional
companies Outstanding Electronics Manufacturing (OEM) and Silicon
Engineering Management, Inc (SEMI).  OEM produces the quality Brick
mobile device using SEMI's 65002 ARM-based system-on-chip.

Common bootloader libraries and base architectures:

boot/include/boot                     headers
boot/libboot                          libboot.a
boot/libc                             libboot_c.a
boot/arch_armv6                       libboot_arch_armv6.a

Architecture-specific libraries for SEMI 65002 SOC:

partner/semi/boot/include/65002       headers
partner/semi/boot/arch_65002          liboot_arch_65002.a

Device-specific library for OEM Brick phone:

partner/oem/brick/product_config.mk   configuration
partner/oem/brick/boot                libboot_board_brick.a

The actual bootloader:

boot/bootloader                       bootloader


The product_config.mk defines three important build variables:

DEVICE_BOOTLOADER_LIBS := \
	libboot_board_brick.a \
	libboot_arch_65002.a \
	libboot_arch_armv6.a

DEVICE_BOOTLOADER_LINK_SCRIPT := \
	partner/semi/boot/boot.ld

DEVICE_BOOTLOADER_INIT := \
	partner/semi/boot/init.S

Which are used by the bootloader to specify which board and
architecture specific libraries to link against as well as what link
script and init.S to use

platform_bootloader_legacy's People

Contributors

swetland avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.