Giter Club home page Giter Club logo

l-loader's Introduction

Copyright (c) 2017 Linaro Limited

The l-loader is a 32 bit executable that transitions the default processor state to 64 bit mode and boots the ARM Trusted Firmware.

It complies with platform's BootROM requirements to support booting the Poplar board

This is achieved via encoding values as well as binaries at pre-defined locations in the program file.

Requirements:

  1. BootROM shall receive the PLL/DDR/regulator settings from l-loader

  1. BootROM shall receive the size of the binary to boot as well as the expected RAM location to boot it from.

BootROM platform initialization

The basic platform initialization is encoded in a number of pre-compiled binaries included at certain locations in l-loader

  • AUXCODE.img
  • BOOT_[0..2].reg

The location (i.e., offset relative to the base of the TEXT segment) of the AUXCODE is defined by the address stored at offset CONFIG_AUXCODE_AREA_POS.
The location of BOOT_[0..2].reg blocks are defined by the address stored at offset CONFIG_PARAM_START_ADDR_POS.

The boot process.

Once the BootROM has executed the AUXCODE initialization binary, it loads the rest of the file in DDR for execution.

The location in DDR where the binary shall be placed is written at CONFIG_BOOT_STORE_ADDR_POS and its value defined by CONFIG_BOOT_STORE_ADDR_VAL.

The size of the binary that shall be copied to DDR needs to be placed at CONFIG_TOTAL_BOOT_AREA_LEN_POS.

ROM then jumps to the offset specified in CONFIG_BOOT_ENTRY_POS, which contains the instruction to branch to; l-loader then executes a warm reboot into 64bit mode to start.S in the atf.

Compilation

  • pull and build the ATF:

    $ git clone https://github.com/96boards-poplar/arm-trusted-firmware.git
    $ cd arm-trusted-firmware
    $ make CROSS_COMPILE=aarch64-linux-gnu- all fip
    SPD=none BL33=~/poplar/bin/u-boot.bin DEBUG=1 PLAT=poplar <br>

  • copy the ATF (bl1.bin, fip.bin) to l-loader/atf/

  • build l-loader:

    $ cd l-loader
    $ make clean
    $ make

l-loader's People

Contributors

alexelder avatar shawnguo2 avatar petegriffin avatar daniel-thompson avatar ldts avatar

Watchers

James Cloos avatar

Forkers

windxixi chenjr15

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.