Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

On 6/3/2022 at 12:06 PM, pocopico said:

 

No need to recreate the loader. It will be a two stage update process. 

 

First update to update2 from DSM GUI 

Second boot into TCRP and run

 

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh backup

./rploader.sh postupdate <yourplatform>

 

 

 

Thanks,

 

I followed your instruction and successfully updated my DSM.

 

I have a question about update, two times I pressed "Y" and I had a one command "permission denied" 

 

The new smallupdate version will be  : 7.1-42661-2
Do you want to use this for the loader ? [yY/nN] : y
Recreating ramdisk
cpio: ./etc/shadow: Cannot open: Permission denied
52183 blocks
Adding fake sign
1+0 records in
1+0 records out
68 bytes copied, 3.2531e-05 s, 2.1 MB/s
Putting ramdisk back to the loader partition sdc1
Removing temp ramdisk space
Done
Saving user session for future use. Saving current extensions  -> OK !
Saving current user_config.json  -> OK !
tc@box:~$ sudo reboot
tc@box:~$

Do I need to worry about this? 

 

And second question during the boot I still have GRUB screen with:

 

RedPill DS3622xs v7.1.0-42661 Beta (USB Verbose)

 

 

Is it possible to remove the name "beta"? 

 

Thank you for your support. 

 

 

Update 2 working.PNG

Grub.PNG

Link to comment
Share on other sites

1 hour ago, MajkelP said:

Thanks,

 

I followed your instruction and successfully updated my DSM.

 

I have a question about update, two times I pressed "Y" and I had a one command "permission denied" 

 

The new smallupdate version will be  : 7.1-42661-2
Do you want to use this for the loader ? [yY/nN] : y
Recreating ramdisk
cpio: ./etc/shadow: Cannot open: Permission denied
52183 blocks
Adding fake sign
1+0 records in
1+0 records out
68 bytes copied, 3.2531e-05 s, 2.1 MB/s
Putting ramdisk back to the loader partition sdc1
Removing temp ramdisk space
Done
Saving user session for future use. Saving current extensions  -> OK !
Saving current user_config.json  -> OK !
tc@box:~$ sudo reboot
tc@box:~$

Do I need to worry about this? 

 

And second question during the boot I still have GRUB screen with:

 

RedPill DS3622xs v7.1.0-42661 Beta (USB Verbose)

 

 

Is it possible to remove the name "beta"? 

 

Thank you for your support. 

 

 

Update 2 working.PNG

Grub.PNG

When you are in that screen you can press "e" and change the grub file.

  • Like 1
Link to comment
Share on other sites

10 hours ago, flyride said:

You can force a DSM reinstall but retain Storage Pools and Volumes with synodsdefault --reinstall

This can be executed from junior mode shell (serial console).

https://xpenology.com/forum/topic/9392-general-faq/?do=findComment&comment=89619

 

This will lose all system settings but not data.  If you have a dss backup most of it can be restored.

 

I don't know how to make it just do a patch.

So for today I went the "easy route":

- I made a backup from the TCRP before testing to build a new loader without the typo in the loader-script.

- I attached the backup as SATA0:0 on my VM.

- DSM boots fine for now into 7.1 U2 (of course with the error on the 2.nd NIC and some error messages at boot, but this wont hurt for now).

- So I am able to make a full backup now. :-)

 

I will work on this issue again at the weekend if I got more time for this issue.

I remember some old information about boot and mounting e.g. an Linux Live ISO, mounting the 2.4 GByte-RAID1 where DSM is installed and change some files to be able to "simulate" an upgrade situation again. But I do not know what files to change exactly anymore...

In the worst case I can wipe the 2.4 Gbyte-RAID1 and make a full "new installation". But I will test this scenario first on another test-installation. :-)

Link to comment
Share on other sites

Posted (edited)

I am back in business!! :D :D

 

In the end the solution was easy!

 

With the typo in the script rploader.sh the DiskIdxMap is not correct.

So the first time (with the typo) i got:

 

Computed settings:
SataPortMap=126
DiskIdxMap=000103

As I only have 1 VMDK (as a single virtual SSD) as data disk and 4 HDDs on the physical internal SATA-Controller of the Microserver Gen8 this even works and I was able to do the upgrade from DSM 6.2U3 to DSM 7.1.

 

The step where things went a little bit wrong were as I updated to DSM 7.1U2. I have to boot after the update into TCRP again and fire up:

sudo ./rploader.sh update 
sudo ./rploader.sh postupdate broadwellnk-7.1.0-42661
exitcheck.sh reboot

 

Then I read about the type in rploader.sh and recognize my fault about the missing second NIC in the user_config.json.

I added the second NIC, repaired the rploader.sh and got this (new & correct) satamap in the end:

Computed settings:
SataPortMap=126
DiskIdxMap=100002

 

Then I compiled the loader again:

sudo ./rploader.sh clean
sudo ./rploader.sh fullupgrade
sudo ./rploader.sh listmods broadwellnk-7.1.0-42661
sudo ./rploader.sh build broadwellnk-7.1.0-42661
sudo ./rploader.sh backup
exitcheck.sh reboot

 

After the next reboot I got the page "Welcome back: Click here to migrate your diskstation".

And here is the trick:

 

- DO NOT JUST REBOOT into DSM after click on "Migrate"!

- Reboot again in TCRP and run (once again):

sudo ./rploader.sh postupdate broadwellnk-7.1.0-42661
exitcheck.sh reboot

 

The "postupdate"-command will throw a lot of messages about a lot of existing files and folders. But in the end there will be the message:

...
The new smallupdate version will be  : 7.1-42661-2
Do you want to use this for the loader ? [yY/nN] : y
Recreating ramdisk
52185 blocks
Adding fake sign
...

 

The next boot will be successfully and the NAS will be normal, stable and functional. :-)

 

So i learned: If a minor patch is installed on top of a major DSM-Release, one have to boot into TCRP again and run the "postupdate"-function again even after a "Migration" when changing e.g. the NIC-Settings and recreating the whole boot-loader.

 

I still have some error messages but I got these also on my other installations:

root@diskstation:~# systemctl list-units --state failed
  UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
● syno-oob-check-status.service  loaded failed failed Out of Band Management Status Check
● synoindex-checkpackage.service loaded failed failed synoindex check if there are any synoindex-related packages
● SynoInitEth.service            loaded failed failed Adjust NIC sequence

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

 

Do someone knows if these failing services are important or irrelevant?

The NICs are running fine and I miss nothing and can't see anything which is not running correctly. :-)

 

Edited by Balrog
added informations
  • Like 1
Link to comment
Share on other sites

I have a question about the reboot. My box is running headless and since I closed my home lab, it's a bit of pain to move it to a monitor and give it a network connection.

Creating the loader and installing DSM is fine headless, but getting back to TCRP later needs a console to change the boot option.

 

Can anyone think of a straightforward way (I can only think of complicated) to change the next boot to TCRP without a console?

Link to comment
Share on other sites

1 minute ago, Shogi said:

Hi@all

 

 I have successfully updated an HP N54L with DSM7.1.0-42661-2. Unfortunately the power button doesn't work yet. Could someone give me a tip?

You need the acpi extension. Look through flyride's tutorial for how to do it.

However, I didn't find it for DS3615xs and so I migrated to DS3622xs+

Link to comment
Share on other sites

1 minute ago, billat29 said:

Sie benötigen die acpi-Erweiterung. Sehen Sie sich das Tutorial von flyride an, um zu erfahren, wie es geht.

Ich habe es jedoch nicht für DS3615xs gefunden und bin daher zu DS3622xs+ migriert

 

I also took the DS3622xs+. unfortunately I can't get any further

Link to comment
Share on other sites

54 minutes ago, Shogi said:

 

I also took the DS3622xs+. unfortunately I can't get any further

I did this.

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

./rploader.sh build broadwellnk-7.1.0-42661

 

Link to comment
Share on other sites

3 minutes ago, billat29 said:

I did this.

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

./rploader.sh build broadwellnk-7.1.0-42661

 

I'll try it right away

Link to comment
Share on other sites

2 hours ago, Shogi said:

I'll try it right away

Are the commands correct?

 

[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/jimmyGALLAND/redpill-ext/raw/master/acpid/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;

 

after Update 7.1.0-42661-1 

 

i followed the below steps as suggested:

downloaded from synology the 7.1.0-42661 update 2

then do manual update inside DSM

 

boot into TCRP and run

 

./rploader.sh update now

./rploader.sh fullupgrade now

./rploader.sh backup

./rploader.sh postupdate broadwellnk-7.1.0-42661

 

or am I doing something wrong?

  • Like 1
Link to comment
Share on other sites

Posted (edited)
2 hours ago, Shogi said:

 

or am I doing something wrong?

 

I can't say for sure. I can make the following observations:

1. The parameter now is no longer required.

2. I used the realmac option for serialgen this enabled WOL for me.

3. I didn't do the intermediate 7.0.1 step or clean

4. I didn't do any step after the 7.1 build.

5. I didn't apply any update.

 

and.. can you post any follow up in the installation section? This doesn't really belong here.

Edited by billat29
Link to comment
Share on other sites

On 6/10/2022 at 7:12 AM, Balrog said:

...

 

I still have some error messages but I got these also on my other installations:

root@diskstation:~# systemctl list-units --state failed
  UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
● syno-oob-check-status.service  loaded failed failed Out of Band Management Status Check
● synoindex-checkpackage.service loaded failed failed synoindex check if there are any synoindex-related packages
● SynoInitEth.service            loaded failed failed Adjust NIC sequence

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

 

Do someone knows if these failing services are important or irrelevant?

The NICs are running fine and I miss nothing and can't see anything which is not running correctly. :-)

 

 

I have some news about the failing services and how to disable them (mostly):

 

  • Like 1
Link to comment
Share on other sites

Posted (edited)

Since DSM 7.1, the system does not shutdown automatically after the time I setup under Hardware&Energy

WoL does work, but I think, the HDDs not going into sleeping mode.

 

Does someone has the same?

I am now on the latest 7.1 U2, it was working with 7.0.1

 

I use a second HP Server only for backup, and it always startet bevor the backup job and after that, it was shutting down.

Edited by mpuff
Link to comment
Share on other sites

Hi, wrote some time ago for r8125 problem... 

I aded r8125 to broadwellnk-7.0.1-42661

 

./rploader.sh ext broadwellnk-7.0.1-42661 add https://raw.githubusercontent.com/pocopico/rp-ext/master/r8125/rpext-index.json

 

 

and rebuilt the image:

 

It looks that you will need the following modules :


Found VGA Controller : pciid 8086d00000162  Required Extension : i915
Searching for matching extension for i915
Found SATA Controller : pciid 8086d00001c02  Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 10ecd00008125 Required Extension :
No matching extension
[#] 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
[#] =======================================================================================

Found Ethernet Interface : pciid 10ecd00008168 Required Extension : r8169
Searching for matching extension for r8169
Found matching extension :
"https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json"
------------------------------------------------------------------------------------------------
Starting loader creation

 

As tou can see in logs I have "No matching extension" for pciid 10ec00008125 (r8125 I suppose).

 

I also have a r8168 recognized as r8169 and it works.

 

Can someone help me with r8125, please?

 

Thanks!

 

Link to comment
Share on other sites

59 minutes ago, plizio said:

As tou can see in logs I have "No matching extension" for pciid 10ec00008125 (r8125 I suppose).

 

I also have a r8168 recognized as r8169 and it works.

 

Can someone help me with r8125, please?

 

Thanks!

 

 

You can manually add the extension 

Link to comment
Share on other sites

Hi there,
I currently have a DVA3221 which works perfectly, except for the shutdown button, which refuses to shut down the NAS.
I wanted to integrate "redpill-acpid" but the DVA3221 model is not included.

Citation


Could you help me please ?
Thanks a lot

  • Like 1
Link to comment
Share on other sites

Hello good morning, I get this error when I go to put the command: 
"./rploader.sh build apollolake-7.1.0-42661" after I have done the commands: "./rploader.sh update now" , "./rploader.sh serialgen DS3622xs+ realmac"  , "./rploader.sh satamap now" , "./rploader.sh identifyusb now" . I attach screenshots, if you can help me, I've been struggling with this for days.

 

image.thumb.png.4b8bff9d4c70843fd82df221048b7a3f.png

 

image.png.b96088334143d88ef690bda2e16334f2.png

 

image.thumb.png.02006f180e9806aa8c90c7866016e700.png

 

image.png.dd0f9e607bdffb6fea7020f521ae1085.png

 

image.thumb.png.57749bc0376f77aedbdb08f588c553f7.png

Link to comment
Share on other sites

Can anyone help me getting the shutdown and reboot commands to work on Unraid? (qemu I believe).

 

I've tried the acpi addon but that didn't help. I'm still on 0.4.6 so I'm not sure what has changed and if it's worth upgrading?

 

I'm running the DS3617xs since that's the only one that wanted to boot at the time.

Link to comment
Share on other sites

Le 14/06/2022 à 14:35, scfrancis a dit :

Hi there,
I currently have a DVA3221 which works perfectly, except for the shutdown button, which refuses to shut down the NAS.
I wanted to integrate "redpill-acpid" but the DVA3221 model is not included.


Could you help me please ?
Thanks a lot

Hello everyone, anyone to help me?

@pocopico ?? 😊

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