diff --git a/tools/rpi-otp-private-key b/tools/rpi-otp-private-key index 68e8013..5d5a10f 100755 --- a/tools/rpi-otp-private-key +++ b/tools/rpi-otp-private-key @@ -50,8 +50,8 @@ check_key_set() { } read_key() { - out=READ_KEY="$(vcmailbox 0x00030081 $((8 + $ROW_COUNT * 4)) $((8 + $ROW_COUNT * 4)) $ROW_OFFSET $ROW_COUNT 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)" || die "Failed to read the current key from OTP" - READ_KEY="$(echo "${out}" | sed 's/0x//g' | awk -v last=$((8 + $ROW_COUNT)) '{for(i=8;i