-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,47 +21,6 @@ run -all | |
|
||
If you have access to our internal servers, you can run `make nonfree-init` to fetch additional resources we cannot make publically accessible. Note that these are *not required* to use anything provided in this repository. | ||
|
||
## Linux image | ||
|
||
To build the Linux image for FPGA: | ||
```bash | ||
# Clone and build GCC, OpenSBI, U-Boot and Linux | ||
git clone [email protected]:pulp-platform/cva6-sdk.git --branch fix/cheshire | ||
cd cva6-sdk | ||
git submodule update --init --recursive | ||
make images | ||
# Link the output in the sw dir | ||
ln -s cva6-sdk/install64 sw/boot/install64 | ||
# Build the image at sw/boot/linux-[genesys2,vcu128].gpt.bin | ||
make BOARD=[genesys2,vcu128] chs-linux-img | ||
|
||
``` | ||
|
||
On Genesys2, you can now flash this image to your sd card (require sudo). | ||
|
||
```bash | ||
# Replace sdX by your SD card device | ||
dd if=sw/boot/cheshire-linux-genesys2.gpt.bin of=/dev/sdX | ||
``` | ||
|
||
On VCU128, you can now flash this image to the SPI using Vivado: | ||
|
||
```bash | ||
# Define XILINX_PORT, XILINX_HOST, FPGA_PATH to let Vivado find your FPGA | ||
# See defaults in xilinx.mk | ||
make chs-xil-flash BOARD=vcu128 MODE=batch | ||
``` | ||
|
||
## FPGA | ||
|
||
To build the bitstream for FPGA, initialize the repository with `make all` then run `make chs-xil-all` followed by desired arguments: | ||
|
||
* `BOARD=[genesys2,vcu128]`: select supported evaluation board (note `zcu102` is also supported but do not boot Linux as access to an SPI flash or an SD card is not implemented). | ||
* `INT-JTAG=[1,0]`: (only on vcu128) connect the debugger to the intenal JTAG chain (see BSCANE2 primitive) or to an external JTAG dongle (if 0). | ||
* `MODE=[batch,gui]`: open Vivado GUI or execute in shell. | ||
|
||
You can flash the bitstream from the GUI with `make chs-xil-gui` or directly in shell using `make chs-xil-program MODE=batch BOARD=[genesys2,vcu128]`. Here again you will need to define `XILINX_PORT`, `XILINX_HOST`, `FPGA_PATH` for your setup. At IIS, find default values in `carfield.mk`. | ||
|
||
## License | ||
|
||
Unless specified otherwise in the respective file headers, all code checked into this repository is made available under a permissive license. All hardware sources and tool scripts are licensed under the Solderpad Hardware License 0.51 (see `LICENSE`) with the exception of generated register file code (e.g. `hw/regs/*.sv`), which is generated by a fork of lowRISC's [`regtool`](https://github.com/lowRISC/opentitan/blob/master/util/regtool.py) and licensed under Apache 2.0. All software sources are licensed under Apache 2.0. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ chs-clean-deps: | |
###################### | ||
|
||
CHS_NONFREE_REMOTE ?= [email protected]:pulp-restricted/cheshire-nonfree.git | ||
CHS_NONFREE_COMMIT ?= f70c019 | ||
CHS_NONFREE_COMMIT ?= 4e562fc | ||
|
||
chs-nonfree-init: | ||
git clone $(CHS_NONFREE_REMOTE) $(CHS_ROOT)/nonfree | ||
|
@@ -162,7 +162,7 @@ CHS_SIM_ALL += $(CHS_ROOT)/target/sim/vsim/compile.cheshire_soc.tcl | |
############# | ||
|
||
include $(CHS_ROOT)/target/xilinx/xilinx.mk | ||
include $(CHS_XIL_DIR)/sim/simulate.mk | ||
include $(CHS_XIL_DIR)/sim/sim.mk | ||
CHS_XILINX_ALL += $(CHS_XIL_DIR)/scripts/add_sources.tcl | ||
CHS_LINUX_IMG += $(CHS_SW_DIR)/boot/linux-${BOARD}.gpt.bin | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters