-
Notifications
You must be signed in to change notification settings - Fork 657
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
1 parent
73efe72
commit 4ad5f90
Showing
5 changed files
with
49 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# assuming you have env.sh sourced | ||
|
||
CY_DIR=$(git rev-parse --show-toplevel) | ||
|
||
# need nodisk version | ||
marshal -v -d build $CY_DIR/software/firemarshal/example-workloads/linux-hello.yaml | ||
FM_WORKLOAD_OUTPUT=$CY_DIR/software/firemarshal/images/firechip/linux-hello/linux-hello-bin-nodisk | ||
|
||
## optional: verify it boots with spike (spike will use it's own uart for output) | ||
#spike --pc=0x80000000 $FM_WORKLOAD_OUTPUT | ||
|
||
# create dts to checkpoint with in spike | ||
pushd sims/vcs | ||
make CONFIG=dmiCheckpointingRocketConfig verilog | ||
CHECKPOINT_DTS=$CY_DIR/sims/vcs/generated-src/chipyard.harness.TestHarness.dmiCheckpointingRocketConfig/chipyard.harness.TestHarness.dmiCheckpointingRocketConfig.dts | ||
popd | ||
|
||
# 0x8013 is the instruction "trigger" given in the workload | ||
./scripts/generate-ckpt.sh -v -b $FM_WORKLOAD_OUTPUT -t 0x8013 -s $CHECKPOINT_DTS | ||
LOADARCH_PATH=$CY_DIR/linux-hello-bin-nodisk.0x80000000.0x8013.0.customdts.loadarch | ||
|
||
# make sure you can boot into it in target SW RTL simulation | ||
pushd sims/vcs | ||
make CONFIG=dmiCheckpointingRocketConfig run-binary LOADARCH=$LOADARCH_PATH | ||
popd | ||
|
||
echo "Successful checkpoint!" |
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
Submodule firemarshal
updated
4 files
+8 −0 | example-workloads/linux-hello.yaml | |
+2 −0 | example-workloads/linux-hello/.gitignore | |
+8 −0 | example-workloads/linux-hello/build.sh | |
+7 −0 | example-workloads/linux-hello/hello.c |