{"id":50384574,"url":"https://github.com/initdc/openwrt-qemu","last_synced_at":"2026-05-30T14:01:37.338Z","repository":{"id":338923260,"uuid":"1159714960","full_name":"initdc/openwrt-qemu","owner":"initdc","description":"OpenWrt in QEMU","archived":false,"fork":false,"pushed_at":"2026-02-17T05:42:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2026-02-17T10:47:12.040Z","etag":null,"topics":["edk2","openwrt","qemu","u-boot","uefi"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-17T04:19:50.000Z","updated_at":"2026-02-17T05:42:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/initdc/openwrt-qemu","commit_stats":null,"previous_names":["initdc/openwrt-qemu"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/initdc/openwrt-qemu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fopenwrt-qemu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fopenwrt-qemu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fopenwrt-qemu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fopenwrt-qemu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initdc","download_url":"https://codeload.github.com/initdc/openwrt-qemu/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fopenwrt-qemu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33694714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["edk2","openwrt","qemu","u-boot","uefi"],"created_at":"2026-05-30T14:01:36.897Z","updated_at":"2026-05-30T14:01:37.329Z","avatar_url":"https://github.com/initdc.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OpenWrt in QEMU\n\n### Run\n\n```\nmake squashfs\n```\n\n### Exit\n```sh\npoweroff\n\n# or new shell\npkill -f qemu-system-aarch64\n```\n\n### Prepare\n\n- Ubuntu 24.04 (GNU coreutils for building OpenWrt) or Ubuntu 26.04 (for qemu 10 RVA23)\n\n  ```\n  sudo apt install qemu-system-arm make u-boot-tools\n  ```\n- OpenWrt files https://downloads.openwrt.org/releases/24.10.5/targets/armsr/armv8/\n\n  ```\n  ls -1 openwrt* u-boot.bin\n\n  openwrt-24.10.5-armsr-armv8-generic-ext4-rootfs.img\n  openwrt-24.10.5-armsr-armv8-generic-initramfs-kernel.bin\n  openwrt-24.10.5-armsr-armv8-generic-kernel.bin\n  openwrt-24.10.5-armsr-armv8-generic-squashfs-combined-efi.img\n  openwrt-24.10.5-armsr-armv8-generic-squashfs-rootfs.img\n  openwrt-24.10.5-armsr-armv8-rootfs.cpio.gz\n  u-boot.bin\n  ```\n\n- EFI files\n\n  ```\n  cp /usr/share/qemu-efi-aarch64/QEMU_EFI.fd QEMU_EFI_64M.fd\n  truncate -s 64M QEMU_EFI_64M.fd\n  truncate -s 64M varstore.img\n  ```\n\n- UEFI Shell https://github.com/pbatard/UEFI-Shell\n\n  ```\n  mkdir -p edk2/EFI/BOOT\n  cp shellaa64.efi edk2/EFI/BOOT/BOOTAA64.EFI\n\n  make uefi-shell\n  ```\n\n- U-Boot `boot.scr` (as a disk partition)\n\n  ```sh\n  mkdir -p u-boot/boot\n  cp openwrt-24.10.5-armsr-armv8-generic-kernel.bin u-boot/boot/Image\n  touch u-boot/boot.txt\n  ```\n\n  edit `u-boot/boot.txt`\n  ```sh\n  fatload virtio 1 ${kernel_addr_r} /boot/Image\n  setenv bootargs root=fe00\n  booti ${kernel_addr_r} - ${fdt_addr}\n  ```\n\n  ```sh\n  make boot.scr\n  make uboot-env\n\n  # enter u-boot\n  source ${scriptaddr}\n  ```\n\n  U-Boot `.CONFIG`\n  ```sh\n  CONFIG_BOOTCOMMAND=\"source ${scriptaddr}\"\n  ```\n\n### Network Boot\n\n- [Network Boot](network-boot.md)\n\n### Guide\n\n- https://openwrt.org/docs/guide-user/virtualization/qemu\n- https://linuxkernel.org.cn/doc/html/latest/admin-guide/nfs/nfsroot.html\n- https://linuxkernel.org.cn/doc/html/latest/filesystems/ramfs-rootfs-initramfs.html\n- https://linuxkernel.org.cn/doc/html/latest/admin-guide/initrd.html\n\n### License\n\nMPL-2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fopenwrt-qemu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitdc%2Fopenwrt-qemu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fopenwrt-qemu/lists"}