添加 v1000nk 平台支持

This commit is contained in:
Ing 2025-04-24 01:29:54 +08:00
parent a98993613e
commit 7d96f04fe3
4 changed files with 14 additions and 5 deletions

View File

@ -238,7 +238,7 @@ fi
# CMDLINE['modprobe.blacklist']+="sdhci,sdhci_pci,sdhci_acpi"
# fi
# fi
if [ "${DT}" = "true" ] && ! echo "epyc7002 purley broadwellnkv2" | grep -wq "${PLATFORM}"; then
if [ "${DT}" = "true" ] && ! echo "v1000nk epyc7002 purley broadwellnkv2" | grep -wq "${PLATFORM}"; then
if ! echo "${CMDLINE['modprobe.blacklist']}" | grep -q "mpt3sas"; then
[ ! "${CMDLINE['modprobe.blacklist']}" = "" ] && CMDLINE['modprobe.blacklist']+=","
CMDLINE['modprobe.blacklist']+="mpt3sas"

View File

@ -150,8 +150,9 @@ function modelMenu() {
while true; do
rm -f "${TMP_PATH}/menu"
FLGNEX=0
IGPU1L=(apollolake geminilake epyc7002)
IGPU2L=(epyc7002)
IGPU1L=(apollolake geminilake v1000nk epyc7002)
IGPU2L=(v1000nk epyc7002)
KVER5L=(v1000nk epyc7002)
IGPUID="$(lspci -nd ::300 2>/dev/null | grep "8086" | cut -d' ' -f3 | sed 's/://g')"
NVMEMS=(DS918+ RS1619xs+ DS419+ DS1019+ DS719+ DS1621xs+)
NVMEMD=$(find /sys/devices -type d -name nvme | awk -F'/' '{print NF}' | sort -n | tail -n1)
@ -176,7 +177,7 @@ function modelMenu() {
[ -z "${N}" ] && [ ${hasNVME} -ne 0 ] && [ "${DT}" = "DT" ] && N="N"
[ -z "${N}" ] && [ ${hasNVME} -eq 2 ] && echo "${NVMEMS[@]}" | grep -wq "${M}" && N="N"
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && [ ! "${DT}" = "DT" ] && H="H"
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && echo "epyc7002" | grep -wq "${A}" && H="H"
[ -z "${H}" ] && [ ${hasHBA} -eq 1 ] && echo "${KVER5L[@]}" | grep -wq "${A}" && H="H"
[ ${COMPATIBLE} -eq 1 ] && printf "%s \"\Zb%-14s %-2s %-3s\Zn\" " "${M}" "${A}" "${DT}" "${G}${N}${H}" >>"${TMP_PATH}/menu"
done <"${TMP_PATH}/modellist"
[ ${FLGNEX} -eq 1 ] && echo "f \"\Z1$(TEXT "Disable flags restriction")\Zn\"" >>"${TMP_PATH}/menu"

View File

@ -107,6 +107,12 @@ platforms:
dt: true
synoinfo: *synoinfo
productvers: *productvers4
v1000nk:
dt: true
synoinfo:
<<: *synoinfo
netif_seq_by_dts: "no"
productvers: *productvers5
epyc7002:
dt: true
synoinfo:

View File

@ -243,7 +243,9 @@ for N in $(seq 0 7); do
done
# issues/313
if [ "${PLATFORM}" = "epyc7002" ]; then
if [ "$(echo "${KVER:-4}" | cut -d'.' -f1)" -lt 5 ]; then
:
else
sed -i 's#/dev/console#/var/log/lrc#g' "${RAMDISK_PATH}/usr/bin/busybox"
sed -i '/^echo "START/a \\nmknod -m 0666 /dev/console c 1 3' "${RAMDISK_PATH}/linuxrc.syno"
fi