URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [examples/] [zephyr/] [_howto_build] - Rev 5
Compare with Previous | Blame | View Log
1. Create folder for Zephyr OSmkdir zephyr_150cd zephyr_1502. Clone repository (see https://www.zephyrproject.org/downloads)git clone https://gerrit.zephyrproject.org/r/zephyrcd zephyrgit checkout tags/v1.5.03. Set environment variable:export ZEPHYR_BASE=<your_path>/zephyr_150/zephyr4. Copy *.diff patch to $(ZEPHYR_BASE) and apply it:cp ../../riscv_vhdl/zephyr/v1.5.0-branch.diff .git apply v1.5.0-branch.diff5. Build 'shell' example and generate ROM-image for FPGA or Simulator (GCC must be installed):cd samples/shellmake ARCH=riscv64 CROSS_COMPILE=/home/<gcc_dir>/gnu-toolchain-rv64d/bin/riscv64-unknown-elf- BOARD=riscv_gnss 2>&1 | tee _err.logelf2raw64 outdir/zephyr.elf -h -f 262144 -l 8 -o fwimage.hex6. Copy fwimage.hex into <git_rep>/riscv_vhdl/rocket_soc/fw_imagesYour board is now udpated with the new firmware!INFO:Archives with patched Zephyr OS and others *.diff files are available here:http://gnss-sensor.com/index.php?LinkID=15
