{"id":19039167,"url":"https://github.com/mojo2012/atv-bootloader","last_synced_at":"2026-05-07T13:30:17.695Z","repository":{"id":25634396,"uuid":"29069718","full_name":"mojo2012/atv-bootloader","owner":"mojo2012","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-10T20:20:37.000Z","size":7496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T06:31:56.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mojo2012.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-10T20:16:59.000Z","updated_at":"2015-01-10T20:20:38.000Z","dependencies_parsed_at":"2022-07-07T22:53:18.147Z","dependency_job_id":null,"html_url":"https://github.com/mojo2012/atv-bootloader","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/mojo2012%2Fatv-bootloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojo2012%2Fatv-bootloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojo2012%2Fatv-bootloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojo2012%2Fatv-bootloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojo2012","download_url":"https://codeload.github.com/mojo2012/atv-bootloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240097592,"owners_count":19747252,"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":[],"created_at":"2024-11-08T22:12:02.651Z","updated_at":"2026-05-07T13:30:17.628Z","avatar_url":"https://github.com/mojo2012.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"atv-bootloader (March 10 2008)\n\nThis bootloader works by embedding a Linux kernel/initrd into \"mach kernel\" that boot.efi loads. Right now it's very simplistic and will boot to login prompt. user = root, password = root. parted is present as well as hfsplus tools for creating gpt partitions and formating them as ext2/3 and hfs/hfsplus. Also present is kexec to bootload another kernel. Typical usage is;\nkexec --load vmlinuz --initrd=initrd.gz --command-line=\"root=/dev/sdb2 video=vesafb\"\nkexec -e\n\natv-bootloader does not require an efi enabled kernel nor the patched imac_fb framebuffer, only a vesafb is required for console output. Boot params are set in com.apple.Boot.plist. There are some special switches. If \"video=imac_fb\" is detected, atv-bootloader will assume a patched imac_fb is present. \"video=efifb\" assumes the 2.6.24 efifb frame buffer driver is present. \"video=vesafb\" assumes the vesafb frame buffer.\n\nOf special note, some installers are doing funny things like assuming a video bios (it's hiding in the AppleTV), these will hang and do bad things.  So you might have to perform the actual Linux install on a doner box. Or if you only have Windows, burn a Linux LiveCD and boot your windows box from that.\n\nThis is far from complete but I wanted to push out the release.\n\nMake a recovery partition. 25MB in size is plenty. Copy boot.efi, mach_kernel and the contents of recovery.tar.gz into it. sync, unmount, stick it in the AppleTV, reboot (might need to hold IR remote \"menu\" and \"-\" buttons down. This shuold boot to a Linux login prompt.\n\nUses:\nMake a Linux based patchstick. Linux permissions and user IDs are similar to darwin. So you could create a bash stript that copies sshd into the AppleTV. Linux run the bash script but it moves and mods darwin stuff.\n\nMake a kexec bootloader. Make the recovery bits like normal, add a script at the end of \"s/etc/init.d/rcS\" that mounts your root partition and kexec into it.\n\n\nSpecial thanks to \"Edgar (gimli) Hucek\" for the 1st boot and original code (mach_linux_boot) and James McKenzie of Mythic-Beasts for mb_boot_tv.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojo2012%2Fatv-bootloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojo2012%2Fatv-bootloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojo2012%2Fatv-bootloader/lists"}