1. 服务器/VPS/主机用户Telegram电报群: https://t.me/openos
    黑群晖 Synology Telegram电报群: https://t.me/nasfan
    排除公告

自定义黑群晖引导编译 (22/08/05)

本帖由 wjz3042022-07-27 发布。版面名称:群晖 Synology DSM

  1. wjz304

    wjz304 Member

    注册:
    2017-12-23
    帖子:
    123
    嗯,有一个默认的文件,正常应该根据实际差异在进行二次修改,如果ok的话,只能说明默认的兼容你的硬件,如果不兼容就不行了
     
  2. wjz304

    wjz304 Member

    注册:
    2017-12-23
    帖子:
    123
    自定义倒是不难写 就是这个参数有点多,github actions限制参数最多10个,我之只能把dtb限制为一个参数,一个参数就有点麻烦,我在想一种简单传一个参数就能适配的方式
     
  3. wjz304

    wjz304 Member

    注册:
    2017-12-23
    帖子:
    123
    我看了你的修改:),差不多是那个意思,但是我要把它变成自动处理;)
     
  4. hoping

    hoping Member

    注册:
    2019-05-28
    帖子:
    97
    嗯,不清楚ext能不能添加本地的json,如果可以的话,就方便多了,我目前测试了下,需要两个自定义的json
    1. https://github.com/htmambo/Redpill_CustomBuild/blob/main/ts453dmini/rpext-index.json
    2. https://github.com/htmambo/Redpill_CustomBuild/blob/main/ts453dmini/universal.json
    然后,根据dts模板修改后自编译:
    代码:
                if [ ${{ steps.info.outputs.machine }} == 'TS453DMINI' ]; then
                  ./ext-manager.sh add https://raw.githubusercontent.com/htmambo/Redpill_CustomBuild/main/ts453dmini/rpext-index.json
                  wget https://raw.githubusercontent.com/htmambo/Redpill_CustomBuild/main/ts453dmini/ds920p.dts
                  # 这里要引入453DMINI自己的dts文件去编译
                  chmod +x ./redpill-qjs-dtb/src/dtc
                  ./redpill-qjs-dtb/src/dtc -I dts -O dtb -o ./ds920p.dtb ./ds920p.dts
                  # Downloading remote file https://raw.githubusercontent.com/htmambo/Redpill_CustomBuild/main/ts453dmini/model_ds920p.dtb to /home/runner/work/Redpill_CustomBuild/Redpill_CustomBuild/redpill-load/custom/extensions/redpill-dtb-static/ds920p_42218/model_ds920p.dtb
                  mkdir -p /home/runner/work/Redpill_CustomBuild/Redpill_CustomBuild/redpill-load/custom/extensions/redpill-dtb-static/ds920p_42218
                  cp ./ds920p.dtb /home/runner/work/Redpill_CustomBuild/Redpill_CustomBuild/redpill-load/custom/extensions/redpill-dtb-static/ds920p_42218/model_ds920p.dtb
                else
    # 这里是默认的步骤
                  ./ext-manager.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/redpill-dtb-static/rpext-index.json
                  wget https://raw.githubusercontent.com/pocopico/tinycore-redpill/main/ds920p.dts
                fi
     
  5. hoping

    hoping Member

    注册:
    2019-05-28
    帖子:
    97
    是啊,这个10的限制有些头疼,我加了个machine的然后就报错了,看你没用到dtb的配置,就先删除掉dtb部分然后自己折腾了
     
  6. kennyhn

    kennyhn Member

    注册:
    2021-10-22
    帖子:
    53
    能把你固件分享一下吗 感谢
     
  7. hoping

    hoping Member

    注册:
    2019-05-28
    帖子:
    97
  8. wjz304

    wjz304 Member

    注册:
    2017-12-23
    帖子:
    123
    我补全了 dtb 的实现,有时间帮忙试下。

    关键日志:
    Copying /home/runner/work/Redpill_CustomBuild/Redpill_CustomBuild/user.dtb to custom/extensions/redpill-dtb-static/ds920p_42661/model_ds920p.dtb ...
     
    最后编辑: 2022-08-02
    已获得 hoping 的点赞。
  9. kennyhn

    kennyhn Member

    注册:
    2021-10-22
    帖子:
    53
    我的是蜗牛星际 我想编译ds920+的固件 我的dts文件上传到你的这里了 https://github.com/wjz304/Redpill_CustomBuild/files/9235961/ds920p_dts.zip 但是不知道为什么 在你那边编辑 每次都是几十秒就完成了 但是都没有生成固件 你方便看一下吗 或者你能拿我的那个dts文件帮忙编译一个ds920的固件吗 感谢
     
  10. hoping

    hoping Member

    注册:
    2019-05-28
    帖子:
    97
    刚睡醒,看了下果然巨复杂的啊,我可以尝试一下。