{"id":15060072,"url":"https://github.com/apfelteesaft/shard","last_synced_at":"2026-01-02T21:07:36.903Z","repository":{"id":251734607,"uuid":"838285619","full_name":"ApfelTeeSaft/Shard","owner":"ApfelTeeSaft","description":"Shard is a minimalistic attempt to an Operating System with minimal Functionality","archived":false,"fork":false,"pushed_at":"2024-08-06T10:00:06.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:13:01.593Z","etag":null,"topics":["assembly","c","kernel","minimalistic","operating-system","os"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ApfelTeeSaft.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-08-05T10:31:44.000Z","updated_at":"2024-08-06T10:00:10.000Z","dependencies_parsed_at":"2024-08-05T12:38:32.700Z","dependency_job_id":null,"html_url":"https://github.com/ApfelTeeSaft/Shard","commit_stats":null,"previous_names":["apfelteesaft/shard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApfelTeeSaft%2FShard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApfelTeeSaft%2FShard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApfelTeeSaft%2FShard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApfelTeeSaft%2FShard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApfelTeeSaft","download_url":"https://codeload.github.com/ApfelTeeSaft/Shard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681081,"owners_count":20330155,"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","c","kernel","minimalistic","operating-system","os"],"created_at":"2024-09-24T22:52:07.730Z","updated_at":"2026-01-02T21:07:36.840Z","avatar_url":"https://github.com/ApfelTeeSaft.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShardOS\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/001dfe63-9b9c-4d69-b18a-7ec27b697813\" alt=\"ShardOS Logo\" width=\"256\" height=\"256\"\u003e\n\u003c/p\u003e\n\nShardOS is a simple operating system built from scratch for educational purposes. This project demonstrates the basics of OS development, including bootloading, kernel development, and simple hardware interaction.\n\n## Screenshot\n\n![image](https://github.com/user-attachments/assets/f58939df-0d91-4950-bf9f-4168f074a2dc)\n\n\n## Prerequisites\n\nTo build ShardOS, you need the following tools installed on your Linux system:\n\n- `nasm` (Netwide Assembler)\n- `gcc` (GNU Compiler Collection)\n- `ld` (GNU Linker)\n- `qemu` (for emulation and testing)\n\nYou can install these tools using your package manager. For example, on Debian-based systems like Ubuntu, run:\n\n```sh\nsudo apt update\nsudo apt install nasm gcc make qemu-system-x86\n```\n\n## Building ShardOS\n\n### 1. Assemble the Bootloader\n\nAssemble the bootloader using `nasm`:\n\n```sh\nnasm -f elf32 boot/boot.asm -o boot.o\n```\n\n### 2. Compile the Kernel\n\nCompile the kernel using `gcc`:\n\n```sh\ngcc -m32 -ffreestanding -c kernel.c -o kernel.o\n```\n\n### 3. Link the Object Files\n\nLink the bootloader and kernel using `ld`:\n\n```sh\nld -m elf_i386 -T link.ld -o ShardOS.bin boot.o kernel.o\n```\n\n### 4. Create a Bootable Image\n\nCreate a bootable image by concatenating the boot sector and the kernel:\n\n```sh\ndd if=/dev/zero of=boot.img bs=512 count=2880\ndd if=ShardOS.bin of=boot.img conv=notrunc\n```\n\n### 5. Run with QEMU\n\nRun your OS using QEMU:\n\n```sh\nqemu-system-i386 -fda boot.img\n```\n\n## File Structure\n\n- `boot/boot.asm`: Assembly code for the bootloader.\n- `kernel.c`: C code for the kernel.\n- `link.ld`: Linker script for combining the bootloader and kernel into a single binary.\n- `deprecated/stage1/2.asm`: Old attempt at making a Standalone OS purely in Assembly\n\n## Contributing\n\nContributions are welcome! Feel free to submit issues or pull requests.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfelteesaft%2Fshard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapfelteesaft%2Fshard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfelteesaft%2Fshard/lists"}