From ce6e8eec55a62d9e4cb5f5a767e50e9d0c2659ff Mon Sep 17 00:00:00 2001 From: James Deng Date: Thu, 30 May 2024 23:19:43 +0800 Subject: Update for v1.0 --- debian/opensbi-spacemit.postinst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/opensbi-spacemit.postinst b/debian/opensbi-spacemit.postinst index 1f6feca80674..9ce082ef548b 100755 --- a/debian/opensbi-spacemit.postinst +++ b/debian/opensbi-spacemit.postinst @@ -22,9 +22,16 @@ configure) case $ROOT in "/dev/mmcblk0"*) OPENSBI=/dev/mmcblk0p3 + OPENSBI_SEEK=0 ;; "/dev/mmcblk2"*) OPENSBI=/dev/mmcblk2p3 + OPENSBI_SEEK=0 + ;; + "/dev/nvme0n1"*) + OPENSBI=/dev/mtdblock0 + # 以KB为单位 + OPENSBI_SEEK=448 ;; *) echo "Unsupported root=$ROOT" @@ -37,7 +44,7 @@ configure) fi if [ -n "$target" ] && [ -e $OPENSBI ]; then - dd if=/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_dynamic.itb of=$OPENSBI bs=1 && sync + dd if=/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_dynamic.itb of=$OPENSBI seek=$OPENSBI_SEEK bs=1K && sync fi ;; esac -- 2.35.3