Giter Club home page Giter Club logo

fiptool's Introduction

FIP Generator for Milk-V Series Board

This is a Python-based firmware image package (FIP) generator specifically designed for the Milk-V series board.

Build

  1. Build U-Boot

Take Milk-V Duo as example:

cd <Your U-Boot Path>
make milkv_duo_defconfig
make

After compilation, the u-boot.bin and u-boot.dtb file will be generated.

  1. Build OpenSBI
cd <Your OpenSBI Path>
make PLATFORM=generic FW_FDT_PATH=<Your U-Boot Path>/u-boot.dtb

After compilation, the fw_dynamic.bin file will be generated.

  1. (Optional) Build RTOS

Choose any RTOS, and after compilation, a bin file will be generated.

  1. Pack fip.bin

For Milk-V Duo with CV1800B SoC, use cv180x.bin under fsbl folder as its firt stage bootloader, and for Milk-V Duo256M with SG2002 SoC, use cv181x.bin instead.

./fiptool \
    --fsbl data/fsbl/cv180x.bin \
    --opensbi <Your OpenSBI Path>/fw_dynamic.bin \
    --uboot <Your U-Boot Path>/u-boot.bin \
    --rtos <Any RTOS.bin>

or

Build fip.bin using Makefile, select according to board's memory size.

make BOARD=64M (or 256M)

Usage

  1. Place the generated fip.bin file into the FAT partition of the SD card.
  2. Insert the SD card into the board and power it on.

fiptool's People

Contributors

seashell11234455 avatar dlan17 avatar

Stargazers

jason avatar Jevin Sweval avatar

Watchers

Jevin Sweval avatar  avatar HarmonyHu avatar  avatar jason avatar

Forkers

wigyori

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.