mirror of
https://gitee.com/bianbu-linux/opensbi
synced 2025-04-18 20:14:45 -04:00
Update for v1.0.14
This commit is contained in:
parent
a26e37daae
commit
6cf0c8e6ed
1 changed files with 11 additions and 4 deletions
15
debian/opensbi-spacemit.postinst
vendored
15
debian/opensbi-spacemit.postinst
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue