Skip to content

Board template for building Zephyr RTOS for SiFive Freedom E-Series products

License

Notifications You must be signed in to change notification settings

isabella232/zephyr-sifive-freedom-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zephyr SiFive Freedom Board Template

This repository contains a template for automatically porting Zephyr RTOS to a SiFive Freedom E-Series board based on that board's DTS file.

How to use

  1. Choose a location for storing custom board configurations. We'll refer to this directory as <BOARD_DIRECTORY>
  2. git clone https://github.com/sifive/zephyr-sifive-freedom-template.git <YOUR_BOARD_NAME>
  3. cd <YOUR_BOARD_NAME>
  4. Copy your DTS file into the current directory
  5. ./customize_board.sh
  6. Select your desired ROM Boot address

customize_board.sh is idempotent, so feel free to re-run it as many times as you like.

To build the hello_world sample project

  1. source /opt/zephyr/<ZEPHYR_VERSION>/zephyr-env.sh
  2. cd /opt/zephyr/<ZEPHYR_VERSION>/samples/hello_world
  3. mkdir build && cd build
  4. cmake -DBOARD=<YOUR_BOARD_NAME> -DBOARD_ROOT=<BOARD_DIRECTORY> ..
  5. make -j$(nproc)
  6. The output binary is in zephyr/zephyr.elf

To Clean/Reset

  1. git clean -dfx will reset the template to a clean state

About

Board template for building Zephyr RTOS for SiFive Freedom E-Series products

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 62.6%
  • Shell 35.3%
  • CMake 2.1%