Skip to content

Instantly share code, notes, and snippets.

View sami2316's full-sized avatar

Sami Ullah sami2316

View GitHub Profile
1. Resize the image (qemu machine must be powered off)
```
~/cheri/output/sdk/bin/qemu-img resize --shrink ~/cheri/output/cheribsd-morello-purecap.img +2G
```
2. Power On `./cheribuild.py run-morello-purecap
3. `gpart show <vtbd0>`
4. `gpart recover vtbd0`
5. `gpart show vtbd0` and notice the freespace available and partition number subject to being expandable
6. `gpart resize -i <partition No> -s <size> vtbd0`
7. `init 1` login in a single user mode
@sami2316
sami2316 / build.sh
Created February 17, 2021 06:26
XNU kernel compilation script
#! /bin/bash
#
# build_forall.sh
#
# A script that helps you build every opensource xnu from Yosemite to Mojave.
#
# Note: This process will OVERWRITE files in Xcode's MacOSX10.13.sdk. Make a backup of this directory first
# Note: Make sure to install correct version of Xcode(not Xcode command line tool!) or it'll not work
#