Update for v1.0.14

This commit is contained in:
James Deng 2024-08-31 14:23:34 +08:00
parent a26e37daae
commit 6cf0c8e6ed

View file

@ -31,9 +31,15 @@ configure)
OPENSBI_SEEK=0
;;
"/dev/nvme0n1"*)
OPENSBI=/dev/mtdblock0
# 以KB为单位
OPENSBI_SEEK=448
if [ ! -e "/dev/mtdblock4" ]; then
OPENSBI=/dev/mtdblock0
# 以KB为单位
OPENSBI_SEEK=448
else
OPENSBI=/dev/mtdblock4
# 以KB为单位
OPENSBI_SEEK=0
fi
;;
*)
echo "Unsupported root=$ROOT"
@ -56,8 +62,9 @@ configure)
done
# 此前已经做了所有检查
set -x
dd if=/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_dynamic.itb of=$OPENSBI seek=$OPENSBI_SEEK bs=1K && sync
set +x
;;
esac