Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

2 hours ago, pocopico said:

对于测试DS3615xs的任何人,我已经成功测试了 TCRP 两阶段升级到 7.1.0-42621。

 

请谨慎进行,仅在测试系统上进行,直到报告过程稳定 

 

过程是:

 

- 使用 DSM 手动升级到 7.1 RC
- 重新启动时,选择启动 tinycore redpill

- 目前,只有 dogodefi 存储库具有 ds3615xs_42621 的配置文件,因此将 bromolow 存储库的 custom_config.json 更改为该配置文件。
- 在 TCRP 上运行以下命令

 

./rploader.sh 现在更新
./rploader.sh backuploader 现在

./rploader.sh 现在清理(如果你的 repo 已经设置为 dogodefi,你可以跳过它)
./rploader.sh 下载 bromolow-7.0.1-42218
./rploader.sh postupdate bromolow-7.0.1-42218

 
修复 acpi systemd 问题,否则 DSM 将在访问时关闭(检查 systemctl list-units --state failed),您必须在第一次成功重启 DSM 后执行该操作。

 

./rploader.sh 现在 mountdsmroot

sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib /modules-load.d/70-cpufreq-kernel.conf

 

when will the dsm7.1 loader for 918+ update?

Link to comment
Share on other sites

@pocopico using the update method for 3622 i am getting a ./rploader.sh line 61 error when running the postupdate command.  seems like it has to do with mounting directories on the flash drive?  here is a log

tc@box:~$ sudo ./rploader.sh postupdate broadwellnk-7.0.1-42218
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
Loader source : https://github.com/dogodefi/redpill-load.git Loader Branch : dev                                                                                                         elop
Redpill module source : https://github.com/dogodefi/redpill-lkm.git : Redpill mo                                                                                                         dule branch : develop
Extensions :
Extensions URL :
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.bro                                                                                                         adwellnk-7.0.dev.txz/download
TOOLKIT_SHA : 0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20G                                                                                                         PL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1b                                                                                                         e
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : broadwellnk
TARGET_VERSION    : 7.0.1
TARGET_REVISION : 42218
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE= modules.alias.4.json
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
Removing any old redpill.ko modules
Looking for redpill for : ds3622xsp_42218
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/re                                                                                                         leases/redpill-4.4.180plus-broadwellnk.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/sr                                                                                                         c/check-redpill.sh
Mounting root to get the latest dsmroot patch in /.syno/patch
mount: /mnt/dsmroot: can't find in /etc/fstab.
Failed to mount
Clearing last created loader
Checking available patch
./rploader.sh: line 61: cd: /mnt/dsmroot/.syno/patch/: No such file or directory
./rploader.sh: line 62: ./VERSION: No such file or directory
./rploader.sh: line 63: ./GRUB_VER: No such file or directory
Found Platform :   Model :  Version : ..-
Do you want to use this for the loader ? [yY/nN] :

 

Edited by cferra
Link to comment
Share on other sites

6 minutes ago, cferra said:

@pocopico using the update method for 3622 i am getting a ./rploader.sh line 61 error when running the postupdate command.  seems like it has to do with mounting directories on the flash drive?  here is a log


tc@box:~$ sudo ./rploader.sh postupdate broadwellnk-7.0.1-42218
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
Loader source : https://github.com/dogodefi/redpill-load.git Loader Branch : dev                                                                                                         elop
Redpill module source : https://github.com/dogodefi/redpill-lkm.git : Redpill mo                                                                                                         dule branch : develop
Extensions :
Extensions URL :
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.bro                                                                                                         adwellnk-7.0.dev.txz/download
TOOLKIT_SHA : 0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20G                                                                                                         PL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1b                                                                                                         e
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : broadwellnk
TARGET_VERSION    : 7.0.1
TARGET_REVISION : 42218
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE= modules.alias.4.json
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
Removing any old redpill.ko modules
Looking for redpill for : ds3622xsp_42218
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/re                                                                                                         leases/redpill-4.4.180plus-broadwellnk.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/sr                                                                                                         c/check-redpill.sh
Mounting root to get the latest dsmroot patch in /.syno/patch
mount: /mnt/dsmroot: can't find in /etc/fstab.
Failed to mount
Clearing last created loader
Checking available patch
./rploader.sh: line 61: cd: /mnt/dsmroot/.syno/patch/: No such file or directory
./rploader.sh: line 62: ./VERSION: No such file or directory
./rploader.sh: line 63: ./GRUB_VER: No such file or directory
Found Platform :   Model :  Version : ..-
Do you want to use this for the loader ? [yY/nN] :

 

 

OK, i see ... have you followed the process ? Did you update first using the DSM GUI ? 

Link to comment
Share on other sites

6 minutes ago, cferra said:

@pocopicoyes, I have updated through the GUI the latest pat file - DSM completed the update and then rebooted, then before it started up, i went back to TC to run the update commands there and that is what I got.

 

That is strange,

 

"Failed to mount"

 

did you remove any disks after the update ? Can you update

 

./rploader.sh update now

 

and run the postupdate again ? 

Edited by pocopico
Link to comment
Share on other sites

2 minutes ago, pocopico said:

 

That is strange, did you remove any disks after the update ? Can you update

 

./rploader.sh update now

 

and run the postupdate again ? 

no disks were removed, 

 


tc@box:~$ sudo ./rploader.sh update now
Checking Internet Access -> OK
Checking if a newer version exists on the repo -> There is a newer version of th                                                                        e 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 postupdate broadwellnk-7.0.1-42218
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
Loader source : https://github.com/dogodefi/redpill-load.git Loader Branch : dev                                                                        elop
Redpill module source : https://github.com/dogodefi/redpill-lkm.git : Redpill mo                                                                        dule branch : develop
Extensions :
Extensions URL :
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.bro                                                                        adwellnk-7.0.dev.txz/download
TOOLKIT_SHA : 0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20G                                                                        PL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1b                                                                        e
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : broadwellnk
TARGET_VERSION    : 7.0.1
TARGET_REVISION : 42218
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE= modules.alias.4.json
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
Removing any old redpill.ko modules
Looking for redpill for : ds3622xsp_42218
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/re                                                                        leases/redpill-4.4.180plus-broadwellnk.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/sr                                                                        c/check-redpill.sh
Mounting root to get the latest dsmroot patch in /.syno/patch
mount: /mnt/dsmroot: can't find in /etc/fstab.
Failed to mount
Failed to mount DSM root

 

Link to comment
Share on other sites

Just now, cferra said:

no disks were removed, 

 



tc@box:~$ sudo ./rploader.sh update now
Checking Internet Access -> OK
Checking if a newer version exists on the repo -> There is a newer version of th                                                                        e 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 postupdate broadwellnk-7.0.1-42218
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)
Loader source : https://github.com/dogodefi/redpill-load.git Loader Branch : dev                                                                        elop
Redpill module source : https://github.com/dogodefi/redpill-lkm.git : Redpill mo                                                                        dule branch : develop
Extensions :
Extensions URL :
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.bro                                                                        adwellnk-7.0.dev.txz/download
TOOLKIT_SHA : 0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20G                                                                        PL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1b                                                                        e
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : broadwellnk
TARGET_VERSION    : 7.0.1
TARGET_REVISION : 42218
REDPILL_LKM_MAKE_TARGET : dev-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE= modules.alias.4.json
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
Already up to date.
Loader sources already downloaded, pulling latest
Already up to date.
Removing any old redpill.ko modules
Looking for redpill for : ds3622xsp_42218
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/re                                                                        leases/redpill-4.4.180plus-broadwellnk.tgz
Extracting module
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/sr                                                                        c/check-redpill.sh
Mounting root to get the latest dsmroot patch in /.syno/patch
mount: /mnt/dsmroot: can't find in /etc/fstab.
Failed to mount
Failed to mount DSM root

 

 

OK, pm me to further troubleshoot

Link to comment
Share on other sites

8 hours ago, MajkelP said:

I was able to install DSM 7.1 on 3622xsp using above instructions on my custom build computer ( Asus Z170I-PRO with Intel i5 6600K, 8GB RAM, some HDD/SSD and one M2 nvme Samsung SM961 drive) and Dell Perc H310 SAS controller flashed to HBA_9211_8i_IT.

 

I updated form DSM 7.0.1-42218 as @pocopico mentioned in post https://xpenology.com/forum/topic/53817-redpill-tinycore-loader/?do=findComment&comment=272479

 

The main problem was that after an updated I had some critical messages about storage pool 1/ volume 1 and SSD cache, so I removed and recreated new one. 

I would like add that storage pool is on disk no 1 which is connected to motherboard SATA AHCI controller. 

The other two are connected to the SAS9211_8i controller, but I have not had on them any volumes on their storage pools created. It's hard to verify now what it would be if I had. The second problem is with my nvme cache I cannot setup or even use Secure Erase. That option doesn't work, and finally I am not able to turn on write cache on the disks which are connected to SAS controller, but I do not know if this was before. I guess, was the same. I am attaching some print screens. 

If somebody wants me to test something please let me know, this is my test computer so I can do whatever   ;) 

 

I also wanted do some test on my VM but I wasn't able to update, I had some errors. 

 

 Thanks @pocopico for your work. 

03.PNG

02.PNG

04.PNG

05.PNG

06.PNG

07.PNG

What does your user_config.json look like? I have the same Dell h310 (uses the Megaraid driver) I've been playing with the satamap and diskid. It will be interesting to see what yours is. I however don't have anything connect directly to the board. On default settings 58, 0A00, I can get one drive to work while the other 3 (total of 4 Hdd) will show up as not supported. After doing some research, I changed my satamap to 8 (raid card 8 Sata), Diskid to 00, and added Sasid 0, now I'm getting 3 drives that are now supported and one thats not. More testing is need to get all 4 drives supported. Maybe we can help each other out in some way

Link to comment
Share on other sites

@cferra I saw that you didn't download the version again

 

Read again the instructions from @pocopico

 

/rploader.sh update now

./rploader.sh backuploader now

./rploader.sh download broadwellnk-7.0.1-42218

 

For DS3622xs you need to add one more extension : 

 

so ./rploader ext broadwellnk-7.0.1-42218 add https://github.com/jumkey/redpill-load/raw/develop/redpill-misc/rpext-index.json

 

 

./rploader.sh postupdate broadwellnk-7.0.1-42218

 

 

 

 

 

Link to comment
Share on other sites

47 minutes ago, ditheo said:

@cferra I saw that you didn't download the version again

 

Read again the instructions from @pocopico

 

/rploader.sh update now

./rploader.sh backuploader now

./rploader.sh download broadwellnk-7.0.1-42218

 

For DS3622xs you need to add one more extension : 

 

so ./rploader ext broadwellnk-7.0.1-42218 add https://github.com/jumkey/redpill-load/raw/develop/redpill-misc/rpext-index.json

 

 

./rploader.sh postupdate broadwellnk-7.0.1-42218

 

 

 

 

 

 

Its OK, we are were missing SCSI HBA modules from tinycore. I fixed the script to download them from tinycore repo in case it finds SCSI/SAS/RAID HBAs

 

We are testing with @cferra  

Edited by pocopico
  • Like 3
Link to comment
Share on other sites

21 hours ago, pocopico said:

 

Actually all right but 4.

 

./rploader.sh update now

./rploader.sh backuploader now

./rploader.sh download broadwellnk-7.0.1-42218

 

For DS3622xs you need to add one more extension : 

 

so ./rploader ext broadwellnk-7.0.1-42218 add https://github.com/jumkey/redpill-load/raw/develop/redpill-misc/rpext-index.json

 

 

./rploader.sh postupdate broadwellnk-7.0.1-42218

 

works like a charm. was able to update to 7.1-42621;

i did not have to run/add the extension though;
although this is a fresh install of 7.0.1-42218, then updated to 7.1-42621 right away.

 

i hope we can have the 7.1-42621 as fresh install soon.

thanks a lot for your efforts/works. :)

Link to comment
Share on other sites

ok so after the update, the machine shuts down - when accessing the gui, I have tried to run the SED command but I am now getting:

tc@box:~$ sudo sed -i 's/^acpi-cpufreq/# acpi-cpufreq/g' /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf && cat /mnt/dsmroot/usr/lib/modules-l
oad.d/70-cpufreq-kernel.conf
sed: can't read /mnt/dsmroot/usr/lib/modules-load.d/70-cpufreq-kernel.conf: Structure needs cleaning

do I need to wipe this thing and start all over? or is there anything that I can do at this point?  system is dead.

Link to comment
Share on other sites

Thank you all for your amazing work.

 

Successfully update from 7.01 to 7.1 DS3622xs+ on a DELL R320 with a flashed H710 hba, onboard NIC disabled, using an intel gigabit nic and a mellanox 10G connectx4 nic.

 

I had the same failed to load issue earlier and the latest update fixed it.  Also a fresh install of 7.01 straight to 7.1.

 

After the first successful postupdate, it booted to no disks detected.  Tried again and added the mpt3sas extension before postupdate, disks were detected on reboot.  It made me reinstall dsm, used the same PAT file I downloaded when manually updated and now have a working 7.1 install.  Had to manually enable SHR through SSH. 10G Mellanox NIC is also working fine.  

 

image.thumb.png.61cf8059e06783f9c78542f7c808b04b.png

image.png.a563bd4ed595c305c0add056191151d0.png

Edited by turbo21psi
  • Like 1
Link to comment
Share on other sites

hope someone can help me order the disks in my qnap 8bay

HBA: 00:1f.2 Disks: 6
HBA: 00:1c.3 Disks: 2
HBA: 00:1c.4 Disks: 2
HBA: 00:1c.5 Disks: 2

SataPortMap=6222
DiskIdxMap=00020406

hdd1 is in slot7
hdd2 is in slot8
hdd3 is in slot5
hdd4 is in slot6
hdd5 is in slot3
hdd6 is in slot4
hdd7 is in slot2
hdd8 is in slot1

is there a way to match the hdd to the correct slots?

thanks in advance.

Sent from my Pixel 6 Pro using Tapatalk

Link to comment
Share on other sites

On 2/27/2022 at 10:41 PM, leopold said:

I've finally decided to bite the bullet and try this loader, largely because I've just checked the energy usage of my Proxmox home lab and almost died of shock!  So I've stuck this onto one of my ancient HP N54L boxes.  And, frankly, it all seems far too easy...  I'm waiting for the server to freeze or reboot or burst into flames or summon the evil pixies of Beelzebub or something.  If this doesn't keel over in the next 48 hours, I'll be a very happy bunny indeed!

 

Thanks to @pocopico et al for all your sterling work so far on this.  If I can slash my home lab electricity costs enough, I might even be able to make a dent in the huge amount of cash I already owe the energy company :)

 

Okay, so it's been up a while now and everything seemed to be fine, until I noticed my memory usage seemed pretty high (given I've got 16GB of RAM in this box), so I had a look and all but about 4GB is "reserved".  I tried removing a module, taking the box down to 8GB, but the same scenario.  I tried all kinds of configurations and the only one that gave an even remotely sane reserved memory count was going down to 4GB.

 

I'm guessing that this is something to do with a 32 bit limit somewhere, but I'll be damned if I can figure it out.  Has anyone else experienced this issue and, if so, how do I go about releasing all that lovely memory that I've got in there?

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...