Giter VIP home page Giter VIP logo

zynq-mkbootimage's Introduction

Zynq mkbootimage

This is an open-source replacement for the Xilinx bootgen application.
It parses a .bif file and creates a Zynq boot image in .bin format.

It is written entirely in C.

Required C libraries: pcre, libelf.

To build this application run:
make

To use it, type in:
./mkbootimage [--zynqmp|-u] <input_bif_file> <output_bin_file>

Zynq Support:
Currently it supports creating boot image containing fsbl, bitstream,
u-boot, and linux related binary files.

For loading linux related images, both the [load] and the [offset] attributes
are supported.
As opposed to the original bootgen, the file extensions are not required.

For example the following .bif file:

the_ROM_image:
{
  [bootloader]fsbl.elf
  fpga.bit
  u-boot.elf
  [load=0x2a00000]devicetree.dtb
  [load=0x2000000]uramdisk
  [load=0x3000000]uImage
}

Used as follows:
./mkbootimage boot.bif boot.bin

will generate a bin image which can be used in u-boot, as follows:
bootm 0x3000000 0x2000000 0x2a00000

Zynq Ultrascale+ support:
Currently it supports creating boot image containing fsbl, bitstream,
u-boot and the arm trusted software.
Linux related images are not yet supported.

For example the following .bif file:

the_ROM_image:
{
  [fsbl_config] a53_x64
  [bootloader] fsbl.elf
  [destination_device=pl] fpga.bit
  [, destination_cpu=a53-0, exception_level=el-2] bl31.elf
  [, destination_cpu=a53-0, exception_level=el-2] u-boot.elf
}

Used as follows:
./mkbootimage --zynqmp boot.bif boot.bin

will generate a bin image, which can be used to successfully boot a Zynq
Ultrascale+ machine.

Encryption certificates are not supported.

zynq-mkbootimage's People

Contributors

kgugala avatar tgorochowik avatar willplatts avatar

Watchers

 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.