leang521
-
Posts
21 -
Joined
-
Last visited
Posts posted by leang521
-
-
@pocopico
I build DVA3221 under PVE 7. Hope to Turn off the kvm. I used the following command to add ACPI. But it doesn't seem to work. Where did I do something wrong?
./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-acpid/rpext-index.json
I see someone suggesting that you use https://github.com/jumkey/redpill-load/tree/develop/redpill-acpid/rpext-index.json. Is there any difference between them?
-
4 hours ago, flyride said:
I have repeated your install in both configurations (USB/SATA and SATABOOT/SCSI) on my equipment with no issue.
I did notice one difference back in your SATABOOT/SCSI test, and since you seem to be missing SCSI disk, maybe it is relevant.
My VM conf file has "scsihw: virtio-scsi-pci" and yours did not. I am not a Proxmox expert so I do not know if it matters.
Can you send me your configuration file and the constructive mirror file and test it on my machine. The mailbox address has been sent to you through the message.
-
38 minutes ago, Peter Suh said:
So far, in my experience, the file corruption message has nothing to do with the actual pat file corruption or the USB PID/VID setting, and it seems to have occurred when the junior did not recognize the disk correctly due to missing or incorrect mapping of SataPortMap or DTC Internal_slot. .
A migration message is expected from a disk with DSM already installed.
I use the new KVM.
-
I try to configure according to your suggestion. Building successfully. But the following information appears during the web installation process:
Unable to install DSM
Unable to install this file, the file may have been damaged.root@x99pve:/etc/pve/qemu-server# cat 108.conf
args: -device 'nec-usb-xhci,id=usb-bus0,multifunction=on' -drive 'file=/var/lib/vz/images/108/tinycore-redpill.img,media=disk,format=raw,if=none,id=drive-disk-bootloader' -device 'usb-storage,bus=usb-bus0.0,port=1,drive=drive-disk-bootloader,id=usb-disk-bootloader,bootindex=999,removable=on'
balloon: 0
bios: ovmf
boot: order=ide2
cores: 4
cpu: host
ide2: none,media=cdrom
machine: q35
memory: 4096
meta: creation-qemu=6.1.0,ctime=1653357922
name: DVA3221
net0: rtl8139=00:11:32:0A:F8:DD,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: data-zfs:vm-108-disk-0,backup=0,size=1200G
serial0: socket
smbios1: uuid=7fb25a1e-5f14-4a3d-9242-5aa88b0ca99a
sockets: 1
vmgenid: 6f42693e-62e8-4b59-a859-840f57244b93tc@box:~$ ./rploader.sh identifyusb now
Machine is VIRTUAL Hypervisor=KVM
Found QEMU QEMU SerialNumber: 1-0000:00:02.0-1
Vendor ID : 0x46f4 Product ID : 0x0001
Should i update the user_config.json with these values ? [Yy/Nn]
Y
tc@box:~$ ./rploader.sh serialgen DVA3221
Serial Number for Model : 20C0SJRQBS8SN
Mac Address for Model DVA3221 : 00:11:32:0A:F8:DD
Should i update the user_config.json with these values ? [Yy/Nn]
Y
tc@box:~$ ./rploader.sh satamap now
Machine is VIRTUAL Hypervisor=KVMFound "00:1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/0 drives. Reserving and disabling KVM q35 bogus controllerFound "06:07.0 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/1 drives. Override # of ports or ENTER to accept <6>Recommended settings:
SataPortMap=16
DiskIdxMap=1000Should i update the user_config.json with these values ? [Yy/Nn] Y
Done.
tc@box:~$ cat user_config.json
{
"extra_cmdline": {
"pid": "0x0001",
"vid": "0x46f4",
"sn": "20C0SJRQBS8SN",
"mac1": "0011320AF8DD",
"SataPortMap": "16",
"DiskIdxMap": "1000"
},
"synoinfo": {
"internalportcfg": "0xffff",
"maxdisks": "16",
"support_bde_internal_10g": "no",
"support_disk_compatibility": "no",
"support_memory_compatibility": "no"
},
"ramdisk_copy": {}
} -
34 minutes ago, flyride said:
Ok try ls -la /sys/block/scsi_host
Also cat /proc/cmdline
SynologyNVR> ls -la /sys/block
drwxr-xr-x 2 root root 0 May 26 02:31 .
dr-xr-xr-x 12 root root 0 May 26 02:31 ..
lrwxrwxrwx 1 root root 0 May 26 02:32 ram0 -> ../devices/virtual/block/ram0
lrwxrwxrwx 1 root root 0 May 26 02:32 ram1 -> ../devices/virtual/block/ram1
lrwxrwxrwx 1 root root 0 May 26 02:32 ram10 -> ../devices/virtual/block/ram10
lrwxrwxrwx 1 root root 0 May 26 02:32 ram11 -> ../devices/virtual/block/ram11
lrwxrwxrwx 1 root root 0 May 26 02:32 ram12 -> ../devices/virtual/block/ram12
lrwxrwxrwx 1 root root 0 May 26 02:32 ram13 -> ../devices/virtual/block/ram13
lrwxrwxrwx 1 root root 0 May 26 02:32 ram14 -> ../devices/virtual/block/ram14
lrwxrwxrwx 1 root root 0 May 26 02:32 ram15 -> ../devices/virtual/block/ram15
lrwxrwxrwx 1 root root 0 May 26 02:32 ram2 -> ../devices/virtual/block/ram2
lrwxrwxrwx 1 root root 0 May 26 02:32 ram3 -> ../devices/virtual/block/ram3
lrwxrwxrwx 1 root root 0 May 26 02:32 ram4 -> ../devices/virtual/block/ram4
lrwxrwxrwx 1 root root 0 May 26 02:32 ram5 -> ../devices/virtual/block/ram5
lrwxrwxrwx 1 root root 0 May 26 02:32 ram6 -> ../devices/virtual/block/ram6
lrwxrwxrwx 1 root root 0 May 26 02:32 ram7 -> ../devices/virtual/block/ram7
lrwxrwxrwx 1 root root 0 May 26 02:32 ram8 -> ../devices/virtual/block/ram8
lrwxrwxrwx 1 root root 0 May 26 02:32 ram9 -> ../devices/virtual/block/ram9
lrwxrwxrwx 1 root root 0 May 26 02:32 synoboot -> ../devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata2/host1/target1:0:0/1:0:0:0/block/synoboot
SynologyNVR> ls -la /sys/block/scsi_host
ls: /sys/block/scsi_host: No such file or directory
SynologyNVR> cat /proc/cmdline
BOOT_IMAGE=/zImage withefi syno_hw_version=DVA3221 console=ttyS0,115200n8 netif_num=4 earlycon=uart8250,io,0x3f8,115200n8 mac1=0011324C321D sn=2150SJRHX6DRY HddHotplug=0 DiskIdxMap=101000 syno_hdd_detect=0 vender_format_version=2 syno_hdd_powerup_seq=0 root=/dev/md0 SataPortMap=11 -
16 minutes ago, flyride said:
I'm sorry you are frustrated. You did get caught up in some broken repos that took a day or two to get fixed. You also have done some things in a strange way that would have been avoided if there were better documentation. I am happy to say that is about to improve.
I have exactly replicated your build and it is working fine.
You may want to attach a serial console to the VM, reboot and launch. The serial console will show "SynologyLogin: " and you can use root to access the system as DSM sees it.
Then post ls -la /sys/block and we will learn what is happening with your SCSI disk.
SynologyNVR> ls -la /sys/block
drwxr-xr-x 2 root root 0 May 26 01:53 .
dr-xr-xr-x 12 root root 0 May 26 01:53 ..
lrwxrwxrwx 1 root root 0 May 26 01:54 ram0 -> ../devices/virtual/block/ram0
lrwxrwxrwx 1 root root 0 May 26 01:54 ram1 -> ../devices/virtual/block/ram1
lrwxrwxrwx 1 root root 0 May 26 01:54 ram10 -> ../devices/virtual/block/ram10
lrwxrwxrwx 1 root root 0 May 26 01:54 ram11 -> ../devices/virtual/block/ram11
lrwxrwxrwx 1 root root 0 May 26 01:54 ram12 -> ../devices/virtual/block/ram12
lrwxrwxrwx 1 root root 0 May 26 01:54 ram13 -> ../devices/virtual/block/ram13
lrwxrwxrwx 1 root root 0 May 26 01:54 ram14 -> ../devices/virtual/block/ram14
lrwxrwxrwx 1 root root 0 May 26 01:54 ram15 -> ../devices/virtual/block/ram15
lrwxrwxrwx 1 root root 0 May 26 01:54 ram2 -> ../devices/virtual/block/ram2
lrwxrwxrwx 1 root root 0 May 26 01:54 ram3 -> ../devices/virtual/block/ram3
lrwxrwxrwx 1 root root 0 May 26 01:54 ram4 -> ../devices/virtual/block/ram4
lrwxrwxrwx 1 root root 0 May 26 01:54 ram5 -> ../devices/virtual/block/ram5
lrwxrwxrwx 1 root root 0 May 26 01:54 ram6 -> ../devices/virtual/block/ram6
lrwxrwxrwx 1 root root 0 May 26 01:54 ram7 -> ../devices/virtual/block/ram7
lrwxrwxrwx 1 root root 0 May 26 01:54 ram8 -> ../devices/virtual/block/ram8
lrwxrwxrwx 1 root root 0 May 26 01:54 ram9 -> ../devices/virtual/block/ram9
lrwxrwxrwx 1 root root 0 May 26 01:54 synoboot -> ../devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata2/host1/target1:0:0/1:0:0:0/block/synoboot
It is hoped that these tests can provide some help for the improvement of the project. But I have prepared to obey your previous suggestions and use USB to guide.
-
3 minutes ago, flyride said:
You do not need to build them in sequence. You can just build 42661
Very frustrated and failed again. The V9FS driver work is good, the NIC work is good, and there is no error in the build.
But the disk is not found on installing the webpage.
root@x99pve:/etc/pve/qemu-server# cat 108.conf
balloon: 0
bios: ovmf
boot: order=ide2;sata0
cores: 4
cpu: host
ide2: none,media=cdrom
machine: q35
memory: 4096
meta: creation-qemu=6.1.0,ctime=1653357922
name: DVA3221
net0: virtio=00:11:32:7E:6D:DA,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: data-zfs:vm-108-disk-1,backup=0,size=1G
scsi0: data-zfs:vm-108-disk-0,backup=0,size=1200G
serial0: socket
smbios1: uuid=7fb25a1e-5f14-4a3d-9242-5aa88b0ca99a
sockets: 1
vmgenid: 6f42693e-62e8-4b59-a859-840f57244b93tc@box:~$ ./rploader.sh satamap now
Machine is VIRTUAL Hypervisor=KVMFound "00:1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/0 drives. Reserving and disabling KVM q35 bogus controllerFound "06:07.0 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/1 drives. SATABOOT detected. Mapping loader dev after maxdisks
No SATA ports mapped. Setup for compatibility with SCSI/SAS controller mapping.Recommended settings:
SataPortMap=11
DiskIdxMap=101000Should i update the user_config.json with these values ? [Yy/Nn] Y
Done.tc@box:~$ cat user_config.json
{
"extra_cmdline": {
"pid": "0xa4a5",
"vid": "0x0525",
"sn": "2040SJRVF0Y9J",
"mac1": "0011329886DD",
"SataPortMap": "11",
"DiskIdxMap": "101000"
},
"synoinfo": {
"internalportcfg": "0xffff",
"maxdisks": "16",
"support_bde_internal_10g": "no",
"support_disk_compatibility": "no",
"support_memory_compatibility": "no"
},
"ramdisk_copy": {}
}SynologyNVR> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:32:98:86:DD
inet addr:192.168.50.129 Bcast:192.168.50.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:294 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41666 (40.6 KiB) TX bytes:4906 (4.7 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:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:300 (300.0 B) TX bytes:300 (300.0 B) -
5 hours ago, flyride said:
@leang521 I was able to compile and boot DVA3221 with r8169 instead of virtio for network. But without virtio the scsi data disk won't be accessible.
So unless you want to rebuild for USB/sata0 data disk, we need to wait and see if there is another repo with virtio current platform updates, or the new platforms added to the pocopico fork of redpill-load/virtio.
Okay, I will make another V9FS driver.
But I have a question.
I see you just built a DENVERTON-7.1.0-42661.
And I need to build Denverton-7.0.1-42218, and then build Denverton-7.1.0-42661.
Otherwise, an error will be reported. Is this my special case? -
27 minutes ago, flyride said:
I only see one error. It looks like the virtio extension doesn't have a tag for DV3221. @pocopico is there a better repo to use or did it just not get added?
Have you noticed the following tips?
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension -
13 hours ago, flyride said:
If data disk is SCSI, you need to manually edit DiskIdxMap=101000 after satamap and before loader build
This is until the next update comes out from @pocopico
I hope it works. If it doesn't, here's a summary of how I would try to configure your system.
- refresh new, clean TCRP image
- Configure virtio for network card
-
bootloader image on sata0 and data disk on scsi0
- OR bootloader image on USB image and data disk on sata0
- ./rploader.sh update now
- ./rploader.sh fullupgrade now
- ./rploader.sh identifyusb now
- ./rploader.sh serialgen DV3221
- ./rploader.sh satamap now
- edit DiskIdxMap per above if data disk is scsi0, leave alone if data disk is sata0
- ./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/redpill-load/master/redpill-virtio/rpext-index.json
- ./rploader.sh build denverton-7.1.0-42661 auto
USB image is a manual configuration to the VM conf file:
Put loader.img in the path /var/lib/vz/images/<vmid>
args: -device 'nec-usb-xhci,id=usb-bus0,multifunction=on' -drive 'file=/var/lib/vz/images/<vmid>/<img file name>,media=disk,format=raw,if=none,id=drive-disk-bootloader' -device 'usb-storage,bus=usb-bus0.0,port=1,drive=drive-disk-bootloader,id=usb-disk-bootloader,bootindex=999,removable=on'
(and don't forget to configure boot to USB device)I re-imported the tinycore-redpill image and followed the steps below to build it. More errors occurred as a result.
The configuration of the KVM.
root@x99pve:/etc/pve/qemu-server# cat 108.conf
balloon: 0
bios: ovmf
boot: order=sata0
cores: 4
cpu: host
ide2: none,media=cdrom
machine: q35
memory: 4096
meta: creation-qemu=6.1.0,ctime=1653357922
name: DVA3221
net0: virtio=00:11:32:7E:6D:DA,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: data-zfs:vm-108-disk-1,backup=0,size=1G
scsi0: data-zfs:vm-108-disk-0,backup=0,size=1200G
serial0: socket
smbios1: uuid=7fb25a1e-5f14-4a3d-9242-5aa88b0ca99a
sockets: 1
vmgenid: 6f42693e-62e8-4b59-a859-840f57244b93)./rploader.sh update now
2)./rploader.sh fullupgrade now
3)./rploader.sh serialgen DVA3221
4)./rploader.sh satamap nowtc@box:~$ ./rploader.sh satamap now
Machine is VIRTUAL Hypervisor=KVMFound "00:1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/0 drives. Reserving and disabling KVM q35 bogus controllerFound "06:07.0 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
Detected 6 ports/1 drives. SATABOOT detected. Mapping loader dev after maxdisks
No SATA ports mapped. Setup for compatibility with SCSI/SAS controller mapping.Recommended settings:
SataPortMap=11
DiskIdxMap=101000Should i update the user_config.json with these values ? [Yy/Nn] Y
Done.tc@box:~$ cat user_config.json
{
"extra_cmdline": {
"pid": "0xa4a5",
"vid": "0x0525",
"sn": "2150SJRGCVBDH",
"mac1": "00113223B5FB",
"SataPortMap": "11",
"DiskIdxMap": "101000"
},
"synoinfo": {
"internalportcfg": "0xffff",
"maxdisks": "16",
"support_bde_internal_10g": "no",
"support_disk_compatibility": "no",
"support_memory_compatibility": "no"
},
"ramdisk_copy": {}
}5)./rploader.sh build denverton-7.0.1-42218
6)./rploader.sh clean now
7)./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/redpill-load/master/redpill-virtio/rpext-index.jsonThe execution process before that still seems to be correct.
But the next instruction came with many errors.8)./rploader.sh build denverton-7.1.0-42661 auto
tc@box:~$ ./rploader.sh build denverton-7.1.0-42661 auto
Rploader Version : 0.7.1.8
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.denverton-7.0.dev.txz/download
TOOLKIT_SHA : 6dc6818bad28daff4b3b8d27b5e12d0565b65ee60ac17e55c36d913462079f57
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology NAS GPL Source/25426branch/denverton-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM : denverton
TARGET_VERSION : 7.1.0
TARGET_REVISION : 42661
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE : modules.alias.4.json
SYNOMODEL : dva3221_42661
MODEL : DVA3221
Local Cache Folder : /mnt/sda3/auxfiles
DATE Internet : 25052022 Local : 25052022
Checking Internet Access -> OK
Checking if a newer version exists on the repo -> Version is current
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
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 : dva3221_42661
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/releases/redpill-4.4.180plus-denverton.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/src/check-redpill.sh
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 1234d00001111 Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found SCSI Controller : pciid 1000d00000012 Required Extension : sym53c8xx
Searching for matching extension for sym53c8xx
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension
------------------------------------------------------------------------------------------------
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
Getting required extraction tool
------------------------------------------------------------------
Checking tinycore cache folder
Found tinycore cache folder, linking to home/tc/custom-module
Creating temp folder /tmp/synoesp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 345M 100 345M 0 0 17.0M 0 0:00:20 0:00:20 --:--:-- 18.7M
Entering synoesp
extract rd.gz
finish
cpio: dev/console: Cannot mknod: Operation not permitted
cpio: dev/net/tun: Cannot mknod: Operation not permitted
42506 blocks
extract rd
mkdir: cannot create directory '/mnt/sda3/auxfiles': File exists
Copying required files to local cache folder for future use
Copying usr/lib/libcurl.so.4 to /mnt/sda3/auxfiles
Copying usr/lib/libmbedcrypto.so.5 to /mnt/sda3/auxfiles
Copying usr/lib/libmbedtls.so.13 to /mnt/sda3/auxfiles
Copying usr/lib/libmbedx509.so.1 to /mnt/sda3/auxfiles
Copying usr/lib/libmsgpackc.so.2 to /mnt/sda3/auxfiles
Copying usr/lib/libsodium.so to /mnt/sda3/auxfiles
Copying usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 to /mnt/sda3/auxfiles
Copying usr/syno/bin/scemd to /mnt/sda3/auxfiles
Copying required libraries to local lib directory
Linking lib to lib64
Copying executable
Removing temp folder /tmp/synoesp
Checking if tools is accessible
/bin/syno_extract_system_patch: /usr/local/lib/libcurl.so.4: no version information available (required by /bin/syno_extract_system_patch)
Copyright (c) 2003-2021 Synology Inc. All rights reserved./bin/syno_extract_system_patch PATCH_PATH DEST_PATH
Executed succesfully
Creating temp folder /tmp/pat
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/DVA3221/7.1.0-42661
Configfile: /home/tc/redpill-load/config/DVA3221/7.1.0-42661/config.json
Pat URL : https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DVA3221_42661.pat
Downloading pat file from URL : https://global.download.synology.com/download/DSM/release/7.1/42661-1/DSM_DVA3221_42661.pat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 353M 100 353M 0 0 857k 0 0:07:02 0:07:02 --:--:-- 1356k
File //mnt/sda3/auxfiles/dva3221_42661.pat, is encrypted
File //mnt/sda3/auxfiles/dva3221_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/dva3221_42661.pat
File /home/tc/custom-module/dva3221_42661.pat, is encrypted
Extracting encrypted pat file : /home/tc/custom-module/dva3221_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 dva3221_42661.pat to /home/tc/redpill-load/cache folder
./VERSION
Pat file sha256sum is : 20fbe25a0773877d9f9e624f72ecb318400a38fc88a477f5512f431072c6734f
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 : dva3221_42661
[#] Checking runtime for required tools... [OK]
[#] Updating dva3221_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 dva3221_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/dva3221_42661/install.sh
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_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/dva3221_42661/install-all.sh
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_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/dva3221_42661/ttyd
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_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/dva3221_42661/install_rd.sh
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_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/dva3221_42661/lrzsz.tar.gz
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_42661/lrzsz.tar.gz file... [OK]
[#] Unpacking files from /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_42661/lrzsz.tar.gz to /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_42661/... [OK]
[#] Successfully processed recipe for extension redpill-misc platform dva3221_42661
[#] Unpacking files from /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_42661/lrzsz.tar.gz to /home/tc/redpill-load/custom/extensions/redpill-misc/dva3221_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 ds918p_41890 dva3221_42661 ds3617xs_42621 ds3617xs_42218 ds920p_42661 ds918p_42661 ds1621p_42661 ds918p_25556 dva3221_42218 ds3615xs_42661 ds3622xsp_42661 ds2422p_42661 ds3622xsp_42218 ds2422p_42218 dva3221_42621 ds3615xs_41222 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds920p_42550 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds3622xsp_42621
[#] =======================================================================================[#] Checking runtime for required tools... [OK]
[#] 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%
[#] Updating thethorgroup.virtio extension...
[#] Downloading remote file https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
################################################################################################################################################################# 100.0%[#] Extension thethorgroup.virtio index is already up to date
[#] Updating thethorgroup.virtio extension... [OK]
[#] Checking runtime for required tools... [OK]
[#] Updating dva3221_42661 platforms extensions...
[#] 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 dva3221_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/dva3221_42661/boot-wait.sh
################################################################################################################################################################# 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-boot-wait/dva3221_42661/boot-wait.sh file... [OK]
[#] Successfully processed recipe for extension redpill-boot-wait platform dva3221_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 dva3221_42661 platform is already up to date
[-] The extension thethorgroup.virtio was found. However, the extension index has no recipe for dva3221_42661 platform. It may not be
[-] supported on that platform, or author didn't updated it for that platform yet. You can try running
[-] "ext-manager.sh update" to refresh indexes for all extensions manually. Below are the currently known information about
[-] the extension stored locally:
[#] ========================================== thethorgroup.virtio ==========================================
[#] Extension name: VirtIO
[#] Description: Adds VirtIO support for fast network/PCI/SCSI/network/console paravirtualization under QEmu (Proxmox, VirtualBox, virsh, and similar)
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/RedPill-TTG/redpill-virtio
[#] Software author: https://www.linux-kvm.org/page/Virtio
[#] Update URL: https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds918p_41890 ds3617xs_42621 ds3617xs_42218 ds920p_42661 ds918p_42661 ds1621p_42661 ds918p_25556 ds3615xs_42661 ds3622xsp_42661 ds2422p_42661 ds3622xsp_42218 ds2422p_42218 ds3615xs_41222 ds918p_42621 ds3617xs_42661 ds3622xsp_42550 ds3615xs_25556 ds920p_42218 ds920p_42621 ds920p_42550 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds3622xsp_42621
[#] =======================================================================================[-] Failed to update recipe for thethorgroup.virtio extension for platform dva3221_42661. The script will terminate as you do not
[-] have previously downloaded recipe which can be used if download fails. Try again later. If problem
[-] persists contact the extension packer for support (displayed below)
[#] ========================================== thethorgroup.virtio ==========================================
[#] Extension name: VirtIO
[#] Description: Adds VirtIO support for fast network/PCI/SCSI/network/console paravirtualization under QEmu (Proxmox, VirtualBox, virsh, and similar)
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/RedPill-TTG/redpill-virtio
[#] Software author: https://www.linux-kvm.org/page/Virtio
[#] Update URL: https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds918p_41890 ds3617xs_42621 ds3617xs_42218 ds920p_42661 ds918p_42661 ds1621p_42661 ds918p_25556 ds3615xs_42661 ds3622xsp_42661 ds2422p_42661 ds3622xsp_42218 ds2422p_42218 ds3615xs_41222 ds918p_42621 ds3617xs_42661 ds3622xsp_42550 ds3615xs_25556 ds920p_42218 ds920p_42621 ds920p_42550 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds3622xsp_42621
[#] =======================================================================================[!] Cannot continue due to previous errors (see above)
*** Process will exit ***
[!] Failed to update all extensions for dva3221_42661 platform - see errors above*** Process will exit ***
FAILED : Loader creation failed check the output for any errors
tc@box:~$ -
4 minutes ago, flyride said:
If data disk is SCSI, you need to manually edit DiskIdxMap=101000 after satamap and before loader build
This is until the next update comes out from @pocopico
I hope it works. If it doesn't, here's a summary of how I would try to configure your system.
- refresh new, clean TCRP image
- Configure virtio for network card
-
bootloader image on sata0 and data disk on scsi0
- OR bootloader image on USB image and data disk on sata0
- ./rploader.sh identifyusb now
- ./rploader.sh serialgen DV3221
- ./rploader.sh satamap now
- edit DiskIdxMap per above if data disk is scsi0, leave alone if data disk is sata0
- ./rploader.sh ext denverton-7.1.0-42661 add https://raw.githubusercontent.com/pocopico/redpill-load/master/redpill-virtio/rpext-index.json
- ./rploader.sh build denverton-7.1.0-42661 auto
USB image is a manual configuration to the VM conf file:
Put loader.img in the path /var/lib/vz/images/<vmid>
args: -device 'nec-usb-xhci,id=usb-bus0,multifunction=on' -drive 'file=/var/lib/vz/images/<vmid>/<img file name>,media=disk,format=raw,if=none,id=drive-disk-bootloader' -device 'usb-storage,bus=usb-bus0.0,port=1,drive=drive-disk-bootloader,id=usb-disk-bootloader,bootindex=999,removable=on'
(and don't forget to configure boot to USB device)Okay, but so far I still can't start the NIC when using DVA3221. It is correct under DS918+.
-
32 minutes ago, flyride said:
I see problems. I don't know how or why you have two img files on both SATA0 and SATA1. There should only be one loader image file.
Also, a data disk should not be on the same controller as a SATABOOT image. So if this is KVM, you will need to change the data disk to scsi0.
Alternatively, you can convert your loader to USB image and then data disk on sata0.
If you want more diagnosis post the actual output from ./rploader.sh satamap now
I hope the loader file is independent, this is a small habit of mine, please ignore it. I will use SATA0 when compiling. Then export loader.img and mount them on SATA1. And start with SATA1.
Because SCSI cannot be driven in many Chinese tutorials. I didn't find a tutorial with SCSI.
So this may be a cognitive error.
I will try to re-build loader with SCSI.Show as follows, do I need to make more modifications?
tc@box:~$ ./rploader.sh satamap now
Machine is VIRTUAL Hypervisor=KVM
Found SCSI HBAs, We need to install the SCSI modules
Downloading: scsi-5.10.3-tinycore64.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
saving to 'scsi-5.10.3-tinycore64.tcz'
scsi-5.10.3-tinycore 100% |********************************| 2632k 0:00:00 ETA
'scsi-5.10.3-tinycore64.tcz' saved
scsi-5.10.3-tinycore64.tcz: OK
Succesfully installed SCSI modulesFound "00:1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
0 drive(s) connected. Reserving and disabling KVM q35 hardware model bogus controllerFound "06:07.0 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)"
1 drive(s) connected. SATABOOT detected. Mapping loader dev after maxdisks 16Recommended settings:
SataPortMap=11
DiskIdxMap=1010Should i update the user_config.json with these values ? [Yy/Nn] Y
Done.
-
6 hours ago, pocopico said:
For that, i suggest you review again your VID:PID of the USB loader on your KVM and better select USB.
I did not use USB guidance. Instead, the virtual disk generated using "QM Importdisk" is mounted on SATA0.
7 hours ago, pocopico said:Just go again and enter "y" at the end. This way the unencrypted file will be cached for future use.
I tried like this. However, DVA3221_42218.pat will be deleted and only retains DVA3221_42661.pat files. Does this affect the next build?
In the end, how should I configure the network card driver, I still can't run it correctly.
If I configure it to Virtio NIC before build, the script cannot be recognized correctly.Even though I had executed the "./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json" command before constructing.
Found VGA Controller : pciid 1234d00001111 Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension
If I configure it to E1000e NIC before build. It looks like the driver is installed correctly. But Boot cannot obtain IP correctly.
Found VGA Controller : pciid 1234d00001111 Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922 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/
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/mame/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.e1000e =================
[#] Extension name: e1000e
[#] Description: Adds Intel(R) PRO/1000 Network Driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/e100
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/
[#] Platforms supported: ds1621p_42218 ds918p_41890 dva3221_42661 ds3617xs_42621_42661 ds1621p_42661 ds918p_25556 dva3221_42218 ds3615xs_42661 ds3622xsp_42661 dxs_41222 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds2621 ds3615xs_42218 ds3622xsp_42621
[#] ============================================================================
Found Ethernet Interface : pciid 8086d000010d3 Required Extension : e1000e
Searching for matching extension for e1000e
Found matching extension :
"https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.jso
--------------------------------------------------------------------------------
-
1 hour ago, flyride said:
This looks like you are running KVM q35, plus SATABOOT image on sata0, and now data drives on scsi controller. This is different than your first post which was all sata.
There is a problem for systems with SCSI data disks only that will be fixed with the next rploader script update.
Functional settings for the above specific combination are SataPortMap="11" and DiskIdxMap="101000"
No, I did not use any SCSI hard disk. I have only tested one virtual hard disk structures.
SATA0:tinycore-redpill.v0.4.6.img
SATA1:loader.img
SATA2:data hard disk(1TB)
Under this configuration, I use SataPortMap="14" and DiskIdxMap="1002".
SATA1 and SATA2 can be seen in the DSM system, and the disk is located on Hard Disk 4 and Hard Disk 5, respectively.
I hope to only display SATA2 and be located on the hard disk 1. But there is no time to adjust.
Because I am doing my best to achieve the guidance of DVA3221, it has not yet succeeded -
8 hours ago, pocopico said:
You can always copy/scp your files under /home/tc/custom-modules and they will be used instead of downloading the pat all the time.
The 1GB image size can hold up to two different pat files. If you are on a physical machine you can also use parted to increase the third USB partition to the maximum. If you are in virtual you have to leave it to 1GB as this is critical for the synoboot to be picked correctly.
Sorry, I made a mistake before. It has been resolved so far.
For DVA3221, you need to build 7.0.1-42218 before building 7.1.0-42661.
But I still had a few minor problems.
The pat file name recognized by the script is dva3221_42218.pat. The file downloaded from the official website is DSM_DVA3221_42218.pat.
If I upload DSM_DVA3221_42218.pat directly, the script is not recognized.
Want to use firmware files from /home/tc/custom-module/*.pat ? [yY/nN] :
y
Processing add_extensions entries found on custom_config.json file :
[#] Checking runtime for required tools... [OK]
[#] Updating extensions...
......
[#] PAT file /home/tc/redpill-load/cache/dva3221_42218.pat not found - downloading from https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DVA3221_42218.pat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 347M 100 347M 0 0 2030k 0 0:02:55 0:02:55 --:--:-- 2452k
If I change the file name to dva3221_42218.pat. Prompt me to delete after the build is over
Entries in Localdisk bootloader :
=======================================================================
menuentry 'RedPill DVA3221 v7.1.0-42661 Beta (USB, Verbose)' {
menuentry 'RedPill DVA3221 v7.1.0-42661 Beta (SATA, Verbose)' {
menuentry 'Tiny Core Image Build' {
Machine is VIRTUAL Hypervisor=KVM
Setting default boot entry to SATA
Caching files for future use
No adequate space on TCRP loader partition /mnt/sdb3 to cache pat file
Found /mnt/sdb3/auxfiles/dva3221_42218.pat
/mnt/sdb3/auxfiles/dva3221_42661.pat file
Do you want me to remove older cached pat files and cache current ? [yY/nN] :
Second question
Some strange information will appear on the serial port during booting
Still waiting for boot device (waited 1 of 30 seconds)
Still waiting for boot device (waited 2 of 30 seconds)
Still waiting for boot device (waited 3 of 30 seconds)
Still waiting for boot device (waited 4 of 30 seconds)
Still waiting for boot device (waited 5 of 30 seconds)
Still waiting for boot device (waited 6 of 30 seconds)
Still waiting for boot device (waited 7 of 30 seconds)
Still waiting for boot device (waited 8 of 30 seconds)
Still waiting for boot device (waited 9 of 30 seconds)
Still waiting for boot device (waited 10 of 30 seconds)
Still waiting for boot device (waited 11 of 30 seconds)
Still waiting for boot device (waited 12 of 30 seconds)
Still waiting for boot device (waited 13 of 30 seconds)
Still waiting for boot device (waited 14 of 30 seconds)
Still waiting for boot device (waited 15 of 30 seconds)
Still waiting for boot device (waited 16 of 30 seconds)
Still waiting for boot device (waited 17 of 30 seconds)
Still waiting for boot device (waited 18 of 30 seconds)
Still waiting for boot device (waited 19 of 30 seconds)
Still waiting for boot device (waited 20 of 30 seconds)
Still waiting for boot device (waited 21 of 30 seconds)
Still waiting for boot device (waited 22 of 30 seconds)
Still waiting for boot device (waited 23 of 30 seconds)
Still waiting for boot device (waited 24 of 30 seconds)
Still waiting for boot device (waited 25 of 30 seconds)
Still waiting for boot device (waited 26 of 30 seconds)
Still waiting for boot device (waited 27 of 30 seconds)
Still waiting for boot device (waited 28 of 30 seconds)
Still waiting for boot device (waited 29 of 30 seconds)
Still waiting for boot device (waited 30 of 30 seconds)
Third question. If I set the VNIC to E1000e before building. The NIC cannot obtain the IP address after booting.
eth0 Link encap:Ethernet HWaddr 00:11:32:2A:46:E7
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:21 errors:8 dropped:0 overruns:0 frame:8
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3274 (3.1 KiB) TX bytes:0 (0.0 B)
Interrupt:23 Memory:c1620000-c1640000
And you receive a lot of drop notification
[ 539.856580] e1000e 0000:06:12.0 eth0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[ 539.859860] e1000e 0000:06:12.0 eth0: NIC Link is Down
If I set the virtual NIC to virtio before building, the NIC will not be recognized after booting.
So far I haven't been able to run the NIC on dva3221.
-
42 minutes ago, pocopico said:
You can always copy/scp your files under /home/tc/custom-modules and they will be used instead of downloading the pat all the time.
The 1GB image size can hold up to two different pat files. If you are on a physical machine you can also use parted to increase the third USB partition to the maximum. If you are in virtual you have to leave it to 1GB as this is critical for the synoboot to be picked correctly.
I do this currently, but it seems to have some problems.
I compiled DVA3221 and there were some errors.My operating process is as follows:
./rploader.sh update now
./rploader.sh fullupgrade now
./rploader.sh serialgen DVA3221
./rploader.sh satamap now
vi user_config.json
./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json
./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-virtio/rpext-index.json
./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-acpid/rpext-index.json
./rploader.sh build denverton-7.1.0-42661Conf configuration file is as follows:
tc@box:~$ cat user_config.json
{
"extra_cmdline": {
"pid": "0xa4a5",
"vid": "0x0525",
"sn": "20C0SJRP05KQM",
"mac1": "00113240BCCC",
"SataPortMap": "14",
"DiskIdxMap": "1000"
},
"synoinfo": {
"internalportcfg": "0xffff",
"maxdisks": "16",
"support_bde_internal_10g": "no",
"support_disk_compatibility": "no",
"support_memory_compatibility": "no"
},
"ramdisk_copy": {}
}The feedback information is as follows:
tc@box:~$ ./rploader.sh build denverton-7.1.0-42661
Rploader Version : 0.7.1.7
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.denverton-7.0.dev.txz/download
TOOLKIT_SHA : 6dc6818bad28daff4b3b8d27b5e12d0565b65ee60ac17e55c36d913462079f57
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology NAS GPL Source/25426branch/denverton-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM : denverton
TARGET_VERSION : 7.1.0
TARGET_REVISION : 42661
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE : modules.alias.4.json
SYNOMODEL : dva3221_42661
MODEL : DVA3221
Local Cache Folder : /mnt/sdb3/auxfiles
DATE Internet : 24052022 Local : 24052022
Checking Internet Access -> OK
Checking if a newer version exists on the repo -> Version is current
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
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 : dva3221_42661
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/releases/redpill-4.4.180plus-denverton.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/src/check-redpill.sh
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 1234d00001111 Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922 Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension
------------------------------------------------------------------------------------------------
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
Getting required extraction tool
------------------------------------------------------------------
Checking tinycore cache folder
Found tinycore cache folder, linking to home/tc/custom-module
Creating temp folder /tmp/synoesp
Found custom pat file /home/tc/custom-module/DSM_DVA3221_42218.pat
Processing old pat file to extract required files for extraction
Entering synoesp
extract rd.gz
finish
cpio: dev/console: Cannot mknod: Operation not permitted
cpio: dev/net/tun: Cannot mknod: Operation not permitted
36374 blocks
extract rd
mkdir: cannot create directory '/mnt/sdb3/auxfiles': File exists
Copying required files to local cache folder for future use
Copying usr/lib/libcurl.so.4 to /mnt/sdb3/auxfiles
Copying usr/lib/libmbedcrypto.so.5 to /mnt/sdb3/auxfiles
Copying usr/lib/libmbedtls.so.13 to /mnt/sdb3/auxfiles
Copying usr/lib/libmbedx509.so.1 to /mnt/sdb3/auxfiles
Copying usr/lib/libmsgpackc.so.2 to /mnt/sdb3/auxfiles
Copying usr/lib/libsodium.so to /mnt/sdb3/auxfiles
Copying usr/lib/libsynocodesign-ng-virtual-junior-wins.so.7 to /mnt/sdb3/auxfiles
Copying usr/syno/bin/scemd to /mnt/sdb3/auxfiles
Copying required libraries to local lib directory
Linking lib to lib64
Copying executable
Removing temp folder /tmp/synoesp
Checking if tools is accessible
/bin/syno_extract_system_patch: /usr/local/lib/libcurl.so.4: no version information available (required by /bin/syno_extract_system_patch)
Copyright (c) 2003-2021 Synology Inc. All rights reserved./bin/syno_extract_system_patch PATCH_PATH DEST_PATH
Executed succesfully
Checking for cached pat file
Found tinycore cache folder, linking to home/tc/custom-module
Found locally cached pat file /home/tc/custom-module/DSM_DVA3221_42661.pat
File /home/tc/custom-module/DSM_DVA3221_42661.pat, is encrypted
File /home/tc/redpill-load/cache/dva3221_42661.pat, is a compressed tar
Unecrypted file is already cached in : /home/tc/redpill-load/cache/dva3221_42661.pat
tar: ./VERSION: Not found in archive
tar: Exiting with failure status due to previous errors
Pat file sha256sum is : b4c2b99f40934e1dc90be1bb08f29e8403186a0dbb34fee180d004dc267d682a
Checking config file existence -> No config file found, please use the proper repo, clean and download again
tc@box:~$After that, I executed the "./rploader.sh clean now" command and build it again. But the problem is still.
-
15 hours ago, pocopico said:
The 0 in first HBA is known to cause kernel panic. Try "SataPortMap": "1" and see how it goes
10 hours ago, flyride said:@leang521 This issue was fixed recently in script. PocoPico is correct but you may not want to do manually.
if you run ./rploader.sh update now (to get the latest script) and ./rploader.sh satamap now it will fix it automatically.
Thank you very much. I updated the "RedPill-Tinycore-loader" today, which can indeed be guided normally.
But there is a small problem. The current execution of "./rploader.sh Satamap now" has no manual adjustment project.
Automatic generated
"SataPortMap": "11",
"DiskIdxMap": "1010"
Such configuration.
If you directly use this configuration guidance, you can't find the hard disk.
You also need to adjust the conf file manually."SataPortMap": "14",
"DiskIdxMap": "1002"
Another suggestion. When compiling repeatedly, Synology limits the download speed of the PAT file, with a minimum of only 2kb/s. So I hope to manually upload the pat file to the system. And increase the mirror space to save the PAT file.- 1
-
1 hour ago, pocopico said:
can you please sent me the SataPortMap setting ? It should be in your user_config.json.
I have tested the following configurations respectively
"SataPortMap": "02",
"DiskIdxMap": "0000""SataPortMap": "04",
"DiskIdxMap": "0000""SataPortMap": "24",
"DiskIdxMap": "0000" -
This is a Google translation tool, translated from Chinese to English. There may be grammatical errors, please forgive me
I tried too much virtual machine configuration (KVM64/Host). Try to compile DS918, DVA3221, DS3622, etc. I also try to use SATA guidance and USB guidance. But every time it is guided, it leads to "Kernel Offset" error.[ 2.371160] [<ffffffff81446ea0>] ? ahci_pmp_retry_softreset+0xd0/0xd0
[ 2.371160] [<ffffffff814231cb>] ata_host_activate+0xbb/0x110
[ 2.371160] [<ffffffff81445f3b>] ahci_host_activate+0x4b/0x130
[ 2.371160] [<ffffffff813355e1>] ? pcibios_set_master+0x61/0x80
[ 2.371160] [<ffffffff814432be>] ahci_init_one+0x9ce/0xe20
[ 2.371160] [<ffffffff813379b6>] pci_device_probe+0x96/0x100
[ 2.371160] [<ffffffff813ce1c6>] driver_probe_device+0x1c6/0x280
[ 2.371160] [<ffffffff813ce2fc>] __driver_attach+0x7c/0x80
[ 2.371160] [<ffffffff813ce280>] ? driver_probe_device+0x280/0x280
[ 2.371160] [<ffffffff813cc2eb>] bus_for_each_dev+0x6b/0xa0
[ 2.371160] [<ffffffff813cdae9>] driver_attach+0x19/0x20
[ 2.371160] [<ffffffff813cd724>] bus_add_driver+0x1a4/0x1e0
[ 2.371160] [<ffffffff8192dc5b>] ? ata_sff_init+0x31/0x31
[ 2.371160] [<ffffffff813ceaeb>] driver_register+0x6b/0xc0
[ 2.371160] [<ffffffff813363a7>] __pci_register_driver+0x47/0x50
[ 2.371160] [<ffffffff8192dc74>] ahci_pci_driver_init+0x19/0x1b
[ 2.371160] [<ffffffff81000341>] do_one_initcall+0x81/0x130
[ 2.371160] [<ffffffff818f26e7>] ? do_early_param+0x90/0x90
[ 2.371160] [<ffffffff818f2fb5>] kernel_init_freeable+0x14d/0x1de
[ 2.371160] [<ffffffff8157601d>] ? rest_init+0x74/0x74
[ 2.371160] [<ffffffff81576026>] kernel_init+0x9/0xd3
[ 2.371160] [<ffffffff8157ba2f>] ret_from_fork+0x3f/0x80
[ 2.371160] [<ffffffff8157601d>] ? rest_init+0x74/0x74
[ 2.371160] Code: 35 16 00 48 8d 5b f8 45 8d 64 24 ff 45 85 e4 79 da 49 8d 3e e8 cb 53 fb ff 5b 41 5c 41 5d 41 5e 41 8d 07 41 5f 5d c3 48 8b 43 28 <48> 83 b8 20 01 00 00 00 0f 85 ec fe ff ff e9 62 ff ff ff 41 bf
[ 2.371160] RIP [<ffffffff8141c8a7>] ata_host_start.part.38+0x197/0x1c0
[ 2.371160] RSP <ffff880179123be8>
[ 2.371160] CR2: 0000000000000120
[ 2.371160] ---[ end trace ba65eee5942df4d0 ]---
[ 2.422739] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 2.422739]
[ 2.423716] Kernel Offset: disabled
[ 2.423716] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 2.423716]
My virtual configuration file(.conf) is as follows.
boot: order=sata1
cores: 4
cpu: host
ide0: none,media=cdrom
machine: q35
memory: 4096
meta: creation-qemu=6.1.0,ctime=1652514353
name: DVA3221
net0: virtio=00:11:32:DC:60:72,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
sata0: data-zfs:vm-107-disk-0,size=1G
sata1: data-zfs:vm-107-disk-2,size=160M
sata2: data-zfs:vm-107-disk-1,backup=0,size=1000G
serial0: socket
smbios1: uuid=9ccd8891-7d4b-4b01-bdda-7485538927c3
sockets: 1
vmgenid: f2e20777-1bd3-40d7-be6b-2190cfc97203My virtual machine hardware is: 32 X Intel (R) Xeon (R) CPU E5-2630 V3 @ 2.40GHz (2 slot).
I saw the same problem with Ideasman69. But I asked him without any reply.
saw your previous comments, but I didn't find useful information in @haydibeg Guide.
Can you provide me with more help. -
On 5/16/2022 at 6:33 AM, ideasman69 said:
thanks mate. I used his guide which produced a VM identical to mine... it ended up being my satamap. I had it 0 for the VM's sata controller that had no drives attached. once I set it to 6, it booted 😕
i spent hours on that!
Hi! I encountered the same problem. But I didn't find the guide. Can you give me the link? Or talk about the solution.
Install/Migrate to DSM 7.x with TCRP
in General Installation Questions/Discussions (non-hardware specific)
Posted
I build DVA3221 under PVE 7. Hope to Turn off the kvm. I used the following command to add ACPI. But it doesn't seem to work. Where did I do something wrong?
./rploader.sh ext denverton-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/develop/redpill-acpid/rpext-index.json
I see someone suggesting that you use https://github.com/jumkey/redpill-load/tree/develop/redpill-acpid/rpext-index.json. Is there any difference between them?