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

esxi7成功安装DS920+7.1笔记。

本帖由 sumwah2022-04-30 发布。版面名称:群晖 Synology DSM

  1. sumwah

    sumwah Member

    注册:
    2020-04-18
    帖子:
    142
    加入了以下4个驱动
    redpill-dtb DS920+专用
    redpill-misc 虚拟机专用
    redpill-acpid 电源
    vmxnet3 虚拟网卡

    第一次编译完后并生成镜像,才进行以下操作

    进入目录,把redpill-boot-wait删除
    custom/extensions

    进入目录
    cd custom/extensions/redpill-dtb/ds920p_42661

    把model_ds920p.dtb转化为output.dts
    dtc -I dtb -O dts -o output.dts model_ds920p.dtb


    安装第一次编译的镜像获取硬盘信息

    安装时找不到硬盘

    群辉开启telnet
    浏览器输入<群晖ip>:5000/webman/start_telnet.cgi

    192.168.1.171:5000/webman/start_telnet.cgi

    telnet上去,用户名是root,没有密码


    [​IMG]

    查看有几个sata
    cd /
    ls /sys/block/

    查看第一个sata1的信息,或许你还有其他的sata
    cat /sys/block/sata1/device/syno_block_info

    pciepath=00:11.0,00.0
    ata_port_no=1
    driver=ahci

    获取完sata信息后可以把DS920虚拟机删除

    进入源码修改output.dts里的第一个sata信息,或许你还有其他的sata
    vi output.dts


    internal_slot@1 {
    protocol_type = "sata";
    power_pin_gpio = <0x14 0x0>;
    detect_pin_gpio = <0x23 0x1>;
    led_type = "lp3943";

    ahci {
    pcie_root = "00:11.0,00.0";
    ata_port = <0x1>;
    };



    先把旧的model_ds920p.dtb删除,再把output.dts转化为model_ds920p.dtb
    dtc -I dts -O dtb -o model_ds920p.dtb output.dts

    第二次编译镜像
    sudo ./build-loader.sh DS920+ 7.1.0-42661

    按第一次虚拟机配置安装虚拟机

    [​IMG]
     
    最后编辑: 2022-04-30
    已获得 s2k7 的点赞。
  2. 聚氨酯泡沫

    聚氨酯泡沫 New Member

    注册:
    2022-05-18
    帖子:
    27
    大佬可以分享这个虚拟机引导吗?
     
  3. xqsdbr

    xqsdbr Member

    注册:
    2022-05-04
    帖子:
    37
    [​IMG]
    怎么是这样?
    DiskStation> ls /sys/block/
    ls /sys/block/
    ram0 ram10 ram12 ram14 ram2 ram4 ram6 ram8 sdq
    ram1 ram11 ram13 ram15 ram3 ram5 ram7 ram9
    DiskStation> cat /sys/block/sata1/device/syno_block_info
    cat /sys/block/sata1/device/syno_block_info
    cat: can't open '/sys/block/sata1/device/syno_block_info': No such file or directory
    DiskStation> cat /sys/block/ram1/device/syno_block_info
    cat /sys/block/ram1/device/syno_block_info
    cat: can't open '/sys/block/ram1/device/syno_block_info': No such file or directory
    DiskStation> ls
    ls
    bin lib mnt tmp
    dev lib32 proc tmpRoot
    etc lib64 root usr
    etc.defaults linuxrc run var
    exts linuxrc.syno sbin volume1
    init linuxrc.syno.impl sys
    DiskStation> cd sys
    cd sys
    DiskStation> ls
    ls
    block class devices fs module
    bus dev firmware kernel power
    DiskStation> cd block
    cd block
    DiskStation> ls
    ls
    ram0 ram10 ram12 ram14 ram2 ram4 ram6 ram8 sdq
    ram1 ram11 ram13 ram15 ram3 ram5 ram7 ram9
    DiskStation> cd ram0
    cd ram0
    DiskStation> ls
    ls
    alignment_offset discard_alignment removable
    auto_remap ext_range ro
    bdi holders size
    block_resp_read_hist inflight slaves
    block_resp_stat integrity stat
    block_resp_write_hist power subsystem
    capability queue trace
    dev range uevent
    DiskStation> cd dev
    cd dev
    -ash: cd: can't cd to dev: Not a directory
     
  4. sumwah

    sumwah Member

    注册:
    2020-04-18
    帖子:
    142
  5. sumwah

    sumwah Member

    注册:
    2020-04-18
    帖子:
    142
    你第一次编译的时候是否加入了dtb ?
     
  6. xcgf

    xcgf Member

    注册:
    2019-11-30
    帖子:
    269
    真的看不懂 用什么编译的 你的原始编译软件 告诉一下
     
  7. sumwah

    sumwah Member

    注册:
    2020-04-18
    帖子:
    142
    安装编译模块
    sudo apt-get update
    sudo apt install docker.io
    sudo apt install jq
    sudo apt install curl
    sudo apt install device-tree-compiler
    sudo apt-get install bsdiff

    下载源码
    git clone https://github.com/tossp/redpill-tool-chain.git

    授权目录
    sudo chmod -R 777 redpill-tool-chain

    进入目录
    cd redpill-tool-chain

    生成SN和MAC
    sudo ./redpill_tool_chain.sh sn ds920p

    复制ds920p_user_config.json并修改SN和MAC
    sudo cp sample_user_config.json ds920p_user_config.json

    添加扩展驱动
    DS920+专用dts
    sudo ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-dtb/rpext-index.json

    sudo ./redpill_tool_chain.sh add https://github.com/jumkey/redpill-load/raw/develop/redpill-misc/rpext-index.json
    sudo ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/redpill-load/master/redpill-acpid/rpext-index.json
    sudo ./redpill_tool_chain.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/vmxnet3/rpext-index.json
    sudo ./redpill_tool_chain.sh add https://raw.githubusercontent.com/PeterSuh-Q3/rp-ext/master/e1000e/rpext-index.json


    编译镜像名称
    sudo ./redpill_tool_chain.sh build ds918p-7.1.0-42661

    编译
    sudo ./redpill_tool_chain.sh auto ds918p-7.1.0-42661

    安装镜像并提示找不到硬盘
     
  8. donxu

    donxu Member

    注册:
    2022-05-02
    帖子:
    64
    值得借鉴,收藏下
     
  9. xcgf

    xcgf Member

    注册:
    2019-11-30
    帖子:
    269
    第一步是不是 物理机装个ubuntu[/QUOTE]
     
  10. xcgf

    xcgf Member

    注册:
    2019-11-30
    帖子:
    269