Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

10 minutes ago, pocopico said:

 

 

OK, can you please change to SataPortMap=5 and add sata_remap="5>0" and send me the output of fdisk again ? 

Same sde

DiskStation> fdisk -l
Disk /dev/sde: 932 GB, 1000204886016 bytes, 1953525168 sectors
Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sde1    0,0,2       1023,255,63          1 4294967295 4294967295 2047G ee EFI GPT

 

Disk /dev/synoboot: 3700 MB, 3879731200 bytes, 7577600 sectors
Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/synoboot1 *  0,32,33     6,62,56           2048     100351      98304 48.0M 83 Linux

/dev/synoboot2    6,62,57     15,205,62       100352     253951     153600 75.0M 83 Linux

/dev/synoboot3    15,205,63   130,138,8       253952    2097151    1843200  900M 83 Linux

this is usb config

linux /zImage withefi earlyprintk syno_hw_version=DS3617xs console=ttyS0,115200n8 netif_num=1 pid=0x4100 earlycon=uart8250,io,0x3f8,115200n8 syno_port_thaw=1 mac1=XXX sn=XXX vid=0x13fe elevator=elevator loglevel=15 HddHotplug=0 DiskIdxMap=00 syno_hdd_detect=0 vender_format_version=2 syno_hdd_powerup_seq=0 log_buf_len=32M root=/dev/md0 SataPortMap=5 Sata_Remap="5>0"

Link to comment
Share on other sites

1 minute ago, blindspot said:

Same sde

DiskStation> fdisk -l
Disk /dev/sde: 932 GB, 1000204886016 bytes, 1953525168 sectors
Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/sde1    0,0,2       1023,255,63          1 4294967295 4294967295 2047G ee EFI GPT

 

Disk /dev/synoboot: 3700 MB, 3879731200 bytes, 7577600 sectors
Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/synoboot1 *  0,32,33     6,62,56           2048     100351      98304 48.0M 83 Linux

/dev/synoboot2    6,62,57     15,205,62       100352     253951     153600 75.0M 83 Linux

/dev/synoboot3    15,205,63   130,138,8       253952    2097151    1843200  900M 83 Linux

this is usb config

linux /zImage withefi earlyprintk syno_hw_version=DS3617xs console=ttyS0,115200n8 netif_num=1 pid=0x4100 earlycon=uart8250,io,0x3f8,115200n8 syno_port_thaw=1 mac1=XXX sn=XXX vid=0x13fe elevator=elevator loglevel=15 HddHotplug=0 DiskIdxMap=00 syno_hdd_detect=0 vender_format_version=2 syno_hdd_powerup_seq=0 log_buf_len=32M root=/dev/md0 SataPortMap=5 Sata_Remap="5>0"

 

well NO its all lowercase just like i typed it :D

Edited by pocopico
  • Thanks 1
Link to comment
Share on other sites

il y a 2 minutes, pocopico a dit :

 

you need to create pointers and add these pointer files as hard drives.

 

to create pointers - > https://gist.github.com/Hengjie/1520114890bebe8f805d337af4b3a064

 

Put your pointers to the local datastore 

 

Thanks for your answer.

 

It is already done :

image.thumb.png.753e4cfc5cd72318660f2d903bb57921.png

 

After having launch my VM, I can find my Synology, run the migration but after reboot, I can access to my syno, I can just make the migration ... again.

Link to comment
Share on other sites

On 4/4/2022 at 9:18 PM, Peter Suh said:

1827852452_2022-04-0410_06_39.thumb.png.a767069df6973ba0a4abf4490eabf355.png

 

 

With the help of @dolbycat, I finally succeeded in installing DS918+ 7.1 RC.

The following is the installation method.

Realtek NIC and HBA cards are not recognized. You should only proceed with Intel NIC and internal/external SATA.

1. Download pocopico or RedwinX Redfill-Load GitHub to a separate Linux.
It can be built in the Xubuntu OVA shared above with Google Drive before.

https://drive.google.com/file/d/19XwxRTDcJwMPlJ7gLQIr9argi_jeSTtE/view

user id : toolc / pass word P@ssw0rd

 


git clone https://github.com/RedwinX/redpill-load.git or
git clone https://github.com/pocopico/redpill-load.git

2.Prepare user_config.json for DS918+

3. After adjusting the chmod +x authority,

Create a /buildpat folder in the root and copy the Shell file.
running /buildpat# ./buildpat-918p-7.1-42621.sh
for unencrypted ds918p_42621.pat recreate.

4. Move the regenerated ds918p_42621.pat file to the cache folder.
/redpill-load/buildpat# mv ds918p_42621.pat ../cache

5. config.json SHA256 Value Calibration for DS918+ 7.1 RC
/redpill-load/config/DS918+/7.1-42621# vi config.json
"os": {
"id": "ds918p_42621",
"pat_url": "https://global.download.synology.com/download/DSM/release/7.1/42621/DSM_DS918%2B_42621.pat",
"sha256": "e7fa975757d5faa6a275b68b130e7fd552263157a39bc71507ea6f2f466bb359"
--> Change to "sha256": 63a7b5bcdb23a8a4b4586e0d41f9dc95d62ca4d64bfe7baffa9323e531e77954"
},

6. Forced injection of redfill-linux-v4.4.180+.ko file (lkm compilation omitted)
Copy to /redpil-load/ext/rp-lkm directory
After downloading the file in the following path, rename the decompressed redpill.ko.
https://github.com/pocopico/rp-ext/blob/main/redpill/releases/redpill-4.4.180plus.tgz

or You can download it directly from this link.

https://drive.google.com/file/d/1HF-q5YbUcp0vZ57qV3zE7zAQxbERvdvg/view?usp=sharing

7. Build DS918 Bootloader Image
/redpill-load# ./build-loader.sh DS918+ 7.1-42621

8. Check the built image, copy the LOCAL PC, and record the USB.
*.img result exists in /redpil-load/images directory

 

Does this work on  DS918+ 7.1-42661? Had replace all string 42621 to 42661 in script  buildpat-918p-7.1-42621.s  h and finally generate loader image.  

Use this loader and boot to dsm install web page, first need to format disk,  format failed at install page step.   

 

Switch to use old dsm 7.0 loader,  format disk success.

Link to comment
Share on other sites

1 minute ago, mitch55 said:

Thanks for your answer.

 

It is already done :

image.thumb.png.753e4cfc5cd72318660f2d903bb57921.png

 

After having launch my VM, I can find my Synology, run the migration but after reboot, I can access to my syno, I can just make the migration ... again.

 

To see why the install fails, you need to telnet and see what is the reason for failing in /var/log/junior_reason and also post the contents of /var/log/*rc*

 

  • Thanks 2
Link to comment
Share on other sites

21 minutes ago, blindspot said:

Still the same. :D

Thank you for your patience @pocopico

 

Can you also try : sata_remap="0>5:5>0"  

 

A good reading to further understand what you are doing :

 

https://gugucomputing.wordpress.com/2018/11/11/experiment-on-sata_args-in-grub-cfg/

 

and a reference of all options :

 

https://github.com/cake654326/xpenology/blob/master/synoconfigs/Kconfig.devices

 

so in your case, and i dont know if that works i would try to add DiskSeqReverse=5 

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

5 hours ago, Dreadnought said:

 

I have to connect via telnet and execute the following command: sudo /usr/syno/lib/systemd/scripts/syno-kernel-modules-load.sh

I will these option as well as soon as I am able to do so.

 

For me this approach works fine!

I only had to comment one entry: crc32c-intel

The second one had already # in front of the line.

 

cat  /lib/modules-load.d/70-crypto-kernel.conf
cbc
md5
cts
ansi_cprng
des_generic
authenc
aes-x86_64
ecb
sha256_generic
cryptd
# crc32c-intel
arc4

 

/lib/modules-load.d/70-cpufreq-kernel.conf
cpufreq_stats
processor
# acpi-cpufreq
cpufreq_performance
cpufreq_powersave

Link to comment
Share on other sites

Just now, Dreadnought said:

 

For me this approach works fine!

I only had to comment one entry: crc32c-intel

The second one had already # in front of the line.

 

cat  /lib/modules-load.d/70-crypto-kernel.conf
cbc
md5
cts
ansi_cprng
des_generic
authenc
aes-x86_64
ecb
sha256_generic
cryptd
# crc32c-intel
arc4

 

/lib/modules-load.d/70-cpufreq-kernel.conf
cpufreq_stats
processor
# acpi-cpufreq
cpufreq_performance
cpufreq_powersave

 

yes, i did some changes on redpill-misc. Its should take care most of the HW limitations and editing of these files.

Link to comment
Share on other sites

Steps to update a Microserver N54L to DS3622xs+ latest  DSM 7.1, confirmed working

 

[DS3622xs+]

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh serialgen DS3622xs+

./rploader.sh identifyusb now

./rploader.sh satamap now

./rploader.sh build broadwellnk-7.0.1-42218

./rploader.sh clean now

./rploader.sh ext broadwellnk-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json

./rploader.sh build broadwellnk-7.1.0-42661

./rploader.sh clean now; rm -rf /mnt/sdb3/auxfiles; rm -rf /home/tc/custom-module; ./rploader.sh backup now;

  • Like 6
  • Thanks 1
Link to comment
Share on other sites

10 minutes ago, djvas335 said:

Steps to update a Microserver N54L to DS3622xs+ latest  DSM 7.1, confirmed working

 

[DS3622xs+]

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh serialgen DS3622xs+

./rploader.sh identifyusb now

./rploader.sh satamap now

./rploader.sh build broadwellnk-7.0.1-42218

./rploader.sh clean now

./rploader.sh ext broadwellnk-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json

./rploader.sh build broadwellnk-7.1.0-42661

./rploader.sh clean now; rm -rf /mnt/sdb3/auxfiles; rm -rf /home/tc/custom-module; ./rploader.sh backup now;

Did you do the upgrade to 7.1 inside DSM running on 7.0.1 and then reboot into the TC build mode ? 

Link to comment
Share on other sites

Nop, I actually migrated directly from DS3615xs 7.0.1, Built the loader and then installed the PAT, my install was actually broken as I updated one of my data servers and it started to shutdown after boot, however latest redpill update fixed it, I just rebuilt the loader and it fixed the shutdown issue

 

 

3 minutes ago, zahni said:

Did you do the upgrade to 7.1 inside DSM running on 7.0.1 and then reboot into the TC build mode ? 

 

  • Like 1
Link to comment
Share on other sites

23 minutes ago, djvas335 said:

Steps to update a Microserver N54L to DS3622xs+ latest  DSM 7.1, confirmed working

 

[DS3622xs+]

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh serialgen DS3622xs+

./rploader.sh identifyusb now

./rploader.sh satamap now

./rploader.sh build broadwellnk-7.0.1-42218

./rploader.sh clean now

./rploader.sh ext broadwellnk-7.1.0-42661 add https://github.com/pocopico/redpill-load/raw/master/redpill-misc/rpext-index.json

./rploader.sh build broadwellnk-7.1.0-42661

./rploader.sh clean now; rm -rf /mnt/sdb3/auxfiles; rm -rf /home/tc/custom-module; ./rploader.sh backup now;

Hi whats are the steps for fresh install ????

thank you

 

Link to comment
Share on other sites

il y a 35 minutes, djvas335 a dit :

./rploader.sh clean now; rm -rf /mnt/sdb3/auxfiles; rm -rf /home/tc/custom-module; ./rploader.sh backup now;

Thanks to you. 

Since yesterday, I have tried to update...

Just a little thing, why my volume 1 is made with disk 12 and 13 ? Why not 1 et 2?

 

image.png.016a3de30ceace3cc8fe790bcdbb231e.png

 

image.png.2afed217b94663d8574dc58b15fb8c45.png

 

@pocopico, I have deleted my VM, recreated it and followed indications of @djvas335.  Thanks to you too.

 

 

Edited by mitch55
Link to comment
Share on other sites

Don't thank me, as I wrote earlier, pocopico updated the redpill-load, which made this possible, I was just fixing my broken Microserver install, so its pocopico you should be thanking, I didn't do anything

 

3 minutes ago, mitch55 said:

Thanks to you. 

Since yesterday, I try to update...

Just a little thing, why my volume 1 is made with disk 12 and 13 ? Why not 1 et 2?

 

image.png.016a3de30ceace3cc8fe790bcdbb231e.png

 

image.png.2afed217b94663d8574dc58b15fb8c45.png

 

@pocopico, I have deleted my VM, recreated it and followed indications of @djvas335.  Thanks to you too.

 

 

 

Link to comment
Share on other sites

10 minutes ago, mitch55 said:

Thanks to you. 

Since yesterday, I have tried to update...

Just a little thing, why my volume 1 is made with disk 12 and 13 ? Why not 1 et 2?

 

image.png.016a3de30ceace3cc8fe790bcdbb231e.png

 

image.png.2afed217b94663d8574dc58b15fb8c45.png

 

@pocopico, I have deleted my VM, recreated it and followed indications of @djvas335.  Thanks to you too.

 

 

 

Is this virtual or physical ? Also what is your SataPortMap

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