• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글

레드필 툴체인 빌드시 우분투 필요 없습니다.

화정큐삼 화정큐삼 387

2

11

tossp 님 레드필 툴체인으로 헤놀로지 img 빌드시 우분투 별도 설치가 필요 없네요.

기존 설치된 헤롤로지만 있으면 SSH 로 들어가셔서 아래처럼 사용하시면 됩니다.

헤놀로지에 딱 도커 패키지만 미리 설치만 되어 있으면 됩니다. (docker demon)

패키지 센터의 기본패키지니 그냥 설치해 보십시요.

그리고, 저는 root 권한으로 들어가지 않고 바로 실행해 봤는데 그냥 아래처럼 Help가 나오네요.

jq 설치도 필요 없습니다.

redpill_tool_chain.sh 의 chmod +x 실행권한 설정도 필요 없습니다.

sudo su 로 root 계정접속은 필요합니다. (sudo -i 도 될것 같습니다.)

가이드대로 필요한 랜카드나 HBA카드 드라이버 정도 별도 add 로 넣어주시고

build 하시고 auto 하시면 끝이네요.

<platform>_user_config.json 은 에디터로 생성해서 별도 손은 봐주셔야 합니다.

아래 케이스는 DS3622xs+ 인 broadwellnk_user_config.json 를 사용했습니다.

달소님이 서퍼포럼엔 다시 잘 정리해서 강좌로 올려 주시리라 생각합니다.

잘 쓰면 TINYCORE 만큼 손쉽게 쓸 수 있을것 같습니다.

리눅스 우분투 별도로 깔고 도커 환경잡고 머하고 귀챦았는데, 아주 손쉬워 졌습니다.^^

-----------------------------------------------------------------------------------

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ ./redpill_tool_chain.sh

Usage: ./redpill_tool_chain.sh <action> <platform version>

Actions: build, auto, run, clean

- build:    Build the toolchain image for the specified platform version.

- auto:     Starts the toolchain container using the previosuly build toolchain image for the specified platform.

            Updates redpill sources and builds the bootloader image automaticaly. Will end the container once done.

- run:      Starts the toolchain container using the previously built toolchain image for the specified platform.

            Interactive Bash terminal.

- clean:    Removes old (=dangling) images and the build cache for a platform version.

            Use ‘all’ as platform version to remove images and build caches for all platform versions.

- add:      To install extension you need to know its index file location and nothing more.

            eg: add 'https://example.com/some-extension/rpext-index.json'

- del:      To remove an already installed extension you need to know its ID.

            eg: del 'example_dev.some_extension'

Available platform versions:

---------------------

bromolow-6.2.4-25556

bromolow-7.0-41222

bromolow-7.0.1-42218

apollolake-6.2.4-25556

apollolake-7.0-41890

apollolake-7.0.1-42218

broadwell-7.0.1-42218

broadwellnk-7.0.1-42218

geminilake-7.0.1-42218

 

Custom Extensions:

---------------------

[Nothing]

 

Check global_settings.json for settings.

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ ll

total 60

drwxrwsr-x  1 admin2 users   306 Feb 23 20:58 .

drwxrwxrwx+ 1 root   root    910 Mar  3 20:21 ..

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 cache

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 custom

drwxrwsr-x  1 admin2 users    92 Feb 23 20:58 docker

drwxrwxrwx+ 1 root   users  1264 Mar  3 20:21 @eaDir

-rw-rw-r--  1 admin2 users   299 Feb 23 20:58 .editorconfig

drwxrwsr-x  1 admin2 users    30 Feb 23 20:58 .github

-rw-rw-r--  1 admin2 users    37 Feb 23 20:58 .gitignore

-rw-rw-r--  1 admin2 users 10260 Feb 23 20:58 global_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 images

-rw-rw-r--  1 admin2 users  6754 Feb 23 20:58 README_EN.md

-rw-rw-r--  1 admin2 users  5481 Feb 23 20:58 README.md

-rwxr-xr-x  1 admin2 users 14729 Feb 23 20:58 redpill_tool_chain.sh

-rw-rw-r--  1 admin2 users   208 Feb 23 20:58 sample_user_config.json

-rwxr-xr-x  1 admin2 users   541 Feb 23 20:58 synoboot.sh

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ cp sample_user_config.json broadwellnk_user_config.json

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ ll -al

total 64

drwxrwsr-x  1 admin2 users   362 Mar  3 20:24 .

drwxrwxrwx+ 1 root   root    910 Mar  3 20:21 ..

-rw-r--r--  1 admin2 users   208 Mar  3 20:24 broadwellnk_user_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 cache

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 custom

drwxrwsr-x  1 admin2 users    92 Feb 23 20:58 docker

drwxrwxrwx+ 1 root   users  1264 Mar  3 20:21 @eaDir

-rw-rw-r--  1 admin2 users   299 Feb 23 20:58 .editorconfig

drwxrwsr-x  1 admin2 users    30 Feb 23 20:58 .github

-rw-rw-r--  1 admin2 users    37 Feb 23 20:58 .gitignore

-rw-rw-r--  1 admin2 users 10260 Feb 23 20:58 global_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 images

-rw-rw-r--  1 admin2 users  6754 Feb 23 20:58 README_EN.md

-rw-rw-r--  1 admin2 users  5481 Feb 23 20:58 README.md

-rwxr-xr-x  1 admin2 users 14729 Feb 23 20:58 redpill_tool_chain.sh

-rw-rw-r--  1 admin2 users   208 Feb 23 20:58 sample_user_config.json

-rwxr-xr-x  1 admin2 users   541 Feb 23 20:58 synoboot.sh

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ ll

total 64

drwxrwsr-x  1 admin2 users   362 Mar  3 20:24 .

drwxrwxrwx+ 1 root   root    910 Mar  3 20:21 ..

-rw-r--r--  1 admin2 users   208 Mar  3 20:24 broadwellnk_user_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 cache

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 custom

drwxrwsr-x  1 admin2 users    92 Feb 23 20:58 docker

drwxrwxrwx+ 1 root   users  1264 Mar  3 20:21 @eaDir

-rw-rw-r--  1 admin2 users   299 Feb 23 20:58 .editorconfig

drwxrwsr-x  1 admin2 users    30 Feb 23 20:58 .github

-rw-rw-r--  1 admin2 users    37 Feb 23 20:58 .gitignore

-rw-rw-r--  1 admin2 users 10260 Feb 23 20:58 global_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 images

-rw-rw-r--  1 admin2 users  6754 Feb 23 20:58 README_EN.md

-rw-rw-r--  1 admin2 users  5481 Feb 23 20:58 README.md

-rwxr-xr-x  1 admin2 users 14729 Feb 23 20:58 redpill_tool_chain.sh

-rw-rw-r--  1 admin2 users   208 Feb 23 20:58 sample_user_config.json

-rwxr-xr-x  1 admin2 users   541 Feb 23 20:58 synoboot.sh

 

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ ./redpill_tool_chain.sh build broadwellnk-7.0.1-42218

Downloading Toolkit Dev

######################################################################## 100.0%

failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ apt

-sh: apt: command not found

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ brew

-sh: brew: command not found

admin2@NAS4:/volume2/_OS_EXSI/redpill-tool-chain-master$ sudo su

Password: 

Sorry, try again.

Password: 

ash-4.3# ll

ash: ll: command not found

ash-4.3# ls -al

total 64

drwxrwsr-x  1 admin2 users   362 Mar  3 20:24 .

d---------+ 1 root   root    910 Mar  3 20:21 ..

-rw-r--r--  1 admin2 users   208 Mar  3 20:24 broadwellnk_user_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 cache

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 custom

drwxrwsr-x  1 admin2 users    92 Feb 23 20:58 docker

drwxrwxrwx+ 1 root   users  1264 Mar  3 20:21 @eaDir

-rw-rw-r--  1 admin2 users   299 Feb 23 20:58 .editorconfig

drwxrwsr-x  1 admin2 users    30 Feb 23 20:58 .github

-rw-rw-r--  1 admin2 users    37 Feb 23 20:58 .gitignore

-rw-rw-r--  1 admin2 users 10260 Feb 23 20:58 global_config.json

drwxrwsr-x  1 admin2 users    32 Feb 23 20:58 images

-rw-rw-r--  1 admin2 users  6754 Feb 23 20:58 README_EN.md

-rw-rw-r--  1 admin2 users  5481 Feb 23 20:58 README.md

-rwxr-xr-x  1 admin2 users 14729 Feb 23 20:58 redpill_tool_chain.sh

-rw-rw-r--  1 admin2 users   208 Feb 23 20:58 sample_user_config.json

-rwxr-xr-x  1 admin2 users   541 Feb 23 20:58 synoboot.sh

ash-4.3# ./redpill_tool_chain.sh build broadwellnk-7.0.1-42218

[+] Building 247.4s (15/15) FINISHED                                                                                                                                           

 => [internal] load build definition from Dockerfile                                                                                                                      2.3s

 => => transferring dockerfile: 2.60kB                                                                                                                                    0.3s

 => [internal] load .dockerignore                                                                                                                                         2.0s

 => => transferring context: 2B                                                                                                                                           0.0s

 => [internal] load metadata for docker.io/library/debian:10-slim                                                                                                         4.1s

 => [extract 1/2] FROM docker.io/library/debian:10-slim@sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125                                           9.6s

 => => resolve docker.io/library/debian:10-slim@sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125                                                   0.0s

 => => sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125 1.85kB / 1.85kB                                                                            0.0s

 => => sha256:e847f59f3eeb921647a66e95ebf849f442eb7ebabbdb3dd3d1ea07689871b1a5 529B / 529B                                                                                0.0s

 => => sha256:09904dab2f4100eee259d1f77a49f2101a8b694959c401c799622b6fe1c203b5 1.46kB / 1.46kB                                                                            0.0s

 => => sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 27.15MB / 27.15MB                                                                          2.2s

 => => extracting sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d                                                                                 2.9s

 => [internal] load build context                                                                                                                                        10.1s

 => => transferring context: 359.58MB                                                                                                                                     7.5s

 => [stage-1 2/9] RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak &&     sed  -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list &&     sed    186.1s

 => [extract 2/2] ADD downloads/ds.broadwellnk-7.0.dev.txz /                                                                                                             57.8s

 => [stage-1 3/9] RUN git clone https://github.com/jumkey/redpill-lkm.git  -b develop  /opt/redpill-lkm &&     git clone https://github.com/jumkey/redpill-load.git -b d  7.1s 

 => [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-4221  6.8s 

 => [stage-1 5/9] RUN if [ "apollolake" = "broadwellnk" ]; then echo '+' > /opt/toolkit_dev-broadwellnk-7.0.1-42218/.scmversion; fi &&     if [ "toolkit_dev" = "kernel"  3.2s 

 => [stage-1 6/9] WORKDIR /opt                                                                                                                                            1.6s 

 => [stage-1 7/9] COPY Makefile /opt/                                                                                                                                     1.1s 

 => [stage-1 8/9] COPY entrypoint.sh /entrypoint.sh                                                                                                                       1.1s 

 => [stage-1 9/9] RUN chmod +x /entrypoint.sh                                                                                                                             2.2s

 => exporting to image                                                                                                                                                   19.8s

 => => exporting layers                                                                                                                                                  19.6s

 => => writing image sha256:52d26305e12b32c8d0bdfe9dd6a767e0f2a7c504bd44047cb72fd32358f34cb4                                                                              0.1s

 => => naming to docker.io/library/redpill-tool-chain:broadwellnk-7.0.1-42218                                                                                             0.0s

ash-4.3# ./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

/opt/redpill-lkm/config/cmdline_delegate.c: In function 'extract_config_from_cmdline':

/opt/redpill-lkm/config/cmdline_delegate.c:413:74: warning: value computed is not used [-Wunused-value]

         extract_netif_macs(config->macs, single_param_chunk)             ||

                                                                          ^~

  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:

/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_03_03-11_51_27

author:         TTG

srcversion:     EB354894B5A0F9251BA54D3

depends:        

retpoline:      Y

vermagic:       4.4.180+ SMP mod_unload 

#############################################

Using user_config.json:

{

    "extra_cmdline": {

        "pid": "0x0001",

        "vid": "0x46f4",

        "sn": "1234XXX123",

        "mac1": "XXYYXXYYXXYY"

    },

    "synoinfo": {},

    "ramdisk_copy": {},

    "extensions": []

}

#############################################

/opt/redpill-load /opt

[#] Checking runtime for required tools... [OK]

[#] Updating extensions... 

 

[#] Checking runtime for required tools... [OK]

[*] Your extensions directory /opt/redpill-load/custom/extensions doesn't exists - creating

[#] Adding new extension from https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json... 

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json

######################################################################################################################################################################## 100.0%######################################################################################################################################################################## 100.0%

[OK]

[#] ========================================== thethorgroup.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://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json

[#] Platforms supported: ds3622xsp_42218 ds918p_42218 ds918p_41890 ds3615xs_42218 ds3615xs_25556 ds920p_42218 ds3615xs_41222 ds918p_25556 ds920p_42550 ds3617xs_42218 

[#] =======================================================================================

 

[#] Checking runtime for required tools... [OK]

[#] Adding new extension from https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json... 

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json

######################################################################################################################################################################## 100.0%######################################################################################################################################################################## 100.0%

[OK]

[#] ========================================== thethorgroup.boot-wait ==========================================

[#] Extension name: RedPill Bootwait

[#] Description: Simple extension which stops the execution early waiting for the boot device to appear

[#] To get help visit: https://github.com/RedPill-TTG/redpill-boot-wait

[#] Extension preparer/packer: https://github.com/RedPill-TTG/redpill-boot-wait

[#] Update URL: https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json

[#] Platforms supported: ds3622xsp_42218 ds918p_42218 ds918p_41890 ds3615xs_42218 ds3615xs_25556 ds920p_42218 ds3615xs_41222 ds918p_25556 ds920p_42550 ds3617xs_42218 

[#] =======================================================================================

 

[#] Checking runtime for required tools... [OK]

[#] Updating thethorgroup.boot-wait extension... 

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json

######################################################################################################################################################################## 100.0%

 

[#] Extension thethorgroup.boot-wait index is already up to date

[#] Updating thethorgroup.virtio extension... 

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json to /opt/redpill-load/custom/extensions/_new_ext_index.tmp_json

######################################################################################################################################################################## 100.0%

 

[#] Extension thethorgroup.virtio index is already up to date

[#] Updating thethorgroup.virtio extension... [OK]

[#] Checking runtime for required tools... [OK]

[#] Updating ds3622xsp_42218 platforms extensions... 

[#] Downloading remote file https://github.com/RedPill-TTG/redpill-boot-wait/raw/master/recipes/universal.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json

######################################################################################################################################################################## 100.0%######################################################################################################################################################################## 100.0%

 

[#] Filling-in newly downloaded recipe for extension thethorgroup.boot-wait platform ds3622xsp_42218

[#] Downloading remote file https://raw.githubusercontent.com/RedPill-TTG/redpill-boot-wait/master/src/boot-wait.sh to /opt/redpill-load/custom/extensions/thethorgroup.boot-wait/ds3622xsp_42218/boot-wait.sh

######################################################################################################################################################################## 100.0%

[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.boot-wait/ds3622xsp_42218/boot-wait.sh file... [OK]

[#] Successfully processed recipe for extension thethorgroup.boot-wait platform ds3622xsp_42218

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/recipes/ds3622xsp_41890.json to /opt/redpill-load/custom/extensions/_ext_new_rcp.tmp_json

######################################################################################################################################################################## 100.0%######################################################################################################################################################################## 100.0%

[#] Filling-in newly downloaded recipe for extension thethorgroup.virtio platform ds3622xsp_42218

[#] Downloading remote file https://raw.githubusercontent.com/RedPill-TTG/redpill-virtio/master/src/check-virtio.sh to /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/check-virtio.sh

######################################################################################################################################################################## 100.0%

[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/check-virtio.sh file... [OK]

[#] Downloading remote file https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/releases/v1.0.0/broadwellnk/virtio-4.4.180p.tgz to /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/virtio-4.4.180p.tgz

######################################################################################################################################################################## 100.0%######################################################################################################################################################################## 100.0%

[#] Verifying /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/virtio-4.4.180p.tgz file... [OK]

[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/virtio-4.4.180p.tgz to /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/... [OK]

[#] Successfully processed recipe for extension thethorgroup.virtio platform ds3622xsp_42218

[#] Unpacking files from /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/virtio-4.4.180p.tgz to /opt/redpill-load/custom/extensions/thethorgroup.virtio/ds3622xsp_42218/... [OK]

[#] Updating extensions... [OK]

[#] PAT file /opt/redpill-load/cache/ds3622xsp_42218.pat not found - downloading from https://global.download.synology.com/download/DSM/release/7.0.1/42218/DSM_DS3622xs%2B_42218.pat

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  345M  100  345M    0     0  23.1M      0  0:00:14  0:00:14 --:--:-- 23.3M

[#] Verifying /opt/redpill-load/cache/ds3622xsp_42218.pat file... [OK]

[#] Unpacking /opt/redpill-load/cache/ds3622xsp_42218.pat file to /opt/redpill-load/build/1646308301/pat-ds3622xsp_42218-unpacked... [OK]

[#] Verifying /opt/redpill-load/build/1646308301/pat-ds3622xsp_42218-unpacked/zImage file... [OK]

[#] Patching /opt/redpill-load/build/1646308301/pat-ds3622xsp_42218-unpacked/zImage to /opt/redpill-load/build/1646308301/zImage-patched... [OK]

[#] Verifying /opt/redpill-load/build/1646308301/pat-ds3622xsp_42218-unpacked/rd.gz file... [OK]

[#] Unpacking /opt/redpill-load/build/1646308301/pat-ds3622xsp_42218-unpacked/rd.gz file to /opt/redpill-load/build/1646308301/rd-ds3622xsp_42218-unpacked... [OK]

[#] Apply patches to /opt/redpill-load/build/1646308301/rd-ds3622xsp_42218-unpacked... [OK]

[#] Patching config files in ramdisk... [OK]

[#] Adding OS config patching... [OK]

[#] Repacking ramdisk to /opt/redpill-load/build/1646308301/rd-patched-ds3622xsp_42218.gz... [OK]

[#] Bundling extensions... [#] Checking runtime for required tools... [OK]

[#] Dumping ds3622xsp_42218 platform extensions to /opt/redpill-load/build/1646308301/custom-initrd/exts... [OK]

[#] Packing custom ramdisk layer to /opt/redpill-load/build/1646308301/custom.gz... [OK]

[#] Generating GRUB config... [OK]

[#] Creating loader image at /opt/redpill-load/images/redpill-DS3622xs+_7.0.1-42218_b1646308301.img... [OK]

[#] Cleaning up... [OK]

The redpill bootloader is created, the container will be ended now.

ash-4.3# 

신고공유스크랩
11
profile image 1등
화정큐삼 글쓴이 2022.03.03. 21:27

시놀로지 리눅스 안에서도 툴체인 사용가능하다는 사실이 제가 처음 발견한 걸까요?

이미 수개월전에 나와서 이미 시놀로지에서 시도해 보신분이 있을것 같은데요?

profile image 2등
ExpBox 2022.03.03. 21:47

우분투 = 리눅스 = 헤놀로지라서 그럴 수 있습니다. 그렇게 되면 조금 더 나아가서 아예 리눅스 환경을 필요로 하지 않아도 명령어만 실행된다면 GitBash 혹은 PowerShell로도 될 수도 있나 모르겠네요.

 

하지만 헤놀로지 구축하시려는 모든 분들이 헤놀로지 혹은 리눅스 환경이 있지는 않으니까 참고용으로 보시면 될 것 같습니다. 좋은 정보네요. 그렇다면 헤놀로지 구성을 위해서 정품 시놀로지로도 된다는거니까 뭔가 해킨토시 하는 것 같기도하고 묘합니다 ㅋㅋ

profile image
화정큐삼 글쓴이 2022.03.03. 22:36
ExpBox

윈도우에서도 도커 사용이 가능하니 가능할 수도 있지 않나 생각해 봅니다.

윈도우 시도해 보시고 잘 되시면 후기좀 올려주십시요.^^

profile image
달소 2022.03.04. 10:09
화정큐삼

윈도우에서 bash쉘 셋팅을하고 jq까지 설치하면 가능할거같은데..셋팅하다가 배보다 배꼽이 커질거같긴합니다 ㅎㅎ

profile image
화정큐삼 글쓴이 2022.03.04. 22:09
ExpBox

아이디어 주신대로 제가 git bash 환경에서 현재 시험중입니다. PowerShell 은 같은 환경을 갖추었는데도 시작부터 막혀서 진행이 안되네요.

윈도우 10에서 설치해야 할 프로그램은 4개의 exe 파일

git bash for windows

docker Desktop for Windows ( with WSL Kernel Update ) ,

jq for windows 1.6 실행파일 ( path 잡혀있는 적당한 bin 폴더 위치로 jq-win64.exe 를 jq.exe로 rename 해서 복사)

이정도 입니다.

 

redpill_tool_chain.sh 도 잘 실행되고 빌드도 들어가는데

./redpill_tool_chain.sh: line 8: [: /c/Program: unary operator expected

이렇게 LINE 8 에서 에러가 걸리네요.

이부분은 tossp 님 redpill_tool_chain 깃헙 이슈에 직접 문의 넣어 두었습니다.

 

https://github.com/tossp/redpill-tool-chain/issues/61

 

답변이 오고 이부분 해결된 파일을 받게 된다면

완성된 가이드로 공유 드려 보겠습니다. ^^

 

 

profile image
달소 2022.03.04. 23:20
화정큐삼

오.. 역시 바로 실행에 옮기시는..!! 감사합니다 ㅎㅎ 결과가 궁금하네요

profile image
화정큐삼 글쓴이 2022.03.05. 14:00
달소

조금전 tossp 님께 깃헙 이슈에서 답변을 받았는데, 스크립트를 윈도우와 호환되게 할 계획은 없다고 답변받았습니다.

힘빠지네요.

 

git 의 path 를 docker 아래에서 인식하도록 하는 방법을 찾아보고 있는데요.

이것만 해보고 더 안되면,

윈도우에서 git bash 로 쉽게 시도할 계획은 접어야 겠습니다.

 

윈도우에서도 wsl2 를 통하던 hyper-V 를 통하던 docker 아래에 깔던 우분투는 사용해야 할 수 밖에 없을것 같습니다.

profile image 3등
화정큐삼 글쓴이 2022.03.04. 00:04

자주 사용되는 드라이버만 add 사용해 보시기 바랍니다. pocopico님 드라이버는 DS920+ 에는 대응되어 있지 않습니다. 참고 바랍니다.

 

./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/igb/rpext-index.json

./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000e/rpext-index.json

./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json

./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/rpext-index.json

profile image
달소 2022.03.04. 09:42

좋은정보 감사드립니다 ㅎㅎ

정말 헤놀로지를 위한 헤놀로지/시놀로지가 되어버렸군요 ㅎㅎ

보통은 헤놀구축을 위해서 헤놀이없으실수도있으니 기본 전제를 ubuntu로 하지않았나..싶긴합니다 ㅎㅎ

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
공지 정보 DSM 7.2v) Mshell로 헤놀로지 부트로더 빌드하기. 62 달소 23.05.29.01:57 24753 +24
공지 정보 DSM 7.2v) ARPL-i18n(rr)으로 헤놀로지 부트로더 빌드하기. 72 달소 23.05.23.23:58 26319 +23
후기 asustor에서 나온 nas에 dsm 올렸습니다... 4 링츠링링 2일 전18:45 336 +2
질문 Wireguard 관련해서 질문 드립니다! 2 리준 3일 전12:25 170 +1
가이드 bitwarden 라이센스적용하기. 6 블랙앤해적 5일 전20:01 425 +2
5099 질문
normal
sabss 8시간 전20:35 142 0
5098 질문
image
양미 10시간 전18:47 66 0
5097 질문
file
지나가는_문과생 16시간 전12:20 159 0
5096 질문
normal
툭툭이 1일 전14:32 100 0
5095 질문
normal
zip 1일 전13:40 75 0
5094 질문
normal
jinsol2 1일 전11:13 458 0
5093 질문
normal
M-M-M 1일 전09:15 61 0
5092 후기
image
링츠링링 2일 전18:45 336 +2
5091 질문
normal
nadomola 2일 전17:30 102 0
5090 질문
normal
Venzamin 2일 전11:40 180 0
5089 잡담
normal
서맹 2일 전09:42 444 0
5088 질문
image
초보나스 3일 전03:44 138 0
5087 질문
image
Noil 3일 전23:22 89 0
5086 질문
image
서브어린이 3일 전20:16 84 0
5085 질문
image
서브어린이 3일 전17:50 118 0
5084 질문
image
리준 3일 전12:25 170 +1
5083 질문
image
인터찹 4일 전16:22 364 0
5082 질문
normal
지나가는_문과생 4일 전16:16 115 0
5081 질문
image
yholics 4일 전12:39 152 0
5080 질문
normal
서브어린이 4일 전09:11 194 0