Caplifive-QEMU is an emulator of a Caplifive system based on QEMU.
To build the entire system using Caplifive-Buildroot:
-
Run the following script:
./build.sh
-
Choose your build environment (when prompted):
- Docker Build: Enter
1
- Local Build (Debian-based machine): Enter
2
- Docker Build: Enter
Note: To interact with the Docker image:
docker run -it caplifive-qemu bash
Option 1: Local Build (Debian-based Machine)
./local_build.sh
Option 2: Docker Image Build
docker build -t <tag> .
After a successful build, use the following scripts to start or debug Caplifive-QEMU.
- Interact with the Docker Image (if using the docker installation method):
docker run -it <tag> bash
-
Navigate to the
CAPSTONE_QEMU
directory (inside the container if using Docker). -
Then you can run these scripts:
# run caplifive-qemu
./start.sh
# debug caplifive-qemu with gdb
./debug.sh
# debug linux running on caplifive-qemu with gdb
./gdb.sh
- To run the case studies, follow the steps in the Caplifive-Buildroot repository
- Ensure you're in the correct directory when executing the scripts, especially if running within a Docker container.
- Customize the Docker image tag during build as needed (inside the respective images as well).
- If you are expecting a successful build using the build scripts, your workspace would be organized as follows:
workspace/
├── capstone-c/
├── caplifive-qemu/
│ ├── start.sh
│ ├── debug.sh
│ ├── gdb.sh
│ ├── build.sh
│ ├── local_build.sh
│ └── (other files)
└── caplifive-buildroot/