Preloader for Linux on M1

Overview
 Preloader-M1
 ~~~~~~~~~~~~~

To build:

 * make sure you have the appropriate toolchain (see Makefile),
 * put links to Image and apple-m1-j274.dtb from kernel build in cwd,
 * run make.

This results in a file called test.macho.

To use macho: start your mac in 1TR (hold power button during boot, select Options)
and run the following commands:

  bputil -n -k -c -a -s
  csrutil disable
  csrutil authenticated-root disable

The above commands need to be run only once.

To install an image:

  kmutil configure-boot -c test.macho -v /Volumes/Macintosh HD/

To revert back to original Mac OS boot:

  bputil -n pol change

You might also like...
util-linux is a random collection of Linux utilities

util-linux is a random collection of Linux utilities

Linux Terminal Service Manager (LTSM) is a set of service programs that allows remote computers to connect to a Linux operating system computer using a remote terminal session (over VNC or RDP)
Linux Terminal Service Manager (LTSM) is a set of service programs that allows remote computers to connect to a Linux operating system computer using a remote terminal session (over VNC or RDP)

Linux Terminal Service Manager (LTSM) is a set of service programs that allows remote computers to connect to a Linux operating system computer using a remote terminal session (over VNC)

A very minimal type-2 hypervisor built using Linux Kernel Virtual Machine for Linux.
A very minimal type-2 hypervisor built using Linux Kernel Virtual Machine for Linux.

wiser A very minimal type-2 hypervisor built using Linux Kernel Virtual Machine for Linux. Following project is under-development expect unfinished co

kvm-host is a minimalist type 2 hypervisor using Linux Kernel-based Virtual Machine (KVM), capable of running Linux kernel partially.

kvm-host kvm-host is a minimalist type 2 hypervisor using Linux Kernel-based Virtual Machine (KVM), capable of running Linux kernel partially. Build a

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices

The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)

Introduction The WSL2-Linux-Kernel repo contains the kernel source code and configuration files for the WSL2 kernel. Reporting Bugs If you discover an

The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.

The Hoard Memory Allocator Copyright (C) 1998-2020 by Emery Berger The Hoard memory allocator is a fast, scalable, and memory-efficient memory allocat

Event-driven network library for multi-threaded Linux server in C++11

Muduo is a multithreaded C++ network library based on the reactor pattern. http://github.com/chenshuo/muduo Copyright (c) 2010, Shuo Chen. All righ

Drogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows
Drogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows

English | 简体中文 | 繁體中文 Overview Drogon is a C++14/17-based HTTP application framework. Drogon can be used to easily build various types of web applicat

C++ Library Manager for Windows, Linux, and MacOS

Vcpkg: Overview 中文总览 Español 한국어 Français Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS. This tool and ecosystem are constant

"Zero-copy" Linux screen capture plugin for OBS that uses libdrm and dmabuf

linux-kmsgrab plugin for OBS Introduction This plugin is a proof-of-concept libdrm-based screen capture for OBS. It uses DMA-BUF to import CRTC frameb

Parsing the Linux procfs
Parsing the Linux procfs

Very easy to use, procfs parsing library in C++. Build Run cmake . && make Currently supported CMake configuration flags: BUILD_SHARED_LIBS=ON|OFF:

the checkra1n set of tools targeting bare metal, Linux and Windows

Universal toolchain Low-effort cross-compiling for the masses. What's Universal toolchain? It's a collection of sysroots and shell scripts in such a w

The minimal opencv for Android, iOS and ARM Linux

opencv-mobile ✔️ This project provides the minimal build of opencv library for the Android, iOS and ARM Linux platforms. ✔️ We provide prebuild binary

Linux x86_64 Process Injection Utility | Manipulate Processes With Customized Payloads (beta)
Linux x86_64 Process Injection Utility | Manipulate Processes With Customized Payloads (beta)

K55 - Linux x86_64 Process Injection Utility (C++11) About K55 (pronounced: "kay fifty-five") The K55 payload injection tool is used for injecting x86

Linux Kernel module-less implant (backdoor)

0 KOPYCAT - Linux Kernel module-less implant (backdoor) Usage $ make $ sudo insmod kopycat.ko insmod: ERROR: could not insert module kopycat.ko: Inapp

Simple example for running code on VPU from Linux

VPU-example Simple example for running code on VPU from Linux Toggling GPIO2 on a Raspberry Pi, see code.asm Based on https://github.com/ali1234/vcpok

Comments
  • how to make dtb file?

    how to make dtb file?

    my laptop is MacBook Air (M1, 2020) Code name is j313 ,and i have use linux.macho to boot linux image have issue stock message Loader complete, relocating kernel...

    so i think maybe wrong model? so i try build latest linux.macho but i can't make like this apple-m1-j274.dts

    now i have found DeviceTree.j313ap.im4p in /System/Volumes/Preboot/6E86E53B-47E3-4E34-A38D-E78C4BC62F6D/restore/Firmware/all_flash how to convert to dts?

    Thank you for your hard work

    opened by jamesarch 6
  • Download linux.macho

    Download linux.macho

    Hello all,

    downloading the above from https://​downloads.corellium.info/linux.macho results in a "port 443 - connection refused". This link was working approximately two weeks ago.

    Ideas?

    Regards,

    Ry

    opened by Johnnie390 0
  • wifi not working on nvme boot

    wifi not working on nvme boot

    MacBook Pro (13-inch, M1, 2020) big sur 11.3

    when it comes to "cp -RLav /usr/share/firmware/wifi /Volumes/EFIESP" i got a lot of errors like

    cp: fchflags: /Volumes/EFIESP/wifi/C-4355__s-C1/P-hawaii-X2_M-YSBC_V-u__m-4.3.txt: Invalid argument cp: chflags: /Volumes/EFIESP/wifi/C-4355__s-C1: Invalid argument cp: fchflags: /Volumes/EFIESP/wifi/ekans-PlatformConfig.plist: Invalid argument cp: chflags: /Volumes/EFIESP/wifi: Invalid argument

    full error log cp.log

    after finished rescure mode installation and reboot into ubuntu, in settings it say "no wifi adatpers"

    opened by qiqian 0
  • Steps to boot Ubuntu image

    Steps to boot Ubuntu image

    I am using your Ubuntu image and it's working well. I would like to use Ubuntu 21.04 server and was wondering if you could tell me what is needed to boot it.

    Best regards and thank you.

    opened by wcatz 0
Owner
Corellium
Corellium
APFS module for linux, with experimental write support (out-of-tree repository)

Apple File System ================= The Apple File System (APFS) is the copy-on-write filesystem currently used on all Apple devices. This module pro

APFS for Linux 260 Jan 4, 2023
TensorFlow Lite, Coral Edge TPU samples (Python/C++, Raspberry Pi/Windows/Linux).

TensorFlow Lite, Coral Edge TPU samples (Python/C++, Raspberry Pi/Windows/Linux).

Nobuo Tsukamoto 87 Nov 16, 2022
a LINUX netfilter rookit

cayenne 通过HTTP请求中的某一约定字段做C2控制,内核层通过netfilter监听并执行命令 内核 LINUX 4.15.0-143-generic DEMO GET / HTTP/1.1 Host: 192.168.122.136 Pragma: no-cache Cache-Contr

null 21 Nov 9, 2022
Linux multi-touch gesture recognizer

Follow Touchégg on... Touchégg Touchégg is an app that runs in the background and transform the gestures you make on your touchpad or touchscreen into

José Expósito 2.9k Jan 10, 2023
A lightweight 2D Pose model can be deployed on Linux/Window/Android, supports CPU/GPU inference acceleration, and can be detected in real time on ordinary mobile phones.

A lightweight 2D Pose model can be deployed on Linux/Window/Android, supports CPU/GPU inference acceleration, and can be detected in real time on ordinary mobile phones.

JinquanPan 58 Jan 3, 2023
Real-time microphone noise suppression on Linux.

NoiseTorch NoiseTorch is an easy to use open source application for Linux with PulseAudio or PipeWire. It creates a virtual microphone that suppresses

null 18 Nov 18, 2022
AutoKey, a desktop automation utility for Linux and X11.

AutoKey Contents About Installation Zero-installation Method Documentation Support Bug reports and Pull Requests Changelog License About AutoKey, a de

null 2.6k Jan 5, 2023
The Forge Cross-Platform Rendering Framework PC Windows, Linux, Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2

The Forge is a cross-platform rendering framework supporting PC Windows 10 / 7 with DirectX 12 / Vulkan 1.1 with DirectX Ray Tracing API DirectX 11 Fa

The Forge / Confetti 3.4k Jan 1, 2023
a linux cam solution to create gcode from cad-model

kutecam Note: work in progress! a linux cam solution to create gcode from cad-model Requirements Qt5 opencascade 7.6 cmake build system Wiki contains

Django Reinhard 10 Nov 29, 2022
Minimal Linux Live (MLL) is a tiny educational Linux distribution, which is designed to be built from scratch by using a collection of automated shell scripts. Minimal Linux Live offers a core environment with just the Linux kernel, GNU C library, and Busybox userland utilities.

Minimal Linux Live (MLL) is a tiny educational Linux distribution, which is designed to be built from scratch by using a collection of automated shell scripts. Minimal Linux Live offers a core environment with just the Linux kernel, GNU C library, and Busybox userland utilities.

John Davidson 1.3k Jan 8, 2023