Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

编译好了ds920无限循环重复安装 #231

Open
chenxudong2020 opened this issue Nov 29, 2022 · 16 comments
Open

编译好了ds920无限循环重复安装 #231

chenxudong2020 opened this issue Nov 29, 2022 · 16 comments

Comments

@chenxudong2020
Copy link

chenxudong2020 commented Nov 29, 2022

安装过程中安装到80%左右就直接提示重启页面 重启之后然后助手搜到然后提示DSM未安装 无限循环

name: 构建

on:
  workflow_dispatch:
    inputs:
      clean_cache:
        description: 'Clear caches'
        required: false
        type: boolean
  push:
    branches:
      - master
    paths:
      - "docker/**"
      - "**.sh"
      - "**.json"

jobs:
  build:
    runs-on: ubuntu-latest
    name: 编译 "${{matrix.platform}} ${{matrix.version}}"
    strategy:
      fail-fast: false
      matrix:
        include:
          - platform: ds920p
            version: 7.0.1-42218

           

    steps:
      - name: 检出项目文件
        uses: actions/checkout@v3

      - name: 缓存加速
        uses: actions/cache@v3
        with:
          path: |
            cache/*.pat
            cache/*.org
            docker/downloads/*.txz
          key: ${{matrix.platform}}-${{matrix.version}}-${{ hashFiles('global_config.json') }}
          restore-keys: ${{matrix.platform}}-${{matrix.version}}-

      - name: 清理缓存
        if: "${{ github.event.inputs.clean_cache == 'true' }}"
        run: |
          rm -rf cache/*.pat
          rm -rf cache/*.org
          rm -rf docker/downloads/*.txz

      - name: 准备构建环境
        run: |
          ./redpill_tool_chain.sh build ${{matrix.platform}}-${{matrix.version}}

      - name: 配置引导镜像
        run: |
          cp sample_user_config.json ${{matrix.platform}}_user_config.json

          # 调整VID和PID
          sed -i -e 's/0x0001/0x2000/g' -e 's/0x46f4/0x090C/g' ${{matrix.platform}}_user_config.json

          # 调整SN和MAC,最好使用 actions secrets 引入,SN应该是固定值不应该每次生成
          sn=`./redpill_tool_chain.sh sn ${{matrix.platform}} | grep 'Serial Number' | awk '{print $3}'`
          sed -i -e "s/1234XXX123/${sn:="2131LWN123456"}/g" -e 's/XXYYXXYYXXYY/0011327B3261/g' ${{matrix.platform}}_user_config.json

          # 添加第四张网卡mac并设置网卡数量
          sed -i -e 's/0011327B3261"/&,\n\t"mac2": "C5834F10E54A",\n\t"mac3": "0011323D47F8",\n\t"mac4": "C5834F10E549",\n\t"netif_num": 4/' ${{matrix.platform}}_user_config.json
          
          
          # 调整synoinfo
          sed -i -e 's/"synoinfo": {},/"synoinfo": {\n\t"maxlanport": "4"\n    },/' ${{matrix.platform}}_user_config.json

          cat ${{matrix.platform}}_user_config.json

      - name: 添加扩展驱动
        if: matrix.platform != 'dva3221'
        run: |
          ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-virtio/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/jumkey/redpill-load/develop/redpill-acpid/rpext-index.json
          ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/e1000/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/igb/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/r8101/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/r8125/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/r8152/rpext-index.json
          ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/main/r8168/rpext-index.json
      

      - name: 添加扩展驱动[dva3221]
        if: matrix.platform == 'dva3221'
        run: |
          echo '等待整理兼容性扩展~😀'
          ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-boot-wait/rpext-index.json

      - name: 添加 Misc shell
        run: |
          ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-misc/rpext-index.json

      - name: 添加 jumkey.dtb !!!Create your own device tree binary!!!
        if: matrix.platform == 'ds920p' || matrix.platform == 'ds1621p' || matrix.platform == 'ds2422p'
        run: |
          ./redpill_tool_chain.sh add https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-dtb.json
          echo '!!!Create your own device tree binary!!!'
          echo 'see https://github.com/jumkey/redpill-load/blob/develop/redpill-dtb/README.md'

      - name: 预处理PAT
        if: endsWith(matrix.version, '42661') && startsWith(matrix.platform, 'ds361')
        run: |
          sed -i 's/debian:8-slim/debian:10-slim/g' global_config.json
          ./redpill_tool_chain.sh build ${{matrix.platform}}-${{matrix.version}}
          ./redpill_tool_chain.sh pat ${{matrix.platform}}-${{matrix.version}}
          sed -i 's/debian:10-slim/debian:8-slim/g' global_config.json
          ./redpill_tool_chain.sh build ${{matrix.platform}}-${{matrix.version}}

      - name: 编译引导镜像
        run: |
          ./redpill_tool_chain.sh auto ${{matrix.platform}}-${{matrix.version}}

      - name: 上传引导镜像到 github actions
        uses: actions/upload-artifact@v3
        with:
          name: dsm-${{matrix.platform}}-${{matrix.version}}
          path: images/redpill-*.img
          if-no-files-found: error

      - name: 删除旧的工作流
        uses: Mattraks/delete-workflow-runs@v2
        with:
          retain_days: 1
          keep_minimum_runs: 3
@chenxudong2020
Copy link
Author

chenxudong2020 commented Nov 29, 2022

编译好img我也传上来 如果需要的话
硬件配置 万由NS202 J4125两个磁盘 一个NVME 四口8125b
断网安装我测试过 只要上传成功后拔掉网线 机器就不会重启 插入网线机器才能重启 重启之后提示DSM未安装!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@tossp
Copy link
Owner

tossp commented Nov 29, 2022

920我记得好像是要配置dtd的

'!!!Create your own device tree binary!!!'
https://github.com/jumkey/redpill-load/blob/develop/redpill-dtb/README.md'

@tossp tossp changed the title !!!!!!编译好了ds920无限循环重复安装!!!!!!!! 编译好了ds920无限循环重复安装 Nov 29, 2022
@chenxudong2020
Copy link
Author

安装

四盘以内包括四盘无需配置dtd 自动生成

@tossp
Copy link
Owner

tossp commented Nov 29, 2022

还有这说法?那就需要进串口看启动过程来判断失败原因了

@chenxudong2020
Copy link
Author

有的 隔壁网都这么说 你可以找几个帖子看看 还有那个dtd生成是怎么运行的

@tossp
Copy link
Owner

tossp commented Nov 29, 2022

dtd的教程在这里
https://github.com/jumkey/redpill-load/blob/develop/redpill-dtb/README.md

猜测,能引导安装界面,启动镜像没问题。安装后无法启动,应该是二次引导中,找不到启动盘,问题应该还是在dtd上,具体的错误还是只有通过串口看启动过程来排障

话说920比918有啥优势?

@chenxudong2020
Copy link
Author

chenxudong2020 commented Nov 29, 2022

920可以自动识别nvme位置 第二个不用配置硬盘参数 第三个启动会快点 这些都是传言 我自己编译下看看到底行不行
我猜测启动盘识别到了 安装80%提示重启 应该是没安装完成 从网页上看80% 然后就是网页提示重启中 好像是一下子跳过去的
引导没写好 如果拿掉硬盘提示找不到硬盘所以硬盘识别应该是没问题

@chenxudong2020
Copy link
Author

实在不行我用这个http://www.gebi1.com/thread-301040-1-1.html 生成dtd拷贝出来然后 再次action编译 我这边没法连接串口

@chenxudong2020
Copy link
Author

DTS文件我这边已经获取到 请问如何在生成引导的时候使用自己的dts设备树文件

@tossp
Copy link
Owner

tossp commented Nov 30, 2022

@chenxudong2020
Copy link
Author

这个问题已经确认了 jum模式编译ds920确认有问题 就是反复循环重复安装 非jum模式正常具体原因未知

@tossp
Copy link
Owner

tossp commented Dec 1, 2022

我日常版本使用的918,920你可以咨询一下 @jumkey

@carrot0219
Copy link

DS918+ 6.2.4 也遇到了同样的一直重复安装

@ljfing110
Copy link

DS918+ 6.2.4 也遇到了同样的一直重复安装

同样的问题,求解!

@chenxudong2020
Copy link
Author

chenxudong2020 commented Feb 6, 2023 via email

@ilasx
Copy link

ilasx commented May 16, 2023

是不是jun模式 我是这个模式才有问题

---原始邮件--- 发件人: @.> 发送时间: 2023年2月6日(周一) 中午11:12 收件人: @.>; 抄送: @.@.>; 主题: Re: [tossp/redpill-tool-chain] 编译好了ds920无限循环重复安装 (Issue #231) DS918+ 6.2.4 也遇到了同样的一直重复安装 同样的问题,求解! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jun模式要701的版本才行

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants