Linux on Apple devices

Last updated

The Linux kernel can run on a variety of devices made by Apple, including devices where the unlocking of the bootloader is not possible with an official procedure, such as iPhones and iPads.

Contents

iPad devices

In June 2022, software developers Konrad Dybcio and Markuss Broks managed to run Linux kernel 5.18 on a iPad Air 2. The project made use of the Alpine Linux based Linux distribution called postmarketOS, which is primarily developed for Android devices. The developer suggested that they used the checkm8 exploit which was published back in 2019. [1] [2]

iPhone devices

In 2008, the 2.6 Linux kernel was ported to the iPhone 3G, the iPhone (1st generation), and the iPod Touch (1st generation) using OpeniBoot. [3]

Corellium's Project Sandcastle made it possible to run Android on an iPhone 7/7+ or an iPod Touch (7th generation) using the checkm8 exploit. [4]

iPod devices

iPodLinux is a Linux distribution created specifically to run on Apple's iPod.

There is an experimental port of the mainline Linux kernel to iPod Nano 5G by freemyipod/q3k.

Mac computers

Motorola 68k Macs

Linux can be dual-booted on Macs that use Motorola 680x0 processors [5] (only 68020 and higher, [5] and only non-"EC" processor variants since an MMU is required [6] ). The Linux/mac68k community project provides resources to do so, [7] [8] and an m68k community port of the Debian Linux distribution is also available. [6] [8]

PowerPC Macs

In 1996, Apple announced that they were supporting a Linux port to the PowerMacs. [9]

PowerPC Macs can run Linux through both emulation and dual-booting ("bare metal"). The most popular PowerPC emulation tools for Mac OS/Mac OS X are Microsoft's Virtual PC, and the open-source QEMU. [8]

Linux dual-booting is achieved by partitioning the boot drive, installing the Yaboot bootloader onto the Linux partition, and selecting that Linux partition as the Startup Disk. This results in users being prompted to select whether they want to boot into Mac OS or Linux when the machine starts. [8]

By 2008, a number of major Linux distributions had official versions compatible with Mac PowerPC processors, including: [8]

All of the above PowerPC ports have since been discontinued, except for Gentoo.

Intel Macs

Macs with Intel processors can run Linux through virtualization or through dual-booting. Common virtualization tools for Intel Macs include VMware Fusion, Parallels Desktop, and VirtualBox. [8]

In 2010, Whitson Gordon from Lifehacker noted that Apple has streamlined the process of dual booting Windows on Macs, but not for Linux. rEFIt made it possible to dual boot Linux. [15]

Macs which utilize the T2 chip from 2018 can run Linux distributions natively using the T2Linux project. [16]

Apple silicon Macs

Macs with Apple silicon processors can run Linux through the Asahi Linux command line installer for certain distributions including Fedora, Debian, and Ubuntu. While most features are available, some are unavailable on certain silicon processors and devices. [17]

See also

Related Research Articles

<span class="mw-page-title-main">Linux distribution</span> Operating system based on the Linux kernel

A Linux distribution is an operating system that includes the Linux kernel for its kernel functionality. Although the name does not imply product distribution per se, a distro, if distributed on its own, is often obtained via a website intended specifically for the purpose. Distros have been designed for a wide variety of systems ranging from personal computers to servers and from embedded devices to supercomputers.

Darwin is the core Unix-like operating system of macOS, iOS, watchOS, tvOS, iPadOS, audioOS, visionOS, and bridgeOS. It previously existed as an independent open-source operating system, first released by Apple Inc. in 2000. It is composed of code derived from NeXTSTEP, FreeBSD, other BSD operating systems, Mach, and other free software projects' code, as well as code developed by Apple. Darwin's official mascot is Hexley the Platypus.

<span class="mw-page-title-main">GNU GRUB</span> Boot loader package

GNU GRUB is a boot loader package from the GNU Project. GRUB is the reference implementation of the Free Software Foundation's Multiboot Specification, which provides a user the choice to boot one of multiple operating systems installed on a computer or select a specific kernel configuration available on a particular operating system's partitions.

<span class="mw-page-title-main">Cooperative Linux</span> Software to run Windows and Linux simultaneously

Cooperative Linux, abbreviated as coLinux, is software which allows Microsoft Windows and the Linux kernel to run simultaneously in parallel on the same machine.

HFS Plus or HFS+ is a journaling file system developed by Apple Inc. It replaced the Hierarchical File System (HFS) as the primary file system of Apple computers with the 1998 release of Mac OS 8.1. HFS+ continued as the primary Mac OS X file system until it was itself replaced with the Apple File System (APFS), released with macOS High Sierra in 2017. HFS+ is also one of the formats supported by the iPod digital music player.

Computer operating systems based on the Linux kernel are used in embedded systems such as consumer electronics, in-vehicle infotainment (IVI), networking equipment, machine control, industrial automation, navigation equipment, spacecraft flight software, and medical instruments in general.

Technical variations of Linux distributions include support for different hardware devices and systems or software package configurations. Organizational differences may be motivated by historical reasons. Other criteria include security, including how quickly security upgrades are available; ease of package management; and number of packages available.

<span class="mw-page-title-main">Apple–Intel architecture</span> Unofficial name used for Macintosh models that use Intel x86 processors

The Apple–Intel architecture, or Mactel, is an unofficial name used for Macintosh personal computers developed and manufactured by Apple Inc. that use Intel x86 processors, rather than the PowerPC and Motorola 68000 ("68k") series processors used in their predecessors or the ARM-based Apple silicon SoCs used in their successors. As Apple changed the architecture of its products, they changed the firmware from the Open Firmware used on PowerPC-based Macs to the Intel-designed Extensible Firmware Interface (EFI). With the change in processor architecture to x86, Macs gained the ability to boot into x86-native operating systems, while Intel VT-x brought near-native virtualization with macOS as the host OS.

<span class="mw-page-title-main">Das U-Boot</span> Open-source, primary boot the devices operating system kernel

Das U-Boot is an open-source boot loader used in embedded devices to perform various low-level hardware initialization tasks and boot the device's operating system kernel. It is available for a number of computer architectures, including M68000, ARM, Blackfin, MicroBlaze, AArch64, MIPS, Nios II, SuperH, PPC, RISC-V, LoongArch and x86.

HAL is a software subsystem for UNIX-like operating systems providing hardware abstraction.

Upstart is a discontinued event-based replacement for the traditional init daemon—the method by which several Unix-like computer operating systems perform tasks when the computer is started. It was written by Scott James Remnant, a former employee of Canonical Ltd. In 2014, Upstart was placed in maintenance mode, and other init daemons, such as systemd, were recommended in place of Upstart. Ubuntu moved away from Upstart with the release of version 15.04 in favor of migrating to systemd. As of June 2024, there have been no updates released for Upstart since September 2014.

OtherOS is a feature of early versions of the PlayStation 3 video game console, allowing user installed software, such as Linux or FreeBSD. The feature was removed since system firmware update 3.21, released on April 1, 2010.

<span class="mw-page-title-main">Allwinner A1X</span>

The Allwinner A1X is a family of single-core SoC devices designed by Allwinner Technology from Zhuhai, China. Currently the family consists of the A10, A13, A10s and A12. The SoCs incorporate the ARM Cortex-A8 as their main processor and the Mali 400 as the GPU.

dracut (software) Software to automate the Linux boot process

Dracut is a set of tools that provide enhanced functionality for automating the Linux boot process. The tool named dracut is used to create a Linux boot image (initramfs) by copying tools and files from an installed system and combining it with the Dracut framework, which is usually found in /usr/lib/dracut/modules.d.

<span class="mw-page-title-main">OpenZFS</span> Open-source implementation of the ZFS file system

OpenZFS is an open-source implementation of the ZFS file system and volume manager initially developed by Sun Microsystems for the Solaris operating system, and is now maintained by the OpenZFS Project. Similar to the original ZFS, the implementation supports features like data compression, data deduplication, copy-on-write clones, snapshots, RAID-Z, and virtual devices that can create filesystems that span multiple disks.

<span class="mw-page-title-main">Banana Pi</span> Series of Chinese single-board computers

Banana Pi is a line of single-board computers produced by the Chinese company Shenzhen SINOVOIP Company, its spin-off Guangdong BiPai Technology Company, and supported by Hon Hai Technology (Foxconn). Its hardware design was influenced by the Raspberry Pi, and both lines use the same 40-pin I/O connector.

postmarketOS Free and open-source operating system for smartphones, based on Alpine Linux

postmarketOS is an operating system primarily for smartphones, based on the Alpine Linux distribution.

References

  1. Cunningham, Andrew (2022-06-02). "Have an old iPad lying around? You might be able to make it run Linux soon". Ars Technica. Retrieved 2022-06-14.
  2. "Ein Jahr Arbeit: Tüftler bringen Linux auf das iPad Air 2". Der Standard (in Austrian German). Retrieved 2022-06-15.
  3. Yam, Marcus; Ngai, Amos (2008-12-02). "iPhone Hacked to Run Linux". Tom's Guide . Retrieved 2022-06-14.
  4. "Run Android on an iPhone With 'Project Sandcastle' Jailbreaking Tool". PCMAG. Retrieved 2022-06-14.
  5. 1 2 "How to install Linux on a vintage 68K Mac". Macworld . Retrieved 2022-06-14.
  6. 1 2 "Debian on Motorola 680x0". Debian Ports. Retrieved 2023-04-01.
  7. "Linux/m68k for Macintosh". Linux/m68k for Mac. Retrieved 2023-04-01.
  8. 1 2 3 4 5 6 7 8 9 10 11 Rothman, Ernest E.; Jepson, Brian; Rosen, Rich (2008-09-18). Mac OS X For Unix Geeks (Leopard): Demistifying the Geekier Side of Mac OS X (4th ed.). O'Reilly Media, Inc. pp. 174–187. ISBN   978-0-596-52062-5.
  9. K. Johnson, Michael (May 1, 1996). "Stop The Presses". Linux Journal . Retrieved 2024-12-20.
  10. "Debian for PowerPC". Debian Ports. Retrieved 2023-04-01.
  11. "PowerPCFaq". Ubuntu Wiki. Retrieved 2023-04-01.
  12. "Ubuntu: A follow-up on 32-bit powerpc architecture [LWN.net]". LWN. Retrieved 2023-04-01.
  13. "Architectures/PowerPC". Fedora Wiki. Retrieved 2023-04-01.
  14. "DistroWatch.com: Yellow Dog Linux". DistroWatch. Retrieved 2023-04-01.
  15. "How to Triple-Boot Your Mac with Windows and Linux, No Boot Camp Required". Lifehacker. 2010-05-05. Retrieved 2022-06-14.
  16. "Home - t2linux wiki".
  17. "Feature Support". GitHub. Retrieved 1 January 2024.