Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2016 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c743c391fa54b6b51770aa2a569c13a5 to your computer and use it in GitHub Desktop.
Save anonymous/c743c391fa54b6b51770aa2a569c13a5 to your computer and use it in GitHub Desktop.
SHANGLINGM2 = {}
function SHANGLINGM2.dump_ipl(file)
print("Dumping IPL to " .. file .." ...")
JZ.nand.rom.init()
JZ.nand.rom.read_flags()
local ipl = JZ.nand.rom.read_bootloader()
JZ.nand.rom.write_to_file(file, ipl)
end
function SHANGLINGM2.init()
SHANGLINGM2.dump_ipl("shanglingm2_ipl.bin")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment