{"id":15020577,"url":"https://github.com/sikkiladho/leo","last_synced_at":"2025-10-26T04:30:27.385Z","repository":{"id":45236513,"uuid":"422188605","full_name":"SikkiLadho/Leo","owner":"SikkiLadho","description":"Leo Hypervisor. ARM64 Hypervisor on Raspberry Pi 4 machine. ","archived":false,"fork":false,"pushed_at":"2022-09-13T17:05:17.000Z","size":153,"stargazers_count":28,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T02:02:17.169Z","etag":null,"topics":["arm64","armv8-a","baremetal","hypervisor","raspberry-pi","raspberry-pi-4","raspberry-pi-4b","raspberrypi","virtualisation","vmm"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SikkiLadho.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}},"created_at":"2021-10-28T12:07:10.000Z","updated_at":"2024-09-22T01:32:54.000Z","dependencies_parsed_at":"2023-01-18T06:31:01.423Z","dependency_job_id":null,"html_url":"https://github.com/SikkiLadho/Leo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SikkiLadho%2FLeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SikkiLadho%2FLeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SikkiLadho%2FLeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SikkiLadho%2FLeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SikkiLadho","download_url":"https://codeload.github.com/SikkiLadho/Leo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219864036,"owners_count":16555943,"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":["arm64","armv8-a","baremetal","hypervisor","raspberry-pi","raspberry-pi-4","raspberry-pi-4b","raspberrypi","virtualisation","vmm"],"created_at":"2024-09-24T19:55:17.317Z","updated_at":"2025-10-26T04:30:26.996Z","avatar_url":"https://github.com/SikkiLadho.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Generic badge](https://img.shields.io/github/commit-activity/m/sikkiladho/leo)\n[![C/C++ CI](https://github.com/SikkiLadho/Leo/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/SikkiLadho/Leo/actions/workflows/c-cpp.yml)\n\n# Leo Hypervisor\n\n`Leo` is a `Type 1 Hypervisor` for the `Raspberry Pi 4`.\n\n# Set Up \n\nThis setup was tested on Debian.\n\n1. Install the required dependencies and toolchain,\n\n  ```shell\n  sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev\n  ```\n\n2. Install the 64-bit toolchain for a 64-bit kernel,\n\n  ```shell\n  sudo apt install crossbuild-essential-arm64\n  ```\n\n3. Compile ARM-trusted-Firmware for Raspiberry Pi,\n\n  ```shell\n  git clone https://github.com/ARM-software/arm-trusted-firmware.git\n  cd arm-trusted-firmware/\n  CROSS_COMPILE=aarch64-linux-gnu- make PLAT=rpi4 DEBUG=1\n  ```\n\n4. Copy the `bl31.bin` from [Trusted Firmware-A (TF-A)](https://trustedfirmware-a.readthedocs.io/en/latest/) to the `/boot/` directory on the Raspberry Pi 4B's SD card,\n\n  ```shell\n  cp build/rpi4/debug/bl31.bin /media/me/boot/\n  ```\n\n5. Rename `kerne8.img` to `el1-kernel.img` in the SD Card's boot directory,\n\n  ```shell\n  mv /media/boot/kernel8.img el1-kernel8.img\n  ```\n\n6. Compile Leo ARM64 Hypervisor\n\n  ```shell\n  git clone https://github.com/sikkiladho/leo.git leo\n  cd leo\n  make\n  ```\n\nYou will get the `kernel8.img` binary, which is the hypervisor binary. Copy it to you SD Card.\n\n7. Add following to /boot/config.txt in Raspberry Pi Model 4B\n\n  ```txt\n  enable_uart=1\n  arm_64bit=1\n  enable_gic=1\n  armstub=bl31.bin\n  initramfs el1-kernel.img 0x400000\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikkiladho%2Fleo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsikkiladho%2Fleo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsikkiladho%2Fleo/lists"}