I forked BenjaminDobell's Heimdall with some patches to the CmakeList files.
- https://gist.github.com/hanvari/5c0d9ffd061e89020b4b8a489eff8344
- https://gitlab.com/BenjaminDobell/Heimdall/-/merge_requests/470/diffs
In terminal do your homebrew install and install dependancies.
Full instructions here: https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install cmake libusb
### CLONE THE REPO ###
git clone https://gitlab.com/pjobson/Heimdall.git
cd Heimdall
### Disable SIP - Possibly Catalina Only ###
### Reboot to Recovery with COMMAND-R ###
csrutil disable
reboot
### After Reboot ###
sudo mount -uw /
sudo killall Finder
### INSTALL THE KEXT ###
OSX/install-kext.sh
# Maybe Reboot #
### DO THE BUILD ###
mkdir build
cd build
cmake -DDISABLE_FRONTEND=ON -DCMAKE_BUILD_TYPE=Release ..
LIBRARY_PATH=/usr/local/lib make
make install
### DO STUFF ###
which heimdall
heimdall info
heimdall version
heimdall download-pit --output pit.pit
heimdall flash --RECOVERY recovery.img
# Flashing a Phone Example:
heimdall flash --APNHLOS NON-HLOS.bin \
--ABOOT aboot.mbn \
--BOOT boot.img \
--CACHE cache.img.ext4 \
--HIDDEN hidden.img.ext4 \
--MODEM modem.bin \
--RPM rpm.mbn \
--SBL1 sbl1.mbn \
--DBI sdi.mbn \
--SYSTEM system.img.ext4 \
--TZ tz.mbn \
--no-reboot
### Re-Enable SIP - Possibly Catalina Only ###
csrutil enable
sudo reboot
That's it. Some guides show to run heimdall
as root, I'm not sure if that is necessary.
Your instructions saved me a lot of time! Thanks!