Advertisement
Guest User

dfu.sh

a guest
Dec 18th, 2022
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | Software | 0 0
  1. # DFU restore using idevicerestore
  2. # adopted from:
  3. # https://tg.st/u/idevicerestore_quickstart.txt
  4.  
  5.  
  6. # step 0: clean debian install on host
  7.  
  8. # step 1: download ipsw from:
  9. # https://ipsw.me/product/Mac
  10. # do this NOW bc it takes forever
  11. IPSW_PATH="~/Downloads/UniversalMac_12.3_21E230_Restore.ipsw"
  12.  
  13. # step 2: install idevicerestore:
  14. # bc libimobiledevice can't be bothered to package
  15.  
  16. sudo apt install build-essential checkinstall \
  17. git autoconf automake libtool-bin \
  18. libreadline-dev libusb-1.0-0-dev libplist-dev libcurl4-openssl-dev \
  19. libssl-dev libzip-dev zlib1g-dev libusbmuxd-dev \
  20. python python3 python3-distutils cython3 python-dev
  21.  
  22. for name in usbmuxd libplist libimobiledevice-glue libimobiledevice libirecovery idevicerestore; do
  23. git clone https://github.com/libimobiledevice/$name.git && \
  24. cd $name && ./autogen.sh && make && sudo make install && cd ..
  25. done
  26.  
  27. # make sure everything works
  28. sudo ldconfig && idevicerestore --version
  29.  
  30. # step 4: put mac in DFU mode
  31. # for 2020 M1s: follow the counts @ 2:25
  32. # https://www.youtube.com/watch?v=i5xmA3lDz3g
  33.  
  34. # step 5:
  35. sudo idevicerestore --debug "$IPSW_PATH"
  36.  
  37. # caveats: i ended up doing
  38. # sudo idevicerestore --latest
  39. # which forced me to upgrade to ventura
  40. # idk why but it doesn't seem to like downgrades "ios-style"
  41.  
Tags: #dfu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement