Skip to content

asdfugil/linux-apple-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-apple-resources

Instructions to boot Linux on A7-A11 Apple devices.

Excluded devices:

  • HomePod (not tested, so no device tree included)
  • T2 (broken bootloader)

Supported firmware versions: iOS/iPadOS/tvOS 9.0 - 18.0

Preparing files

Required files

Prebuilt PongoOS and m1n1 binaries can be found in this repository.

pongoterm.c compile instructions

Linux:

cc pongoterm.c -DUSE_LIBUSB -Os -lusb-1.0 -o pongoterm

macOS:

clang -x objective-c pongoterm.c -framework IOKit -framework CoreFoundation -framework Foundation -Os -o pongoterm

Kernel config

KERNEL.md

Prepare m1n1 blob

Assuming you are in the m1n1 source tree, the command should look like this.

cat build/m1n1.bin <(echo 'chosen.bootargs=<kernel command line here>')  \
	/path/to/linux-apple/arch/arm64/boot/dts/apple/*.dtb \
	/path/to/linux-apple/arch/arm64/boot/Image.gz  \
	/path/to/initramfs.gz  > m1n1-linux.bin

Booting

DFU mode

You can use palera1n to help you enter DFU mode. Command: palera1n -Dl

Instructions to enter DFU without palera1n.

Booting PongoOS

Run checkra1n as root:

sudo /path/to/checkra1n -pEk /path/to/Pongo.bin

Booting m1n1 and kernel

After booting pongoOS, run pongoterm as root:

printf '/send /path/to/m1n1-linux.bin\nbootm\n' | sudo pongoterm

About

Instructions to boot Linux on A7-A11 Apple devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published