You do not have permission to edit this page, for the following reason:
The action you have requested is limited to users in one of the groups: Users, Administrators.
Free text:
{{Obsolete}} This bootloader runs on the arm9 loads ARM9 and ARM11 binaries from the SD FAT filesystem, with the following filenames: /load9.bin and /load11.bin. After successfully loading both binaries, it will call the loaded arm9bin, then it will return from main_() if the arm9bin returns. This uses code based on code from https://github.com/yellows8/bootldr9_rawdevice. Each binary starts with an u32 for the load-address, the rest of the binary is loaded to this address. See main.c for the blacklisted memory ranges(MPU is disabled while this loader is running and when jumping to the arm9bin). The filesize must be at least 0x8-bytes, and the filesize must be 4-byte aligned. When DISABLE_BINVERIFY isn't used, the filesize must be at least 0x2c-bytes: the last 0x24-bytes are a footer. The first u32 in that footer is the footertype, this must match little-endian value 0x1f40924e for SHA256. The following data in the footer is a SHA256 hash over the rest of the file(this footer is loaded into memory seperate from the loadaddr). See also the build_hashedbin.sh script, for building hashed binaries for this. "build_hashedbin.sh {inputbin} {outputbin}" Prior to jumping to the arm9bin, it will handle booting the arm11(this requires code running on the arm11 which can handle this). The following arm11boot method is only used if the ALTARM11BOOT option isn't specified. The entrypoint is written to u32 0x1ffffff8+4, then magicnum 0x544f4f42("BOOT") is written to u32 0x1ffffff8+0. Lastly, this arm9code waits for the arm11 to change the value at 0x1ffffff8+0. ==Building== <code>make</code> can be used with the following options: * <code>UNPROTBOOT9_LIBPATH={path}</code> - This should be used to specify the path for the unprotboot9_sdmmc library, aka the path for that repo. * <code>DISABLE_ARM11=1</code> - Completely disable all code involved with loading/booting the arm11 binary. * <code>ALTARM11BOOT=1</code> - Use the arm11boot method used by [https://github.com/delebile/arm9loaderhax this], instead of the one described above. * <code>ARM9BIN_FILEPATH={sd filepath}</code> - Override the default filepath for the arm9bin. For example: "ARM9BIN_FILEPATH=/ld9.bin". The filenames here are FAT 8.3. * <code>ARM11BIN_FILEPATH={sd filepath}</code> - This is the arm11bin version of the above option. * <code>DISABLE_BINVERIFY=1</code> - Disable using/verifying the SHA256 hash in the binaries(see above), with this the additional filesize requirement is disabled too. * <code>ENABLE_RETURNFROMCRT0=1</code> - When the binaries were not loaded successfully, or when the arm9bin returned, return from the crt0 to the LR from the time of loader entry, instead executing an infinite loop. ==External links== * GitHub - https://github.com/yellows8/3dsbootldr_fatfs
Advertising: