Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/nki/setup-oracle.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / nki / setup-oracle.sh` 43 lines ยท 3425 bytes Raw Blame History 1 #!/bin/sh 2 # Prepare the NKI simulator oracle for seed/nki/gate-irnki.sh in DIR (user files only, no 3 # root, no account). Interop oracle, not Omega-native; nothing here generates kernels. 4 # The nki wheel is published for x86_64 only, so on AArch64 it runs as an x86_64 CPython 5 # under qemu-user with an x86_64 glibc sysroot. Every download is pinned by sha256. 6 # Host tools used: curl, sha256sum, tar, dpkg-deb, unzip. 7 # seed/nki/setup-oracle.sh DIR then: NKI_ORACLE_DIR=DIR seed/nki/gate-irnki.sh 8 set -eu 9 [ $# -eq 1 ] || { echo 'usage: setup-oracle.sh DIR' >&2; exit 2; } 10 D=$1 11 mkdir -p "$D/dl" 12 D=$(cd "$D" && pwd) 13 U=http://archive.ubuntu.com/ubuntu/pool/main 14 PY=https://files.pythonhosted.org/packages 15 # sha256 file url (licences: README.md, "Oracle stack") 16 cat > "$D/dl/pins" <&2; exit 1; } 33 mv "$f.part" "$f" 34 done < "$D/dl/pins" 35 rm -rf "$D/python" "$D/qemu" "$D/sysroot" "$D/site" 36 tar -xzf "$D/dl/cpython.tar.gz" -C "$D" 37 dpkg-deb -x "$D/dl/qemu-user.deb" "$D/qemu" 38 mkdir -p "$D/sysroot" "$D/site" 39 for p in libc6 libgcc-s1 libstdcxx6 zlib1g; do dpkg-deb -x "$D/dl/$p.deb" "$D/sysroot"; done 40 [ -e "$D/sysroot/lib64" ] || ln -s usr/lib64 "$D/sysroot/lib64" 41 [ -e "$D/sysroot/lib" ] || ln -s usr/lib "$D/sysroot/lib" 42 for w in numpy ml_dtypes typing_extensions nki; do unzip -q -o "$D/dl/$w.whl" -d "$D/site"; done 43 echo "setup-oracle: ready; run NKI_ORACLE_DIR=$D seed/nki/gate-irnki.sh"