Created
October 19, 2016 17:19
-
-
Save anonymous/c743c391fa54b6b51770aa2a569c13a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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