{"id":13710938,"url":"https://github.com/nrdmn/uefi-examples","last_synced_at":"2025-04-14T19:20:35.034Z","repository":{"id":125064420,"uuid":"211555504","full_name":"nrdmn/uefi-examples","owner":"nrdmn","description":"UEFI examples in Zig","archived":false,"fork":false,"pushed_at":"2023-08-22T19:08:43.000Z","size":28,"stargazers_count":70,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T07:41:26.911Z","etag":null,"topics":["uefi","zig"],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nrdmn.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-09-28T20:05:53.000Z","updated_at":"2025-03-24T06:57:45.000Z","dependencies_parsed_at":"2024-01-27T09:38:48.760Z","dependency_job_id":"9a04165f-0eda-4ed9-8c93-4c21e6013f2f","html_url":"https://github.com/nrdmn/uefi-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrdmn%2Fuefi-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrdmn%2Fuefi-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrdmn%2Fuefi-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrdmn%2Fuefi-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nrdmn","download_url":"https://codeload.github.com/nrdmn/uefi-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943428,"owners_count":21186958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["uefi","zig"],"created_at":"2024-08-02T23:01:02.443Z","updated_at":"2025-04-14T19:20:35.016Z","avatar_url":"https://github.com/nrdmn.png","language":"Zig","funding_links":[],"categories":["Bootables","Applications","Systems Programming"],"sub_categories":["Operating Systems"],"readme":"# UEFI examples in Zig\nThis repo contains examples about how to use Zig to build UEFI apps.\n\nRecommended reading order:\n1. hello\n1. protocols\n1. events\n1. memory\n1. exit_boot_services\n1. efivars\n1. hii (TODO)\n\n## How to build and run.\nRun `zig build` in any of the subdirectories to build.\nThen you can copy the output file to a FAT32 formatted device to `efi/boot/bootx64.efi`.\nAlternatively you can use QEMU with `qemu-system-x86_64 -bios /usr/share/edk2-ovmf/OVMF_CODE.fd -hdd fat:rw:. -serial stdio`.\n\n## FAQ\n### How much stack space do I get?\nAt least 128 KiB before calling `exitBootServices()`.\nAfter calling `exitBootServices()` you have to provide at least 4 KiB.\n\n### Why does my computer reboot after 5 minutes?\nBy default, your firmware's watchdog reboots your system after 5 minutes if your application does not call `exitBootServices()`.\nYou can disable the watchdog timer using `boot_services.setWatchdogTimer(0, 0, 0, null)`.\n\n### Where do I get more information?\nRead the spec.\nIt's really well written.\n\n## Further reading\n- https://uefi.org/sites/default/files/resources/UEFI_Spec_2_8_final.pdf\n- https://www.intel.com/content/dam/doc/guide/efi-driver-writers-v1-10-guide.pdf\n- Beyond BIOS: Developing with the Unified Extensible Firmware Interface\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrdmn%2Fuefi-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnrdmn%2Fuefi-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrdmn%2Fuefi-examples/lists"}