Model the A6 crypto, interrupt, USB, and platform blocks needed to boot SecureROM through iBSS into iBEC Recovery. Add local lab identity, IMG3, and APTicket tooling, patched macOS recovery utilities, UART and GDB access, and English end-user documentation.
21 lines
612 B
Bash
Executable File
21 lines
612 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set -eu
|
|
|
|
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
source_dir=$(CDPATH= cd -- "$script_dir/.." && pwd)
|
|
prefix=${A6_RECOVERY_PREFIX:-"$source_dir/build/limd-prefix"}
|
|
endpoint=${QEMU_USB_ENDPOINT:-127.0.0.1:26050}
|
|
binary="$prefix/bin/irecovery"
|
|
|
|
if [ ! -x "$binary" ]; then
|
|
echo "QEMU-enabled irecovery not found: $binary" >&2
|
|
echo "Run scripts/build-macos-recovery-tools.sh first." >&2
|
|
exit 1
|
|
fi
|
|
|
|
export LIBIRECOVERY_QEMU=$endpoint
|
|
export DYLD_LIBRARY_PATH="$prefix/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"
|
|
exec "$binary" "$@"
|