1
0
Fork 0

Store machine state

riscv64-cartesi
server 2021-11-16 20:02:53 -07:00
parent 62ba4a4524
commit 9a51c05385
1 changed files with 14 additions and 2 deletions

View File

@ -46,13 +46,11 @@ genext2fs -b 51200 -d cartesi/img cartesi/stockfish.ext2
To run the disk images, using upstream rootfs:
```
cartesi-machine \
--ram-length=256Mi \
--flash-drive=label:stockfish,filename:cartesi/stockfish.ext2 \
--flash-drive=label:root,filename:/opt/cartesi/share/images/rootfs.ext2 \
-- /mnt/stockfish/stockfish.sh
```
# Emulator Output
@ -101,6 +99,20 @@ Halted
Cycles: 3142947347
```
# Store Machine State
Instead of fully booting, a RAM image can be loaded and the
CPU set to a cycle, such as 3142947347.
```
cartesi-machine \
--max-mcycle=3142947347 \
--store=cartesi/stockfish-ram \
--ram-length=256Mi \
--flash-drive=label:stockfish,filename:cartesi/stockfish.ext2 \
--flash-drive=label:root,filename:/opt/cartesi/share/images/rootfs.ext2 \
-- /mnt/stockfish/stockfish.sh
```
# TODO
* Make image of RAM with stockfish already run once and loaded.