interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / golden.sh

14 lines · 784 bytes Raw Blame History
1#!/bin/sh
2# External development fixture construction from frozen legacy byte layout.
3set -eu
4out=$1
5mkdir -p "$out"
6dd if=/dev/zero of="$out/memory-golden.bin" bs=4096 count=1 status=none
7printf '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
8printf '\003' | dd of="$out/memory-golden.bin" bs=1 seek=64 conv=notrunc status=none
9printf '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"
14sha256sum "$out/hash-input.bin" | cut -d' ' -f1 | xxd -r -p | dd of="$out/memory-golden.bin" bs=1 seek=32 conv=notrunc status=none