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.
47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From 6cf0c8e6ed09841cdbff7b3788efa608ac5b08aa Mon Sep 17 00:00:00 2001
|
|
From: James Deng <james.deng@spacemit.com>
|
|
Date: Sat, 31 Aug 2024 14:23:34 +0800
|
|
Subject: Update for v1.0.14
|
|
|
|
---
|
|
debian/opensbi-spacemit.postinst | 15 +++++++++++----
|
|
1 file changed, 11 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/debian/opensbi-spacemit.postinst b/debian/opensbi-spacemit.postinst
|
|
index dce7154ac8f4..0362a598a14b 100755
|
|
--- a/debian/opensbi-spacemit.postinst
|
|
+++ b/debian/opensbi-spacemit.postinst
|
|
@@ -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
|
|
|
|
--
|
|
2.35.3
|
|
|