Commit graph

1536 commits

Author SHA1 Message Date
Kostas Missos
526ffd4414 [FatFS] Add error printing for important functions
So much needed
2018-05-21 12:34:03 -07:00
Kostas Missos
dcb77115c9 Whitespace/typo cleanup + others
Others:
*Add cluster size in SD card info
*Add error message for emmc read failure. Also fix return value.
*Added more comments and more constant naming
2018-05-17 15:42:01 -07:00
Kostas Missos
34981763a5 [Tools] Better dumping
*Remove option to ignore errors and abort right away.
 In the end what's the point if you end up with corrupted backup.
*Always create partial.idx before running on errors.
*Allow forced partial dumping on exFAT with large space, by creating the correct patial.idx file
*Some cleanup
2018-05-17 15:42:01 -07:00
Kostas Missos
645df34367 [Main] Unmount SD before reboot/power off 2018-05-17 15:42:01 -07:00
Kostas Missos
e06d833cf8 [sd] Correct ssr parsing + add write protect info 2018-05-15 12:40:04 -07:00
Kostas Missos
54187226c8 Better error messaging structure 2018-05-15 12:40:04 -07:00
Kostas Missos
8da015d993 Add missing include 2018-05-14 12:25:29 +12:00
Kostas Missos
0f5ffb4c43 Bugfixes
* Make button check delay 1s to avoid button repressing from "button ip" state
* Dumping: Fix part logic and honor user actions on ignoring errors
* Add time taken to dump emmc
2018-05-14 12:25:29 +12:00
Kostas Missos
8ddb6c16c5 [Tools] Add fuse/kfuse dumping to SD 2018-05-14 12:25:29 +12:00
Kostas Missos
82163a920e [Info] Add eMMC and SD info printing 2018-05-14 12:25:29 +12:00
Kostas Missos
55262fe9fa [sdmmc] Fixes Part 2
Now that the cid/csd/ssr/etc bytes/bitfields are correct:
* MMC/SD: Add cid/csd parsing and use new cid/csd variables
* SD: Add ssr (sd status) reading/parsing
2018-05-14 12:25:29 +12:00
Kostas Missos
acdc8b580c [sdmmc] Fixes Part 1
* MMC/SD: Change many hardcoded values to named ones
* MMC/SD: Fix scr and csd byte/bitfield ordering
* MMC: Add ext csd parsing and using these variables isntead of arrays
* MMC: Fix BKOPS support but disabled
* SD: Add partial sd v1 support
* SD: Fix we support low voltage OCR bit
* SD: Add scr parsing and using these variables instead of hardcoded ones
2018-05-14 12:25:29 +12:00
Ced2911
4d7f016e3a Feature/4x (#10)
* Dump sm, added JanV work
* add Ac_K patches, fix boot, keygen is wrong, need more work
* cleanup keygen, correct key for 4xx
* remove unused code, cleanup code
2018-05-13 13:13:17 +12:00
CrimsonMaple
764231b418 [Makefile]: Quality of life changes. 2018-05-13 13:12:46 +12:00
Kostas Missos
5ca3bbcaf1 Make write error fatal but let user choose to continue
Write error to sd is now fatal as per FatFs guidelines.
Let the user choose to continue or to abort and try again.
Add a message to let the user know that we calculate free space
2018-05-09 02:25:59 +12:00
Kostas Missos
b6b000fd28 Fix small typo 2018-05-09 02:25:59 +12:00
Kostas Missos
6878e87764 Add SD write retry and some other changes
Increase retry count to 6 tries
Add colors and change a little bit some messages
Change some namings
2018-05-09 02:25:59 +12:00
Kostas Missos
0a426db985 Add partial dumping when free space is not enough 2018-05-09 02:25:59 +12:00
Kostas Missos
724970f795 Add lv support back and fix its change logic 2018-05-09 02:25:00 +12:00
Kostas Missos
5363029e60 Add support for SD cards that report wrong info
Some vendors, *I'm looking at you Samsung*, report support for 1.8 voltage, even though the card does not support it.

So, disable low voltage support for now until the behavior is changed to act more like what Linux does. (re-initializing the SD card and disables the low voltage switch).

Fix the switch to high speed mode for high voltages also.

Additionally, correct the IF COND reply. 0xAA is the important part.
2018-05-09 02:25:00 +12:00
Selver-gba
fc0a94bd84 BUG: gfx_putc() was attempting to print from
two characters (126, 127) not in font table
FIX: Do not print non-printable char 127
FIX: Add tilde character to font table
2018-05-09 02:24:03 +12:00
st4rk
8d6b6c4f0e Fix mistake where I was reading pkg1 twice 2018-05-04 00:32:28 -07:00
st4rk
6ebfaa1200 keygen for 3.0.x, 4.0.x, 5.0.x added, 3.0.X FW booting, fixed TSEC wrong offset for 4.0.X 2018-05-04 00:31:08 -07:00
st4rk
8b9e65e76f keygen for 3.0.x, 4.0.x, 5.0.x added, 3.0.X FW booting, fixed TSEC wrong offset for 4.0.X 2018-05-04 00:15:29 -07:00
Rajko Stojadinovic
e7373548fa Make it smaller 2018-05-02 15:37:15 +12:00
Rajko Stojadinovic
138a7658ad Add missing const on constants 2018-05-02 15:37:15 +12:00
Rajko Stojadinovic
8a327030bd Enable exFAT support, don't split files if using it (fsync them instead at 2GiB boundaries), add RawNand dump option 2018-05-02 15:37:15 +12:00
Rajko Stojadinovic
ee30961b3a Fix percentage overflow when dumping USER, also add retry in case of read failure (experienced by some users) 2018-05-02 15:37:15 +12:00
Rajko Stojadinovic
04de3d184a Support dumping all possible eMMC partitions (with file splitting when necessary) 2018-05-02 15:37:15 +12:00
nwert
8365426fc3 So it has come to this. 2018-05-01 17:22:03 +12:00
nwert
6181b39f14 License. 2018-03-27 12:04:16 +13:00
nwert
fb1ebd9a06 Fix uart for opt, actually use params. 2018-03-16 10:21:31 +13:00
nwert
3077c47c39
Add readme. 2018-03-15 12:44:43 +13:00
nwert
332e5921aa Remove superfluous files. 2018-03-15 12:42:06 +13:00
nwert
10b4b7d1cb Add hardware buttons, cpu booting, tsec booting. 2018-03-15 12:30:46 +13:00
nwert
6f6683e05b Initial commit. 2018-03-07 14:13:23 +13:00