Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

35 minutes ago, pocopico said:


最安全的方法总是启动到 DSM 并检查 /sys/block/sata1/device/syno_block_info 

 

lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata1 -> ../devices/pci0000:00/0000:00:11.0/0000:02:03.0/ata1/host0/target0:0:0/0:0:0:0/block/sata1
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata2 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata31/host30/target30:0:0/30:0:0:0/block/sata2
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata3 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata32/host31/target31:0:0/31:0:0:0/block/sata3
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata4 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata33/host32/target32:0:0/32:0:0:0/block/sata4
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata5 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata34/host33/target33:0:0/33:0:0:0/block/sata5
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata6 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata35/host34/target34:0:0/34:0:0:0/block/sata6
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata7 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata36/host35/target35:0:0/35:0:0:0/block/sata7
SynologyNAS> cat /sys/block/sata1/device/syno_block_info
pciepath=00:11.0,03.0
ata_port_no=0
driver=ahci
SynologyNAS> cat /sys/block/sata2/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=0
driver=ahci
SynologyNAS> cat /sys/block/sata3/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=1
driver=ahci
SynologyNAS> cat /sys/block/sata4/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=2
driver=ahci
SynologyNAS> cat /sys/block/sata5/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=3
driver=ahci
SynologyNAS> cat /sys/block/sata6/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=4
driver=ahci
SynologyNAS> cat /sys/block/sata7/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=5
driver=ahci
SynologyNAS>

 

 

ds920p.dts

pcie_root = "00:11.0,04.0";
ata_port = <0x0>;

......

pcie_root = "00:11.0,04.0";
ata_port = <0x1>;

......

pcie_root = "00:11.0,04.0";
ata_port = <0x2>;
 

 

Still can't find the hard drive.

Link to comment
Share on other sites

 

I use these in my try (example for DS3622xs+)

 

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh serialgen DS3622xs+

./rploader.sh identifyusb now

./rploader.sh satamap now

./rploader.sh backup now

./rploader.sh ext broadwellnk-7.0.1-42218 auto

./rploader.sh build broadwellnk-7.0.1-42218

./rploader.sh backup now

Link to comment
Share on other sites

24 minutes ago, likeme said:

 

lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata1 -> ../devices/pci0000:00/0000:00:11.0/0000:02:03.0/ata1/host0/target0:0:0/0:0:0:0/block/sata1
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata2 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata31/host30/target30:0:0/30:0:0:0/block/sata2
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata3 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata32/host31/target31:0:0/31:0:0:0/block/sata3
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata4 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata33/host32/target32:0:0/32:0:0:0/block/sata4
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata5 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata34/host33/target33:0:0/33:0:0:0/block/sata5
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata6 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata35/host34/target34:0:0/34:0:0:0/block/sata6
lrwxrwxrwx    1 root     root             0 Apr 22  2022 sata7 -> ../devices/pci0000:00/0000:00:11.0/0000:02:04.0/ata36/host35/target35:0:0/35:0:0:0/block/sata7
SynologyNAS> cat /sys/block/sata1/device/syno_block_info
pciepath=00:11.0,03.0
ata_port_no=0
driver=ahci
SynologyNAS> cat /sys/block/sata2/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=0
driver=ahci
SynologyNAS> cat /sys/block/sata3/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=1
driver=ahci
SynologyNAS> cat /sys/block/sata4/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=2
driver=ahci
SynologyNAS> cat /sys/block/sata5/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=3
driver=ahci
SynologyNAS> cat /sys/block/sata6/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=4
driver=ahci
SynologyNAS> cat /sys/block/sata7/device/syno_block_info
pciepath=00:11.0,04.0
ata_port_no=5
driver=ahci
SynologyNAS>

 

 

ds920p.dts

pcie_root = "00:11.0,04.0";
ata_port = <0x0>;

......

pcie_root = "00:11.0,04.0";
ata_port = <0x1>;

......

pcie_root = "00:11.0,04.0";
ata_port = <0x2>;
 

 

Still can't find the hard drive.


did you use the redpill-dtb??

Link to comment
Share on other sites

 What is happend with  ./rploader.sh build command? During build continuosly tries to download *pat

 

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 34  360M   34  125M    0     0  21.2M      0  0:00:16  0:00:05  0:00:11 24.5M^C

 

When download is completed download restarts automatically and loops... 
 

Link to comment
Share on other sites

1 час назад, yaleforks сказал:

Got 7.1 DS918+ working with 11 drives and a Skylake processor no problem, USB UPS support seems to be the only thing that isn't working. Is there a patch for this?

Baremetal or VM? what exact steps?..

Edited by Teemon
Link to comment
Share on other sites

34 minutes ago, RedCat said:

Is there any solution to the 920+ 7.1 hdd detection problem during VM?

Do you mean the 

 

Still waiting for boot device (waited x of 30 seconds)

 

message? I think it might be related to having to install the drivers for accessing you controller and something with the device tree binary extension. But I cannot really make it work either. What were your concrete steps?

Link to comment
Share on other sites

3d day I try to install DSM 7\7.1 to VMware 16 player. I prepared the loader (tried 920,918 etc), got the message "Booting the kernel" after preparation but can't find the unit via web or asisstant. I haven't a clue what is next, how to manage it... I tried to assign COM port to listen what happens when Tinycore is loading but may be I didn't made some settings - my log file or port listening is empty.

I tried to change E1000 to E1000E in the VMX file but it is didn't help.

I assigned the MAC to network card in the VM - nothing.

I found some chinesse article about DSM installation sep-by-step and repeatted exact steps

https://hopolcn.com/2022/04/2026/

But nothing helped me.

But, this arcticle mentions some settings for COM port, I haven't manage to repeat it fully because I don't know how to repeat it in the VmWare.

Link to comment
Share on other sites

Just wanted to verify, building tcrp loader for proxmox pve vm, it boots from sata and vid/pid does not matter, right?

or is there a way to make it boot from usb (virtual usb) inside proxmox?  The method I am using is very pieces together... I am learning piece by piece from different methods for proxmox build.

 

Is there anyone who has successfully added acpid shutdown control in proxmox vm? even adding the acpid doesnt seem to work. I have to manually shutdown in dsm or force close the vm running in proxmox.

Link to comment
Share on other sites

4 hours ago, phone guy said:

Just wanted to verify, building tcrp loader for proxmox pve vm, it boots from sata and vid/pid does not matter, right?

or is there a way to make it boot from usb (virtual usb) inside proxmox?  The method I am using is very pieces together... I am learning piece by piece from different methods for proxmox build.

 

Is there anyone who has successfully added acpid shutdown control in proxmox vm? even adding the acpid doesnt seem to work. I have to manually shutdown in dsm or force close the vm running in proxmox.

 

Usb vid/pid does not matter. I think satamap is neccesary, I always use satamap command. 

Easy way: use RP loader sata0 and boot sata0

Hard way: you can boot from usb also, but you cant set it in GUI, you need use command line:

 

args: -drive 'if=none,id=synoboot,format=raw,file=/var/lib/vz/images/109/tinycore-redpill.img' -device 'qemu-xhci,addr=0x18' -device 'usb-storage,drive=synoboot,bootindex=5'

 

It boot from usb

 

The acpi button works for me 918+ 7.1 on Proxmox

Link to comment
Share on other sites

 

 

This is an emergency announcement.
@Pocopico was notified separately by PM.

Syntex error found in the modified rpext-index.json file 2 days ago.

you modified the rpext-index.json file yourself

LINE 1208 Remove the last "," and use it.

 

  "releases": {
    "ds3615xs_42218": "https://raw.githubusercontent.com/pocopico/rp-ext/master/ixgbe.vanilla/releases/ds3615xs_42218.json",
  }

 

If this error occurs, the ability to automatically find exts will not work.

Do not use full-upgrade action until action is taken. Manually modified files are overwritten with error files again.

Edited by Peter Suh
Link to comment
Share on other sites

1 hour ago, RedCat said:

The acpi button works for me 918+ 7.1 on Proxmox

I setup a 918 in proxmox, added acpid from pocopico, boot and install dsm, press shutdown in proxmox portal web gui, and nothing happens...it eventually timeout in proxmox with error unable to shutdown timeout

Link to comment
Share on other sites

38 minutes ago, Peter Suh said:

 

 

This is an emergency announcement.
@Pocopico was notified separately by PM.

Syntex error found in the modified rpext-index.json file 2 days ago.

you modified the rpext-index.json file yourself

LINE 1208 Remove the last "," and use it.

 

  "releases": {
    "ds3615xs_42218": "https://raw.githubusercontent.com/pocopico/rp-ext/master/ixgbe.vanilla/releases/ds3615xs_42218.json",
  }

 

If this error occurs, the ability to automatically find exts will not work.

Do not use full-upgrade action until action is taken. Manually modified files are overwritten with error files again.

Does this only effect 3615 build?

Link to comment
Share on other sites

52 minutes ago, Peter Suh said:

 

 

This is an emergency announcement.
@Pocopico was notified separately by PM.

Syntex error found in the modified rpext-index.json file 2 days ago.

you modified the rpext-index.json file yourself

LINE 1208 Remove the last "," and use it.

 

  "releases": {
    "ds3615xs_42218": "https://raw.githubusercontent.com/pocopico/rp-ext/master/ixgbe.vanilla/releases/ds3615xs_42218.json",
  }

 

If this error occurs, the ability to automatically find exts will not work.

Do not use full-upgrade action until action is taken. Manually modified files are overwritten with error files again.

Can you check again please ? I’m away from home so I edit on my phone :/) 

Link to comment
Share on other sites

12 minutes ago, pocopico said:

Can you check again please ? I’m away from home so I edit on my phone :/) 

 

 

Normal operation confirmed after full upgrade action.!!!

 

 

Found VGA Controller : pciid 8086d0000041e  Required Extension : i915
Searching for matching extension for i915
Found SATA Controller : pciid 8086d00008c82  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 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 
[#] =======================================================================================
 

Link to comment
Share on other sites

R8152 for DS3622xs+ for realtek 1G USB NIC is up.

 

I asked GITHUB's bb-qq, shared by @dolbycat, for the DS3622xs+ ext a few weeks ago, and they completed it today.

It seems to be used as a manual installation in the package manager.

@pocopico 's ext is a driver that should be used as an alternative because it does not work.

https://github.com/bb-qq/r8152/releases/download/2.15.0-7/r8152-broadwellnk-2.15.0-7.spk

 

Note:

The installation will fail the first time. After that, run the following command from the SSH terminal:
sudo install -m 4755 -o root -D /var/packages/r8152/target/r8152/spk_su /opt/sbin/spk_su

If you encounter a performance issue, please try 2.14.0-6.

Users of DSM 6.2 should use past releases.

 

642498229_2022-04-2310_56_08.thumb.png.71004630b0f873b966daa9a68846d3ea.png

 

1860718043_2022-04-2310_56_51.thumb.png.20fcf1a2f9500bc413b48123913ee5a2.png

 

 

It works very well.

I have one more USB NIC installed on the dual LAN.

You don't have to touch the grub.cfg, just reboot after installing the driver.

 

Edited by Peter Suh
Link to comment
Share on other sites

4 hours ago, phone guy said:

I setup a 918 in proxmox, added acpid from pocopico, boot and install dsm, press shutdown in proxmox portal web gui, and nothing happens...it eventually timeout in proxmox with error unable to shutdown timeout

 

It takes Time. Proxmox says timeout but in real the Machine is shuting down. Let run a Serial Connection and you can see it.

Link to comment
Share on other sites

I am currently trying to get DSM 7.1 to work on vmware esxi 6.7.

On DS918+ DSM 7.1 had a problem, DSM would start shutting down when trying to access the web GUI after installing DSM, so I modified "/usr/lib/modules-load.d/70-cpufreq-kernel.conf" from a previous post, and it now works fine.
On DS3617xs and DS3622xsp, the installation of DSM7.1 is successful. But after first reboot the VM shutdown process starts by itself when accessing the Web GUI. I have tried to modify "/usr/lib/modules-load.d/70-cpufreq-kernel.conf" to no avail. I cannot access Web GUI.


Does anyone succeed DSM 7.1 DS3617xs or DS3622xsp running on vmware esxi?

( On DS3617xs and DS3622xsp, DSM 7.0.1 is successful and can access Web GUI, but 7.1 is not )

 

By the way, I am using the following extensions

 

https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-acpid.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/mlx4_core/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/vmw_pvscsi/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-boot-wait/rpext-index.json
https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json

 

Thank you.

Edited by staratlas
Link to comment
Share on other sites

15 minutes ago, staratlas said:

I am currently trying to get DSM 7.1 to work on vmware esxi 6.7.

On DS918+ DSM 7.1 had a problem, DSM would start shutting down when trying to access the web GUI after installing DSM, so I modified "/usr/lib/modules-load.d/70-cpufreq-kernel.conf" from a previous post, and it now works fine.
On DS3617xs and DS3622xsp, the installation of DSM7.1 is successful. But after first reboot the VM shutdown process starts by itself when accessing the Web GUI. I have tried to modify "/usr/lib/modules-load.d/70-cpufreq-kernel.conf" to no avail. I cannot access Web GUI.


Does anyone succeed DSM 7.1 DS3617xs or DS3622xsp running on vmware esxi?

( On DS3617xs and DS3622xsp, DSM 7.0.1 is successful and can access Web GUI, but 7.1 is not )

 

By the way, I am using the following extensions

 

https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-acpid.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/mlx4_core/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/vmw_pvscsi/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-boot-wait/rpext-index.json
https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json

 

Thank you.


the file editing is unnecessary if you use the redpill-misc from my repo. Interesting though that you had to edit the files again. 

Link to comment
Share on other sites

Quote

the file editing is unnecessary if you use the redpill-misc from my repo. Interesting though that you had to edit the files again. 

 

Thanks for the reply.
One correction, when I was testing DS918+ DSM 7.1

https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json

I had not yet included the extension here, so I may have needed to modify the file.

 

However, I have already installed and tested redpill-misc on DS3617 and DS3622, but I have not been able to solve the problem of unexpectedly shutting down when accessing the web GUI.

Link to comment
Share on other sites

Just now, staratlas said:

 

Thanks for the reply.
One correction, when I was testing DS918+ DSM 7.1

https://github.com/pocopico/redpill-load/raw/develop/redpill-misc/rpext-index.json

I had not yet included the extension here, so I may have needed to modify the file.

 

However, I have already installed and tested redpill-misc on DS3617 and DS3622, but I have not been able to solve the problem of unexpectedly shutting down when accessing the web GUI.

If a prerequisite systemd service fails to load the system will shutdown. It can be a module loading or a service. You have to check systemd to see what is failing and fix. Some known fixes are pushed through redpill-misc extension but maybe not all of them. I’m interested to know which one is failing. Maybe we need to add it to the list. 

Link to comment
Share on other sites

Quote

If a prerequisite systemd service fails to load the system will shutdown. It can be a module loading or a service. You have to check systemd to see what is failing and fix. Some known fixes are pushed through redpill-misc extension but maybe not all of them. I’m interested to know which one is failing. Maybe we need to add it to the list. 

Thank you for your rapid reply.

 

I check failed state services on DSM 7.1 and DS3617xs

root@DiskStation:~# systemctl list-units --state failed

● pgsql-adapter.service          loaded failed failed PostgreSQL adapter
● syno-mount-usbfs.service       loaded failed failed Mount usb fs
● synoindex-checkpackage.service loaded failed failed synoindex check if there are any synoindex-related packages
● SynoInitEth.service            loaded failed failed Adjust NIC sequence
● systemd-modules-load.service   loaded failed failed Load Kernel Modules

 

and DSM 7.1 and DS918+ ( work fine )

root@DiskStation:~# systemctl list-units --state failed

  UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
● syno-mount-usbfs.service       loaded failed failed Mount usb fs
● synoindex-checkpackage.service loaded failed failed synoindex check if there are any synoindex-related packages
● SynoInitEth.service            loaded failed failed Adjust NIC sequence

 

and then I check "systemd-modules-load.service"

root@DiskStation:~# systemctl start systemd-modules-load
[  541.149389] mlx4_en: Unknown symbol mlx4_get_vf_rate (err 0)
[  541.150213] mlx4_en: Unknown symbol mlx4_test_async (err 0)
[  541.151023] mlx4_en: Unknown symbol mlx4_set_vf_vlan_next (err 0)
[  541.151968] mlx4_en: Unknown symbol mlx4_test_interrupt (err 0)
[  541.152877] mlx4_en: Unknown symbol mlx4_get_vport_ethtool_stats (err 0)
[  541.153859] mlx4_en: Unknown symbol mlx4_SET_PORT_disable_mc_loopback (err 0)
[  541.154883] mlx4_en: Unknown symbol mlx4_rename_eq (err 0)
[  541.155626] mlx4_en: Unknown symbol mlx4_reset_vlan_policy (err 0)
[  541.156510] mlx4_en: Unknown symbol mlx4_max_tc (err 0)
[  541.157272] mlx4_en: Unknown symbol mlx4_is_available_mac (err 0)
[  541.158080] mlx4_en: Unknown symbol syno_restart (err 0)
[  541.158834] mlx4_en: Unknown symbol mlx4_get_vf_vlan_set (err 0)
[  541.159718] mlx4_en: Unknown symbol mlx4_get_is_vlan_offload_disabled (err 0)
[  541.160742] mlx4_en: Unknown symbol mlx4_get_vf_vlan_info (err 0)
[  541.161577] mlx4_en: Unknown symbol mlx4_get_vf_stats_netdev (err 0)
[  541.162598] mlx4_en: Unknown symbol mlx4_SET_PORT_user_mtu (err 0)
[  541.163445] mlx4_en: Unknown symbol mlx4_get_vf_link_state (err 0)

 

this problem occurred extension "mlx4_core". Can I fix this problem ?

( I know remove this extension fix this problem, but i want to use mellanox NIC card )

 

Edited by staratlas
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...