Advertisement
Guest User

GM9 Autorun Script Stage 1

a guest
Sep 23rd, 2017
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. # Install boot9strap, copy files to another SD and copy luma to CTRNAND
  2. # last changed: 20170923
  3. # author: Some1CP
  4.  
  5. set SUCCESSMSG "Install + Copy completed successfully"
  6.  
  7. # Allow NAND writing
  8. allow S:/firm0.bin
  9. allow S:/firm1.bin
  10. allow S:/sector0x96.bin
  11. allow 1:/
  12. # allow -a 9:/
  13.  
  14.  
  15. # Look for boot9strap
  16. set ERRORMSG "Boot9Strap file not found!"
  17. find 0:/boot9strap/boot9stra*.firm B9S
  18. set ERRORMSG "SHA check failed on Boot9Strap file"
  19. sha $[B9S] $[B9S].sha
  20.  
  21.  
  22. # Look for sector0x96
  23. set ERRORMSG "sector0x96.bin not found!"
  24. find 0:/boot9strap/sector0x9*.bin SECRET
  25. set ERRORMSG "SHA check failed on sector0x96.bin file"
  26. sha $[SECRET] $[SECRET].sha
  27.  
  28.  
  29. # Backup FIRMs
  30. cp -w -n S:/firm0.bin $[GM9OUT]/firm0.bak
  31. cp -w -n S:/firm1.bin $[GM9OUT]/firm1.bak
  32.  
  33.  
  34. # Inject sighax into firm0 & firm1
  35. set ERRORMSG "Unable to inject boot9strap!\n \nRun SafeB9SInstaller after."
  36. cp -w -n $[B9S] S:/firm0.bin
  37. cp -w -n $[B9S] S:/firm1.bin
  38.  
  39.  
  40. # Secret Sector
  41. cp -w $[SECRET] S:/sector0x96.bin
  42.  
  43.  
  44. set ERRORMSG "Copy failed"
  45. # copy to ramdrive
  46. cp 0:/3ds 9:/3ds
  47. cp 0:/cias 9:/cias
  48. cp 0:/gm9 9:/gm9
  49. cp 0:/luma 9:/luma
  50.  
  51. # Homebrew Launcher
  52. cp 0:/boot.3dsx 9:/hbl.3dsx
  53.  
  54. # GodMode9 Step 2 Standalone Script
  55. cp 0:/gm9-step2.firm 9:/gm9-step2.firm
  56.  
  57. # GodMode9 Normal
  58. cp 0:/boot.firm 9:/luma/payloads/GodMode9.firm
  59.  
  60. # Luma3DS
  61. cp 0:/luma.firm 9:/luma.firm
  62.  
  63. # Switch SD cards
  64. switchsd "Please switch SD cards."
  65.  
  66. # Allow SD CARD writing
  67. # allow -a 0:/
  68.  
  69. # copy to SD
  70. cp -w 9:/3ds 0:/3ds
  71. cp -w 9:/3ds/FBI.3dsx 0:/boot.3dsx
  72. cp -w 9:/cias 0:/cias
  73. cp -w 9:/gm9 0:/gm9
  74. cp -w 9:/luma 0:/luma
  75. cp -w 9:/gm9-step2.firm 0:/boot.firm
  76. cp -w 9:/hbl.3dsx 0:/hbl.3dsx
  77. cp -w 9:/luma.firm 0:/luma.firm
  78.  
  79.  
  80. # copy luma to CTRNAND
  81.  
  82. # remove existing files just in case
  83. rm -o -s 1:/boot.firm
  84. rm -o -s 1:/rw/luma
  85.  
  86. # copy specific files over
  87. cp 9:/luma.firm 1:/boot.firm
  88. mkdir 1:/rw/luma
  89. cp 9:/luma/payloads 1:/rw/luma/payloads
  90. cp 9:/luma/config.bin 1:/rw/luma/config.bin
  91.  
  92. # boot Luma3DS
  93. boot 0:/luma.firm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement