[求助/问答] github在线编辑ds920p不成功 网络地址获取不到 |
本帖最后由 xcgf 于 2022-5-20 19:18 编辑
920,怎么编辑设备树,也就是dst文件 我找不到 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.1.0-42661 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/0x88AA/g' -e 's/0x46f4/0x88AA/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:="1130LWN123456"}/g" -e 's/XXYYXXYYXXYY/0011323D47F7/g' ${{matrix.platform}}_user_config.json # 添加第二张网卡mac并设置网卡数量 sed -i -e 's/0011323D47F7"/&,\n\t"mac2": "0011323D47F8",\n\t"netif_num": 2/' ${{matrix.platform}}_user_config.json # 调整synoinfo sed -i -e 's/"synoinfo": {},/"synoinfo": {\n\t"maxlanport": "2"\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/tossp/redpill ... pill-boot-wait.json ./redpill_tool_chain.sh add https://github.com/tossp/redpill ... /redpill-acpid.json ./redpill_tool_chain.sh add https://github.com/tossp/redpill ... redpill-virtio.json - name: 添加扩展驱动[dva3221] if: matrix.platform == 'dva3221' run: | echo '等待整理兼容性扩展~ |
先确定自己的网卡型号,然后找到驱动的https://。。。。。。.josn。向这样添加一条进去
./redpill_tool_chain.sh add https://github.com/tossp/redpill ... pill-boot-wait.json |
本帖最后由 nb12nb34 于 2022-5-20 22:39 编辑
这个要fork到自己仓库,然后上传自己的dtb文件到仓库,之后就是修改tossp大佬的test.yml中dtb文件指向自己仓库的.dtb文件,期中还要修改sha256的值,不然编译一样会出错,这样可以识别到硬盘。你是虚拟机安装吗?然后tossp的test.yml中有添加驱动的选项,照样子添加自己需要的网卡驱动就行了 |
本帖最后由 donxu 于 2022-5-21 12:46 编辑
http://www.gebi1.com/forum.php?mod=viewthread&tid=301598&fromguid=hot&extra=page%3D1&mobile=2 |