{"id":25688991,"url":"https://github.com/embeddedos/x86-64-operatingsystem","last_synced_at":"2025-10-08T12:12:27.322Z","repository":{"id":160205160,"uuid":"635156790","full_name":"EmbeddedOS/x86-64-OperatingSystem","owner":"EmbeddedOS","description":"An Operating System based on x86-64 architecture.","archived":false,"fork":false,"pushed_at":"2024-07-30T11:40:17.000Z","size":336,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T01:43:31.546Z","etag":null,"topics":["assembly","bios","bootloader","c","cpp","kernel","operating-system","qemu","round-robin-scheduler","shell","systemcalls","x86-64"],"latest_commit_sha":null,"homepage":"","language":"C","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/EmbeddedOS.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,"zenodo":null}},"created_at":"2023-05-02T04:55:15.000Z","updated_at":"2024-10-17T03:33:25.000Z","dependencies_parsed_at":"2025-04-24T01:41:51.282Z","dependency_job_id":"5b57924e-aea4-47fe-a04c-81d97e552198","html_url":"https://github.com/EmbeddedOS/x86-64-OperatingSystem","commit_stats":null,"previous_names":["lava264/x86-64-operatingsystem","embeddedos/x86-64-operatingsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EmbeddedOS/x86-64-OperatingSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fx86-64-OperatingSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fx86-64-OperatingSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fx86-64-OperatingSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fx86-64-OperatingSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmbeddedOS","download_url":"https://codeload.github.com/EmbeddedOS/x86-64-OperatingSystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fx86-64-OperatingSystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278940583,"owners_count":26072548,"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-08T02:00:06.501Z","response_time":56,"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","bios","bootloader","c","cpp","kernel","operating-system","qemu","round-robin-scheduler","shell","systemcalls","x86-64"],"created_at":"2025-02-24T21:17:22.817Z","updated_at":"2025-10-08T12:12:27.270Z","avatar_url":"https://github.com/EmbeddedOS.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x86-64 Operating System\n\nAn Operating System based on x86-64 architecture.\n\n## 1. Make a blank hard disk image\n\n- Before building our OS and make final image, we need a blank hard disk image, We will use `bximage` to make it with:\n  - Size 100 megabytes.\n  - Sector size is 512 bytes.\n  - Kind of image is `flat`.\n\n- this is done by run [image.sh](image.sh) script, the output image is `boot.img` file.\n\n## 2. Build the OS\n\n- The OS using make to build final image.\n\n## 3. Simulate the OS\n\n- To simulate the OS, we can use Bochs x86 Emulator 2.7, first generate a bochs configuration file (this is done automatically by run [image.sh](image.sh) script). And then, `make` to build our OS. And finally run `bochs` command to start simulating.\n\n- The second option to simulate our OS is using QEMU, after build our OS with `make`, simply run command: `qemu-system-x86_64 -cpu qemu64,pdpe1gb -hda boot.img`\n\n## 4. Mount the OS image to your computer\n\n```bash\nmount -t vfat boot.img /mnt/d/\n```\n\n## 5. Test the OS\n\n- Build \u0026 Mount image to the OS \u0026 Running:\n\n```bash\nmake run\n```\n\n- System booting look like:\n\n![image](resources/readme/booting.png)\n\n- List files in root directory with `ls` command:\n\n```shell\nls.bin\n```\n\n![image](resources/readme/ls.png)\n\n- You can create, edit, delete files on the image via command in your host, because the image was mounted to `/mnt/d` directory. For example:\n\n```bash\necho \"Test file system\" \u003e /mnt/d/test.doc\n```\n\n- After that check the file content by our OS cat command:\n\n```shell\ncat test.doc\n```\n\n![image](resources/readme/cat.png)\n\n- And also, you can run binary files by specifying the file name. For example, we need to run `process4.bin` program:\n\n```shell\nprocess4.bin\n```\n\n![image](resources/readme/run_bin.png)\n\n- In addition, we have many features waiting for you to experiment :).\n\n## 6. Test on the real machine\n\n- After build the OS, copy our image to the USB device:\n\n```bash\nsudo dd if=boot.img of=/dev/sdb\n```\n\n- Plug the USB to your machine, booting it with the USB.\n\n## 7. Building user program\n\n- Please build program with our C/C++ runtime library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedos%2Fx86-64-operatingsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembeddedos%2Fx86-64-operatingsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedos%2Fx86-64-operatingsystem/lists"}