This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
HACKING-ARM.txt
52 lines (32 loc) · 2.18 KB
/
HACKING-ARM.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
With these instructions, you'll be able to set up your development environment to compile ARM executables (.nds plugins) for general flashcarts, as well as the NDS-Supercard communication layer on the Supercard DSTwo.
If all you want to do is compile MIPS executables (.plg plugins) for the Supercard DSTwo, you don't need this file.
-- Setting up the devkitPro Nintendo DS toolchain --
1. Set up devkitPro at /opt/devkitpro as outlined in the following page:
http://devkitpro.org/wiki/Getting_Started/devkitARM [validated with r45]
After creating the directory, use the following commands to make the directory owned by your user's group so that you can write into it as a regular user:
$ sudo chown root:$(whoami) /opt/devkitpro
$ sudo chmod 775 /opt/devkitpro
2. Make sure to download and install all the devkitPro libraries for the Nintendo DS, all extracted into /opt/devkitpro/libnds:
$ mkdir -p /opt/devkitpro/libnds
$ cd /opt/devkitpro/libnds
- libnds
http://sourceforge.net/projects/devkitpro/files/libnds/ [validated with 1.6.2]
- libfat-nds
http://sourceforge.net/projects/devkitpro/files/libfat/ [validated with 1.1.0]
(Note: Make sure to get the libfat release for nds, not the others)
- dswifi
http://sourceforge.net/projects/devkitpro/files/dswifi/ [validated with 0.4.0]
- maxmod-nds
http://sourceforge.net/projects/devkitpro/files/maxmod/ [validated with 1.0.10]
(Note: Make sure to get the maxmod release for nds, not the others)
- filesystem
http://sourceforge.net/projects/devkitpro/files/filesystem/ [validated with 0.9.13-1]
- Default ARM7, to handle WiFi, audio and touchscreen input
https://sourceforge.net/projects/devkitpro/files/default_arm7/ [validated with 0.7.1]
3. Make sure the environment variables DEVKITPRO and DEVKITARM exist in your shell's initialisation file (such as $HOME/.bashrc):
$ export DEVKITPRO=/opt/devkitpro
$ export DEVKITARM=$DEVKITPRO/devkitARM
-- Rebuilding the ARM side --
After changes to the source code under arm-side/arm9/ or arm-side/arm7/, run this command in the arm-side directory:
$ make clean; make install
The final product of the build, arm-side.elf, will be copied to $SCDS2_TOOLS/tools/ds2_firmware.dat.