{"id":15325032,"url":"https://github.com/felipeagger/linux-from-scratch","last_synced_at":"2026-05-01T06:32:56.275Z","repository":{"id":257262197,"uuid":"857761938","full_name":"felipeagger/linux-from-scratch","owner":"felipeagger","description":"Kernel + Binaries ready to run Linux From Scratch on QEMU","archived":false,"fork":false,"pushed_at":"2024-10-12T12:05:40.000Z","size":63930,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T00:45:18.540Z","etag":null,"topics":["arm","kernel","lfs","linux","riscv","scratch","x86"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipeagger.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-09-15T14:47:34.000Z","updated_at":"2024-09-21T17:41:22.000Z","dependencies_parsed_at":"2024-12-06T09:40:53.848Z","dependency_job_id":"1df4bd55-f243-422f-84f3-fca3985aa750","html_url":"https://github.com/felipeagger/linux-from-scratch","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"d6503d059310f5889f36bc6c931589bbc5aa2b03"},"previous_names":["felipeagger/riscv64-linux-from-scratch","felipeagger/linux-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/felipeagger/linux-from-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeagger%2Flinux-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeagger%2Flinux-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeagger%2Flinux-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeagger%2Flinux-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipeagger","download_url":"https://codeload.github.com/felipeagger/linux-from-scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeagger%2Flinux-from-scratch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["arm","kernel","lfs","linux","riscv","scratch","x86"],"created_at":"2024-10-01T09:29:08.903Z","updated_at":"2026-05-01T06:32:56.260Z","avatar_url":"https://github.com/felipeagger.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux-from-scratch\n\n*These binaries/kernel were compiled with CLang(LLVM)!*\n\nBinaries ready to run Linux on arch's: Arm64, x86_64 \u0026 RiscV64 with QEMU.\n\n# Description\n\n- Kernel: 6.11.0 with LLVM(clang version 17.0.6) and Rust Support Enabled.\n- Bash: BusyBox 1.36.\n- BootFS: initramfs.cpio.gz\n- Init Script: /init\n\n# TODOs\n\n- Add C Compiler (like a TinyCC)\n\n# Required\n\nQEMU\n\nWe will use Qemu for launching Linux on our X86_64 hardware. \nThis is ideal for prototyping in a RISC-V without having specific hardware.\nQEMU is a generic and open source machine emulator and virtualizer.\n\nRHEL Linux \n```\nsudo dnf install qemu-system-riscv qemu-system-x86_64 qemu-system-aarch64\n```\n\n# How to run:\n\n```\n./start.sh\n```\n\n# Base articles\n\n- https://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html\n\n- https://risc-v-machines.readthedocs.io/en/latest/linux/simple/\n\n- https://github.com/UCanLinux/riscv64-sample\n\n# Output\n\n```\nqemu-system-riscv64 -nographic -machine virt -bios default \\\n  -kernel KernelImage \\\n  -initrd initramfs.cpio.gz \\\n  -m 512M -smp 2 \\\n  -append \"console=ttyS0 loglevel=7 earlyprintk=serial\" \\\n  -device virtio-net-device,netdev=eth0 -netdev user,id=eth0\n\nOpenSBI v0.6\n   ____                    _____ ____ _____\n  / __ \\                  / ____|  _ \\_   _|\n | |  | |_ __   ___ _ __ | (___ | |_) || |\n | |  | | '_ \\ / _ \\ '_ \\ \\___ \\|  _ \u003c | |\n | |__| | |_) |  __/ | | |____) | |_) || |_\n  \\____/| .__/ \\___|_| |_|_____/|____/_____|\n        | |\n        |_|\n\nPlatform Name          : QEMU Virt Machine\nPlatform HART Features : RV64ACDFIMSU\nPlatform Max HARTs     : 8\nCurrent Hart           : 0\nFirmware Base          : 0x80000000\nFirmware Size          : 120 KB\nRuntime SBI Version    : 0.2\n\nMIDELEG : 0x0000000000000222\n...\n...\niniting...\nmounting...\nSetup DHCP...\nudhcpc: started, v1.36.1\nudhcpc: broadcasting discover\nudhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2\nudhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400\nWelcome to you Linux RISC-V 64 Environment!\narch: riscv64: Linux (none) 6.11.0-rc4-gc97670d2ca04 #1 SMP Sat Sep 14 14:53:54 -03 2024 riscv64 GNU/Linux\n~ # ls\nbin                init               proc               tmp\ndev                initramfs.cpio.gz  root               usr\netc                linuxrc            sbin\nhome               mnt                sys\n~ # cd bin\n/bin # cat /proc/version\nLinux version 6.11.0-rc4-gc97670d2ca04 (clang version 17.0.6, LLD 18.1.7)\n~ # ping google.com\nPING google.com (142.251.129.206): 56 data bytes\n64 bytes from 142.251.129.206: seq=0 ttl=255 time=18.419 ms\n64 bytes from 142.251.129.206: seq=1 ttl=255 time=17.230 ms\n64 bytes from 142.251.129.206: seq=2 ttl=255 time=16.737 ms\n^C\n--- google.com ping statistics ---\n3 packets transmitted, 3 packets received, 0% packet loss\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeagger%2Flinux-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipeagger%2Flinux-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeagger%2Flinux-from-scratch/lists"}