1432 Commits

Author SHA1 Message Date
d0k3
ae583300e6 Don't show the JEDECID file on carts that have none v1.9.0 2019-10-17 19:51:05 +02:00
d0k3
9e72c098b9 Make gamecart handling a little less annoying 2019-10-15 23:08:06 +02:00
d0k3
c847618048 Some minor cleanup 2019-10-14 23:48:15 +02:00
d0k3
422e54dca4 FIRMInstaller: Remove crypto check
... this interfered with installation to corrupted partitions and is no more required anyways.
2019-10-14 22:18:00 +02:00
Wolfvak
0f42426115 Fix unaligned crypto buffers 2019-10-14 13:11:23 -03:00
Wolfvak
915cb2d13e Hopefully fix #466 - now it resets the GPU/LCD into a known state instead of leaving the previous one on 2019-10-13 18:32:41 -03:00
Wolfvak
4890e4116f Remove repeated credit 2019-10-13 13:47:01 -03:00
Glazed_Belmont
5d61bebb25 added credits from the essential.exefs script (#547)
we both thought and wrote the script, so I thought the addition of the names would be great
2019-10-13 13:45:31 -03:00
Wolfvak
744ab6934b Integrate unmark into the release target 2019-10-13 13:43:35 -03:00
Death Mask Salesman
b32b63da27 Add Unmark as an external tool (#546)
`unmark` is a tool to produce an user manual from the `README.md`.

The `patch.json.gz` file contains a list of patterns to match and
their replacements.
If `unmark` complains about being unable to match a pattern, please open
an issue with the warning and your `README.md` at
[upstream](https://github.com/DMSalesman/Unmark).
2019-10-13 13:33:31 -03:00
DMSalesman
6d8226ac5e Update user manual 2019-10-12 17:32:36 +02:00
d0k3
a4270eda56 GM9MegaScript: Added essential.exefs dumping
... so I got at least one commit in that script.
2019-10-12 17:31:47 +02:00
d0k3
f24db1442e Fix #543 2019-10-12 17:14:16 +02:00
d0k3
0ec73520e6 Rewrote the dir/file/drive info dialogue 2019-10-12 17:10:33 +02:00
d0k3
dc746f69c5 Readme updates for changed stuff 2019-10-11 16:28:07 +02:00
Balint Kovacs
c1b04d85d4 Fix jedecid_and_sreg.bin offset reads 2019-10-11 16:24:08 +02:00
Balint Kovacs
2f24f37e7b Temporarily disable IR carts
And massively simplify chip detection
2019-10-11 16:24:08 +02:00
Balint Kovacs
c51d8a7191 Fix Art Academy save writing
Apparently, at least in my copy, the flash chip has a chance to fail a
PP command, and just never complete it. So we just try again.
2019-10-11 16:24:08 +02:00
Balint Kovacs
0308dfdebc Get rid of card_eeprom.c for real
Rebase brought it back
2019-10-11 16:24:08 +02:00
Balint Kovacs
f624850465 Handle errors when reading JEDEC ID vfile 2019-10-11 16:24:08 +02:00
Balint Kovacs
aea79aa634 Cut back on card definitions
Saves 400 - 440 bytes of .data
2019-10-11 16:24:08 +02:00
Balint Kovacs
bef427dfdb Code formatting for card_spi.c 2019-10-11 16:24:08 +02:00
Balint Kovacs
84d5f800a9 Get rid of card_eeprom.c, move spi.c to card_spi.c
It was bugging me that there was two spi.c's
2019-10-11 16:24:08 +02:00
Balint Kovacs
d2f596e7a3 Merge ARM11 spi and ARM9 spicard drivers
Also centralize device IDs into SPI.h
2019-10-11 16:24:08 +02:00
Balint Kovacs
48d8c48d12 Completely refactor SPI.h, write CTR flash
Also (hopefully?) write Art Academy, and also implement sector-based
write on Sanyo 256K chips.
2019-10-11 16:24:08 +02:00
Balint Kovacs
004341e1ef Add a little utility to test gamecard flash chips 2019-10-11 16:24:08 +02:00
Balint Kovacs
fa741b265b Write support for NTR saves
Why does this work? We are writing flash memories without erasing them,
and writing pages without regard to alignment. Yet it works?
2019-10-11 16:24:08 +02:00
Balint Kovacs
38d9a23427 Minor cleanup of gamecart.c 2019-10-11 16:24:07 +02:00
Balint Kovacs
7b0a101f13 Add read support for CTR cartridge saves
I have done nothing, however, to decrypt them. There is also no write
support.
2019-10-11 16:24:07 +02:00
Balint Kovacs
f60a4c1f63 Add a vfile to show the JEDEC id for the inserted cart
This is meant to replace the Prompt I was using previously.
Fun fact: WarioWare DIY seems to have *something* on the SPI bus, as it
returns an ID of 0x000001 consistently. Or am I just glitching the
parallel flash? Or did I get a fake?
2019-10-11 16:24:07 +02:00
Balint Kovacs
fd48c95deb Add a timeout to SPIWaitWriteEnd
Solves the WarioWare issue
2019-10-11 16:24:07 +02:00
Balint Kovacs
556c75c337 Fix many bugs by simplifying SPICARD init
* Fixed card reading (I didn't notice I broke it)
* Fixed cart swapping
* Still unsupported: CTR carts
* Still hangs if cart has no SPI flash (see WarioWare DIY)

The initialization code was simplified to only enable the SPICARD
interface, which assumes the *TRCARD interface has been initialized
beforehand.
To keep things simple, I just wrapped SPIWriteRead with SPICARD_Init and
SPICARD_deinit (which does the exact opposite)
2019-10-11 16:24:07 +02:00
Balint Kovacs
ac4ec6ee90 spicard.h: use void* pointers
First initialized cart reads correctly now, and cardswap just hangs.
2019-10-11 16:24:07 +02:00
Balint Kovacs
2ceafc545b First viable(-ish) prototype
For some reason (messed up memory access?) the first two time I read the
status register, I get garbage.

Also:
* Reinserting card breaks SPI (everything reads 0xff
* No support for CTR carts for now
2019-10-11 16:24:07 +02:00
d0k3
a3cc272e63 Try to fix the infloop
Debug output (revert this later)
2019-10-11 16:24:07 +02:00
d0k3
01bc082ca0 Initial support of cartridge savegame reads 2019-10-11 16:24:07 +02:00
Wolfvak
beb2a881cd fix compilation warning due to ternary operator results having differing signedness 2019-10-09 22:31:09 -03:00
Chromaryu
d4cd60eccf Travis: Enable Sudo-safe container (#544)
Use latest ubuntu distribution, this time Bionic.
2019-10-09 20:36:11 -03:00
d0k3
2372340e6d Updated touchscreen playground 2019-10-06 22:28:57 +02:00
d0k3
392b59976b Got rid of the Testing menu
... (hint) also hiding a secret here
2019-10-06 14:02:05 +02:00
d0k3
00c0dac479 Fix notification LED color 2019-10-05 20:00:14 +02:00
d0k3
5799d99c4c Fix installing FIRMs 2019-10-04 18:26:08 +02:00
d0k3
760052f20d Fix #541 2019-10-03 17:04:35 -03:00
d0k3
e7948d9a2f Fix entering the boot menu in bootloader 2019-10-03 17:04:35 -03:00
Wolfvak
891c0c2a36 adjust stack and code dump lengths to be more useful in real life 2019-10-03 17:04:35 -03:00
d0k3
1633961707 Allow game icons as preview for scripting 2019-10-03 17:04:35 -03:00
d0k3
0e701ea719 Fix flavor colors 2019-10-03 17:04:35 -03:00
Wolfvak
a9624b6d81 fix a potential mcu bug 2019-10-03 17:04:35 -03:00
Wolfvak
ea26510402 remove unnecessary parameters being passed 2019-10-03 17:04:35 -03:00
d0k3
622fb38223 Fix compiler warnings (thanks @aspargas2) 2019-10-03 17:04:35 -03:00