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/evidence/x86efi/ident-bounds-20261104/hb.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 / evidence / x86efi / ident-bounds-20261104 / hb.sh` 18 lines ยท 1306 bytes Raw Blame History 1 #!/bin/sh 2 # hb.sh OMC SRC OUTDIR CPU [SMBIOS-ARG] : run.sh's boot() with a -cpu value and one -smbios value. 3 set -u 4 omc=$1 src=$2 d=$3 cpu=$4 smb=${5:-} 5 code=/usr/share/OVMF/OVMF_CODE_4M.fd vars=/usr/share/OVMF/OVMF_VARS_4M.fd 6 mkdir -p "$d" 7 "$omc" < "$src" > "$d/app.efi" 2> "$d/omc.err" || { echo "omc refused"; cat "$d/omc.err"; exit 1; } 8 cp "$vars" "$d/vars.fd" 9 dd if=/dev/zero of="$d/disk.img" bs=`1048576` count=16 2> /dev/null 10 mformat -i "$d/disk.img" :: && mmd -i "$d/disk.img" ::/EFI ::/EFI/BOOT && mcopy -i "$d/disk.img" "$d/app.efi" ::/EFI/BOOT/BOOTX64.EFI 11 timeout 60 nice -n 19 taskset -c 9 qemu-system-x86_64 -machine q35,smbios-entry-point-type=64 -cpu "$cpu" -m 512 -display none ${smb:+-smbios "$smb"} \ 12 -drive if=pflash,format=raw,readonly=on,file="$code" -drive if=pflash,format=raw,file="$d/vars.fd" \ 13 -device qemu-xhci,id=xhci -drive if=none,id=stick,format=raw,file="$d/disk.img" \ 14 -device usb-storage,bus=xhci.0,drive=stick -net none -serial file:"$d/serial.log" -no-reboot > "$d/qemu.log" 2>&1 15 rm -f "$d/disk.img" "$d/vars.fd" 16 echo "app.efi $(sha256sum "$d/app.efi" | cut -d' ' -f1)" 17 tr -d '\r' < "$d/serial.log" | awk '/^==B$/ { on = 1 } on { print }' | sed 's/\x1b\[[0-9;]*[A-Za-z]//g' 18 tr -d '\r' < "$d/serial.log" | grep -a 'failed to start' | sed 's/\x1b\[[0-9;]*[A-Za-z]//g'