Jump to content
XPEnology Community

TinyCore RedPill loader (TCRP) - Development release 0.9


Recommended Posts

  • pocopico changed the title to Tinycore RedPill loader (TCRP) - Development release 0.9
  • flyride pinned this topic
  • 1 month later...
On 7/14/2022 at 5:22 AM, tahuru said:

Hi, 

 

Is there a simple way to upgrade to 0.9 from 0.8 without running all the steps again?

 

Thx!



I think the easiest solution to accomplish this would be to introduce a second empty image as the TC home directory.
This way TC would be stored on one image that can be easily be swapped for another on update.

 

This of course has the drawback of requiring 2 disks in the vm for these images.

As follows:
TC.img -> mounted as TC's /root

TCHome.img -> mounted as TC /home/tc

 

@pocopicoWould it be possible to implement this?

Link to comment
Share on other sites

25 minutes ago, luckcolors said:



I think the easiest solution to accomplish this would be to introduce a second empty image as the TC home directory.
This way TC would be stored on one image that can be easily be swapped for another on update.

 

This of course has the drawback of requiring 2 disks in the vm for these images.

As follows:
TC.img -> mounted as TC's /root

TCHome.img -> mounted as TC /home/tc

 

@pocopicoWould it be possible to implement this?


 

 

Another easy way would be to do something like this:

Can I do this? Is it pocopico?

 

curl --location "https://github.com/pocopico/tinycore-redpill/raw/develop/rploader.sh" -O

./rploader.sh fullupgrade

Link to comment
Share on other sites

And, pocopico probably hasn't introduced it yet.
There is an incredibly handy feature that has recently been modified in the his develop repo.

 

For models using Device Tree such as DS920+, DS1621+, DVA1622
DTB patch to recognize Sataport's disk and NVMe is essential,
This part has been converted from the existing static method to a dynamic method.

 

The difference between the dtb static method and the dynamic method is huge.
The static method requires rebuilding the loader whenever the number of disks and ports of sataport change,
The dynamic method doesn't have to.

Link to comment
Share on other sites

4 hours ago, Peter Suh said:

And, pocopico probably hasn't introduced it yet.
There is an incredibly handy feature that has recently been modified in the his develop repo.

 

For models using Device Tree such as DS920+, DS1621+, DVA1622
DTB patch to recognize Sataport's disk and NVMe is essential,
This part has been converted from the existing static method to a dynamic method.

 

The difference between the dtb static method and the dynamic method is huge.
The static method requires rebuilding the loader whenever the number of disks and ports of sataport change,
The dynamic method doesn't have to.

I believe @pocopico worked with @fbelavenuto who did arpl project, to get that working...

Link to comment
Share on other sites

11 hours ago, Peter Suh said:

And, pocopico probably hasn't introduced it yet.
There is an incredibly handy feature that has recently been modified in the his develop repo.

 

For models using Device Tree such as DS920+, DS1621+, DVA1622
DTB patch to recognize Sataport's disk and NVMe is essential,
This part has been converted from the existing static method to a dynamic method.

 

The difference between the dtb static method and the dynamic method is huge.
The static method requires rebuilding the loader whenever the number of disks and ports of sataport change,
The dynamic method doesn't have to.

 

No major changes will be introduced in stable release. Only fixes. The dtcpatch by fbelavenuto should be included as a fix for 0.8.

 

To upgrade your 0.8 to develop 0.9 image you may proceed with what @Peter Suh suggested. 

 

curl --location "https://github.com/pocopico/tinycore-redpill/raw/develop/rploader.sh" -O

./rploader.sh fullupgrade

 

The automatic dtbpatch by fbelavenuto solves most of the issues we had with dtc patching in the past. Also dtc and dtbpatch binaries are copied during boot in runtime DSM for manual troubleshooting or for hotplug disk addition, if its required.

 

CPP code is open and available at fbelavenuto repo.

 

https://github.com/fbelavenuto/arpl-addons/blob/main/dtbpatch/src/main.cpp

 

 

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

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...

I do hope that the new loader will fix a current problem with minor updates. If you installed 7.1 update 3 + and have to reinstall the loader, the loader will contain 7.1 DSM and drives will contain 7.1.3 DSM.  So it will crash the system and the only way I found is to mirate drives to some other pure 7.1 model, then migrate back and then update to 7.1.3+ again. There is no postupdate option for new 7.1 pure installation and you have to update 7.1 to 7.1.3+ from INSIDE system that does not start if your loader is 7.1 and drives are 7.1.3+ 

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...
On 8/16/2022 at 9:33 AM, Al lex said:

I do hope that the new loader will fix a current problem with minor updates. If you installed 7.1 update 3 + and have to reinstall the loader, the loader will contain 7.1 DSM and drives will contain 7.1.3 DSM.  So it will crash the system and the only way I found is to mirate drives to some other pure 7.1 model, then migrate back and then update to 7.1.3+ again. There is no postupdate option for new 7.1 pure installation and you have to update 7.1 to 7.1.3+ from INSIDE system that does not start if your loader is 7.1 and drives are 7.1.3+ 

 

That sounds similar to the problems I've been having updating an old 7.0-41890 install:

 

I reckon I might have to give your approach a try at some point

Link to comment
Share on other sites

В 03.06.2022 в 17:47, pocopico сказал:

As i have annouce on a previous message, it has been decided to split development and stable TCRP releases. In an effort to properly document the deplot.

 

=> So stable release will remain at 0.8 version and can be accessed through the main repo :


https://github.com/pocopico/tinycore-redpill/tree/main

 

No new features will come through the stable release. Only fixes will be applied as they come along. 

 

=> Development release 0.9 will bring new features, refinement of old processes etc. So far the development release includes the following :

 

Current

 

- New images containing latest development rploader.sh version 0.9.0.2

- New background wallpaper when landing into TCRP desktop

- New system status landing page when you start desktop. You can now easily find your IP addess on screen.

- rploader.sh development release 0.9.0.2

- Several missing packages from Tinycore (ntpclient/file/php-8-cli/scsi modules etc) 

 

Roadmap :

 

- User manual module compilation process.

- User manual extension creation

- Custom.gz re-engineering

 

Tinycore image will remain at version 12 as the binutils on 13.1 have gone passed the required maximum for module compilation. 

 

You can head to the development repo to download new images if you would like to test : 

 

https://github.com/pocopico/tinycore-redpill/tree/develop

 

Please report any development additions and improvements you would to include on this thread. Do not post install issues here.

 

 

 

Hey friend, thanks again for doing this hard work, is it possible to add dva3219 to 0.8 or 0.9 by any chance? Thank you in advance.

Link to comment
Share on other sites

Hey friend, thanks again for doing this hard work, is it possible to add dva3219 to 0.8 or 0.9 by any chance? Thank you in advance.

DVA3219 already supports 7.1.0-42661 in m shell.

We will release a version corresponding to 7.1.1-42962 today.

https://xpenology.com/forum/topic/63946-dva3219-loader-development-thread/


Sent from my iPhone using Tapatalk
  • Thanks 1
Link to comment
Share on other sites

On 9/9/2022 at 12:34 PM, nemesis122 said:

I think is better you buy a larger usb stick

 

No need.  I re-sized the 3rd partition of the img to be just a little bit smaller and got it to fit on a 1GB USB stick.

 

What would make the most sense is for the 3rd partition of the img to be as small as possible and resize to fit the USB stick on first boot.   This is merely a suggestion.

  • Like 1
Link to comment
Share on other sites

Having a issue i ran this

 

curl --location "https://github.com/pocopico/tinycore-redpill/raw/develop/rploader.sh" -O
./rploader.sh fullupgrade

 

but problem is now when doing postupdate it complains that 

/mnt/sde1/rd.gz: Compressed data is corrupt
/mnt/sde2/rd.gz: Compressed data is corrupt.

 

So doing this does not fix problem on upgrading to TinyCore redpil 9.0 for me apparently.

Link to comment
Share on other sites

I tried to upgrade to DSM 7.1.1-42962 from DSM 7.1-42661 Update 3 but in vain. First of all I upgraded TC 0.8 to TC 0.9. However it does not work. Any idea how to upgrade? Thank you.

 

tc@box:~$ sudo ./rploader.sh postupdate apollolake-7.1.1-42962
bspatch does not exist, bringing over from repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10232  100 10232    0     0  44681      0 --:--:-- --:--:-- --:--:-- 44681
Rploader Version : 0.9.1.4
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.apollolake-7.0.dev.txz/download
TOOLKIT_SHA : d349fa644392d4cfab8191243ee38aaa32bd517208c144678e0c855cb5a619ea
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/apollolake-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : af815ee065775d2e569fd7176e25c8ba7ee17a03361557975c8e5a4b64230c5b
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : apollolake
TARGET_VERSION    : 7.1.1
TARGET_REVISION : 42962
REDPILL_LKM_MAKE_TARGET : test-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE :  modules.alias.4.json
SYNOMODEL : ds918p_42962 
MODEL : DS918+ 
Local Cache Folder : /mnt/sdd3/auxfiles
DATE Internet : 14092022 Local : 14092022
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 60 (delta 25), reused 45 (delta 25), pack-reused 0
Unpacking objects: 100% (60/60), 15.30 KiB | 746.00 KiB/s, done.
From https://github.com/pocopico/redpill-lkm
   169d8fb..a6b4ae9  master     -> origin/master
Updating 169d8fb..a6b4ae9
Fast-forward
 .github/workflows/main.yml | 125 ++++++++++++++++++++++++----------------------------------------------------------------------------
 .github/workflows/sync.yml |  15 ------------
 PLATFORMS                  |   7 ++++++
 compile-lkms.sh            |  21 +++++++++++++++++
 config/cmdline_delegate.c  |  40 +++++++++++++++++++++++++++-----
 config/cmdline_opts.h      |   1 -
 config/platforms.h         | 207 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------
 config/runtime_config.c    |  12 +++++-----
 8 files changed, 209 insertions(+), 219 deletions(-)
 delete mode 100755 .github/workflows/sync.yml
 create mode 100644 PLATFORMS
 create mode 100755 compile-lkms.sh
Loader sources already downloaded, pulling latest
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (234/234), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 245 (delta 120), reused 216 (delta 107), pack-reused 11
Receiving objects: 100% (245/245), 2.65 MiB | 22.57 MiB/s, done.
Resolving deltas: 100% (121/121), completed with 9 local objects.
From https://github.com/pocopico/redpill-load
   c6ac089..38a3bb8  develop    -> origin/develop
Updating c6ac089..38a3bb8
error: Your local changes to the following files would be overwritten by merge:
	config/DS918+/7.1.0-42661/config.json
Please commit your changes or stash them before you merge.
Aborting
Removing any old redpill.ko modules
Looking for redpill for : ds918p_42962 
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/releases/redpill-4.4.180plus.tgz
Extracting module
Creating temp ramdisk space
Mounting partition sdd1
Mounting partition sdd2
Extracting update ramdisk
unlzma: /mnt/sdd2/rd.gz: Compressed data is corrupt
38500 blocks
Found Version : 7.1-42661-3
Do you want to use this for the loader ? [yY/nN] : n
Saving user session for future use. Saving current extensions  -> OK !
Saving current user_config.json  -> OK !

 

Link to comment
Share on other sites

On 9/14/2022 at 9:13 PM, tdse13 said:

I tried to upgrade to DSM 7.1.1-42962 from DSM 7.1-42661 Update 3 but in vain. First of all I upgraded TC 0.8 to TC 0.9. However it does not work. Any idea how to upgrade? Thank you.

 

tc@box:~$ sudo ./rploader.sh postupdate apollolake-7.1.1-42962
bspatch does not exist, bringing over from repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10232  100 10232    0     0  44681      0 --:--:-- --:--:-- --:--:-- 44681
Rploader Version : 0.9.1.4
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.apollolake-7.0.dev.txz/download
TOOLKIT_SHA : d349fa644392d4cfab8191243ee38aaa32bd517208c144678e0c855cb5a619ea
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/apollolake-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : af815ee065775d2e569fd7176e25c8ba7ee17a03361557975c8e5a4b64230c5b
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : apollolake
TARGET_VERSION    : 7.1.1
TARGET_REVISION : 42962
REDPILL_LKM_MAKE_TARGET : test-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE :  modules.alias.4.json
SYNOMODEL : ds918p_42962 
MODEL : DS918+ 
Local Cache Folder : /mnt/sdd3/auxfiles
DATE Internet : 14092022 Local : 14092022
Checking Internet Access -> OK
Redpill sources already downloaded, pulling latest
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 60 (delta 25), reused 45 (delta 25), pack-reused 0
Unpacking objects: 100% (60/60), 15.30 KiB | 746.00 KiB/s, done.
From https://github.com/pocopico/redpill-lkm
   169d8fb..a6b4ae9  master     -> origin/master
Updating 169d8fb..a6b4ae9
Fast-forward
 .github/workflows/main.yml | 125 ++++++++++++++++++++++++----------------------------------------------------------------------------
 .github/workflows/sync.yml |  15 ------------
 PLATFORMS                  |   7 ++++++
 compile-lkms.sh            |  21 +++++++++++++++++
 config/cmdline_delegate.c  |  40 +++++++++++++++++++++++++++-----
 config/cmdline_opts.h      |   1 -
 config/platforms.h         | 207 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------
 config/runtime_config.c    |  12 +++++-----
 8 files changed, 209 insertions(+), 219 deletions(-)
 delete mode 100755 .github/workflows/sync.yml
 create mode 100644 PLATFORMS
 create mode 100755 compile-lkms.sh
Loader sources already downloaded, pulling latest
remote: Enumerating objects: 245, done.
remote: Counting objects: 100% (234/234), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 245 (delta 120), reused 216 (delta 107), pack-reused 11
Receiving objects: 100% (245/245), 2.65 MiB | 22.57 MiB/s, done.
Resolving deltas: 100% (121/121), completed with 9 local objects.
From https://github.com/pocopico/redpill-load
   c6ac089..38a3bb8  develop    -> origin/develop
Updating c6ac089..38a3bb8
error: Your local changes to the following files would be overwritten by merge:
	config/DS918+/7.1.0-42661/config.json
Please commit your changes or stash them before you merge.
Aborting
Removing any old redpill.ko modules
Looking for redpill for : ds918p_42962 
Getting file https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill/releases/redpill-4.4.180plus.tgz
Extracting module
Creating temp ramdisk space
Mounting partition sdd1
Mounting partition sdd2
Extracting update ramdisk
unlzma: /mnt/sdd2/rd.gz: Compressed data is corrupt
38500 blocks
Found Version : 7.1-42661-3
Do you want to use this for the loader ? [yY/nN] : n
Saving user session for future use. Saving current extensions  -> OK !
Saving current user_config.json  -> OK !

 

 

Hi, you could start over by running 

./rploader.sh clean 
./rploader.sh update
./rploader.sh fullupgrade
./rploader.sh postupdate apollolake-7.1.1-42962

 

 

  • Like 1
Link to comment
Share on other sites

  • Polanskiman changed the title to TinyCore RedPill loader (TCRP) - Development release 0.9

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