-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
272 additions
and
854 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.elf | ||
*.nds | ||
build/ | ||
binaries/ | ||
include/binaries.h |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "external/flashcart_core"] | ||
path = external/flashcart_core | ||
url = https://github.com/kitling/flashcart_core |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let g:syntastic_cpp_compiler = $DEVKITARM.'/bin/arm-none-eabi-g++' | ||
let g:syntastic_cpp_compiler_options = "-DARM9" | ||
let g:syntastic_cpp_include_dirs = [".", "include", "external", $DEVKITPRO."/libnds/include"] | ||
set colorcolumn=80 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## NDS version NTRBOOTHAX flasher | ||
Only tested NDSL + AK2I | ||
|
||
DO NOT USE THIS ON NDSI | ||
|
||
### Known issues | ||
* Probably cannot use with non AK2I cart. | ||
|
||
We should make NDSI mode instead NDS. But that mode cannot use cartridge | ||
swap, and probably lost flashcart feature until someone provide restore | ||
image. | ||
|
||
* Removed restore feature, I don't know reason, flasher occur cartridge brick. | ||
|
||
But, AK2I will work as flashcart whenever flashed or not. | ||
So, just feature blocked. | ||
|
||
### Build | ||
1. copy these 4 binaries to `binaries` directory. | ||
- `blowfish_dev.bin` | ||
- `blowfish_retail.bin` | ||
- `boot9strap_ntr_dev.firm` | ||
- `boot9strap_ntr.firm` | ||
2. `python extract_binaries.py` | ||
3. then `make` | ||
|
||
### Credits | ||
* [Normmatt][normmatt] - Original implement 3DS version ntrcardhax flasher | ||
* [SciresM][sciresm] - Parent of `boot9strap` | ||
* [kitling][kitling] - Made `flashcart_core` | ||
* [hedgeberg][hedgeberg] - RE Cartridge |
Empty file.
Submodule flashcart_core
added at
ad5d12
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import os.path | ||
import glob | ||
|
||
strings = [ | ||
'#ifndef BINARIES_H\n', | ||
'#define BINARIES_H\n', | ||
'#ifdef __cplusplus\n', | ||
'extern "C" {\n', | ||
'#endif\n', | ||
] | ||
|
||
for fn in glob.glob('binaries/*'): | ||
basename = os.path.basename(fn) | ||
var_name = basename.replace('.', '_') | ||
with open(fn, 'rb') as r: | ||
strings.append('uint8_t %s[] = {\n' % var_name); | ||
buf = r.read() | ||
|
||
for idx, x in enumerate(buf): | ||
strings.append('0x%02X, ' % ord(x)) | ||
if (idx and ((idx + 1) % 16) == 0): | ||
strings.append('\n') | ||
strings.append('};\n'); | ||
strings.append('uint32_t %s_size = 0x%X;\n' % (var_name, len(buf))) | ||
|
||
strings += [ | ||
'#ifdef __cplusplus\n', | ||
'}\n', | ||
'#endif\n', | ||
'#endif\n', | ||
] | ||
|
||
with open('include/binaries.h', 'wb') as w: | ||
w.write(''.join(strings)) | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef DISPLAY_H | ||
#define DISPLAY_H | ||
#define TOP_SCREEN 0 | ||
|
||
void ShowProgress(char screen, uint32_t curr, uint32_t total); | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef DELAY_H | ||
#define DELAY_H | ||
|
||
#define ioDelay(...) while(0) | ||
|
||
#endif |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#ifndef PROTOCOL_NTR_H | ||
#define PROTOCOL_NTR_H | ||
void Cart_NTRInit(); | ||
void NTR_SendCommand(const uint8_t *command, uint32_t length, uint32_t flags, uint8_t *destination); | ||
#endif |
Oops, something went wrong.