30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
| // 3.5KiB | |
| package hellope | |
| foreign import "system:Kernel32.lib" | |
| foreign Kernel32 { | |
| OutputDebugStringA :: proc "stdcall" (cstring) --- | |
| } | |
| main :: proc() { |
| /* | |
| * This document is provided to the public domain under the | |
| * terms of the Creative Commons CC0 public domain license | |
| */ | |
| How to boot Arch Linux ARM in QEMU (patched for M1) | |
| Prerequisites: | |
| QEMU - patched for M1 processors - patches: https://github.com/utmapp/qemu |
This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkeyRemove SentinelOne agent from Mac
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility to open Disk Utilitychroot /Volumes/Macintosh\ HDThis was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)
A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!
I take no responsability for any problems a user might have on following this gist. This includes university problems.
The motivation for this is to document, as dummy-oriented as possible, a way to setup and add a system call to Minix OS. This is a classic assignment at Operational Systems classes (and is pretty cool tbh)
ISO used: minix_R3.3.0-588a35b.iso
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]