aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / omega / allen / golden.sh
| 1 | #!/bin/sh |
| 2 | # External development fixture construction from frozen legacy byte layout. |
| 3 | set -eu |
| 4 | out=$1 |
| 5 | mkdir -p "$out" |
| 6 | dd if=/dev/zero of="$out/memory-golden.bin" bs=4096 count=1 status=none |
| 7 | printf 'AIENALM1\004\000\000\000\114\000\000\000\001\000\000\000\000\000\000\000' | dd of="$out/memory-golden.bin" conv=notrunc status=none |
| 8 | printf '\003' | dd of="$out/memory-golden.bin" bs=1 seek=64 conv=notrunc status=none |
| 9 | printf 'Allen' | dd of="$out/memory-golden.bin" bs=1 seek=104 conv=notrunc status=none |
| 10 | { |
| 11 | dd if="$out/memory-golden.bin" bs=1 count=32 status=none |
| 12 | dd if="$out/memory-golden.bin" bs=1 skip=64 count=76 status=none |
| 13 | } > "$out/hash-input.bin" |
| 14 | sha256sum "$out/hash-input.bin" | cut -d' ' -f1 | xxd -r -p | dd of="$out/memory-golden.bin" bs=1 seek=32 conv=notrunc status=none |