Giter VIP home page Giter VIP logo

redpill-tool-chain's Introduction

RedPill Tool Chain

构建

这是一个测试项目,可能会有不可预测的事情发生(比如:毁损数据、烧毁硬件等等),请谨慎使用

English

感谢 @haydibe 提供 RedPill Tool Chain

关于项目?

  • 基于RedPill-TTG源码制作
  • DS918+提供DSM7适配支持 ( 感谢 @jumkey )
  • DS3617xs提供DSM7适配支持 ( 感谢 @jimmyGALLAND )
  • DVA3221提供DSM7适配支持 ( 感谢 @dogodefi )
  • 整理社区扩展驱动 ( 感谢 @pocopico )
  • 部分引导提取自 @tinycore-redpill 项目
  • redpill_lkm_make_target字段的可选值有 dev-v6, dev-v7, test-v6, test-v7, prod-v6 或者 prod-v7, 需要注意后缀为-v6的值用于 DSM6 版本构建, 需要注意后缀为-v7的值用于 DSM7 版本构建. 默认使用的是 dev-v6dev-v7

PS: 由于toolkit dev缺少fs/proc所需的源代码,因此它们取自提取的DSM6.2.4内核源代码。 构建需要此单个文件夹的源代码,但不使用内核源代码构建redpill.ko模块。

如果您发现工具链的构建方式有问题或者有改进的想法,请让我知道。

对于所有其他问题:请向社区ddr提出——我知道的并不比其他人多。

如何使用?

  1. 复制sample_user_config.jsonds3615xs_user_config.json或者ds918p_user_config.json
  2. 编辑<platform>_user_config.json比如 918+ 就编辑 ds918p_user_config.json 文件
  3. 添加扩展驱动: 比如 ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/rpext-index.json
  4. 为你想要的平台和版本构建编译镜像:
    比如 ./redpill_tool_chain.sh build ds918p-7.0-41890
  5. 为你想要的平台和版本构建引导: 比如 ./redpill_tool_chain.sh auto ds918p-7.0-41890

./redpill_tool_chain.sh auto运行结束之后,将会在宿主机的./image文件夹中生成 RedPill引导镜像。

<platform>_user_config.json文件中的extensions字段保持为空,会自动打包所有已安装的自定义驱动。 自定义驱动请按需添加,尽量不要加载无关驱动,否则会因为扩展驱动太大导致打包失败。

依赖: docker


⚠️⚠️⚠️ 由于各版本环境不完全一致,制作策略会有细节变化,具体可以参考 工作流配置文件

Gtihub Actions 中查看执行结果,并下载生成的镜像

❗❗❗ 工作流配置文件 中引入的扩展都是推荐必装扩展


快捷说明

  • docker/Dockerfile 中补入了阿里云镜像
  • ./redpill_tool_chain.sh add <URL>添加扩展驱动
  • ./redpill_tool_chain.sh del <ID>删除扩展驱动
  • ./redpill_tool_chain.sh run <platform_version>自定义引导构建过程
  • 使用synoboot.sh写入引导

自定义扩展驱动管理

  • 安装 thethorgroup.virtio : ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json
  • 安装 thethorgroup.boot-wait : ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json
  • 安装 pocopico.mpt3sas : ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/rpext-index.json
  • 移除 pocopico.mpt3sas : ./redpill_tool_chain.sh del pocopico.mpt3sas
  • 安装 jumkey.dtb : ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/rpext-index.json

获取更多扩展驱动...

构建工具链镜像

  • ./redpill_tool_chain.sh build ds3615xs-6.2.4-25556
  • ./redpill_tool_chain.sh build ds918p-7.0.1-42218

制作 redpill 引导镜像

  • ./redpill_tool_chain.sh auto ds3615xs-6.2.4-25556
  • ./redpill_tool_chain.sh auto ds918p-7.0.1-42218

清除旧的引导镜像和缓存

  • ./redpill_tool_chain.sh clean ds3615xs-6.2.4-25556
  • ./redpill_tool_chain.sh clean ds918p-7.0.1-42218
  • ./redpill_tool_chain.sh clean all

生成指定平台的序列号和MAC地址

  • ./redpill_tool_chain.sh sn ds918p
  • ./redpill_tool_chain.sh sn dva3221

查看帮助文本

./redpill_tool_chain.sh

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

Actions: build, auto, run, clean, add, del, sn, pat

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

- sn:       Generates a serial number and mac address for the following platforms
            DS3615xs DS3617xs DS916+ DS918+ DS920+ DS3622xs+ FS6400 DVA3219 DVA3221 DS1621+
            eg: sn ds920p

- pat:      For decoding PAT file.

Available platform versions:
---------------------
ds1621p-7.0.1-42218
ds1621p-7.1.0-42661
ds2422p-7.0.1-42218
ds3615xs-6.2.4-25556
ds3615xs-7.0.1-42218
ds3615xs-7.1.0-42661
ds3617xs-7.0.1-42218
ds3617xs-7.1.0-42661
ds3622xsp-7.0.1-42218
ds3622xsp-7.1.0-42661
ds918p-6.2.4-25556
ds918p-7.0.1-42218
ds918p-7.1.0-42661
ds920p-7.0.1-42218
ds920p-7.1.0-42661
dva3221-7.0.1-42218
dva3221-7.1.0-42661

Custom Extensions:
---------------------
jumkey.acpid2
thethorgroup.boot-wait
thethorgroup.virtio

Check global_settings.json for settings.

更多细节

编译DS920+DS1621+需要加入jumkey.dtb扩展并参考这里创建设备的二进制设备树

查看基于test.yml的使用示例

redpill-tool-chain's People

Contributors

sjtuross avatar spectrekr avatar tossp avatar xcyupeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redpill-tool-chain's Issues

编译错误

Build 没问题 log如下:
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master# ./redpill_tool_chain.sh build bromolow-7.0.1-42218
[+] Building 2.4s (15/15) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 38B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:8-slim 2.2s
=> [stage-1 1/9] FROM docker.io/library/debian:8-slim@sha256:b9b0e7354098cbd534861d7532c082fb81cdb4d893303ba1f32 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 180B 0.0s
=> CACHED [stage-1 2/9] RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && sed -i "s/archive.ubuntu. 0.0s
=> CACHED [stage-1 3/9] RUN git clone https://github.com/RedPill-TTG/redpill-lkm.git -b master /opt/redpill-lk 0.0s
=> CACHED [extract 2/2] ADD downloads/ds.bromolow-7.0.dev.txz / 0.0s
=> CACHED [stage-1 4/9] COPY --from=extract /usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/ 0.0s
=> CACHED [stage-1 5/9] RUN if [ "apollolake" = "bromolow" ]; then echo '+' > /opt/toolkit_dev-bromolow-7.0.1-42 0.0s
=> CACHED [stage-1 6/9] WORKDIR /opt 0.0s
=> CACHED [stage-1 7/9] COPY Makefile /opt/ 0.0s
=> CACHED [stage-1 8/9] COPY entrypoint.sh /entrypoint.sh 0.0s
=> CACHED [stage-1 9/9] RUN chmod +x /entrypoint.sh 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:24e497c121e2bd886b90a8e52712a1a8dcfb29005d37218e0effed303b5944f8 0.0s
=> => naming to docker.io/library/redpill-tool-chain:bromolow-7.0.1-42218 0.0s
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master#
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
auto就有问题了:log如下
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master# ./redpill_tool_chain.sh auto bromolow-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-bromolow-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-bromolow-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-bromolow-7.0.1-42218'
make[1]: Leaving directory '/opt/redpill-lkm'
#############################################
filename: /opt/redpill-lkm/redpill.ko
license: GPL
version: v0.5-at-2021_11_08-09_24_08
author: TTG
retpoline: Y
srcversion: 9D5817BD80754EFE921A0AC
depends:
vermagic: 3.10.108 SMP mod_unload
#############################################
Using user_config.json:
cat: /opt/redpill-load/user_config.json: Is a directory
Makefile:29: recipe for target 'build_redpill_load' failed
make: *** [build_redpill_load] Error 1

root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master#
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
我进入Docker查看确实变成目录了。如下
root@redpill-tool-chain:/opt# ls -la /opt/redpill-load/
total 172
drwxr-xr-x 1 root root 4096 Nov 8 09:07 .
drwxr-xr-x 1 root root 4096 Nov 8 09:05 ..
drwxr-xr-x 8 root root 4096 Nov 8 09:05 .git
-rw-r--r-- 1 root root 181 Nov 8 09:05 .gitignore
-rw-r--r-- 1 root root 134 Nov 8 09:05 .gitmodules
-rw-r--r-- 1 root root 5922 Nov 8 09:05 FAQ.md
-rw-r--r-- 1 root root 7620 Nov 8 09:05 FOR_DEVS.md
-rw-r--r-- 1 root root 35149 Nov 8 09:05 LICENSE
-rw-r--r-- 1 root root 2623 Nov 8 09:05 README.md
-rwxr-xr-x 1 root root 22600 Nov 8 09:05 build-loader.sh
-rw-r--r-- 1 root root 123 Nov 8 09:05 bundled-exts.json
drwxr-xr-x 2 root root 40 Nov 8 06:26 cache
drwxr-xr-x 5 root root 4096 Nov 8 09:05 config
drwxr-xr-x 2 root root 40 Nov 8 06:26 custom
drwxr-xr-x 2 root root 4096 Nov 8 09:05 docs
drwxr-xr-x 5 root root 4096 Nov 8 09:05 ext
-rwxr-xr-x 1 root root 42782 Nov 8 09:05 ext-manager.sh
drwxr-xr-x 2 root root 40 Nov 8 06:26 images
drwxr-xr-x 3 root root 4096 Nov 8 09:05 include
drwxr-xr-x 2 root root 4096 Nov 8 09:05 tools
drwxr-xr-x 2 root root 40 Nov 8 08:47 user_config.json
root@redpill-tool-chain:/opt#
///////////////////////////////////////////////////////////////////////////////////////////////
我编写config.json 确实是正确的。
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master# ls -la
total 40
drwxrwxrwx 1 hankyang hankyang 4096 Nov 8 14:58 .
drwxrwxrwx 1 hankyang hankyang 4096 Nov 8 14:20 ..
-rwxrwxrwx 1 hankyang hankyang 291 Nov 7 15:50 .editorconfig
drwxrwxrwx 1 hankyang hankyang 4096 Nov 7 15:50 .github
-rwxrwxrwx 1 hankyang hankyang 37 Nov 7 15:50 .gitignore
-rwxrwxrwx 1 hankyang hankyang 5581 Nov 8 14:43 README.md
-rwxrwxrwx 1 hankyang hankyang 6754 Nov 7 15:50 README_EN.md
-rwxrwxrwx 1 hankyang hankyang 210 Nov 8 16:55 apollolake_user_config.json
-rwxrwxrwx 1 hankyang hankyang 206 Nov 8 16:55 bromolow_user_config.json

drwxrwxrwx 1 hankyang hankyang 4096 Nov 7 15:50 cache
drwxrwxrwx 1 hankyang hankyang 4096 Nov 8 14:41 custom
drwxrwxrwx 1 hankyang hankyang 4096 Nov 7 15:50 docker
-rwxrwxrwx 1 hankyang hankyang 7023 Nov 7 15:50 global_config.json
drwxrwxrwx 1 hankyang hankyang 4096 Nov 7 15:50 images
drwxrwxrwx 1 hankyang hankyang 4096 Nov 8 14:54 my
-rwxrwxrwx 1 hankyang hankyang 14729 Nov 7 15:50 redpill_tool_chain.sh
-rwxrwxrwx 1 hankyang hankyang 208 Nov 7 15:50 sample_user_config.json
-rwxrwxrwx 1 hankyang hankyang 540 Nov 7 15:50 synoboot.sh
root@WS-TV-002:~/nas/Downloads/redpill-tool-chain-master#
///////////////////////////////////////////////////////////////////////////////////////////////
我尝试在Docker下删除这个目录,然后新建一个user.config.json但是无法删除。
root@redpill-tool-chain:/opt# rm -rf /opt/redpill-load/user_config.json/
rm: cannot remove '/opt/redpill-load/user_config.json/': Device or resource busy
root@redpill-tool-chain:/opt#
//////////////////////////////////////////////////////////////////////////////////////////////
最后没办法了,向你求助

运行环境Ubuntu 20 + win10 pro
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master# docker version
Client:
Version: 20.10.7
API version: 1.41
Go version: go1.13.8
Git commit: 20.10.7-0ubuntu5~20.04.1
Built: Fri Oct 8 22:34:34 2021
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:31 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
root@WS-TV-002:/nas/Downloads/redpill-tool-chain-master#

Error: (face plugin) load network failed

SynologyPhotos套件中人物识别异常,看/var/log/messages中的日志如下

2022-02-11T21:32:12+08:00 Galaxy synofoto-face-extraction[10484]: /source/synophoto-plugin-face/src/face_plugin/lib/face_detection.cpp:214 Error: (face plugin) load network failed
2022-02-11T21:32:12+08:00 Galaxy synofoto-face-extraction[10484]: uncaught thread task exception /source/synofoto/src/daemon/plugin/plugin_worker.cpp:90 plugin init failed: /var/packages/SynologyPhotos/target/usr/lib/libsynophoto-plugin-face.so

img file size...

It needs the ability to adjust partitions 1, 2, and 3 of the file image. Is it possible?

2022.2.28编译最新引导 似乎无法实现定时开关机

技术高超的tossp大佬,我在2月28日使用您的最新redpill-tool-chain编译了dsm 918+ 7.0.1 42218的引导,经过安装后成功由dsm6.2.3升级到dsm7.0.1,但是定时开关机功能失效了,晚上可以正常定时关机,但是早上定时开机似乎失效了,这在之前是正常的,我使用的机器是自己组装的,cpu是g4400t,主板 微星110m pro d,接了2块sata硬盘,除了定时开关机一切正常,请告诉我我这是缺少驱动导致的吗?有什么办法可以解决这一问题,请赐教,感谢。

制作ds3617xs-7.0.1-42218成功,但安装失败

编译ds3617xs-7.0.1-42218引导成功,但是无限重复安装系统
添加驱动
pocopico.igb
pocopico.igbvf
pocopico.ixgbevf
pocopico.mpt3sas
thethorgroup.boot-wait
thethorgroup.jg.virtio
thethorgroup.virtio

Build Problem with 4 net

Hello when add more net

"extra_cmdline": {
    "pid": "0x0951",
    "vid": "0x1625",
"netif_num": "4",
    "sn": "1710LWN023200",
    "mac1": "001132410000"
"mac2": "001132410000"
"mac3": "001132410000"
"mac4": "001132410000"
},
"synoinfo": {},
"ramdisk_copy": {},
"extensions": []

the result is
[#] Checking runtime for required tools... [OK]
include/json.sh: line 16: 2: unbound variable
Makefile:29: recipe for target 'build_redpill_load' failed
make: *** [build_redpill_load] Error 1

with one interface it's all ok

More thank in advantage

dsm3615xs,当电脑有3个网口,编译完毕之后,虽然修改了bromolow_user_config.json,还是只有2个网口可以使用。

bromolow_user_config.json如下
{
"extra_cmdline": {
"pid": "0x5567",
"vid": "0x0781",
"sn": "111111111",
"mac1": "111111",
"mac2": "222222",
"mac3": "33333333333",
"netif_num": "3"
},
"synoinfo": {
"maxlanport": "3",
"myds_region_api_base_url": "https://account.synology.com/",
"rss_server": "http://update.synology.com/autoupdate/genRSS.php",
"rss_server_ssl": "https://update.synology.com/autoupdate/genRSS.php",
"updateurl": "http://www.synology.com/",
"small_info_path": "https://update.synology.com/smallupdate",
"supportphotopersonal": "yes"
},
"ramdisk_copy": {},
"extensions": []
}

42218

[!] Cannot continue due to previous errors (see above)

*** Process will exit ***
[!] Failed to update all extensions for ds918p_42218 platform - see errors above

*** Process will exit ***
make: *** [Makefile:33: build_redpill_load] Error 1

I hope tossp supports DS1621+.

Thank you for supporting DS920+.
I installed it safely on my asrock J5040.

This time, jumkey made the DS1621+.
Please support this too.

ERROR Report

화면 캡처 2021-10-11 103256

local.rp.load and lkm use true..

failed..check plz.

依然编译失败

'''root@instance-20210811-1316:/home/ubuntu/redpill-tool-chain# ./redpill_tool_chain.sh auto bromolow-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-bromolow-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-bromolow-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-bromolow-7.0.1-42218'
make[1]: Leaving directory '/opt/redpill-lkm'
#############################################
filename: /opt/redpill-lkm/redpill.ko
license: GPL
version: v0.5-at-2021_10_14-05_45_55
author: TTG
retpoline: Y
srcversion: 9D5817BD80754EFE921A0AC
depends:
vermagic: 3.10.108 SMP mod_unload
#############################################
Using user_config.json:
{
"extra_cmdline": {
"pid": "0x1234",
"vid": "0xabcd",
"sn": "1591xxxxxxxxx",
"mac1": "0xxxxxxxxxxx"
},
"synoinfo": {},
"ramdisk_copy": {},
"extensions": []
}#############################################
/opt/redpill-load /opt
[#] Checking runtime for required tools... [OK]
include/json.sh: line 16: 2: unbound variable
Makefile:29: recipe for target 'build_redpill_load' failed
make: *** [build_redpill_load] Error 1

ds918p_42218.pat 校验错误

`[!] Checksum mismatch - expected 4fc59b0f0adfdd96467376f50919dde1bf5dcec74e53452e626f9cf7bd52a38c but computed a403809ab2cd476c944fdfa18cae2c2833e4af36230fa63f0cdee31a92bebba2

*** Process will exit ***
`

1-13发布了一个小更新,请问是否已经支持
Version: 7.0.1-42218 Update 2
(2022-01-13)

build ERROR

화면 캡처 2021-10-11 103256

This error message appears when creating a docker with a build command.

编译出错错误

root@instance-20210811-1316:/home/ubuntu/redpill-tool-chain# ./redpill_tool_chain.sh auto bromolow-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-bromolow-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-bromolow-7.0.1-42218'
/opt/toolkit_dev-bromolow-7.0.1-42218/arch/x86/Makefile:164: CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.
RP-TARGET SPECIFIED AS dev v7
CC [M] /opt/redpill-lkm/compat/string_compat.o
cc1: error: code model kernel does not support PIC mode
make[3]: *** [scripts/Makefile.build:309: /opt/redpill-lkm/compat/string_compat.o] Error 1
make[2]: *** [Makefile:1229: module/opt/redpill-lkm] Error 2
make[2]: Leaving directory '/opt/toolkit_dev-bromolow-7.0.1-42218'
make[1]: *** [Makefile:90: dev-v7] Error 2
make[1]: Leaving directory '/opt/redpill-lkm'

WSL编译出错

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-apollolake-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_05-14_09_21
author: TTG
srcversion: B8832A696B6882E8B0D5844
depends:
retpoline: Y
vermagic: 4.4.180+ SMP mod_unload
#############################################
Using user_config.json:
cat: /opt/redpill-load/user_config.json: Is a directory
make: *** [Makefile:30: build_redpill_load] Error 1
vic@DESKTOP-DP5G2RD:~/redpill-tool-chain$


是不是Win10 子系统不支持?我用虚拟机试试吧。

之前反馈编译918 添加了这些驱动,编译成功之后安装系统陷入无限循环安装添加了redpill-boot-wait就好了

你好,我用你的编译工具编译918 添加了这些驱动,编译成功之后安装系统陷入无限循环安装,添加了https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json这段就能进系统了。。不再提示未安装系统
加了这些驱动acpid
redpill-virtio
redpill-boot-wait
e1000/rpext-index.json
ixgbe/rpext-index.json
i40e/rpext-index.json
igb/rpext-index.json
igbvf/rpext-index.json
ixgbevf/rpext-index.json
mpt3sas/rpext-index.json
r8125/rpext-index.json
r8168/rpext-index.json
vmxnet3/rpext-index.json
r8169/rpext-index.json

include/json.sh: line 16: 2: unbound variable

[#] Checking runtime for required tools... [OK]
include/json.sh: line 16: 2: unbound variable
make: *** [Makefile:33: build_redpill_load] Error 1
sunny@sunleilei:~$

编译到最后就出现这个错误,baidu、google找不到同样的情况,Linux基础不足,排不了错,帮忙解释一下

Tossp, I hope you will add ds2422+ support

I put the definition below in the global_config.json file with reference to ds1621+.
Although dtc editing and build were also completed, the SN of ds2422+ was used without the SN of ds2422+ and stopped at 55% during the DSM installation process, so it was no longer possible to proceed.
Can we just get ds2422+ SN GEN support?

,
{
"id": "ds2422p-7.0.1-42218",
"platform_name": "DS2422+",
"platform_version": "ds2422p-7.0.1-42218",
"user_config_json": "ds2422p_user_config.json",
"docker_base_image": "debian:10-slim",
"compile_with": "toolkit_dev",
"redpill_lkm_make_target": "dev-v7",
"downloads": {
"kernel": {
"url": "https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/v1000-source/linux-4.4.x.txz/download",
"sha256": "ac532ebb221d9c55f78236d57288ac31d410dde01f1453f60b0c502333fdf107"
},
"toolkit_dev": {
"url": "https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.v1000-7.0.dev.txz/download",
"sha256": "6108f9f7b7f0a13ee985314aef9419303375ab7ded4112be991590339b66ecd1"
}
},
"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"
}
}

下载外部文件不走系统设置好的代理

./redpill_tool_chain.sh build ds918p-7.0.1-42218,下载外部文件访问github域名时,不走已经设置好的代理环境,编译环境为WSL2。

报错:
#6 40.23 Running hooks in /etc/ca-certificates/update.d...
#6 40.24 done.
-=O=- # # # #
#6 51.58 curl: (52) Empty reply from server

直接直连了,没有走代理...

Any best practice to update the redpill built image installed DSM system?

I noticed from reddit that someone shared their approach that:

  • They removed all disks other than the first disk
  • format the first disk and burn with the newly built redpill image
  • plugin the other disks to let raid to sync

While my DSM is single disk deployed, how could we update the redpill loader itself, please(to potentially support a newer version of DSM in the future)?

Thanks!

DS920+引导,找不到硬盘

在pve虚拟机里安装,增加一块虚拟硬盘或者是直通sata控制器,群晖助手安装界面里都提示找不到硬盘

Is there any way to run the tool chain with gitbash in Windows 10?

The installation of git bash, docker for win (with wsl kernel update), and jq for win was completed within window 10, and the shell was performed at the git bash prompt as follows. But Bottom line : [#9 ERROR: failed to walk) An error occurred whether the message was the cause.
The log is as follows. Can you solve this problem, Tossp?


dante@DESKTOP-HHRJFHR MINGW64 /e/redpill-tool-chain-master
$ ./redpill_tool_chain.sh
./redpill_tool_chain.sh: line 8: [: /c/Program: unary operator expected
Usage: ./redpill_tool_chain.sh

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.

dante@DESKTOP-HHRJFHR MINGW64 /e/redpill-tool-chain-master
$ ./redpill_tool_chain.sh build broadwellnk-7.0.1-42218
./redpill_tool_chain.sh: line 8: [: /c/Program: unary operator expected

#1 [internal] load build definition from Dockerfile
#1 sha256:5a65977fb4e76ae65f4cc18e552a99aa36f567708e02fc4010f2b66fe1fa582b
#1 transferring dockerfile: 2.60kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:e847f1f0f8f229b393ad9d1c0f68a1d7a21458da519704845438222e0179ff66
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/debian:10-slim
#3 sha256:bb2045be78b720556afe835d68d0b202bbfa66fa3140b0ec6eaa445d664ba201
#3 DONE 2.9s

#4 [extract 1/2] FROM docker.io/library/debian:10-slim@sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125
#4 sha256:e990d8a5dee15f329d52d895a91f589257fb84cc8181bbf4dbd6e598bf73c59e
#4 resolve docker.io/library/debian:10-slim@sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125 done
#4 sha256:09904dab2f4100eee259d1f77a49f2101a8b694959c401c799622b6fe1c203b5 1.46kB / 1.46kB done
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 0B / 27.15MB 0.1s
#4 sha256:e61cffb42ef0dbb31832d4543d6998ab9125210d0136bc0aed65cc753cee9125 1.85kB / 1.85kB done
#4 sha256:e847f59f3eeb921647a66e95ebf849f442eb7ebabbdb3dd3d1ea07689871b1a5 529B / 529B done
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 3.15MB / 27.15MB 0.4s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 5.72MB / 27.15MB 0.5s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 10.49MB / 27.15MB 0.7s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 12.58MB / 27.15MB 0.8s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 15.73MB / 27.15MB 0.9s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 17.83MB / 27.15MB 1.0s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 19.92MB / 27.15MB 1.1s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 23.07MB / 27.15MB 1.2s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 27.15MB / 27.15MB 1.4s
#4 sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 27.15MB / 27.15MB 1.5s done
#4 extracting sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 0.1s
#4 extracting sha256:15115158dd02a1bf2fd28724e3c1024394033fb0e9a5d3e451ed2715b6ae312d 1.3s done
#4 DONE 2.9s

#5 [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 -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/security.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && 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 /var/lib/apt/lists/* /tmp/* && curl --progress-bar --output /usr/bin/jq --location https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x /usr/bin/jq
#5 sha256:0258fab799c33e116d8458632b2c8caa563e4e109b6170174460e2da74e4d348
#5 ...

#7 [internal] load build context
#7 sha256:607cd11c8309236d25136a160211e8ccbf5aa9007bd952b3e9521b2dc80db507
#7 transferring context: 359.58MB 3.0s done
#7 DONE 3.0s

#8 [extract 2/2] ADD downloads/ds.broadwellnk-7.0.dev.txz /
#8 sha256:390189bacf53ab8f241fd010b84fedfb008f7ee8138d3298b393a5d6076bfa27
#8 ...

#5 [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 -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/security.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && 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 /var/lib/apt/lists/* /tmp/* && curl --progress-bar --output /usr/bin/jq --location https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x /usr/bin/jq
#5 sha256:0258fab799c33e116d8458632b2c8caa563e4e109b6170174460e2da74e4d348
#5 0.497 Get:1 http://mirrors.aliyun.com/debian buster InRelease [122 kB]
#5 0.513 Get:2 http://mirrors.aliyun.com/debian-security buster/updates InRelease [65.4 kB]
#5 0.521 Get:3 http://mirrors.aliyun.com/debian buster-updates InRelease [51.9 kB]
#5 0.583 Get:4 http://mirrors.aliyun.com/debian buster/main amd64 Packages [7906 kB]
#5 0.930 Get:5 http://mirrors.aliyun.com/debian-security buster/updates/main amd64 Packages [317 kB]
#5 0.937 Get:6 http://mirrors.aliyun.com/debian buster-updates/main amd64 Packages [8792 B]
#5 1.780 Fetched 8470 kB in 1s (5813 kB/s)
#5 1.780 Reading package lists...
#5 2.242 Reading package lists...
#5 2.683 Building dependency tree...
#5 2.770 Reading state information...
#5 2.846 The following additional packages will be installed:
#5 2.847 binutils binutils-common binutils-x86-64-linux-gnu bzip2 cpp cpp-8 dpkg-dev
#5 2.849 g++ g++-8 gcc gcc-8 gettext-base git-man libasan5 libatomic1 libbinutils
#5 2.849 libbison-dev libc-dev-bin libc6-dev libcc1-0 libcroco3 libcurl3-gnutls
#5 2.849 libcurl4 libdpkg-perl liberror-perl libexpat1 libgcc-8-dev libgdbm-compat4
#5 2.849 libgdbm6 libglib2.0-0 libgomp1 libgpm2 libgssapi-krb5-2 libicu63 libisl19
#5 2.849 libitm1 libk5crypto3 libkeyutils1 libkmod2 libkrb5-3 libkrb5support0
#5 2.849 libldap-2.4-2 libldap-common liblsan0 libmpc3 libmpfr6 libmpx2 libncurses6
#5 2.849 libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5 libquadmath0 libreadline7
#5 2.849 librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2 libssh2-1 libssl1.1
#5 2.849 libstdc++-8-dev libtsan0 libubsan1 libxml2 linux-libc-dev lsb-base m4 make
#5 2.849 openssl patch perl perl-modules-5.28 readline-common vim-common vim-runtime
#5 2.849 xxd xz-utils
#5 2.849 Suggested packages:
#5 2.849 binutils-doc bison-doc bzip2-doc libarchive1 cpp-doc gcc-8-locales
#5 2.849 debian-keyring flex-doc g++-multilib g++-8-multilib gcc-8-doc
#5 2.849 libstdc++6-8-dbg gcc-multilib manpages-dev autoconf automake libtool gdb
#5 2.849 gcc-doc gcc-8-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
#5 2.849 libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg
#5 2.849 libquadmath0-dbg gettext-doc autopoint libasprintf-dev libgettextpo-dev
#5 2.849 git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
#5 2.849 gitweb git-cvs git-mediawiki git-svn glibc-doc gnupg | gnupg2 sensible-utils
#5 2.849 bzr gdbm-l10n gpm krb5-doc krb5-user libssl-doc libstdc++-8-doc m4-doc
#5 2.849 make-doc ed diffutils-doc perl-doc libterm-readline-gnu-perl
#5 2.849 | libterm-readline-perl-perl libb-debug-perl liblocale-codes-perl
#5 2.849 readline-doc ctags vim-doc vim-scripts
#5 2.849 Recommended packages:
#5 2.849 fakeroot gnupg | gnupg2 libalgorithm-merge-perl libfl-dev less ssh-client
#5 2.849 manpages manpages-dev libfile-fcntllock-perl liblocale-gettext-perl
#5 2.849 libglib2.0-data shared-mime-info xdg-user-dirs krb5-locales publicsuffix
#5 2.849 libsasl2-modules netbase
#5 3.211 The following NEW packages will be installed:
#5 3.211 bc binutils binutils-common binutils-x86-64-linux-gnu bison bsdiff
#5 3.211 build-essential bzip2 ca-certificates cpio cpp cpp-8 curl dosfstools
#5 3.217 dpkg-dev flex g++ g++-8 gcc gcc-8 gettext gettext-base git git-man kmod
#5 3.217 libasan5 libatomic1 libbinutils libbison-dev libc-dev-bin libc6-dev libcc1-0
#5 3.217 libcroco3 libcurl3-gnutls libcurl4 libdpkg-perl liberror-perl libexpat1
#5 3.217 libgcc-8-dev libgdbm-compat4 libgdbm6 libglib2.0-0 libgomp1 libgpm2
#5 3.217 libgssapi-krb5-2 libicu63 libisl19 libitm1 libk5crypto3 libkeyutils1
#5 3.217 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common liblsan0
#5 3.217 libmpc3 libmpfr6 libmpx2 libncurses6 libnghttp2-14 libpcre2-8-0 libperl5.28
#5 3.217 libpsl5 libquadmath0 libreadline7 librtmp1 libsasl2-2 libsasl2-modules-db
#5 3.217 libsigsegv2 libssh2-1 libssl-dev libssl1.1 libstdc++-8-dev libtsan0
#5 3.217 libubsan1 libxml2 linux-libc-dev lsb-base m4 make openssl patch perl
#5 3.217 perl-modules-5.28 readline-common vim vim-common vim-runtime xxd xz-utils
#5 3.234 0 upgraded, 91 newly installed, 0 to remove and 0 not upgraded.
#5 3.234 Need to get 91.1 MB of archives.
#5 3.234 After this operation, 375 MB of additional disk space will be used.
#5 3.234 Get:1 http://mirrors.aliyun.com/debian buster/main amd64 perl-modules-5.28 all 5.28.1-6+deb10u1 [2873 kB]
#5 3.365 Get:2 http://mirrors.aliyun.com/debian buster/main amd64 libgdbm6 amd64 1.18.1-4 [64.7 kB]
#5 3.367 Get:3 http://mirrors.aliyun.com/debian buster/main amd64 libgdbm-compat4 amd64 1.18.1-4 [44.1 kB]
#5 3.369 Get:4 http://mirrors.aliyun.com/debian buster/main amd64 libperl5.28 amd64 5.28.1-6+deb10u1 [3894 kB]
#5 3.538 Get:5 http://mirrors.aliyun.com/debian buster/main amd64 perl amd64 5.28.1-6+deb10u1 [204 kB]
#5 3.542 Get:6 http://mirrors.aliyun.com/debian buster/main amd64 libsigsegv2 amd64 2.12-2 [32.8 kB]
#5 3.542 Get:7 http://mirrors.aliyun.com/debian buster/main amd64 m4 amd64 1.4.18-2 [203 kB]
#5 3.547 Get:8 http://mirrors.aliyun.com/debian buster/main amd64 flex amd64 2.6.4-6.2 [456 kB]
#5 3.573 Get:9 http://mirrors.aliyun.com/debian buster/main amd64 cpio amd64 2.12+dfsg-9 [223 kB]
#5 3.576 Get:10 http://mirrors.aliyun.com/debian buster/main amd64 libssl1.1 amd64 1.1.1d-0+deb10u7 [1539 kB]
#5 3.648 Get:11 http://mirrors.aliyun.com/debian buster/main amd64 libkmod2 amd64 26-1 [52.7 kB]
#5 4.586 Get:12 http://mirrors.aliyun.com/debian buster/main amd64 lsb-base all 10.2019051400 [28.4 kB]
#5 4.588 Get:13 http://mirrors.aliyun.com/debian buster/main amd64 kmod amd64 26-1 [90.2 kB]
#5 5.134 Get:14 http://mirrors.aliyun.com/debian buster/main amd64 readline-common all 7.0-5 [70.6 kB]
#5 5.138 Get:15 http://mirrors.aliyun.com/debian buster/main amd64 xxd amd64 2:8.1.0875-5 [140 kB]
#5 8.808 Get:16 http://mirrors.aliyun.com/debian buster/main amd64 vim-common all 2:8.1.0875-5 [195 kB]
#5 8.815 Get:17 http://mirrors.aliyun.com/debian buster/main amd64 bzip2 amd64 1.0.6-9.2deb10u1 [48.4 kB]
#5 8.817 Get:18 http://mirrors.aliyun.com/debian buster/main amd64 gettext-base amd64 0.19.8.1-9 [123 kB]
#5 8.831 Get:19 http://mirrors.aliyun.com/debian-security buster/updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1+deb10u2 [69.2 kB]
#5 8.836 Get:20 http://mirrors.aliyun.com/debian-security buster/updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1+deb10u2 [106 kB]
#5 8.840 Get:21 http://mirrors.aliyun.com/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB]
#5 8.845 Get:22 http://mirrors.aliyun.com/debian buster/main amd64 libncurses6 amd64 6.1+20181013-2+deb10u2 [102 kB]
#5 8.846 Get:23 http://mirrors.aliyun.com/debian buster/main amd64 libreadline7 amd64 7.0-5 [151 kB]
#5 8.850 Get:24 http://mirrors.aliyun.com/debian buster/main amd64 bc amd64 1.07.1-2+b1 [109 kB]
#5 8.853 Get:25 http://mirrors.aliyun.com/debian buster/main amd64 binutils-common amd64 2.31.1-16 [2073 kB]
#5 8.937 Get:26 http://mirrors.aliyun.com/debian buster/main amd64 libbinutils amd64 2.31.1-16 [478 kB]
#5 8.961 Get:27 http://mirrors.aliyun.com/debian buster/main amd64 binutils-x86-64-linux-gnu amd64 2.31.1-16 [1823 kB]
#5 9.034 Get:28 http://mirrors.aliyun.com/debian buster/main amd64 binutils amd64 2.31.1-16 [56.8 kB]
#5 9.035 Get:29 http://mirrors.aliyun.com/debian buster/main amd64 libbison-dev amd64 2:3.3.2.dfsg-1 [500 kB]
#5 9.062 Get:30 http://mirrors.aliyun.com/debian buster/main amd64 bison amd64 2:3.3.2.dfsg-1 [871 kB]
#5 9.093 Get:31 http://mirrors.aliyun.com/debian buster/main amd64 bsdiff amd64 4.3-21 [15.8 kB]
#5 9.094 Get:32 http://mirrors.aliyun.com/debian buster/main amd64 libc-dev-bin amd64 2.28-10 [275 kB]
#5 9.104 Get:33 http://mirrors.aliyun.com/debian buster/main amd64 linux-libc-dev amd64 4.19.208-1 [1482 kB]
#5 9.163 Get:34 http://mirrors.aliyun.com/debian buster/main amd64 libc6-dev amd64 2.28-10 [2691 kB]
#5 9.287 Get:35 http://mirrors.aliyun.com/debian buster/main amd64 libisl19 amd64 0.20-2 [587 kB]
#5 9.310 Get:36 http://mirrors.aliyun.com/debian buster/main amd64 libmpfr6 amd64 4.0.2-1 [775 kB]
#5 9.341 Get:37 http://mirrors.aliyun.com/debian buster/main amd64 libmpc3 amd64 1.1.0-1 [41.3 kB]
#5 9.344 Get:38 http://mirrors.aliyun.com/debian buster/main amd64 cpp-8 amd64 8.3.0-6 [8914 kB]
#5 9.722 Get:39 http://mirrors.aliyun.com/debian buster/main amd64 cpp amd64 4:8.3.0-1 [19.4 kB]
#5 9.722 Get:40 http://mirrors.aliyun.com/debian buster/main amd64 libcc1-0 amd64 8.3.0-6 [46.6 kB]
#5 9.722 Get:41 http://mirrors.aliyun.com/debian buster/main amd64 libgomp1 amd64 8.3.0-6 [75.8 kB]
#5 9.725 Get:42 http://mirrors.aliyun.com/debian buster/main amd64 libitm1 amd64 8.3.0-6 [27.7 kB]
#5 9.726 Get:43 http://mirrors.aliyun.com/debian buster/main amd64 libatomic1 amd64 8.3.0-6 [9032 B]
#5 9.726 Get:44 http://mirrors.aliyun.com/debian buster/main amd64 libasan5 amd64 8.3.0-6 [362 kB]
#5 9.741 Get:45 http://mirrors.aliyun.com/debian buster/main amd64 liblsan0 amd64 8.3.0-6 [131 kB]
#5 9.747 Get:46 http://mirrors.aliyun.com/debian buster/main amd64 libtsan0 amd64 8.3.0-6 [283 kB]
#5 9.758 Get:47 http://mirrors.aliyun.com/debian buster/main amd64 libubsan1 amd64 8.3.0-6 [120 kB]
#5 9.767 Get:48 http://mirrors.aliyun.com/debian buster/main amd64 libmpx2 amd64 8.3.0-6 [11.4 kB]
#5 9.767 Get:49 http://mirrors.aliyun.com/debian buster/main amd64 libquadmath0 amd64 8.3.0-6 [133 kB]
#5 9.769 Get:50 http://mirrors.aliyun.com/debian buster/main amd64 libgcc-8-dev amd64 8.3.0-6 [2298 kB]
#5 9.867 Get:51 http://mirrors.aliyun.com/debian buster/main amd64 gcc-8 amd64 8.3.0-6 [9452 kB]
#5 10.25 Get:52 http://mirrors.aliyun.com/debian buster/main amd64 gcc amd64 4:8.3.0-1 [5196 B]
#5 10.25 Get:53 http://mirrors.aliyun.com/debian buster/main amd64 libstdc++-8-dev amd64 8.3.0-6 [1532 kB]
#5 10.31 Get:54 http://mirrors.aliyun.com/debian buster/main amd64 g++-8 amd64 8.3.0-6 [9752 kB]
#5 10.71 Get:55 http://mirrors.aliyun.com/debian buster/main amd64 g++ amd64 4:8.3.0-1 [1644 B]
#5 10.71 Get:56 http://mirrors.aliyun.com/debian buster/main amd64 make amd64 4.2.1-1.2 [341 kB]
#5 10.72 Get:57 http://mirrors.aliyun.com/debian buster/main amd64 libdpkg-perl all 1.19.7 [1414 kB]
#5 10.78 Get:58 http://mirrors.aliyun.com/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB]
#5 10.79 Get:59 http://mirrors.aliyun.com/debian buster/main amd64 dpkg-dev all 1.19.7 [1773 kB]
#5 12.35 Get:60 http://mirrors.aliyun.com/debian buster/main amd64 build-essential amd64 12.6 [7576 B]
#5 12.92 Get:61 http://mirrors.aliyun.com/debian buster/main amd64 openssl amd64 1.1.1d-0+deb10u7 [845 kB]
#5 13.24 Get:62 http://mirrors.aliyun.com/debian buster/main amd64 ca-certificates all 20200601
deb10u2 [166 kB]
#5 13.58 Get:63 http://mirrors.aliyun.com/debian buster/main amd64 libkeyutils1 amd64 1.6-6 [15.0 kB]
#5 14.14 Get:64 http://mirrors.aliyun.com/debian buster/main amd64 libkrb5support0 amd64 1.17-3+deb10u3 [65.8 kB]
#5 14.47 Get:65 http://mirrors.aliyun.com/debian buster/main amd64 libk5crypto3 amd64 1.17-3+deb10u3 [122 kB]
#5 21.78 Get:66 http://mirrors.aliyun.com/debian buster/main amd64 libkrb5-3 amd64 1.17-3+deb10u3 [370 kB]
#5 22.09 Get:67 http://mirrors.aliyun.com/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3+deb10u3 [158 kB]
#5 22.40 Get:68 http://mirrors.aliyun.com/debian buster/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u6 [90.0 kB]
#5 22.70 Get:69 http://mirrors.aliyun.com/debian buster/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u6 [224 kB]
#5 23.01 Get:70 http://mirrors.aliyun.com/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB]
#5 23.10 Get:71 http://mirrors.aliyun.com/debian buster/main amd64 libpsl5 amd64 0.20.2-2 [53.7 kB]
#5 23.42 Get:72 http://mirrors.aliyun.com/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB]
#5 23.73 Get:73 http://mirrors.aliyun.com/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB]
#5 24.04 Get:74 http://mirrors.aliyun.com/debian buster/main amd64 libcurl4 amd64 7.64.0-4+deb10u2 [332 kB]
#5 24.59 Get:75 http://mirrors.aliyun.com/debian buster/main amd64 curl amd64 7.64.0-4+deb10u2 [265 kB]
#5 25.13 Get:76 http://mirrors.aliyun.com/debian buster/main amd64 dosfstools amd64 4.1-2 [98.4 kB]
#5 25.82 Get:77 http://mirrors.aliyun.com/debian buster/main amd64 libglib2.0-0 amd64 2.58.3-2+deb10u3 [1259 kB]
#5 26.05 Get:78 http://mirrors.aliyun.com/debian-security buster/updates/main amd64 libicu63 amd64 63.1-6+deb10u2 [8300 kB]
#5 26.78 Get:79 http://mirrors.aliyun.com/debian buster/main amd64 libxml2 amd64 2.9.4+dfsg1-7+deb10u2 [689 kB]
#5 27.12 Get:80 http://mirrors.aliyun.com/debian buster/main amd64 libcroco3 amd64 0.6.12-3 [145 kB]
#5 28.61 Get:81 http://mirrors.aliyun.com/debian buster/main amd64 gettext amd64 0.19.8.1-9 [1303 kB]
#5 ...

#8 [extract 2/2] ADD downloads/ds.broadwellnk-7.0.dev.txz /
#8 sha256:390189bacf53ab8f241fd010b84fedfb008f7ee8138d3298b393a5d6076bfa27
#8 DONE 29.2s

#5 [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 -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && sed -i "s/security.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list && 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 /var/lib/apt/lists/* /tmp/* && curl --progress-bar --output /usr/bin/jq --location https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x /usr/bin/jq
#5 sha256:0258fab799c33e116d8458632b2c8caa563e4e109b6170174460e2da74e4d348
#5 29.33 Get:82 http://mirrors.aliyun.com/debian buster/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u2 [330 kB]
#5 CANCELED

#6 [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 develop /opt/redpill-load
#6 sha256:258f5fe9ac4d92ef4b23d30f16a5476df98927316677b81e036398ee6307405e
#6 CACHED

#9 [stage-1 4/9] COPY --from=extract E:/Git/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
#9 sha256:4276e444ee60f77408f61bb178b14fb73c7d361aee35e5cc152a89c012d4aa1a
#9 ERROR: failed to walk /var/lib/docker/tmp/buildkit-mount609316887/E:/Git/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0: lstat /var/lib/docker/tmp/buildkit-mount609316887/E:/Git/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0: no such file or directory

[stage-1 4/9] COPY --from=extract E:/Git/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:


failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount609316887/E:/Git/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0: lstat /var/lib/docker/tmp/buildkit-mount609316887/E:/Git/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0: no such file or directory

efi.

你好,我想问下,bootx64.efi是如何编译出来的?在哪一步呢?

bromolow-7.0.1-42218 编译成功 但无法引导

bromolow-7.0.1-42218 添加了扩展驱动

成功编译 redpill-DS3615xs_7.0.1-42218_xxx.img 文件,但引导后直接出如下的 grub> 界面

image

不知道哪一步出问题了,谢谢指教

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.