Store machine state
parent
62ba4a4524
commit
9a51c05385
16
README.md
16
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue