less ram, smaller disk
parent
98b2d14488
commit
62ba4a4524
13
README.md
13
README.md
|
@ -4,7 +4,8 @@ stockfish to run under the Cartesi machine emulator.
|
|||
|
||||
# Setup Cartesi SDK
|
||||
Build using Cartesi GCC. I just copied them from the docker build
|
||||
and put them in my path (outside of the docker).
|
||||
and put them in my path (outside of the docker). It's probably
|
||||
easiest to build in the SDK docker.
|
||||
|
||||
```
|
||||
git clone --recursive https://github.com/cartesi/machine-emulator-sdk
|
||||
|
@ -38,18 +39,16 @@ cd ..
|
|||
cp -p src/stockfish cartesi/img/stockfish
|
||||
|
||||
# Make 64 megabyte ext2 disk image with stockfish and shell script
|
||||
genext2fs -b 65536 -d cartesi/img cartesi/stockfish.ext2
|
||||
genext2fs -b 51200 -d cartesi/img cartesi/stockfish.ext2
|
||||
```
|
||||
|
||||
# Run Stockfish in Emulator
|
||||
To run the disk images, using upstream rootfs:
|
||||
|
||||
```
|
||||
# XXX too much memory, but default 64 megs isn't enough.
|
||||
# Lower it & test.
|
||||
|
||||
cartesi-machine \
|
||||
--ram-length=512Mi \
|
||||
--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
|
||||
|
@ -57,7 +56,7 @@ cartesi-machine \
|
|||
```
|
||||
|
||||
# Emulator Output
|
||||
This takes "awhile" to run:
|
||||
This takes ~3 minutes to run:
|
||||
|
||||
```
|
||||
.
|
||||
|
@ -106,6 +105,8 @@ Cycles: 3142947347
|
|||
|
||||
* Make image of RAM with stockfish already run once and loaded.
|
||||
|
||||
* Fix tests.
|
||||
|
||||
# Upstream
|
||||
See:
|
||||
|
||||
|
|
Loading…
Reference in New Issue