Testing SATA DoM

This commit is contained in:
Fabio Belavenuto 2022-07-07 12:48:02 -03:00
parent 07168bd574
commit b70b65c0c6
12 changed files with 32 additions and 8 deletions

View File

@ -75,10 +75,13 @@ EFI_BUG="`readModelKey "${MODEL}" "builds.${BUILD}.efi-bug"`"
LOADER_DISK="`blkid | grep 'LABEL="ARPL3"' | cut -d3 -f1`" LOADER_DISK="`blkid | grep 'LABEL="ARPL3"' | cut -d3 -f1`"
BUS=`udevadm info --query property --name ${LOADER_DISK} | grep ID_BUS | cut -d= -f2` BUS=`udevadm info --query property --name ${LOADER_DISK} | grep ID_BUS | cut -d= -f2`
# Read SATADoM type
DOM="`readModelKey "${MODEL}" "dom"`"
# Prepare command line # Prepare command line
CMDLINE_LINE="" CMDLINE_LINE=""
[ ${EFI} -eq 1 ] && CMDLINE_LINE+="withefi " [ ${EFI} -eq 1 ] && CMDLINE_LINE+="withefi "
[ "${BUS}" = "ata" ] && CMDLINE_LINE+="synoboot_satadom=1 " [ "${BUS}" = "ata" ] && CMDLINE_LINE+="synoboot_satadom=${DOM} "
CMDLINE_LINE+="console=ttyS0,115200n8 earlyprintk log_buf_len=32M earlycon=uart8250,io,0x3f8,115200n8 elevator=elevator root=/dev/md0 loglevel=15" CMDLINE_LINE+="console=ttyS0,115200n8 earlyprintk log_buf_len=32M earlycon=uart8250,io,0x3f8,115200n8 elevator=elevator root=/dev/md0 loglevel=15"
for KEY in ${!CMDLINE[@]}; do for KEY in ${!CMDLINE[@]}; do
VALUE="${CMDLINE[${KEY}]}" VALUE="${CMDLINE[${KEY}]}"
@ -92,6 +95,23 @@ CMDLINE_LINE=`echo ${CMDLINE_LINE} | sed 's/>/\\\\>/g'`
echo -e "Model: \033[1;36m${MODEL}\033[0m" echo -e "Model: \033[1;36m${MODEL}\033[0m"
echo -e "Build: \033[1;36m${BUILD}\033[0m" echo -e "Build: \033[1;36m${BUILD}\033[0m"
echo -e "Cmdline:\n\033[1;36m${CMDLINE_LINE}\033[0m" echo -e "Cmdline:\n\033[1;36m${CMDLINE_LINE}\033[0m"
# Wait for an IP
COUNT=0
echo -n "IP: "
while true; do
IP=`ip route get 1.1.1.1 2>/dev/null | awk '{print$7}'`
if [ -n "${IP}" ]; then
echo -e "\033[1;32m${IP}\033[0m"
break
elif [ ${COUNT} -eq 8 ]; then
echo -e "\033[1;31mERROR\033[0m"
break
fi
COUNT=$((${COUNT}+1))
sleep 1
done
echo -e "\033[1;37mLoading DSM kernel...\033[0m" echo -e "\033[1;37mLoading DSM kernel...\033[0m"
# Executes DSM kernel via KEXEC # Executes DSM kernel via KEXEC

View File

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

View File

@ -36,6 +36,7 @@ cmdline: &cmdline
syno_ttyS0: "serial,0x3f8" syno_ttyS0: "serial,0x3f8"
syno_ttyS1: "serial,0x2f8" syno_ttyS1: "serial,0x2f8"
platform: "v1000" platform: "v1000"
dom: 2
serial: serial:
prefix: prefix:
- "2080" - "2080"

View File

@ -31,6 +31,7 @@ cmdline: &cmdline
syno_ttyS0: "serial,0x3f8" syno_ttyS0: "serial,0x3f8"
syno_ttyS1: "serial,0x2f8" syno_ttyS1: "serial,0x2f8"
platform: "v1000" platform: "v1000"
dom: 2
serial: serial:
prefix: prefix:
- "0000" - "0000"

View File

@ -25,7 +25,6 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "bromolow" platform: "bromolow"
serial: serial:
prefix: prefix:
@ -36,6 +35,7 @@ serial:
middle: "LWN" middle: "LWN"
suffix: "numeric" suffix: "numeric"
disks: 12 disks: 12
dom: 1
builds: builds:
42218: 42218:
ver: "7.0.1" ver: "7.0.1"

View File

@ -29,8 +29,8 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "broadwell" platform: "broadwell"
dom: 1
serial: serial:
prefix: prefix:
- "1130" - "1130"

View File

@ -36,8 +36,8 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "broadwellnk" platform: "broadwellnk"
dom: 1
serial: serial:
prefix: prefix:
- "2030" - "2030"

View File

@ -29,8 +29,8 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "apollolake" platform: "apollolake"
dom: 2
serial: serial:
prefix: prefix:
- "1780" - "1780"

View File

@ -25,6 +25,7 @@ cmdline: &cmdline
syno_ttyS1: "serial,0x2f8" syno_ttyS1: "serial,0x2f8"
vender_format_version: 2 vender_format_version: 2
platform: "geminilake" platform: "geminilake"
dom: 2
dt: true dt: true
serial: serial:
prefix: prefix:

View File

@ -34,6 +34,7 @@ cmdline: &cmdline
syno_ttyS0: "serial,0x3f8" syno_ttyS0: "serial,0x3f8"
syno_ttyS1: "serial,0x2f8" syno_ttyS1: "serial,0x2f8"
platform: "geminilake" platform: "geminilake"
dom: 2
serial: serial:
prefix: prefix:
- "2030" - "2030"

View File

@ -29,8 +29,8 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "denverton" platform: "denverton"
dom: 2
serial: serial:
prefix: prefix:
- "2030" - "2030"

View File

@ -30,8 +30,8 @@ cmdline: &cmdline
vender_format_version: 2 vender_format_version: 2
syno_port_thaw: 1 syno_port_thaw: 1
syno_hdd_detect: 0 syno_hdd_detect: 0
platform: "broadwellnk" platform: "broadwellnk"
dom: 1
serial: serial:
prefix: prefix:
- "0000" - "0000"