{"id":13339056,"url":"https://github.com/Alessandro-Salerno/SalernOS-EFI-Bootloader","last_synced_at":"2025-03-11T12:31:10.204Z","repository":{"id":131799939,"uuid":"442539700","full_name":"Alessandro-Salerno/SalernOS-EFI-Bootloader","owner":"Alessandro-Salerno","description":"A Bootloader for my Operating System","archived":true,"fork":false,"pushed_at":"2024-11-18T22:36:33.000Z","size":333,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T23:36:31.111Z","etag":null,"topics":["amd64","assembly","bootloader","c","efi","salernos","uefi","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alessandro-Salerno.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":"2021-12-28T17:42:29.000Z","updated_at":"2024-11-18T22:53:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"612168b1-61c9-4c05-aa15-01184091f37d","html_url":"https://github.com/Alessandro-Salerno/SalernOS-EFI-Bootloader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro-Salerno%2FSalernOS-EFI-Bootloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro-Salerno%2FSalernOS-EFI-Bootloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro-Salerno%2FSalernOS-EFI-Bootloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alessandro-Salerno%2FSalernOS-EFI-Bootloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alessandro-Salerno","download_url":"https://codeload.github.com/Alessandro-Salerno/SalernOS-EFI-Bootloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243034800,"owners_count":20225407,"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":["amd64","assembly","bootloader","c","efi","salernos","uefi","x86-64"],"created_at":"2024-07-29T19:19:00.849Z","updated_at":"2025-03-11T12:31:10.182Z","avatar_url":"https://github.com/Alessandro-Salerno.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\r\n\u003e This repository is for historical purposes only. It is used as a monument to the year 2022, and may be used as a \"nostalgia kit\" to build older SalernOS versions from that year. The SalernOS EFI Bootloader was discontinued in 2023 and is no longer in use.\r\n\r\n## SalernOS\r\nSalernOS is a small Toy OS I'm working on.\r\n\r\n## SalernOS EFI Bootloader (SEB)\r\nThe SalernOS EFI Bootloader is a free and open source GNU-EFI bootloader built on top of https://github.com/Absurdponcho/gnu-efi\r\n\r\n## Naming Conventions\r\n* ```_variablename``` and ```_variable_name``` are stack-allocated variables\r\n* ```_VariableName``` is a struct member variable\r\n* ```variablename``` and ```variable_name``` are global variables\r\n* ```__variablename``` and ```__variable_name``` are function arguments\r\n\r\n## Compiling SEB\r\nCompiling SEB is quite eaasy, just follow these steps\r\n* Make sure you're running a GNU/Linux system. If you're running Windows 10/11 or macOS, use WSL or Docker\r\n* Install the build-essentials package via your package manager (apt-get/pacman etc)\r\n* Open a terminal in the SEB directory\r\n* If it's the first time you compile SEB, Type `make` and wait for a few seconds\r\n* Type `make bootloader` and wait for a few seconds\r\n* The resulting `main.efi` file will be in the `x86_64/bootloader` directory\r\n\r\n## Editing SEB's source code\r\nAll of SEB's source code is in the `bootloader` directory.\r\nNOTE: Remember to change something in `main.c` before compiling, otherwise it won't work!\r\n\r\n## Using SEB as bootloader for an Operating System\r\nThis is a little trickier, but you should be able to do it, otherwise, open an issue on this Github page.\r\n\r\n### The Simple Boot Specification\r\nThe SalernOS EFI Bootlaoder uses the [Simple Boot Specification](https://github.com/Alessandro-Salerno/Simple-Boot-Specification) to hand information over to the Kernel.\r\n\r\n#### Making a SEB Compatible File System\r\nCurrently the SEB Specification requires the following directories\r\n* EFI\r\n* EFI/BOOT\r\n* openbit\r\n* openbit/bin\r\n* openbit/assets\r\n\r\nThe `EFI/BOOT`directory must contain a `bootx64.efi` file. This file is the SEB binary, you can get it by renaming the `main.efi` file.\r\nThe `openbit/assets` directory must contain a PSF1 Font named `kernelfont.psf`.\r\nThe `openbit/bin` directory must contain the kernel executable, named `kernel.elf`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlessandro-Salerno%2FSalernOS-EFI-Bootloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlessandro-Salerno%2FSalernOS-EFI-Bootloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlessandro-Salerno%2FSalernOS-EFI-Bootloader/lists"}