{"id":23639110,"url":"https://github.com/initdc/byosoft-edk2-bin","last_synced_at":"2026-02-27T04:04:19.711Z","repository":{"id":268777626,"uuid":"905431468","full_name":"initdc/BYOSOFT-edk2-bin","owner":"initdc","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-18T20:47:54.000Z","size":6304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T18:47:50.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitee.com/byoopenproject/risc_v_qemu","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/initdc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T20:14:36.000Z","updated_at":"2025-02-14T08:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a76352f3-e666-490c-80db-6eef3069329b","html_url":"https://github.com/initdc/BYOSOFT-edk2-bin","commit_stats":null,"previous_names":["initdc/byosoft-edk2-bin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/initdc/BYOSOFT-edk2-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2FBYOSOFT-edk2-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2FBYOSOFT-edk2-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2FBYOSOFT-edk2-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2FBYOSOFT-edk2-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initdc","download_url":"https://codeload.github.com/initdc/BYOSOFT-edk2-bin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2FBYOSOFT-edk2-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-28T08:12:39.678Z","updated_at":"2026-02-27T04:04:19.692Z","avatar_url":"https://github.com/initdc.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# risc_v_qemu\r\n\r\n#### 介绍\r\nRISC-V 64位 QEMU的UEFI固件，可以在Windows/Linux上qemu环境下运行。\r\n\r\n#### 软件架构\r\n本仓库中的UEFI二进制固件都放在根目录，方便下载和验证。\r\n\r\n#### 安装教程\r\nWindows:\r\nQemu 下载Windows版本并安装  \r\nhttps://qemu.weilnetz.de/w64/qemu-w64-setup-20240903.exe\r\n注意事项：\r\n如需启用PXE Boot\r\n需下载OpenVPN  https://swupdate.openvpn.org/community/releases/OpenVPN-2.6.12-I001-amd64.msi\r\n安装成功后进入控制面板-\u003e网络和 Internet-\u003e网络和共享中心-\u003e更改适配器设置\r\n将虚拟网卡OpenVPN TAP-Windows6改名为tap0\r\n运行时添加\r\n```\r\n-netdev tap,id=net0,ifname=tap0,script=no,downscript=no \r\n-device virtio-net-pci,netdev=net0 \r\n```\r\n\r\nLinux:\r\n1.  下载Qemu 9.1.0\r\n```\r\nwget https://download.qemu.org/qemu-9.1.0.tar.xz\r\ntar -xvf qemu-9.1.0.tar.xz\r\ncd qemu-9.1.0\r\n```\r\n2.  安装编译依赖\r\n```\r\nsudo apt update\r\nsudo apt install build-essential libglib2.0-dev libpixman-1-dev zlib1g-dev ninja-build\r\n```\r\n3.  配置编译安装\r\n```\r\n./configure --target-list=riscv64-softmmu\r\nmake -j$(nproc)\r\nsudo make install\r\n```\r\n\r\n#### 使用说明\r\n\r\nRISCV_VIRT_CODE.fd 和 RISCV_VIRT_VARS.fd 从本仓库下载，并复制到Qemu的安装目录。\r\n然后打开Windows cmd 命令行，进入到Qemu的安装目录，最后运行下面的命令，进入到BIOS。\r\n\r\n```\r\nqemu-system-riscv64 -M virt,pflash0=pflash0,pflash1=pflash1,acpi=off ^\r\n-m 4096 ^\r\n-smp 2 ^\r\n-device virtio-gpu-pci ^\r\n-device qemu-xhci ^\r\n-device usb-kbd ^\r\n-device usb-mouse ^\r\n-blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd ^\r\n-blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd ^\r\n-serial stdio ^\r\n-device virtio-rng-pci ^\r\n-display sdl -device virtio-vga,xres=1280,yres=720\r\n```\r\n\r\n#### 参与贡献\r\n\r\n使用本仓库的固件，验证期望的功能，如果功能缺失或者功能缺陷的话，请在本仓库报issue，我们负责定期解决和更新，计划每季度更新。\r\n\r\n#### 功能清单\r\n\r\n| 功能 | \r\n| ------ | \r\n| 图形界面 |\r\n| 中英文显示 |\r\n| 热键启动 |\r\n| 启动Logo |\r\n| 输入设备（USB键盘）                               |\r\n| 输出设备（virtio-gpu-pci 显示）                   |\r\n| 串口日志 |\r\n| 串口输入输出 （待支持） |\r\n| 存储设备（virtio-blk-device 硬盘、U盘）             |\r\n| 网络设备 （virtio-net-pci 网卡）                  |\r\n| 文件系统（FAT32）                               |\r\n| UEFI Shell |\r\n| 操作系统启动（openSUSE，OS待上传）                          |\r\n| 固件升级 （待支持）                                |\r\n| SMBIOS (Type 0, 1, 3, 4, 16, 17, 19, 32等） |\r\n| ACPI（待支持）                                 |\r\n| 内存映射 (4K)                                 |\r\n| 运行时服务                                     |\r\n| BIOS口令                                    |\r\n| 安全启动                                      |\r\n| 可信度量 （待支持）                                |\r\n| 密码算法强度                                    |\r\n| 密码加密算法                                    |\r\n| 密码中的随机数 （virtio-rng-pci）                  |\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fbyosoft-edk2-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitdc%2Fbyosoft-edk2-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fbyosoft-edk2-bin/lists"}