{"id":21832708,"url":"https://github.com/winterrdog/x86-bootloader","last_synced_at":"2025-10-27T13:43:16.272Z","repository":{"id":236467993,"uuid":"792670576","full_name":"winterrdog/x86-bootloader","owner":"winterrdog","description":"A hobby project to learn how to make a bootloader. Written in C and x86 Assembly","archived":false,"fork":false,"pushed_at":"2024-05-02T14:25:01.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T01:02:31.646Z","etag":null,"topics":["assembly-x86","bootloader","c","nasm","qemu"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winterrdog.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-04-27T08:25:52.000Z","updated_at":"2025-05-27T23:11:26.000Z","dependencies_parsed_at":"2024-05-02T15:42:55.033Z","dependency_job_id":null,"html_url":"https://github.com/winterrdog/x86-bootloader","commit_stats":null,"previous_names":["winterrdog/x86-bootloader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/winterrdog/x86-bootloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterrdog%2Fx86-bootloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterrdog%2Fx86-bootloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterrdog%2Fx86-bootloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterrdog%2Fx86-bootloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winterrdog","download_url":"https://codeload.github.com/winterrdog/x86-bootloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winterrdog%2Fx86-bootloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281279068,"owners_count":26473855,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"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":["assembly-x86","bootloader","c","nasm","qemu"],"created_at":"2024-11-27T19:25:04.335Z","updated_at":"2025-10-27T13:43:16.219Z","avatar_url":"https://github.com/winterrdog.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `x86`-bootloader\n\nA hobby project to learn how to make an `x86` bootloader in `16`-bit real and `32`-bit protected mode\n\n## Requirements\n\nMake sure the following are installed:\n\n- `qemu` -- emulates x86 system virtually\n- `nasm` -- compile x86 assembly into machine code( since the assembly was written with the `Intel` syntax )\n\n## Usage\n\n- You can compile all the _bootloaders without a kernel_ with this:\n\n  ```sh\n  ./compile.sh\n  ```\n\n- In order to use them as boot devices from a `floppy` disk, you can run them like so:\n\n  ```sh\n  qemu-system-x86_64 -fda real-mode-bootloader # it is in 16-bit real mode\n  qemu-system-x86_64 -fda protected-mode-bootloader # it is in 32-bit protected mode\n  ```\n\n- In order to compile the _bootloader with a kernel_, you need to have a gcc cross-compiler of target `i686-elf` installed. You can compile the bootloader with the kernel like so:\n\n  ```sh\n  ./kernel-compile.sh\n  ```\n\n  In case you don't have that cross-compiler installed, you can use check [this](https://wiki.osdev.org/GCC_Cross-Compiler) to install it or use my bash script [here](https://github.com/winterrdog/build-gcc-cross-compiler) to do all the heavy lifting for you.\n\n- In order to run the bootloader with the kernel, you can run it like so:\n\n  ```sh\n    qemu-system-x86_64 -fda kernel.bin\n  ```\n\n# Notes\n\nThis project is a work in progress. I am still learning about the `x86` architecture and how to write bootloaders. I will be updating this project as I learn more about the `x86` architecture and how to write bootloaders. But it **ain't easy**, so I will be updating this project slowly.\n\n## References\n\n- [os dev wiki](https://wiki.osdev.org/GDT)\n- [a GDT tutorial](https://wiki.osdev.org/GDT_Tutorial)\n- [working with protected mode](http://www.osdever.net/tutorials/view/the-world-of-protected-mode)\n- [craft an `x86` bootloader](http://3zanders.co.uk/2017/10/16/writing-a-bootloader1/)\n- [working with A20 gate](https://wiki.osdev.org/A20_Line)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterrdog%2Fx86-bootloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinterrdog%2Fx86-bootloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinterrdog%2Fx86-bootloader/lists"}