信息中心显示的处理器的型号
下载cpuinfo上传至downloads目录
sudo -i
/volume1/downloads/ch_cpuinfo_3.3.1
tar xvf ch_cpuinfo.tar
./ch_cpuinfo
装载机信息和背景
RedPill 是使 DSM 7.x 能够在非群晖科技硬件上运行的核心技术。本文旨在作为配置的权威教程/参考@pocopico的 TinyCore RedPill (TCRP) loader。它解释了如何在裸机上安装 TCRP,即使用 DSM 作为 NAS 硬件上的唯一操作系统。此处提供了使用 ESXi 虚拟机管理程序安装 TCRP 的教程。教程和指南论坛中还有其他虚拟机管理程序教程。
TCRP 使用两步过程。首先,一个 Linux 操作系统(微小核心)引导并评估 NAS 硬件配置。因此,在开始 TCRP 安装之前,最好安装您计划使用的硬件(特别是磁盘控制器和网卡)。
然后,创建一个个性化的装载机(红丸)。此加载程序用于安装和运行 DSM。之后,您可以在使用 RedPill 启动 DSM 和引导回 TinyCore 之间进行切换,以根据需要调整和重建加载器。
需要基本的 Linux 命令行技能才能完成安装。本教程提供了所需命令的示例,但确切的语法和大小写至关重要。如果不熟悉,请研究并查看以下最小命令列表:
ls显示当前目录
cat中的文件<文件>显示指定文件
的内容pwd显示当前目录名称
cd<目录路径>更改为指定的目录(与Windows的规则相同,除了用正斜杠而不是反斜杠)。在没有参数的情况下,它返回到“主”TCRP 目录
vi <文件>文件编辑器,以便在需要时手动编辑配置文件
持续发展
本教程的维护是为了与 pocopico 稳定存储库保持一致。由于TCRP是完全开源的,任何人都可以分叉自己的存储库并为开发做出贡献,pocopico现在维护一个单独的开发存储库。由于最佳功能和想法已经过全面审查和测试,因此随着时间的推移,它们可能会合并到稳定的存储库中。
如果使用 pocopico 稳定存储库以外的存储库、脚本或 shell,则加载程序的行为可能完全不同,本教程中的说明和故障排除步骤可能不再适用。在开源社区中,您可以使用所需的任何开发资源,但您需要额外负责在系统上理解,审查和测试该代码。
迁移
请勿尝试使用“控制面板”从 6.x 升级到 7.x。
在迁移之前完成以下任务:
- 通读此参考资料
- 卸下 6.x 加载器 USB 和阵列磁盘(确保标记其顺序)
- 在新的 USB 上构建 TCRP 加载程序以练习和确认构建过程
(使用将用于升级的所有相同 NAS 硬件) - 试用版安装 DSM 7.x 到测试硬盘/硬盘
- 验证 DSM 是否能与所有 NAS 硬件完美配合
- 卸下测试 USB 和硬盘/标清,并恢复 6.x 加载程序 USB 和阵列磁盘
- 在尝试就地升级之前验证保存在其他位置的所有数据的备份
实际的迁移过程很简单:
- 删除任何现有的 SSD 缓存配置(强烈建议)
- 关闭网络存储
- 将上述过程中的现有 6.x USB 加载程序替换为 TCRP 7.x USB 加载程序
- 启动 NAS 并在出现提示时完成 DSM 迁移
- 根据需要恢复 SSD 缓存配置
注意:根据之前安装的 DSM 版本,迁移过程可能会覆盖 DSM 更新的手动选项并将其设置为自动。尽快从控制面板恢复手动选项 - 可能需要关闭互联网连接,直到完成。
步骤 1.选择 DSM 平台/架构
评估您预期的 NAS 硬件,了解 DSM 的预期用途,并选择最能满足您需求的平台。此处的参考信息:https://xpenology.com/forum/topic/61634-dsm-7x-loaders-and-platforms/
记下所选平台(例如 DS918+)、相应的架构(例如阿波罗湖),以及该平台是否使用 SataPortMap/DiskIdxMap 或设备树进行插槽映射。稍后将需要此信息。
现在,请确保 NAS 硬件兼容,并正确准备:
兼容 x86-64 的 CPU,具有两个或更多内核
- 每个平台都有最大的线程支持!任何多余的线程都将被忽略
- 对于某些平台,英特尔 CPU 必须是第 4 代“Haswell”或更新的 FMA3 指令集
,相应的 AMD CPU 架构为“打桩机”或更新 - 基于 AMD 的系统可能需要停用 BIOS 中的 C1E 选项
- 2GB 或更多内存
2GB 或更大的 U 盘
- 将 BIOS 配置为仅从 USB 闪存驱动器启动
SATA 磁盘控制器是首选,但 SCSI/SAS 是兼容的
- 重要说明:必须将所有 SATA 控制器配置为 AHCI 模式
- 带端口倍增器的 SATA 控制器不兼容
- ATA 控制器不兼容(如果可能,请禁用 BIOS 中的嵌入式 ATA)
至少一个 SATA/SCSI/SAS 驱动器(硬盘或固态硬盘),最小大小为 21GB
- 重要说明:如果 BIOS/控制器支持热插拔,请在每个磁盘端口上启用 SATA 端口热插拔
- 重要说明:禁用未使用的 M.2 SATA 端口(如果 BIOS/控制器支持)
- NVMe 驱动器除了作为专用缓存设备外,不可用
- 主机总线适配器当前与设备树平台不兼容
安装任何用作缓存设备的 NVMe 驱动器
- 在设备树平台上,必须在安装加载程序之前安装 NVMe 驱动器,以便识别它们
步骤2.下载 TCRP 并将映像写入 USB 闪存驱动器
最新的 pocopico 稳定加载器代码始终链接到此处:https://xpenology.com/forum/topic/7848-links-to-loaders/
下载tinycore-redpill 7.x 加载程序并将其保存到您的个人计算机。然后,使用zip管理器打开它以显示启动图像:
tinycore-redpill.vX.X.X.img.gz (用于 BIOS/CSM/传统 USB 闪存驱动器启动)
tinycore-redpill-uefi.vX.X.X.img.gz (用于从 USB 闪存驱动器启动 UEFI/EFI)
tinycore-redpill.vX.X.X.vmdk.gz (用于从磁盘映像启动的虚拟机 SATABOOT)
选择与 NAS 主板的启动功能匹配的启动映像。如果不确定,请选择 BIOS/CSM/传统引导。将 gzip 文件保存到您的个人计算机,然后使用 zip 存档管理器打开它并保存未压缩的版本。
使用 Win32 磁盘映像或其他适当的工具将未压缩的映像写入 USB 闪存驱动器。
USB闪存驱动器用于存储TinyCore及其生成的红药丸加载程序。它是可操作的 XPEnology 系统的永久组成部分。即使 DSM 安装完成且 NAS 已完全启动并运行,也不要将其删除。
第3步.启动到微小核心并完成预配置更新
使用安装的 USB 闪存驱动器启动您的 NAS,TinyCore 将启动。然后,使用以下任一方法启动命令行会话:
- 单击 TinyCore 桌面右下角的“终端”图标以启动控制台窗口
- 使用计算机上的 ssh 客户端(例如 PuTTY)连接基于网络的控制台
请咨询您的 DHCP 服务器/路由器以获取 IP 地址分配(TinyCore 的主机名为“框”)
登录凭据:tc/P@ssw0rd 当显示 Linux 命令行提示符 ($) 时,更新 TCRP 脚本
./rploader.sh update Checking Internet Access -> OK Checking if a newer version exists -> There is a newer version on the repo should we use that ? [yY/nN] Y OK, updating, please re-run after updating Updating tinycore loader with latest updates Backing up files to /mnt/sda3//mydata.tgz
然后,更新 TCRP 支持文件
./rploader.sh fullupgrade <downloads snipped> Current /home/tc size is 114M , try to keep it less than 1GB as it might not fit into your image Should i update the sda with your current files [Yy/Nn] Y Backing up home files to sda : Backing up files to /mnt/sda3//mydata.tgz
最后,选择 DSM 版本号
群晖科技提供的每个 DSM 版本都有一个发行号。您可以通过运行不带参数的脚本来显示 TCRP 支持的平台和版本的组合
./rploader.sh <command help snipped> Available platform versions: ---------------------------------------------------------------------------------------- apollolake-7.0-41890 apollolake-7.0.1-42218 apollolake-7.1.0-42661 broadwell-7.0.1-42218 broadwell-7.1.0-42661 broadwellnk-7.0.1-42218 broadwellnk-7.1.0-42661 bromolow-7.0.1-42218 bromolow-7.1.0-42661 denverton-7.0.1-42218 denverton-7.1.0-42661 geminilake-7.0.1-42218 geminilake-7.1.0-42661 v1000-7.0.1-42218 v1000-7.1.0-42661
步骤 4.配置系统特定参数
自定义系统参数存储在 user_config.json 文件中。这可以手动编辑,或者 TCRP 可以帮助确定硬件的适当值。
U 盘视频/像素接口:TCRP 可以在 USB 闪存驱动器中查询 DSM 在启动期间用于识别加载程序的硬件 vid/pid 值
./rploader.sh identifyusb Found: Superdisk Flash SerialNumber: 123456 Vendor ID: 0x1234 Product ID: 0x0001 Should i update the user_config.json with these values ? [Yy/Nn] Y
序列号/苹果电脑:TCRP 可以为步骤 1 中选择的平台自动生成序列号。此外,它将为 NAS 网卡生成一个随机的 MAC 地址。如果您希望改用实际的硬件 MAC 地址,请将“realmac”附加到命令中。
示例 1:随机 MAC 地址
./rploader.sh serialgen DS3622xs+ Serial Number for Model : 20C0SQRLR47QM Mac Address for Model DS3622xs+ : 00:11:32:80:B2:36 Should i update the user_config.json with these values ? [Yy/Nn] Y
示例 2:真实 MAC 地址
./rploader.sh serialgen DS3622xs+ realmac Serial Number for Model : 2150SQRGS7N5T Mac Address for Model DS3622xs+ : 00:11:32:57:3A:9B Real Mac Address : 00:0C:24:62:3E:3D Notice : realmac option is requested, real mac will be used Should i update the user_config.json with these values ? [Yy/Nn] Y
驱动器插槽映射:TCRP 可以尝试确定如何将 NAS 磁盘控制器端口映射到 DSM 插槽。如果所选平台使用萨塔波特映射/磁盘 Idx 映射,则以下命令将执行此操作。如果它使用设备树进行插槽映射,则可能会跳过该命令,因为设备树是在加载程序构建期间自动配置的。
./rploader.sh satamap Found "02:02.0 SATA AHCI controller" Detected 4 ports/2 drives. Override # of ports or ENTER to accept: <4> Recommended settings: SataPortMap=4 DiskIdxMap=00 Should I update the user_config with these values ? [Yy/Nn] Y
如果端口计数不是您预期的,则可能是由于主板设计为具有多个控制器的物理端口提供服务,或者由于 M.2 SATA 插槽支持。如有必要,可以使用您喜欢的任何内容覆盖端口计数。注:如果您看到警告消息,则表示您的某些驱动器无法访问,或者 DSM 安装将遇到问题。评估并调查问题。satamap 命令可以根据需要多次重新运行,以了解系统。
人工审核:对于以前的加载器(如 Jun 的),这些参数的配置完全是手动的。没有适用于所有硬件的单一设置。即使使用上述工具后,也请检查并验证参数,了解它们的作用,并在需要时手动编辑。
rploader.sh 对user_config.json 文件所做的任何更改都可以通过显示文件内容来查看
cat user_config.json
并通过编辑文件覆盖
vi user_config.json
您还可以添加一个更简单的编辑器,nano
tce-load -iw nano nano user_config.json
还有一个图形编辑器可以从TinyCore桌面访问
第5步.可选:手动添加驱动程序扩展
虽然 TCRP 可以根据检测到的 NAS 硬件自动添加驱动程序,但并非万无一失。您可能希望为实际上尚未安装的设备构建加载程序。有些功能仅是“选择加入”。因此,存在一个手动添加驱动程序和其他功能的进程。扩展存储在 Web 上托管的存储库中。主存储库中的所有扩展都可以在此处查看:https://github.com/pocopico/rp-ext
要列出 TCRP 硬件检测算法推荐的所有扩展名,请使用
./rploader.sh 列表模块<体系结构><版本>
./rploader.sh listmods apollolake-7.1.0-42661
若要添加特定扩展,请从列表中选择并引用步骤 1 中的体系结构。
./rploader.sh ext
./rploader.sh ext apollolake-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-acpid/rpext-index.json
./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/rp-ext/master/v9fs/rpext-index.json
这些示例说明了如何添加 ACPI 和虚拟身份验证支持。这些通常是对基本安装的增强。
第 6 步。构建加载程序
完成所有准备步骤后,使用命令结构
./rploader.sh 构建<体系结构><版本>
示例 1:DS3622xs+,自动检测硬件
./rploader.sh build broadwellnk-7.1.0-42661
示例 #2:DS918+,使用预选的驱动程序
./rploader.sh build apollolake-7.1.0-42661 manual
TCRP将从互联网上下载资源,以完成加载程序构建的复杂过程。完成后,它将它写入 USB 闪存驱动器,并将新项添加到 GRUB 启动菜单。检查输出是否有任何错误,并在必要时进行更正。
第 7 步。可选备份任务
将 TinyCore 配置状态保存为默认状态,以便 TInyCore 的下一次启动从您的所有设置开始
./rploader.sh backup
将生成的红色药丸加载程序分区备份到 USB 闪存驱动器上的可用空间
./rploader.sh backuploader
步骤 8:使用虚拟 USB 选项重新启动并引导 DSM
使用“小核心”命令干净地关闭和重新启动
exitcheck.sh reboot
首先,显示 GRUB 菜单。如有必要,请使用箭头键确保已选择 USB,然后按 Enter。
加载程序将显示一些初始化信息,并以静默方式引导 DSM。除非连接了串行控制台,否则不会显示任何其他内容(请参阅下面的“故障排除”部分)。等待几分钟,然后启动 https://find.synology.com 或 Synology 助手桌面实用工具。如果加载程序工作正常,新的“SynologyNAS”将显示为“未安装”(对于新版本)或现有可迁移 NAS 的名称(如果从先前版本升级)。
使用浏览器连接到 NAS。
如果显示“出现问题”,请跳转到下面的“基本疑难解答”部分。
否则,请浏览至 Synology 下载中心,并拥有与加载程序内部版本中指定的平台和版本号匹配的 DSM 安装 PAT 文件。不要使用存储在微小核心中的 PAT 文件。它具有与 DSM 安装不兼容的修改。但是,其名称可能有助于识别要在下面下载的正确 PAT 文件。
可以有多个文件看起来像是候选文件。标记为虚拟DSM的 PAT 文件将不起作用。也可以有相同编号的补丁PAT文件。这些将不起作用,并且通常小于50MB。正确的 PAT 文件为 300MB 或更大。
将正确的 DSM PAT 文件保存到您的个人电脑后,请将其上传到 NAS。按照提示完成安装。
仅适用于升级:如果 Synology 助手显示“未安装”,或者在升级过程中提示抹掉磁盘,请停止!部分或全部阵列磁盘对 DSM 不可见。在安装 DSM 7.x 之前,必须通过故障诊断和重新配置来解决此问题。
重要:在安装过程中,请始终选择 DSM 手动更新。如果新的安装正常完成,但在重新启动后失败,则可能是 DSM 尝试使用不兼容的代码自动更新自身。
基本故障排除
典型问题:
如果 DSM 安装报告出现问题/SATA 端口被禁用,或者警告:TCRP 配置工具返回了错误的端口,则有三个主要原因:
- 未对支持热插拔的控制器上的所有端口启用热插拔
- 芯片组支持但主板物理实现中省略的端口
- 不支持 SATA 的端口,未启用热插拔选项
请考虑以下解决方法/解决方案:
- 在所有端口上启用热插拔
- 在所有端口(包括 M.2 SATA 端口)上安装 SATA 驱动器
- 禁用 BIOS 中的 M.2 SATA 端口(如果存在该选项)
- 减少 SataPortMap 端口计数以排除未实现的或 M.2 SATA 端口
(仅当它们不是控制器上的第一个端口时,这才有效) - 安装不同的 SATA 控制器并禁用板载控制器
- 虚拟化 DSM 安装,可能与上述选项之一配合使用
- 将 DSM 平台更改为使用设备树的平台(只能解决好的端口,而忽略坏的端口)
选择另一个不出现因果问题的
主板 在 DSM 安装完成后,可以更新加载程序或 SATA 控制器配置以禁用有效端口以安装 DSM。
- 如果 DSM 安装报告没有可用的驱动器,请使用下面描述的串行或 TCRP 控制台帮助调查问题
- 如果使用 Synology 助手无法找到新的 SynologyNAS,则说明加载程序内核崩溃,或者网络无法正常工作(通常是由于网络驱动程序丢失或不兼容,或者没有可访问的 DHCP 服务器)。验证特定原因的唯一方法是使用串行控制台。
使用串行控制台进行故障排除
这涉及配置从NAS硬件到个人计算机的物理串行端口,并使用终端仿真程序进行访问。串行控制台也镜像到特殊的 TCRP 网络控制台。如果网络正在运行(即您可以在群晖助手中看到IP),则可以通过浏览器访问它 https://
如果尚未安装 DSM,将显示“群晖网登录:”。如果 DSM 已安装但无法启动,将显示“磁盘站登录:”。这是初级模式。您可以使用 root 登录(系统不会提示您输入密码)。
如果需要,可以使用以下命令显示初级模式启动的原因
cat /var/log/junior_mode
磁盘端口关闭错误和缺少磁盘通常是 SataPortMap/磁盘Idx映射/设备树问题,但如果使用 SCSI 或 SAS 主机总线适配器,则可能是驱动程序问题。如果缺少 SATA 磁盘,user_config 请通过键入
cat /proc/cmdline
如果以下命令未返回加载程序设备“/dev/synoboot”,则可能已跳过安装的识别 USB 步骤
ls /dev/synoboot
使用以下命令检查 DSM 对可访问磁盘设备的视图
ls –la /sys/block
如果使用设备树平台,请使用
dtc –I dtb -O dts /var/run/model.dtb
在哪里发布帮助
安装帮助请求很容易在各种不相关的论坛线程中丢失。在 DSM 安装论坛中将帮助请求作为新主题发布。
至少应说明硬件配置、所选平台、DSM 版本、user_config.json 信息(删除或编校序列号和配置的 MAC 地址)以及已完成的调试分析中的任何信息。
不要在此线程上发布一般的帮助请求。
请不要在 TCRP 或 RedPill 开发线程上发布一般的帮助请求,除非提供有关开发问题的反馈。
7.0.1
create direcory "/mnt/sdb3/auxfiles" (if not created, upgrade to 7.1.0 will fail)
./rploader.sh update now
./rploader.sh fullupgrade now
./rploader.sh serialgen DS3622xs+
./rploader.sh identifyusb now
/rploader.sh satamap now
./rploader.sh build broadwellnk-7.0.1-42218
7.1.0
./rploader.sh clean now
./rploader.sh build broadwellnk-7.1.0-42661
./rploader.sh clean now; rm -rf /mnt/sdb3/auxfiles; rm -rf /home/tc/custom-module; ./rploader.sh backup now;
sudo poweroff
HPE Proliant Microserver Gen10 - working with no problems (no extensions added)

/home/tc/redpill-load/cache/
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net
tc@box:~$ ifconfig
eth0 Link encap:Ethernet HWaddr B8:AE:ED:3F:9D:60
inet addr:192.168.123.208 Bcast:192.168.123.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:409 errors:0 dropped:22 overruns:0 frame:0
TX packets:243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35043 (34.2 KiB) TX bytes:30059 (29.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5100 (4.9 KiB) TX bytes:5100 (4.9 KiB)
tc@box:~$ vi /etc/resolv.conf
tc@box:~$ cat user_config.json
{
"extra_cmdline": {
"pid": "0x5583",
"vid": "0x0781",
"sn": "1860PDN017243",
"mac1": "001132FA2D36",
"SataPortMap": "2",
"DiskIdxMap": "00"
},
"synoinfo": {
"internalportcfg": "0xffff",
"maxdisks": "16",
"support_bde_internal_10g": "no",
"support_disk_compatibility": "no",
"support_memory_compatibility": "no"
},
"ramdisk_copy": {}
}
tc@box:~$ sudo ./rploader.sh build apollolake-7.1.0-42661
Rploader Version : 0.8.0.0
Loader source : https://github.com/pocopico/redpill-load.git Loader Branch : develop
Redpill module source : https://github.com/pocopico/redpill-lkm.git : Redpill module branch : master
Extensions : redpill-misc
Extensions URL : "https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json"
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.apollolake-7.0.dev.txz/download
TOOLKIT_SHA : d349fa644392d4cfab8191243ee38aaa32bd517208c144678e0c855cb5a619ea
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/apollolake-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : af815ee065775d2e569fd7176e25c8ba7ee17a03361557975c8e5a4b64230c5b
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM : apollolake
TARGET_VERSION : 7.1.0
TARGET_REVISION : 42661
REDPILL_LKM_MAKE_TARGET : test-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE : modules.alias.4.json
SYNOMODEL : ds918p_42661
MODEL : DS918+
Local Cache Folder : /mnt/sda3/auxfiles
DATE Internet : 18092022 Local : 18092022
Checking Internet Access -> OK
Checking if a newer version exists on the main repo -> Found newversion : 0.8.0.5
Current version : 0.8.0.0
There is a newer version of the script on the repo should we use that ? [yY/nN]y
OK, updating, please re-run after updating
Updating tinycore loader with latest updates
Backing up files to /mnt/sda3//mydata.tgz
Done.
tc@box:~$ sudo ./rploader.sh update now
Checking Internet Access -> OK
Checking if a newer version exists on the main repo -> Version is current
tc@box:~$ sudo ./rploader.sh fullupgrade now
Performing a full TCRP upgrade
Warning some of your local files will be moved to /home/tc/old/xxxx.2022-Sep-18-22-07
Updating custom_config.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 33842 100 33842 0 0 8822 0 0:00:03 0:00:03 --:--:-- 33774
Updating custom_config_jun.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 8954 100 8954 0 0 2441 0 0:00:03 0:00:03 --:--:-- 1249k
Updating global_config.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 5692 100 5692 0 0 2065 0 0:00:02 0:00:02 --:--:-- 9255
Updating modules.alias.3.json.gz
mv: cannot stat 'modules.alias.3.json.gz': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5591 100 5591 0 0 2512 0 0:00:02 0:00:02 --:--:-- 4197
Updating modules.alias.4.json.gz
mv: cannot stat 'modules.alias.4.json.gz': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 89007 100 89007 0 0 29326 0 0:00:03 0:00:03 --:--:-- 68519
Updating rpext-index.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 211k 100 211k 0 0 62360 0 0:00:03 0:00:03 --:--:-- 278k
Updating user_config.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 431 100 431 0 0 100 0 0:00:04 0:00:04 --:--:-- 1028
Updating dtc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 146k 100 146k 0 0 29631 0 0:00:05 0:00:05 --:--:-- 70782
Updating rploader.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 96354 100 96354 0 0 16325 0 0:00:05 0:00:05 --:--:-- 25053
Updating ds1621p.dts
mv: cannot stat 'ds1621p.dts': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 3026 100 3026 0 0 956 0 0:00:03 0:00:03 --:--:-- 3202
Updating ds920p.dts
mv: cannot stat 'ds920p.dts': No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2423 100 2423 0 0 282 0 0:00:08 0:00:08 --:--:-- 714
Please make sure you are using the latest 1GB img before using backup option
Current /home/tc size is 2.8M , try to keep it less than 1GB as it might not fit into your image
Should i update the sda with your current files [Yy/Nn]
y
Backing up home files to sda : Backing up files to /mnt/sda3//mydata.tgz
Done.
tc@box:~$ sudo ./rploader.sh build apollolake-7.1.0-42661
Rploader Version : 0.8.0.5
Loader source : https://github.com/pocopico/redpill-load.git Loader Branch : develop
Redpill module source : https://github.com/pocopico/redpill-lkm.git : Redpill module branch : master
Extensions : redpill-misc
Extensions URL : "https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json"
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.apollolake-7.0.dev.txz/download
TOOLKIT_SHA : d349fa644392d4cfab8191243ee38aaa32bd517208c144678e0c855cb5a619ea
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/apollolake-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : af815ee065775d2e569fd7176e25c8ba7ee17a03361557975c8e5a4b64230c5b
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM : apollolake
TARGET_VERSION : 7.1.0
TARGET_REVISION : 42661
REDPILL_LKM_MAKE_TARGET : test-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE : modules.alias.4.json
SYNOMODEL : ds918p_42661
MODEL : DS918+
Local Cache Folder : /mnt/sda3/auxfiles
DATE Internet : 18092022 Local : 18092022
Checking Internet Access -> OK
Checking if a newer version exists on the main repo -> Version is current
Redpill sources already downloaded, pulling latest
Already up to date.
Cloning into 'redpill-load'...
remote: Enumerating objects: 2344, done.
remote: Counting objects: 100% (278/278), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 2344 (delta 141), reused 253 (delta 122), pack-reused 2066
Receiving objects: 100% (2344/2344), 117.36 MiB | 2.19 MiB/s, done.
Resolving deltas: 100% (1114/1114), done.
No extra build option or static specified, using default <static>
Using static compiled redpill extension
Removing any old redpill.ko modules
Looking for redpill for : ds918p_42661
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/releases/redpill-4.4.180plus.tgz
Extracting module
Got redpill-linux-v4.4.180+.ko
Testing modules.alias.4.json -> File OK
------------------------------------------------------------------------------------------------
It looks that you will need the following modules :
Found VGA Controller : pciid 8086d00000f31 Required Extension : i915
Searching for matching extension for i915
Found SATA Controller : pciid 8086d00000f23 Required Extension : ahci
Searching for matching extension for ahci
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json...
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.r8169 ==========================================
[#] Extension name: r8169
[#] Description: Adds RealTek RTL-8169 Gigabit Ethernet driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/r8169
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds1621p_42951 ds918p_41890 dva3221_42661 ds3617xs_42621 ds3617xs_42218 ds920p_42661 dva3221_42962 ds918p_42661 ds3622xsp_42962 ds3617xs_42951 dva1622_42218 dva1622_42621 ds920p_42962 ds1621p_42661 dva1622_42951 ds918p_25556 dva3221_42218 ds3615xs_42661 dva3221_42951 ds3622xsp_42661 ds3622xsp_42218 ds2422p_42962 dva1622_42962 ds2422p_42218 dva3221_42621 ds3615xs_42962 ds3617xs_42962 ds3615xs_41222 ds920p_42951 ds2422p_42951 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds918p_42962 ds3615xs_42951 ds3622xsp_42951 dva1622_42661 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds1621p_42962 ds3622xsp_42621
[#] =======================================================================================
Found Ethernet Interface : pciid 10ecd00008168 Required Extension : r8169
Searching for matching extension for r8169
Found matching extension :
"https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json"
------------------------------------------------------------------------------------------------
Starting loader creation
Found tinycore cache folder, linking to home/tc/custom-module
Checking user_config.json : Done
Entering redpill-load directory
Removing bundled exts directories
Cache directory OK
Found build request for revision greater than 42218
Found extractor locally cached
Copying required libraries to local lib directory
Linking lib to lib64
Copying executable
Removing temp folder /tmp/synoesp
Checking if tool is accessible
/bin/syno_extract_system_patch: /usr/local/lib/libcurl.so.4: no version information available (required by /bin/syno_extract_system_patch)
Executed succesfully
Checking for cached pat file
Found tinycore cache folder, linking to home/tc/custom-module
Could not find pat file locally cached
Configdir : /home/tc/redpill-load/config/DS918+/7.1.0-42661
Configfile: /home/tc/redpill-load/config/DS918+/7.1.0-42661/config.json
Pat URL : https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS918%2B_42661.pat
Downloading pat file from URL : https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DS918%2B_42661.pat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 346M 100 346M 0 0 3904k 0 0:01:31 0:01:31 --:--:-- 4377k
File /mnt/sda3/auxfiles/ds918p_42661.pat, is encrypted
File /mnt/sda3/auxfiles/ds918p_42661.pat, has been cached but its encrypted, re-running decrypting process
Checking for cached pat file
Found tinycore cache folder, linking to home/tc/custom-module
Found locally cached pat file /home/tc/custom-module/ds918p_42661.pat
File /home/tc/custom-module/ds918p_42661.pat, is encrypted
Extracting encrypted pat file : /home/tc/custom-module/ds918p_42661.pat to /tmp/pat
/bin/syno_extract_system_patch: /usr/local/lib/libcurl.so.4: no version information available (required by /bin/syno_extract_system_patch)
Creating unecrypted pat file ds918p_42661.pat to /home/tc/redpill-load/cache folder
./VERSION
Pat file sha256sum is : 05e6e3ace94d37cedd2d9a0bf9191ceecd187ac2e48a94c4af1b23a6d37f4ff8
Checking config file existence -> OK
Editing config file -> Verifying config file -> OK !
Clearing temp folders
Processing add_extensions entries found on custom_config.json file : redpill-misc
Adding extension "https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json"
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json...
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
############################################################################################################################ 100.0%
[OK]
[#] ========================================== redpill-misc ==========================================
[#] Extension name: Misc shell
[#] Description: Misc shell
[#] To get help visit: https://github.com/pocopico/redpill-load/raw/develop/redpill-misc
[#] Extension preparer/packer: https://github.com/pocopico/redpill-load/raw/develop/redpill-misc
[#] Software author: https://github.com/pocopico/redpill-load/raw/develop/redpill-misc
[#] Update URL: https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds918p_41890 dva3221_42661 ds3617xs_42621 ds3617xs_42218 ds920p_42661 ds918p_42661 ds1621p_42661 ds918p_25556 dva3221_42218 ds3615xs_42661 ds3622xsp_42661 ds3622xsp_42218 dva3221_42621 ds3615xs_41222 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds918p_42218 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds3622xsp_42621
[#] =======================================================================================
Updating extension : redpill-misc contents for model : ds918p_42661
[#] Checking runtime for required tools... [OK]
[#] Updating ds918p_42661 platforms extensions...
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
############################################################################################################################ 100.0%
[#] Filling-in newly downloaded recipe for extension redpill-misc platform ds918p_42661
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install.sh to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install.sh
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install.sh file... [OK]
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install-all.sh to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install-all.sh
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install-all.sh file... [OK]
[#] Downloading remote file https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/ttyd
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/ttyd file... [OK]
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/install_rd.sh to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install_rd.sh
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/install_rd.sh file... [OK]
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/releases/lrzsz.tar.gz to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/lrzsz.tar.gz
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/lrzsz.tar.gz file... [OK]
[#] Unpacking files from /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/lrzsz.tar.gz to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/... [OK]
[#] Successfully processed recipe for extension redpill-misc platform ds918p_42661
[#] Unpacking files from /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/lrzsz.tar.gz to /home/tc/redpill-load/custom/extensions/redpill-misc/ds918p_42661/... [OK]
[#] Checking runtime for required tools... [OK]
[#] Updating extensions...
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://github.com/pocopico/rp-ext/raw/main/redpill-boot-wait/rpext-index.json...
[#] Downloading remote file https://github.com/pocopico/rp-ext/raw/main/redpill-boot-wait/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
############################################################################################################################ 100.0%
[OK]
[#] ========================================== redpill-boot-wait ==========================================
[#] Extension name: RedPill Bootwait
[#] Description: Simple extension which stops the execution early waiting for the boot device to appear
[#] To get help visit: https://github.com/pocopico/rp-ext/redpill-boot-wait
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/redpill-boot-wait
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-boot-wait/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds1621p_42951 ds918p_41890 dva3221_42661 ds3617xs_42621 ds3617xs_42218 ds920p_42661 dva3221_42962 ds918p_42661 ds3622xsp_42962 ds3617xs_42951 ds920p_42962 ds1621p_42661 dva1622_42951 ds918p_25556 dva3221_42218 ds3615xs_42661 dva3221_42951 ds3622xsp_42661 ds2422p_42661 ds3622xsp_42218 ds2422p_42962 dva1622_42962 ds2422p_42218 dva3221_42621 ds3615xs_42962 ds3617xs_42962 ds3615xs_41222 ds920p_42951 ds2422p_42951 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds918p_42962 ds3615xs_42951 ds3622xsp_42951 ds920p_42550 dva1622_42661 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds1621p_42962 ds3622xsp_42621
[#] =======================================================================================
[#] Checking runtime for required tools... [OK]
[#] Updating pocopico.r8169 extension...
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
############################################################################################################################ 100.0%
[#] Extension pocopico.r8169 index is already up to date
[#] Updating redpill-boot-wait extension...
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-boot-wait/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
############################################################################################################################ 100.0%
[#] Extension redpill-boot-wait index is already up to date
[#] Updating redpill-misc extension...
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
############################################################################################################################ 100.0%
[OK]
[#] Checking runtime for required tools... [OK]
[#] Updating ds918p_42661 platforms extensions...
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/releases/ds918p_42218.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
############################################################################################################################ 100.0%
[#] Filling-in newly downloaded recipe for extension pocopico.r8169 platform ds918p_42661
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/releases/r8169-4.4.180plus.tgz to /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/r8169-4.4.180plus.tgz
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/r8169-4.4.180plus.tgz file... [OK]
[#] Unpacking files from /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/r8169-4.4.180plus.tgz to /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/... [OK]
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/src/check-r8169.sh to /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/check-r8169.sh
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/pocopico.r8169/ds918p_42661/check-r8169.sh file... [OK]
[#] Successfully processed recipe for extension pocopico.r8169 platform ds918p_42661
[#] Downloading remote file https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
############################################################################################################################ 100.0%
[#] Filling-in newly downloaded recipe for extension redpill-boot-wait platform ds918p_42661
[#] Downloading remote file https://raw.githubusercontent.com/RedPill-TTG/redpill-boot-wait/master/src/boot-wait.sh to /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds918p_42661/boot-wait.sh
############################################################################################################################ 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds918p_42661/boot-wait.sh file... [OK]
[#] Successfully processed recipe for extension redpill-boot-wait platform ds918p_42661
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
############################################################################################################################ 100.0%
[#] Extension redpill-misc for ds918p_42661 platform is already up to date
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds918p_42661/boot-wait.sh file... [OK]
[#] Updating extensions... [OK]
[#] Verifying /home/tc/redpill-load/cache/ds918p_42661.pat file... [OK]
[#] Unpacking /home/tc/redpill-load/cache/ds918p_42661.pat file to /home/tc/redpill-load/build/1663542337/pat-ds918p_42661-unpacked... [OK]
[#] Verifying /home/tc/redpill-load/build/1663542337/pat-ds918p_42661-unpacked/zImage file... [OK]
[#] Patching /home/tc/redpill-load/build/1663542337/pat-ds918p_42661-unpacked/zImage to /home/tc/redpill-load/build/1663542337/zImage-patched... [OK]
[#] Verifying /home/tc/redpill-load/build/1663542337/pat-ds918p_42661-unpacked/rd.gz file... [OK]
[#] Unpacking /home/tc/redpill-load/build/1663542337/pat-ds918p_42661-unpacked/rd.gz file to /home/tc/redpill-load/build/1663542337/rd-ds918p_42661-unpacked... [OK]
[#] Apply patches to /home/tc/redpill-load/build/1663542337/rd-ds918p_42661-unpacked... [OK]
[#] Patching config files in ramdisk... [OK]
[#] Adding OS config patching... [OK]
[#] Repacking ramdisk to /home/tc/redpill-load/build/1663542337/rd-patched-ds918p_42661.gz... [OK]
[#] Bundling extensions... [#] Checking runtime for required tools... [OK]
[#] Dumping ds918p_42661 platform extensions to /home/tc/redpill-load/build/1663542337/custom-initrd/exts... [OK]
[#] Packing custom ramdisk layer to /home/tc/redpill-load/build/1663542337/custom.gz... [OK]
[#] Generating GRUB config... [OK]
[#] Creating loader image at loader.img... [OK]
[#] Cleaning up... [OK]
Mounting /dev/sda1 to localdiskp1
/dev/sda2 localdiskp2
Creating tinycore entry
menuentry 'Tiny Core Image Build' {
savedefault
set root=(hd0,msdos3)
echo Loading Linux...
linux /vmlinuz64 loglevel=3 cde waitusb=5 vga=791
echo Loading initramfs...
initrd /corepure64.gz
echo Booting TinyCore for loader creation
}
Entries in Localdisk bootloader :
=======================================================================
menuentry 'RedPill DS918+ v7.1.0-42661 (USB, Verbose)' {
menuentry 'RedPill DS918+ v7.1.0-42661 (SATA, Verbose)' {
menuentry 'Tiny Core Image Build' {
Caching files for future use
Found /home/tc/redpill-load/cache/ds918p_42661.pat, copying to cache directory : /mnt/sda3/auxfiles
Saving user session for future use. Saving current extensions -> OK !
Saving current user_config.json -> OK !
tc@box:~$ sudo filetool.sh -b
Backing up files to /mnt/sda3//mydata.tgz
Done.
tc@box:~$