mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Re-extract the kernel patches as a series. Re-extract the u-boot patches as "git format-patch" command. Unified patch extraction makes it easier to work with patches.
43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
From ce6e8eec55a62d9e4cb5f5a767e50e9d0c2659ff Mon Sep 17 00:00:00 2001
|
|
From: James Deng <james.deng@spacemit.com>
|
|
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
|
|
|