94 Commits

Author SHA1 Message Date
Garrett Holmstrom
c70a7db0f3 Include scripts in ntr firms
Unless the SD card happens to both be accessible and contain a
`gm9/scripts` directory, a system booted with a NTR cartridge isn't going
to have access to the stock scripts and will just show an error upon
going to the menu and selecting `Scripts...`.  This patch adds scripts
to the vram tarball only for ntr builds so they can be available even
on completely untouched systems.  It shouldn't be necessary when we've
booted from something else because in those cases we've already written
GodMode9.firm to flash using some other means and could have copied all
the scripts then.

One might argue this is sub-optimal because the menu will point there
even if a scripts directory happens to exist on the SD card.  One might
instead argue that that behavior is preferable because there's no telling
what gm9 version the scripts on the SD card were intended for.
2021-03-08 18:31:40 +01:00
d0k3
0ee1368153 Fix building on Windows (cygwin) 2020-08-02 15:40:42 +02:00
Wolfvak
f96daa407a potentially fix non-working FIRM builds, remove duplicated cycle wait functions
the sdmmc wait function is exactly the same as the one in the bootrom and worked as a drop in replacement
2020-07-24 14:22:38 -03:00
Wolfvak
5e307a3f32 limit size of initrd, fix building on msys2 2020-07-19 12:03:04 -03:00
Wolfvak
5905fb84fb removed the cross allocator, use the shared memory region instead for I2C and NVRAM transfers 2020-07-19 11:44:03 -03:00
Wolfvak
30f0b004c2 fixed screen init, hopefully the last commmit
- properly performs gpu/backlight reset

- nukes vram so the initrd had to be moved to arm9 memory, and have its size (at least temporarily) limited to 256k
2020-07-18 20:25:34 -03:00
Wolfvak
744ab6934b Integrate unmark into the release target 2019-10-13 13:43:35 -03:00
Wolfvak
fd5320b86f - properly align ARM11 stacks and buffers
- add very simple exception dumping for the ARM11
2019-09-29 19:53:28 +02:00
Wolfvak
88751ab96a refactor build system code to allow common code to be built for each target 2019-09-29 19:53:27 +02:00
Ian Burgwin
506a3d3089 Makefile: call firmtool as a PY3 module (#535)
Calling firmtool directly may not work as expected on Windows, where
Python is not added to PATH by default. However, the py launcher is
always added to a directory in PATH by default.

The only downside is that firmtool with Python 2 will not automatically
be called. Since Python 3.5 is required for add2tar, however, this
shouldn't be an issue.
2019-09-14 11:33:12 -03:00
Wolfvak
2f64a8046a - compile with size optimizations, reduces inst cache pressure
- removed most of lodepng's optional features
- lodepng now uses the already existing CRC32 code instead of using its own copy
- fixed GIC interrupt priority
2019-06-03 02:28:24 +02:00
Wolfvak
796457e54c Restored autodependency generation 2019-04-19 15:19:37 -03:00
DMSalesman
99af6a73be Added refined internal user guide
This commit adds an edited README.md to be built into GM9 as user guide.

The scrubbed parts include refs to the GM9 banner, unused MarkDown and
the whole "How to build this / developer info" block.

Links have been replaced with their corresponding anchor text, when
replacing them could be done without altering the sentences' original
meaning.

Certain parts have been further altered, such as the "License"
paragraph, which now includes the full link to GM9's "license.txt".
2018-07-26 00:46:02 +02:00
d0k3
a4a7b8f1e0 Fix GCC v8.1 (new dkA) warnings
... this also fixes #371
2018-05-24 01:08:00 +02:00
windows-server-2003
46f67e1d18 Fix sprintf format vulnerability 2018-05-17 00:29:03 +02:00
d0k3
f34fcf6fa3 Added GodMode64 and BrickedMode9 FLAVORs 2018-04-04 23:28:30 +02:00
Wolfvak
8c121ae1d3 Faster PNG compression, enabled separate data and function sections. 2018-04-03 01:17:58 +02:00
Wolfvak
c6903a1cf8 Add FIRM hashes on release. 2018-03-27 18:39:21 -03:00
d0k3
0bac823271 Makefile: also show version and build time 2018-03-21 23:11:13 +01:00
d0k3
e03cc0b9c4 Beautified Makefile output 2018-03-20 00:56:37 +01:00
d0k3
3684db2fe7 Allow paralell building of ARM9 and ARM11 ELF 2018-01-17 23:53:48 +01:00
d0k3
64b5c3d2ad Moved sample scripts to their own directory 2018-01-02 02:30:42 +01:00
d0k3
58046d0a20 Included HelloSpaghetti script in the readme 2017-12-29 17:32:19 +01:00
Ian Burgwin
e94adae363 Add a custom Python script "add2tar.py" to create the vram0 tar file 2017-12-25 01:54:28 +01:00
d0k3
38d3b4b4dc Makefile: Use 7za instead of 7z 2017-12-05 18:38:57 +01:00
d0k3
f653dade6e Improve vram0 tar handling 2017-11-28 01:04:13 +01:00
d0k3
c18ac35d45 General fixes and cleanup
Thanks @Kazuma77 for pointing that stuff out!
2017-11-20 17:50:48 +01:00
d0k3
ffc053a682 Fixed/improved release build goal 2017-11-17 20:48:51 +01:00
d0k3
cce1032d34 Fix revised Makefile 2017-11-17 19:37:45 +01:00
Wolfvak
beeea37d07 Revised Makefile 2017-11-17 19:37:45 +01:00
d0k3
0f3fc2a5d1 Use vram0.tar instead of standard bin2o method 2017-11-09 00:22:16 +01:00
d0k3
d9ae07bd2b Allow disabling the slider and fixing the brightness via the Makefile
Use make FIXED_BRIGHTNESS=x, whereas x is between 0...15
2017-10-20 17:36:30 +02:00
d0k3
39b76ef5fc Make AL3X10MODE the standard
You can still pause & view the splashscreen via R+UP
2017-10-19 01:34:24 +02:00
d0k3
eb6dc62fd8 Added the Makefile code for the previous commit 2017-10-11 03:24:04 +02:00
d0k3
653de94395 Disable Link Time Optimization
... this may solve build issues
2017-10-09 15:20:45 +02:00
Shadowhand
d625c19b79 Added hidden / undocumented alternative bootmode 2017-10-05 01:55:31 +02:00
d0k3
42820b185c Added readme viewer to HOME menu 2017-10-03 14:40:21 +02:00
d0k3
21c1ae30fe Allow piggybacking filesystem images to the GodMode9 firm
... just put an image file called `vram0.img` into data - max size:
3MB(!).
2017-09-27 02:13:03 +02:00
Wolfvak
8a4597635d Potentially fix screen init on some systems
Sanitized I2C
Reorganized the memory layout
 - Moved GM9 to ARM9 RAM
 - Increased RAMdisk size to 88MiB
2017-09-26 19:56:19 -03:00
d0k3
d249b647d6 Added ability to output exception QR codes 2017-09-19 15:25:00 +02:00
d0k3
33e164abc4 Also include .sha files for ntrboot installable FIRMs 2017-09-14 22:53:55 +02:00
d0k3
4244122dda Improved hidden bootloader 2017-09-14 13:38:19 +02:00
d0k3
c32908e4cf Allow building standalone script runners
... just include autorun.gm9 in the data folder
2017-09-08 15:39:57 +02:00
d0k3
8d1f39d235 Source code reorgnaizations 2017-09-04 16:18:07 +02:00
d0k3
a5c1fd5749 Include build timestamp in splash screen 2017-09-01 18:01:33 +02:00
d0k3
0666370f75 Add version to release archive, include ntrboot FIRMs 2017-09-01 03:29:24 +02:00
Wolfvak
1a65b4e7f0 Fix backlight turning on issue 2017-08-23 13:31:17 +02:00
Wolfvak
cfa26c2a2d Misc exception handlers fixes
Biggest one is they actually work now
2017-08-16 19:43:08 -03:00
d0k3
4faf67e194 Pull version numbers from git 2017-08-16 15:50:46 +02:00
Wolfvak
930b646008 Improved MPcore interrupt handler 2017-08-16 01:44:48 +02:00