diff --git a/README.md b/README.md index f054109c..05153367 100644 --- a/README.md +++ b/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.