Fixing synoinfo DS2422+

Adding maxdisks addon
This commit is contained in:
Fabio Belavenuto
2022-07-07 20:49:13 -03:00
parent 958369c5cc
commit d48e9f9fb6
15 changed files with 20 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
ARPL_VERSION="0.1-alpha7"
ARPL_VERSION="0.1-alpha8"
# Define paths
TMP_PATH="/tmp"

View File

@@ -13,6 +13,8 @@ modules-notneeded: &modules-notneeded
- uhci_hcd
- mv14xx
synoinfo: &synoinfo
support_disk_compatibility: "no"
support_memory_compatibility: "no"
rss_server: "http://example.com/null.xml"
rss_server_ssl: "https://example.com/null.xml"
rss_server_v2: "https://example.com/autoupdate/v2/getList"

View File

@@ -62,18 +62,6 @@ while read f; do
(cd "${RAMDISK_PATH}" && patch -p1 < "${PATCH_PATH}/${f}") >>"${LOG_FILE}" 2>&1 || dieLog
done < <(readModelArray "${MODEL}" "builds.${BUILD}.patch")
# Temporary workaround
# LOADER_DISK="`blkid | grep 'LABEL="ARPL3"' | cut -d3 -f1`"
# BUS=`udevadm info --query property --name ${LOADER_DISK} | grep ID_BUS | cut -d= -f2`
# DT="`readModelKey "${MODEL}" "dt"`"
# if [ "${DT}" != "true" ]; then
# NUMPORTS=$((`ls /sys/class/scsi_host | wc -w`-1))
# [ "${BUS}" = "ata" ] && NUMPORTS=$((${NUMPORTS}-1))
# SYNOINFO["maxdisks"]=${NUMPORTS}
# INTPORTCFG="0x`printf "%x" "$((2**${NUMPORTS}-1))"`"
# SYNOINFO["internalportcfg"]="${INTPORTCFG}"
# fi
# Patch /etc/synoinfo.conf
echo -n "."
for KEY in ${!SYNOINFO[@]}; do
@@ -104,8 +92,11 @@ cp "${PATCH_PATH}/iosched-trampoline.sh" "${RAMDISK_PATH}/usr/sbin/modprobe"
# Addons
# Check if model needs Device-tree dynamic patch
DT="`readModelKey "${MODEL}" "dt"`"
[ "${DT}" = "true" ] && ADDONS['qjs-dtb']="" # Add system addon "qjs-dtb"
# Add system addon "qjs-dtb" or "maxdisks"
[ "${DT}" = "true" ] && ADDONS['qjs-dtb']="" || ADDONS['maxdisks']=""
ADDONS['misc']="" # Add system addon "misc"
ADDONS['acpid']="" # Add system addon "acpid"
mkdir -p "${RAMDISK_PATH}/addons"
echo -n "."
#/proc/sys/kernel/syno_install_flag

View File

@@ -1,5 +1,6 @@
version: 1
name: acpid
system: true
description: "Flexible and extensible daemon for delivering ACPI events"
available-for:
bromolow-3.10.108:

Binary file not shown.

View File

@@ -0,0 +1,7 @@
version: 1
name: maxdisks
system: true
description: "Adjust maxdisks and internalportcfg automatically"
all:
install-script: "install.sh"
copy: "all"