{"id":21116127,"url":"https://github.com/alexjmercer/x86_64-bootloader-and-kernel","last_synced_at":"2025-03-14T10:27:47.595Z","repository":{"id":211779394,"uuid":"729932585","full_name":"AlexJMercer/x86_64-Bootloader-and-Kernel","owner":"AlexJMercer","description":"Learning about bootloaders and kernels. Diving deep into how an Operating system operates. All for learning purposes.","archived":false,"fork":false,"pushed_at":"2023-12-18T18:56:11.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T04:41:47.890Z","etag":null,"topics":["assembly-x86","nasm-bootloader","os","osdev","qemu","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/AlexJMercer.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-10T19:41:58.000Z","updated_at":"2023-12-14T16:26:32.000Z","dependencies_parsed_at":"2023-12-18T22:32:16.161Z","dependency_job_id":null,"html_url":"https://github.com/AlexJMercer/x86_64-Bootloader-and-Kernel","commit_stats":null,"previous_names":["alexjmercer/x86_64-bootloader-and-kernel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexJMercer%2Fx86_64-Bootloader-and-Kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexJMercer%2Fx86_64-Bootloader-and-Kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexJMercer%2Fx86_64-Bootloader-and-Kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexJMercer%2Fx86_64-Bootloader-and-Kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexJMercer","download_url":"https://codeload.github.com/AlexJMercer/x86_64-Bootloader-and-Kernel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243561121,"owners_count":20311042,"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":["assembly-x86","nasm-bootloader","os","osdev","qemu","x86-64"],"created_at":"2024-11-20T02:08:58.680Z","updated_at":"2025-03-14T10:27:47.572Z","avatar_url":"https://github.com/AlexJMercer.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eBeginners Attempt at OSDev\u003c/h1\u003e\n\u003ch3 align=\"\"\u003e⚠️In progress\u003c/h3\u003e\n\n\u003ch3 align=\"center\"\u003e \n\n![Alt text](/Instructions%20\u0026%20Notes/img/image-5.png)\n\u003c/h3\u003e\n\n## Introduction\n\n\u003e This is an attempt at understanding how computers work.\u003cbr\u003e\n\u003e How an Operating system operates, and how it interfaces with bare metal hardware.\u003cbr\u003e\n\u003e\n\u003e I'm also making a collection of detailed notes and instructions for myself, and anyone else who wants to follow along on this journey.\u003cbr\u003e\n\u003e \n\u003e You can access the notes in the [Instructions \u0026 Notes](/Instructions%20\u0026%20Notes) folder.\u003cbr\u003e\n\u003e The notes are written in Markdown, and can be viewed on GitHub itself.\n\u003e\n\u003e Please click \u003ca href=\"/Instructions \u0026 Notes/starter-notes.md\"\u003ehere\u003c/a\u003e to begin reading the notes.\n\u003e\n\n\n## Environment Setup\n\n\u003e I'm using a Windows 11 64-bit machine, and here's what you will need to get started.\n\u003e \n\u003e - **NASM** : Install this through winget using `winget install nasm`. This is to help us assemble our code, i.e, convert our assembly code to machine code.\n\u003e - **QEMU** : Install this through winget using `winget install qemu`, or download it from \u003ca href=\"https://www.qemu.org/download/\"\u003ehere\u003c/a\u003e. QEMU is essentially a Virtual Machine, and we will use it to run our boot sector and boot into our OS.\n\u003e - **Preferred IDE** : I'm using **VSCode** 💖 as it's simple and easy to use with Git. You can use any IDE you want, or even a simple text editor like Notepad++ or Sublime Text.\n\u003e\n\u003e - **Additionally**, you may create a Shell script to automatically generate your `.asm` file into a `.bin` file, and then run it on QEMU.\u003cbr\u003e\nI've implemented it using **BASH**, in a file called `run.sh`. You can use it by running `bash run.sh \u003cfilename\u003e` in your Windows Terminal.\u003cbr\u003e\n\u003e\n\u003e **NOTE :** You will need to have WSL installed on your machine to use this script. Also, you will need to have QEMU and NASM installed in your WSL environment as well.\n\u003e\n\u003e **Alternatively**, you can use the `run.bat` like so: `run.bat \u003cfilename\u003e`. This will generate a `output.bin` file and run it on QEMU.\n\n## Building the files\n\n\u003e For sake of simplicity and convenience, I've chosen to build and run the final file in **`WSL`**.\n\u003e\n\u003e I have included a long list of dependencies and instructions in the `setup-g++-wsl.sh` file in the \u003ca href=\"./src/\"\u003e`src`\u003c/a\u003e folder. You can run this file to install all the dependencies at once.\u003cbr\u003e **Just in case**, the script fails, you should be able to install the dependencies by manually typing the commands one by one.\n\u003e\n\u003e **NOTE :** You can simply open your current working directory inside of WSL by typing `bash` in the CMD.\n\n\u003e Once the prerequisites are installed, you can proceed to run the `build.sh` file which will automagically build the files for you and place them in the `bin` folder \u0026 run them on QEMU.\u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexjmercer%2Fx86_64-bootloader-and-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexjmercer%2Fx86_64-bootloader-and-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexjmercer%2Fx86_64-bootloader-and-kernel/lists"}