Jump to content
XPEnology Community

Develop and refine the DS3622xs+ loader


yanjun

Recommended Posts

1 hour ago, altas said:

I will do later a test
So loader need to be recreated, right?

 

Its a combination. You update from the control panel using the updated PAT. Then there is a manual process you need to follow to recreate the loader in order for rd.gz to match the upgrade. One main problem is that the pat file is constructed differently and there is no yet known process to decompress/dismandle the file. One good thing though is the the dismandle files is on the DSM root directory /.syno/ where you can get the files to recreate the pat files.

 

I will try to create a howto but already @buggy25200has the instructions somewhere.

 

The only difference is that the zImage on DS3622xs+ used bzip2 zImage.

  • Like 1
Link to comment
Share on other sites

Il y a 5 heures, altas a dit :

:) saddley the 3617xs will not workg on my HPGEN8 Micro, same as for some others.
thats why i look forward for your ACPI Fix for the DS3622XS :)

 

 

Il y a 22 heures, Orphée a dit :

@Aigor @pocopico

I may be wrong, but if the build given by Aigor (with 10gb lan module) and the build from tinycore comes from the same github DS3622xs repository

There must be something wrong with tinycore loader or some ext addon breaking ACPI... no ?

 

I just added the support ACPI for DS3622xs+,

"ds3622xsp_42218" and "ds36222xsp_42218u2"

 

Try it and tell me if it works for you !

 

https://raw.githubusercontent.com/jimmyGALLAND/redpill-ext/master/acpid/rpext-index.json

 

 

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

Thanks @buggy25200 I will try it now.

 

But for your info and for @pocopico

 

I took latest github build from there : https://github.com/dogodefi/redpill-loader-action/suites/5349139393/artifacts/167337191

 

Converted it to vmdk and edited grub.cfg to match my conf.


Reboot/ACPI works without issues on this one...

 

Edit : Nope, still Shutdown/Restart issues remains with the ext added.

Must be something else

Edited by Orphée
Link to comment
Share on other sites

Did someone get it to work in Gen8 using Proxmox? I read the entire thread and saw some responses speaking about Gen8 baremetal but nothing about Proxmox yet. What I got some months ago was to run 3615 and Synology Photos with face recognition but no luck on add additional HDDs.

 

Thanks!

Link to comment
Share on other sites

1 minute ago, p33ps said:

Did someone get it to work in Gen8 using Proxmox? I read the entire thread and saw some responses speaking about Gen8 baremetal but nothing about Proxmox yet. What I got some months ago was to run 3615 and Synology Photos with face recognition but no luck on add additional HDDs.

 

Thanks!

It works on ESXi,

So I guess it should on proxmox, but did not try it.

Link to comment
Share on other sites

13 hours ago, Orphée said:

Thanks @buggy25200 I will try it now.

 

But for your info and for @pocopico

 

I took latest github build from there : https://github.com/dogodefi/redpill-loader-action/suites/5349139393/artifacts/167337191

 

Converted it to vmdk and edited grub.cfg to match my conf.


Reboot/ACPI works without issues on this one...

 

Edit : Nope, still Shutdown/Restart issues remains with the ext added.

Must be something else

 

 

Hi ! 

 

I'm under ESXi 7.0 Update 3

 

With DS3622x i have the same problem with ACPI function. Stop and reboot don't work for me as well.

 

I tried with

 

./rploader.sh ext broadwellnk-7.0.1-42218 add https://raw.githubusercontent.com/jimmyGALLAND/redpill-ext/master/acpid/rpext-index.json

 

 

Then :

[ 2388.111880] systemd-shutdown[1]: Powering off.
[ 2389.120761] <redpill/override_symbol.c:250> Obtaining lock for <GetHwCapability+0x0/0x100 [broadwellnk_synobios]/ffffffffa0ac9430>
[ 2389.122225] <redpill/override_symbol.c:250> Writing original code to <ffffffffa0ac9430>
[ 2389.123225] <redpill/override_symbol.c:250> Released lock for <ffffffffa0ac9430>
[ 2389.124150] <redpill/override_symbol.c:221> Obtaining lock for <GetHwCapability+0x0/0x100 [broadwellnk_synobios]/ffffffffa0ac9430>
[ 2389.125599] <redpill/override_symbol.c:221> Writing trampoline code to <ffffffffa0ac9430>
[ 2389.126623] <redpill/override_symbol.c:221> Released lock for <ffffffffa0ac9430>
[ 2389.127537] <redpill/bios_hwcap_shim.c:66> proxying GetHwCapability(id=8)->support => real=0 [org_fout=0, ovs_fout=0]
[ 2390.108779] sd 2:0:0:0: [sdc] Stopping disk
[ 2390.111706] sd 1:0:0:0: [sdb] Stopping disk
[ 2390.114467] sd 0:0:0:0: [synoboot] Stopping disk

 

 

Edited by cartman25
typo
Link to comment
Share on other sites

2 hours ago, Orphée said:

It works on ESXi,

So I guess it should on proxmox, but did not try it.

 

But what's the correct platform to use exactly? As far as I know, G8 works under bromolow but if I build with bromolow it will download DS3615xs .pat file and so 🥴.

 

Thanks!

Link to comment
Share on other sites

So I rebuilt DS3622xs+ loader manually with docker rp helper (without tinycore IMG).

 

Shutdown/restart works.

So there must be something with @pocopico tinycore version.

 

orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh build broadwellnk-7.0.1-42218
*Downloading Toolkit Dev
###################################################################################################################################################################################################################### 100.0%###################################################################################################################################################################################################################### 100.0%###################################################################################################################################################################################################################### 100.0%[+] Building 146.0s (15/15) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                    0.2s 
 => => transferring dockerfile: 2.21kB                                                                                                                                                                                  0.0s 
 => [internal] load .dockerignore                                                                                                                                                                                       0.2s 
 => => transferring context: 2B                                                                                                                                                                                         0.0s 
 => [internal] load metadata for docker.io/library/debian:8-slim                                                                                                                                                        1.5s 
 => [internal] load build context                                                                                                                                                                                       4.0s 
 => => transferring context: 359.58MB                                                                                                                                                                                   3.9s 
 => CACHED [extract 1/2] FROM docker.io/library/debian:8-slim@sha256:b9b0e7354098cbd534861d7532c082fb81cdb4d893303ba1f322f52c9e583cd2                                                                                   0.0s 
 => [stage-1 2/9] RUN apt-get update &&     apt-get install --yes --no-install-recommends ca-certificates build-essential git libssl-dev curl cpio bspatch vim gettext bc bison flex dosfstools kmod &&     rm -rf /  121.6s 
 => [extract 2/2] ADD downloads/ds.broadwellnk-7.0.dev.txz /                                                                                                                                                           38.4s 
 => [stage-1 3/9] RUN git clone https://github.com/dogodefi/redpill-lkm.git  -b develop  /opt/redpill-lkm &&     git clone https://github.com/dogodefi/redpill-load.git -b develop /opt/redpill-load                   15.3s 
 => [stage-1 4/9] COPY --from=extract /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0/build/ /opt/toolkit_dev-broadwellnk-7.0.1-42218                                               2.6s 
 => [stage-1 5/9] RUN if [ "apollolake" = "broadwellnk" ]; then echo '+' > /opt/toolkit_dev-broadwellnk-7.0.1-42218/.scmversion; fi &&     if [ "toolkit_dev" = "kernel" ]; then         cp /opt/toolkit_dev-broadwell  0.6s 
 => [stage-1 6/9] WORKDIR /opt                                                                                                                                                                                          0.2s 
 => [stage-1 7/9] COPY Makefile /opt/                                                                                                                                                                                   0.1s 
 => [stage-1 8/9] COPY entrypoint.sh /entrypoint.sh                                                                                                                                                                     0.1s 
 => [stage-1 9/9] RUN chmod +x /entrypoint.sh                                                                                                                                                                           0.7s 
 => exporting to image                                                                                                                                                                                                  2.8s 
 => => exporting layers                                                                                                                                                                                                 2.8s 
 => => writing image sha256:6dc185ec8058f767e21b2288749674a445c754d617647c8d86da992b9db93454                                                                                                                            0.0s
 => => naming to docker.io/library/redpill-tool-chain:broadwellnk-7.0.1-42218                                                                                                                                           0.0s 
orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk^C.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.e1000e ==========================================
[#] Extension name: e1000e
[#] Description: Adds Intel(R) PRO/1000 Network Driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/e1000e
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.vmxnet3 ==========================================
[#] Extension name: vmxnet3
[#] Description: Adds VMware vmxnet3 virtual NIC driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/vmxnet3
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh auto broadwellnk-7.0.1-42218
Checking if redpill-lkm sources require pull.
  Nothing to do.
Check if redpill-load sources require pull.
  Nothing to do.
Lay back and enjoy the show: Magic is about to happen!
make[1]: Entering directory '/opt/redpill-lkm'
make -C /opt/toolkit_dev-broadwellnk-7.0.1-42218 M=/opt/redpill-lkm RP_MODULE_TARGET="dev" RP_MODULE_TARGET_VER="7" modules
make[2]: Entering directory '/opt/toolkit_dev-broadwellnk-7.0.1-42218'
RP-TARGET SPECIFIED AS dev v7
  CC [M]  /opt/redpill-lkm/compat/string_compat.o
  CC [M]  /opt/redpill-lkm/internal/helper/math_helper.o
  CC [M]  /opt/redpill-lkm/internal/helper/memory_helper.o
  CC [M]  /opt/redpill-lkm/internal/helper/symbol_helper.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_toolbox.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_notifier_list.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_notifier.o
  CC [M]  /opt/redpill-lkm/internal/override/override_symbol.o
  CC [M]  /opt/redpill-lkm/internal/override/override_syscall.o
  CC [M]  /opt/redpill-lkm/internal/intercept_execve.o
  CC [M]  /opt/redpill-lkm/internal/call_protected.o
  CC [M]  /opt/redpill-lkm/internal/intercept_driver_register.o
  CC [M]  /opt/redpill-lkm/internal/stealth/sanitize_cmdline.o
  CC [M]  /opt/redpill-lkm/internal/stealth.o
  CC [M]  /opt/redpill-lkm/internal/virtual_pci.o
  CC [M]  /opt/redpill-lkm/internal/uart/uart_swapper.o
  CC [M]  /opt/redpill-lkm/internal/uart/vuart_virtual_irq.o
  CC [M]  /opt/redpill-lkm/internal/uart/virtual_uart.o
  CC [M]  /opt/redpill-lkm/internal/ioscheduler_fixer.o
  CC [M]  /opt/redpill-lkm/config/cmdline_delegate.o
  CC [M]  /opt/redpill-lkm/config/runtime_config.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/boot_shim_base.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/usb_boot_shim.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.o
In file included from /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.c:46:0:
/opt/redpill-lkm/compat/toolkit/include/../drivers/usb/storage/usb.h:50:2: warning: #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit" [-Wcpp]
 #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit"
  ^
  CC [M]  /opt/redpill-lkm/shim/boot_dev/native_sata_boot_shim.o
  CC [M]  /opt/redpill-lkm/shim/boot_device_shim.o
  CC [M]  /opt/redpill-lkm/shim/storage/smart_shim.o
  CC [M]  /opt/redpill-lkm/shim/storage/sata_port_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_hwcap_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_hwmon_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/rtc_proxy.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_shims_collection.o
  CC [M]  /opt/redpill-lkm/shim/bios_shim.o
  CC [M]  /opt/redpill-lkm/shim/block_fw_update_shim.o
  CC [M]  /opt/redpill-lkm/shim/disable_exectutables.o
  CC [M]  /opt/redpill-lkm/shim/pci_shim.o
  CC [M]  /opt/redpill-lkm/shim/pmu_shim.o
  CC [M]  /opt/redpill-lkm/shim/uart_fixer.o
  CC [M]  /opt/redpill-lkm/redpill_main.o
  LD [M]  /opt/redpill-lkm/redpill.o
  Building modules, stage 2.
RP-TARGET SPECIFIED AS dev v7
  MODPOST 1 modules
  CC      /opt/redpill-lkm/redpill.mod.o
  LD [M]  /opt/redpill-lkm/redpill.ko
make[2]: Leaving directory '/opt/toolkit_dev-broadwellnk-7.0.1-42218'
make[1]: Leaving directory '/opt/redpill-lkm'
#############################################
filename:       /opt/redpill-lkm/redpill.ko
license:        GPL
version:        v0.5-at-2022_02_18-11_40_29
author:         TTG
srcversion:     529DA0E9A36ACD2EB4FF5E4
depends:
retpoline:      Y
vermagic:       4.4.180+ SMP mod_unload
#############################################
Using user_config.json:
{
  "extra_cmdline": {
    "pid": "0xa4a5",
    "vid": "0x0525",
    "sn": "xxxxxxxx",
    "mac1": "xxxxxxxx",
    "SataPortMap": "18",
    "DiskIdxMap": "1000"
  },
  "synoinfo": {

          "internalportcfg" : "0xffff",
          "maxdisks" : "16",
          "support_bde_internal_10g" : "no",
          "support_disk_compatibility" : "no"

},
  "ramdisk_copy": {


}

}
#############################################
/opt/redpill-load /opt
[#] Checking runtime for required tools... [OK]
[#] Updating extensions... 

[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== thethorgroup.jg.virtio ==========================================
[#] Extension name: VirtIO
[#] Description: Adds VirtIO support for fast network/PCI/SCSI/network/console paravirtualization under QEmu (Proxmox, VirtualBox, virsh, and similar)
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/RedPill-TTG/redpill-virtio
[#] Software author: https://www.linux-kvm.org/page/Virtio
[#] Update URL: https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds918p_25556u2 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

[#] Checking runtime for required tools... [OK]
[#] Updating pocopico.e1000e extension... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension pocopico.e1000e index is already up to date
[#] Updating pocopico.vmxnet3 extension... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension pocopico.vmxnet3 index is already up to date
[#] Updating thethorgroup.jg.virtio extension... 
[#] Downloading remote file https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension thethorgroup.jg.virtio index is already up to date
[#] Updating thethorgroup.jg.virtio extension... [OK]
[#] Checking runtime for required tools... [OK]
[#] Updating ds3622xsp_42218 platforms extensions... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/releases/ds3622xsp_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%

[#] Filling-in newly downloaded recipe for extension pocopico.e1000e platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/releases/e1000e-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/... [OK]
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/src/check-e1000e.sh to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/check-e1000e.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/check-e1000e.sh file... [OK]
[#] Successfully processed recipe for extension pocopico.e1000e platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/releases/ds3622xsp_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%
[#] Filling-in newly downloaded recipe for extension pocopico.vmxnet3 platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/releases/vmxnet3-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/... [OK]
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/src/check-vmxnet3.sh to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/check-vmxnet3.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/check-vmxnet3.sh file... [OK]
[#] Successfully processed recipe for extension pocopico.vmxnet3 platform ds3622xsp_42218
[#] Downloading remote file https://github.com/dogodefi/redpill-ext/raw/master/virtio/ds3622xs%2B_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%
[#] Filling-in newly downloaded recipe for extension thethorgroup.jg.virtio platform ds3622xsp_42218
[#] Downloading remote file https://github.com/jimmyGALLAND/redpill-ext/raw/master/virtio/src/check-virtio.sh to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/check-virtio.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/check-virtio.sh file... [OK]
[#] Downloading remote file https://github.com/jimmyGALLAND/redpill-ext/raw/master/virtio/releases/virtio-4.4.108-broadwell.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/... [OK]
[#] Successfully processed recipe for extension thethorgroup.jg.virtio platform ds3622xsp_42218
[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/... [OK]
[#] Updating extensions... [OK]
[#] PAT file /opt/redpill-load/cache/ds3622xsp_42218.pat not found - downloading from https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS3622xs+_42218.pat
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  345M  100  345M    0     0  1719k      0  0:03:25  0:03:25 --:--:-- 1919k
[#] Verifying /opt/redpill-load/cache/ds3622xsp_42218.pat file... [OK]
[#] Unpacking /opt/redpill-load/cache/ds3622xsp_42218.pat file to /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked... [OK]
[#] Verifying /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/zImage file... [OK]
[#] Patching /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/zImage to /opt/redpill-load/build/1645184438/zImage-patched... [OK]
[#] Verifying /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/rd.gz file... [OK]
[#] Unpacking /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/rd.gz file to /opt/redpill-load/build/1645184438/rd-ds3622xsp_42218-unpacked... [OK]
[#] Apply patches to /opt/redpill-load/build/1645184438/rd-ds3622xsp_42218-unpacked... [OK]
[#] Patching config files in ramdisk... [OK]
[#] Adding OS config patching... [OK]
[#] Repacking ramdisk to /opt/redpill-load/build/1645184438/rd-patched-ds3622xsp_42218.gz... [OK]
[#] Bundling extensions... [#] Checking runtime for required tools... [OK]
[#] Dumping ds3622xsp_42218 platform extensions to /opt/redpill-load/build/1645184438/custom-initrd/exts... [OK]
[#] Packing custom ramdisk layer to /opt/redpill-load/build/1645184438/custom.gz... [OK]
[#] Generating GRUB config... [OK]
[#] Creating loader image at /opt/redpill-load/images/redpill-DS3622xs+_7.0.1-42218_b1645184438.img... [OK]
[#] Cleaning up... [OK]
The redpill bootloader is created, the container will be ended now

 

Link to comment
Share on other sites

3 minutes ago, Orphée said:

So I rebuilt DS3622xs+ loader manually with docker rp helper (without tinycore IMG).

 

Shutdown/restart works.

So there must be something with @pocopico tinycore version.

 


orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh build broadwellnk-7.0.1-42218
*Downloading Toolkit Dev
###################################################################################################################################################################################################################### 100.0%###################################################################################################################################################################################################################### 100.0%###################################################################################################################################################################################################################### 100.0%[+] Building 146.0s (15/15) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                    0.2s 
 => => transferring dockerfile: 2.21kB                                                                                                                                                                                  0.0s 
 => [internal] load .dockerignore                                                                                                                                                                                       0.2s 
 => => transferring context: 2B                                                                                                                                                                                         0.0s 
 => [internal] load metadata for docker.io/library/debian:8-slim                                                                                                                                                        1.5s 
 => [internal] load build context                                                                                                                                                                                       4.0s 
 => => transferring context: 359.58MB                                                                                                                                                                                   3.9s 
 => CACHED [extract 1/2] FROM docker.io/library/debian:8-slim@sha256:b9b0e7354098cbd534861d7532c082fb81cdb4d893303ba1f322f52c9e583cd2                                                                                   0.0s 
 => [stage-1 2/9] RUN apt-get update &&     apt-get install --yes --no-install-recommends ca-certificates build-essential git libssl-dev curl cpio bspatch vim gettext bc bison flex dosfstools kmod &&     rm -rf /  121.6s 
 => [extract 2/2] ADD downloads/ds.broadwellnk-7.0.dev.txz /                                                                                                                                                           38.4s 
 => [stage-1 3/9] RUN git clone https://github.com/dogodefi/redpill-lkm.git  -b develop  /opt/redpill-lkm &&     git clone https://github.com/dogodefi/redpill-load.git -b develop /opt/redpill-load                   15.3s 
 => [stage-1 4/9] COPY --from=extract /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0/build/ /opt/toolkit_dev-broadwellnk-7.0.1-42218                                               2.6s 
 => [stage-1 5/9] RUN if [ "apollolake" = "broadwellnk" ]; then echo '+' > /opt/toolkit_dev-broadwellnk-7.0.1-42218/.scmversion; fi &&     if [ "toolkit_dev" = "kernel" ]; then         cp /opt/toolkit_dev-broadwell  0.6s 
 => [stage-1 6/9] WORKDIR /opt                                                                                                                                                                                          0.2s 
 => [stage-1 7/9] COPY Makefile /opt/                                                                                                                                                                                   0.1s 
 => [stage-1 8/9] COPY entrypoint.sh /entrypoint.sh                                                                                                                                                                     0.1s 
 => [stage-1 9/9] RUN chmod +x /entrypoint.sh                                                                                                                                                                           0.7s 
 => exporting to image                                                                                                                                                                                                  2.8s 
 => => exporting layers                                                                                                                                                                                                 2.8s 
 => => writing image sha256:6dc185ec8058f767e21b2288749674a445c754d617647c8d86da992b9db93454                                                                                                                            0.0s
 => => naming to docker.io/library/redpill-tool-chain:broadwellnk-7.0.1-42218                                                                                                                                           0.0s 
orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk^C.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.e1000e ==========================================
[#] Extension name: e1000e
[#] Description: Adds Intel(R) PRO/1000 Network Driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/e1000e
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh ext broadwellnk-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== pocopico.vmxnet3 ==========================================
[#] Extension name: vmxnet3
[#] Description: Adds VMware vmxnet3 virtual NIC driver Support
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/pocopico/rp-ext/tree/main/vmxnet3
[#] Software author: https://github.com/pocopico
[#] Update URL: https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

orphee@ubuntu:~/Downloads/redpill/preview$ ./redpill_tool_chain.sh auto broadwellnk-7.0.1-42218
Checking if redpill-lkm sources require pull.
  Nothing to do.
Check if redpill-load sources require pull.
  Nothing to do.
Lay back and enjoy the show: Magic is about to happen!
make[1]: Entering directory '/opt/redpill-lkm'
make -C /opt/toolkit_dev-broadwellnk-7.0.1-42218 M=/opt/redpill-lkm RP_MODULE_TARGET="dev" RP_MODULE_TARGET_VER="7" modules
make[2]: Entering directory '/opt/toolkit_dev-broadwellnk-7.0.1-42218'
RP-TARGET SPECIFIED AS dev v7
  CC [M]  /opt/redpill-lkm/compat/string_compat.o
  CC [M]  /opt/redpill-lkm/internal/helper/math_helper.o
  CC [M]  /opt/redpill-lkm/internal/helper/memory_helper.o
  CC [M]  /opt/redpill-lkm/internal/helper/symbol_helper.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_toolbox.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_notifier_list.o
  CC [M]  /opt/redpill-lkm/internal/scsi/scsi_notifier.o
  CC [M]  /opt/redpill-lkm/internal/override/override_symbol.o
  CC [M]  /opt/redpill-lkm/internal/override/override_syscall.o
  CC [M]  /opt/redpill-lkm/internal/intercept_execve.o
  CC [M]  /opt/redpill-lkm/internal/call_protected.o
  CC [M]  /opt/redpill-lkm/internal/intercept_driver_register.o
  CC [M]  /opt/redpill-lkm/internal/stealth/sanitize_cmdline.o
  CC [M]  /opt/redpill-lkm/internal/stealth.o
  CC [M]  /opt/redpill-lkm/internal/virtual_pci.o
  CC [M]  /opt/redpill-lkm/internal/uart/uart_swapper.o
  CC [M]  /opt/redpill-lkm/internal/uart/vuart_virtual_irq.o
  CC [M]  /opt/redpill-lkm/internal/uart/virtual_uart.o
  CC [M]  /opt/redpill-lkm/internal/ioscheduler_fixer.o
  CC [M]  /opt/redpill-lkm/config/cmdline_delegate.o
  CC [M]  /opt/redpill-lkm/config/runtime_config.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/boot_shim_base.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/usb_boot_shim.o
  CC [M]  /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.o
In file included from /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.c:46:0:
/opt/redpill-lkm/compat/toolkit/include/../drivers/usb/storage/usb.h:50:2: warning: #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit" [-Wcpp]
 #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit"
  ^
  CC [M]  /opt/redpill-lkm/shim/boot_dev/native_sata_boot_shim.o
  CC [M]  /opt/redpill-lkm/shim/boot_device_shim.o
  CC [M]  /opt/redpill-lkm/shim/storage/smart_shim.o
  CC [M]  /opt/redpill-lkm/shim/storage/sata_port_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_hwcap_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_hwmon_shim.o
  CC [M]  /opt/redpill-lkm/shim/bios/rtc_proxy.o
  CC [M]  /opt/redpill-lkm/shim/bios/bios_shims_collection.o
  CC [M]  /opt/redpill-lkm/shim/bios_shim.o
  CC [M]  /opt/redpill-lkm/shim/block_fw_update_shim.o
  CC [M]  /opt/redpill-lkm/shim/disable_exectutables.o
  CC [M]  /opt/redpill-lkm/shim/pci_shim.o
  CC [M]  /opt/redpill-lkm/shim/pmu_shim.o
  CC [M]  /opt/redpill-lkm/shim/uart_fixer.o
  CC [M]  /opt/redpill-lkm/redpill_main.o
  LD [M]  /opt/redpill-lkm/redpill.o
  Building modules, stage 2.
RP-TARGET SPECIFIED AS dev v7
  MODPOST 1 modules
  CC      /opt/redpill-lkm/redpill.mod.o
  LD [M]  /opt/redpill-lkm/redpill.ko
make[2]: Leaving directory '/opt/toolkit_dev-broadwellnk-7.0.1-42218'
make[1]: Leaving directory '/opt/redpill-lkm'
#############################################
filename:       /opt/redpill-lkm/redpill.ko
license:        GPL
version:        v0.5-at-2022_02_18-11_40_29
author:         TTG
srcversion:     529DA0E9A36ACD2EB4FF5E4
depends:
retpoline:      Y
vermagic:       4.4.180+ SMP mod_unload
#############################################
Using user_config.json:
{
  "extra_cmdline": {
    "pid": "0xa4a5",
    "vid": "0x0525",
    "sn": "xxxxxxxx",
    "mac1": "xxxxxxxx",
    "SataPortMap": "18",
    "DiskIdxMap": "1000"
  },
  "synoinfo": {

          "internalportcfg" : "0xffff",
          "maxdisks" : "16",
          "support_bde_internal_10g" : "no",
          "support_disk_compatibility" : "no"

},
  "ramdisk_copy": {


}

}
#############################################
/opt/redpill-load /opt
[#] Checking runtime for required tools... [OK]
[#] Updating extensions... 

[#] Checking runtime for required tools... [OK]
[#] Adding new extension from https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json... 
[#] Downloading remote file https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%
[OK]
[#] ========================================== thethorgroup.jg.virtio ==========================================
[#] Extension name: VirtIO
[#] Description: Adds VirtIO support for fast network/PCI/SCSI/network/console paravirtualization under QEmu (Proxmox, VirtualBox, virsh, and similar)
[#] To get help visit: <todo>
[#] Extension preparer/packer: https://github.com/RedPill-TTG/redpill-virtio
[#] Software author: https://www.linux-kvm.org/page/Virtio
[#] Update URL: https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json
[#] Platforms supported: ds3617xs_42218u2 ds3617xs_25556u2 ds3615xs_42218 ds3615xs_25556u2 ds3615xs_25556 ds918p_42218 ds918p_25556 ds3622xsp_42218 ds3615xs_41222 ds918p_41890 ds918p_25556u2 ds3617xs_25556 ds3617xs_42218 
[#] =======================================================================================

[#] Checking runtime for required tools... [OK]
[#] Updating pocopico.e1000e extension... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension pocopico.e1000e index is already up to date
[#] Updating pocopico.vmxnet3 extension... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension pocopico.vmxnet3 index is already up to date
[#] Updating thethorgroup.jg.virtio extension... 
[#] Downloading remote file https://raw.githubusercontent.com/dogodefi/redpill-ext/master/virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################## 100.0%

[#] Extension thethorgroup.jg.virtio index is already up to date
[#] Updating thethorgroup.jg.virtio extension... [OK]
[#] Checking runtime for required tools... [OK]
[#] Updating ds3622xsp_42218 platforms extensions... 
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/releases/ds3622xsp_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%

[#] Filling-in newly downloaded recipe for extension pocopico.e1000e platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/releases/e1000e-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/e1000e-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/... [OK]
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/src/check-e1000e.sh to /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/check-e1000e.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.e1000e/ds3622xsp_42218/check-e1000e.sh file... [OK]
[#] Successfully processed recipe for extension pocopico.e1000e platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/releases/ds3622xsp_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%
[#] Filling-in newly downloaded recipe for extension pocopico.vmxnet3 platform ds3622xsp_42218
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/releases/vmxnet3-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/vmxnet3-4.4.180plus-broadwellnk.tgz to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/... [OK]
[#] Downloading remote file https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/src/check-vmxnet3.sh to /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/check-vmxnet3.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/pocopico.vmxnet3/ds3622xsp_42218/check-vmxnet3.sh file... [OK]
[#] Successfully processed recipe for extension pocopico.vmxnet3 platform ds3622xsp_42218
[#] Downloading remote file https://github.com/dogodefi/redpill-ext/raw/master/virtio/ds3622xs%2B_42218.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################## 100.0%
[#] Filling-in newly downloaded recipe for extension thethorgroup.jg.virtio platform ds3622xsp_42218
[#] Downloading remote file https://github.com/jimmyGALLAND/redpill-ext/raw/master/virtio/src/check-virtio.sh to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/check-virtio.sh
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/check-virtio.sh file... [OK]
[#] Downloading remote file https://github.com/jimmyGALLAND/redpill-ext/raw/master/virtio/releases/virtio-4.4.108-broadwell.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz
######################################################################## 100.0%
[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz file... [OK]
[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/... [OK]
[#] Successfully processed recipe for extension thethorgroup.jg.virtio platform ds3622xsp_42218
[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/virtio-4.4-108.tgz to /opt/redpill-load/custom/extensions/thethorgroup.jg.virtio/ds3622xsp_42218/... [OK]
[#] Updating extensions... [OK]
[#] PAT file /opt/redpill-load/cache/ds3622xsp_42218.pat not found - downloading from https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS3622xs+_42218.pat
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  345M  100  345M    0     0  1719k      0  0:03:25  0:03:25 --:--:-- 1919k
[#] Verifying /opt/redpill-load/cache/ds3622xsp_42218.pat file... [OK]
[#] Unpacking /opt/redpill-load/cache/ds3622xsp_42218.pat file to /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked... [OK]
[#] Verifying /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/zImage file... [OK]
[#] Patching /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/zImage to /opt/redpill-load/build/1645184438/zImage-patched... [OK]
[#] Verifying /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/rd.gz file... [OK]
[#] Unpacking /opt/redpill-load/build/1645184438/pat-ds3622xsp_42218-unpacked/rd.gz file to /opt/redpill-load/build/1645184438/rd-ds3622xsp_42218-unpacked... [OK]
[#] Apply patches to /opt/redpill-load/build/1645184438/rd-ds3622xsp_42218-unpacked... [OK]
[#] Patching config files in ramdisk... [OK]
[#] Adding OS config patching... [OK]
[#] Repacking ramdisk to /opt/redpill-load/build/1645184438/rd-patched-ds3622xsp_42218.gz... [OK]
[#] Bundling extensions... [#] Checking runtime for required tools... [OK]
[#] Dumping ds3622xsp_42218 platform extensions to /opt/redpill-load/build/1645184438/custom-initrd/exts... [OK]
[#] Packing custom ramdisk layer to /opt/redpill-load/build/1645184438/custom.gz... [OK]
[#] Generating GRUB config... [OK]
[#] Creating loader image at /opt/redpill-load/images/redpill-DS3622xs+_7.0.1-42218_b1645184438.img... [OK]
[#] Cleaning up... [OK]
The redpill bootloader is created, the container will be ended now

 

Hi @Orphée, i do not do anything really different on tinycore redpill for the loader creation part. I just clone the repo defined in the custom_config.json and build the loader, the same way like you do with any other linux platform. 

 

So, i would like to test with your custom_config.json if you could please share 

 

 

 

 

Link to comment
Share on other sites

3 minutes ago, pocopico said:

Hi @Orphée, i do not do anything really different on tinycore redpill for the loader creation part. I just clone the repo defined in the custom_config.json and build the loader, the same way like you do with any other linux platform. 

 

So, i would like to test with your custom_config.json if you could please share 

 

 

 

 

 

Couldn't it be linked with :
https://github.com/pocopico/rp-ext/blob/main/redpill/releases/redpill-4.4.180plus-broadwellnk.tgz

 

Whereas I manually build it from sources with rp helper if I'm not mistaken ?

 

              {
                    "id": "broadwellnk-7.0.1-42218",
                    "platform_version": "broadwellnk-7.0.1-42218",
                    "user_config_json": "broadwellnk_user_config-test.json",
                    "docker_base_image": "debian:8-slim",
                    "redpill_lkm_make_target": "dev-v7",
                    "compile_with": "toolkit_dev",
                    "downloads": {
                            "kernel": {
          "url": "https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download",
                    "sha256": "d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be"

                            },
                            "toolkit_dev": {
                                    "url": "https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.broadwellnk-7.0.dev.txz/download",
                                    "sha256": "0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d"
                            }
                    },
                    "redpill_lkm": {
                            "source_url": "https://github.com/dogodefi/redpill-lkm.git",
                            "branch": "develop"
                    },
                    "redpill_load": {
                            "source_url": "https://github.com/dogodefi/redpill-load.git",
                            "branch": "develop"
                    }
            },

 

Link to comment
Share on other sites

9 minutes ago, Orphée said:

 

Couldn't it be linked with :
https://github.com/pocopico/rp-ext/blob/main/redpill/releases/redpill-4.4.180plus-broadwellnk.tgz

 

Whereas I manually build it from sources with rp helper if I'm not mistaken ?

 



              {
                    "id": "broadwellnk-7.0.1-42218",
                    "platform_version": "broadwellnk-7.0.1-42218",
                    "user_config_json": "broadwellnk_user_config-test.json",
                    "docker_base_image": "debian:8-slim",
                    "redpill_lkm_make_target": "dev-v7",
                    "compile_with": "toolkit_dev",
                    "downloads": {
                            "kernel": {
          "url": "https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download",
                    "sha256": "d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be"

                            },
                            "toolkit_dev": {
                                    "url": "https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.broadwellnk-7.0.dev.txz/download",
                                    "sha256": "0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d"
                            }
                    },
                    "redpill_lkm": {
                            "source_url": "https://github.com/dogodefi/redpill-lkm.git",
                            "branch": "develop"
                    },
                    "redpill_load": {
                            "source_url": "https://github.com/dogodefi/redpill-load.git",
                            "branch": "develop"
                    }
            },

 

 

Yes, i also thought about it but i also used rp helper to build the RP extension :D and actually i use rp helper to build all the extensions :D 

 

this is my rphelper config, where there is a typo in the id :) and where you see that i've used jumkey's repo for the redpill module. 

Maybe thats the problem... i need a few minutes to recompile :)

 

   {
                    "id": "broadwellink-7.0.1-42218",
                    "platform_version": "broadwellnk-7.0.1-42218",
                    "user_config_json": "broadwellnk_user_config-test.json",
                    "docker_base_image": "debian:8-slim",
                    "redpill_lkm_make_target": "dev-v7",
                    "compile_with": "toolkit_dev",
                    "downloads": {
                            "kernel": {
          "url": "https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/broadwellnk-source/linux-4.4.x.txz/download",
                    "sha256": "d3e85eb80f16a83244fcae6016ab6783cd8ac55e3af2b4240455261396e1e1be"

                            },
                            "toolkit_dev": {
                                    "url": "https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.broadwellnk-7.0.dev.txz/download",
                                    "sha256": "0d9edca67d9e7e14c2529bbb58341b623936124d5264f71f1e4acbacf3ea202d"
                            }
                    },
                    "redpill_lkm": {
                            "source_url": "https://github.com/jumkey/redpill-lkm.git",
                            "branch": "develop"
                    },
                    "redpill_load": {
                            "source_url": "https://github.com/jumkey/redpill-load.git",
                            "branch": "develop"
                    }
            },
 

 

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

@Orphée

 

Just noticed that :

 

In file included from /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.c:46:0:
/opt/redpill-lkm/compat/toolkit/include/../drivers/usb/storage/usb.h:50:2: warning: #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit" [-Wcpp]
 #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit"
  ^

 

Maybe thats the source of many issues we are seeing with the USB boot_shim ... I saw that @IG-88 pointed on a thread to the 42218 sources ? 

 


 

Link to comment
Share on other sites

6 minutes ago, pocopico said:

@Orphée

 

Just noticed that :

 

In file included from /opt/redpill-lkm/shim/boot_dev/fake_sata_boot_shim.c:46:0:
/opt/redpill-lkm/compat/toolkit/include/../drivers/usb/storage/usb.h:50:2: warning: #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit" [-Wcpp]
 #warning "Using compatibility file for drivers/usb/storage/usb.h - if possible do NOT compile using toolkit"
  ^

 

Maybe thats the source of many issues we are seeing with the USB boot_shim ... I saw that @IG-88 pointed on a thread to the 42218 sources ? 

 


 

You mean this one?
https://archive.synology.com/download/ToolChain/Synology NAS GPL Source/7.0-41890

 

  • Like 1
Link to comment
Share on other sites

22 minutes ago, pocopico said:

 

I have recompiled module using dogodefi's repo. Now reboot looks that works fine with the loader created with tinycore redpill. @Orphée can you try also ?

 

Great it works for me !

 

Thanks !

 

 

[  100.829612] systemd-shutdown[1]: Powering off.
[  101.835976] <redpill/override_symbol.c:250> Obtaining lock for <GetHwCapability+0x0/0x100 [broadwellnk_synobios]/ffffffffa0ac9430>
[  101.837476] <redpill/override_symbol.c:250> Writing original code to <ffffffffa0ac9430>
[  101.838488] <redpill/override_symbol.c:250> Released lock for <ffffffffa0ac9430>
[  101.839439] <redpill/override_symbol.c:221> Obtaining lock for <GetHwCapability+0x0/0x100 [broadwellnk_synobios]/ffffffffa0ac9430>
[  101.840910] <redpill/override_symbol.c:221> Writing trampoline code to <ffffffffa0ac9430>
[  101.841938] <redpill/override_symbol.c:221> Released lock for <ffffffffa0ac9430>
[  101.842881] <redpill/bios_hwcap_shim.c:66> proxying GetHwCapability(id=8)->support => real=0 [org_fout=0, ovs_fout=0]
[  102.161522] sd 2:0:0:0: [sdc] Stopping disk
[  102.164413] sd 1:0:0:0: [sdb] Stopping disk
[  102.167243] sd 0:0:0:0: [synoboot] Stopping disk
[  102.171275] e1000e: EEE TX LPI TIMER: 00000000
[  102.196707] parameter error. gpiobase=00000000, pin=0, pValue=ffff880234983da4
[  102.702007] Turned off USB vbus gpio 0 (ACTIVE_LOW)
[  102.705223] parameter error. gpiobase=00000000, pin=0, pValue=ffff880234983da4
[  103.210125] Turned off USB vbus gpio 0 (ACTIVE_LOW)
[  103.213234] parameter error. gpiobase=00000000, pin=0, pValue=ffff880234983da4
[  103.718086] Turned off USB vbus gpio 0 (ACTIVE_LOW)
[  103.721427] parameter error. gpiobase=00000000, pin=0, pValue=ffff880234983da4
[  104.226176] Turned off USB vbus gpio 0 (ACTIVE_LOW)
[  104.229198] parameter error. gpiobase=00000000, pin=0, pValue=ffff880234983da4
[  104.734133] Turned off USB vbus gpio 0 (ACTIVE_LOW)
[  104.745350] ACPI: Preparing to enter system sleep state S5
[  104.749171] reboot: Power down
[  104.752243] acpi_power_off called
[  104.754663] Confirm SLP_TYP poweroff status 0 pm1a 1 pm1b 1
[  104.768105] Confirm OS poweroff status 0 pm1a 2001 pm1b 2001

 

  • Like 1
Link to comment
Share on other sites

8 minutes ago, Orphée said:

@pocopico It works now :)

Is it because of Jumkey's repo or because of your mystape ?

 

Yes, not sure why this happened. Looking at platforms.h .... 

 


--------------------- DOGODEFI ---------------------

     {
        .name = "DS3622xs+",
        .pci_stubs = {
                { .type = VPD_MARVELL_88SE9235, .bus = 0x09, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = VPD_MARVELL_88SE9235, .bus = 0x0c, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = __VPD_TERMINATOR__ }
        },
        .emulate_rtc = false,
        .swap_serial = false,
        .reinit_ttyS0 = true,
        .fix_disk_led_ctrl = false,
        .has_cpu_temp = true,
        .hwmon = {
            .sys_thermal = { HWMON_SYS_TZONE_REMOTE1_ID, HWMON_SYS_TZONE_LOCAL_ID, HWMON_SYS_TZONE_REMOTE2_ID },
            .sys_voltage = { HWMON_SYS_VSENS_VCC_ID, HWMON_SYS_VSENS_VPP_ID, HWMON_SYS_VSENS_V33_ID,
                            HWMON_SYS_VSENS_V5_ID, HWMON_SYS_VSENS_V12_ID },
            .sys_fan_speed_rpm = {HWMON_SYS_FAN1_ID, HWMON_SYS_FAN2_ID },
            .hdd_backplane = { HWMON_SYS_HDD_BP_NULL_ID },
            .psu_status = { HWMON_PSU_NULL_ID },
            .sys_current = { HWMON_SYS_CURR_NULL_ID },
        }
    },


--------------------- JUMKEY ---------------------


      {
        .name = "DS3622xs+",
        .pci_stubs = {
                { .type = VPD_MARVELL_88SE1475, .bus = 0x07, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = VPD_MARVELL_88SE9235, .bus = 0x09, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = VPD_MARVELL_88SE9235, .bus = 0x0c, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = VPD_INTEL_I210,       .bus = 0x0b, .dev = 0x00, .fn = 0x00, .multifunction = false },
                { .type = VPD_INTEL_I210,       .bus = 0x0d, .dev = 0x00, .fn = 0x00, .multifunction = false },

                { .type = __VPD_TERMINATOR__ }
        },
        .emulate_rtc = false,
        .swap_serial = false,
        .reinit_ttyS0 = true,
        .fix_disk_led_ctrl = true,
        .has_cpu_temp = true,
        .hwmon = {
            .sys_thermal = { HWMON_SYS_TZONE_REMOTE1_ID, HWMON_SYS_TZONE_LOCAL_ID, HWMON_SYS_TZONE_REMOTE2_ID },
            .sys_voltage = { HWMON_SYS_VSENS_VCC_ID, HWMON_SYS_VSENS_VPP_ID, HWMON_SYS_VSENS_V33_ID,
                            HWMON_SYS_VSENS_V5_ID, HWMON_SYS_VSENS_V12_ID },
            .sys_fan_speed_rpm = {HWMON_SYS_FAN1_ID, HWMON_SYS_FAN2_ID },
            .hdd_backplane = { HWMON_SYS_HDD_BP_NULL_ID },
            .psu_status = { HWMON_PSU_NULL_ID },
            .sys_current = { HWMON_SYS_CURR_NULL_ID },
        }
    },

 

 

  • Like 2
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...