fa9197245c
nyx: add OmniNX brand label and tab background fallback
...
Show hekate-pro | OmniNX pack on the home screen from manifest.ini via boot storage, and support background_etc.bmp for non-Home tabs.
2026-07-09 22:26:32 +02:00
naga
bf9c214cef
return value fix
2026-06-18 02:21:45 +02:00
naga
bf3390c081
Bump hekate to v6.5.3 and Nyx to v1.9.3
2026-06-17 06:43:23 +02:00
CTCaer
958163d207
sdmmc: add sd vendor/rsvd info
2026-06-17 06:41:48 +02:00
CTCaer
295c368490
sdmmc: add gen cmd support
2026-06-17 06:41:48 +02:00
CTCaer
d2a2832107
nyx: info: add sd vendor bits info
2026-06-17 06:36:14 +02:00
CTCaer
91ee3e0b7d
nyx: info: sd improvements
...
- Better DDR200 detection (experimental)
- Add Kowin MID
- Add Vendor bits info
2026-06-17 06:36:08 +02:00
CTCaer
b5baa15451
bdk: sdmmc: better DDR200 detection
...
Still experimental.
2026-06-17 06:36:03 +02:00
CTCaer
e4f72d8ab1
sdmmc: CMD12 is not needed for single blocks
2026-06-17 06:35:57 +02:00
CTCaer
f77faf890b
hos: add 22.5.0 support
2026-06-17 06:34:49 +02:00
CTCaer
462e5c12aa
sdmmc: refactor and simplify various functions
2026-06-17 06:34:35 +02:00
CTCaer
9d0ed664cb
sdmmc: modernize SD/eMMC cmds
...
Add up to SDA 8.0.0 and eMMC 5.1 and correct some
2026-06-17 06:29:50 +02:00
CTCaer
8e6667ed72
nyx: info: add sda version and sde info
2026-06-17 06:27:45 +02:00
CTCaer
e69ef9ee0d
sdmmc: identify SD Express cards
2026-06-17 06:27:44 +02:00
CTCaer
de7cf0cf83
sdmmc: add get sda spec version function
...
Returned number is major version.
2026-06-17 06:25:34 +02:00
CTCaer
4626816d40
sdmmc: refactor ICR/OCR defines
...
And others.
Also add some debug prints and move ocr argument to get op cond.
2026-06-17 06:25:29 +02:00
CTCaer
5cab679a07
nyx: parted: correct gpt validation check
...
This fixes an issue when second sector has garbage data that would cause a spinloop.
2026-06-17 06:15:10 +02:00
CTCaer
38c74c961b
nyx: info: adjust 20nm wafer max X
2026-06-17 06:15:10 +02:00
CTCaer
ddbc8e0d76
nyx: info: add warnings for wrong pmic rev
...
Revision must match, so show a warning icon if not.
2026-06-17 06:15:10 +02:00
NaGa
1c7792e386
emuSD & other fixes
2026-04-08 17:03:38 +02:00
NaGa
17425831d5
raw base emummc fix
2026-04-06 16:37:26 +02:00
NaGa
517aa92740
1250 vdd2
2026-04-01 02:35:39 +02:00
NaGa
91cdf02c43
warmboot fix
2026-03-28 03:52:26 +01:00
NaGa
45318f691f
.
2026-03-28 01:42:43 +01:00
CTCaer
a60510f7de
bdk: mc: add offset to arc aperture
...
And increase it back to 4KB for TSEC only, since the firmware actually checks for it.
2026-03-27 20:44:29 +01:00
CTCaer
6b8f857021
Bump hekate to v6.5.2 and Nyx to v1.9.2
2026-03-27 20:44:29 +01:00
CTCaer
d086da50d7
hos: pull missed se adjusted return values
...
And fix nogc patches.
2026-03-27 20:44:29 +01:00
CTCaer
fee45ff62d
hos: add bc based mem mode support
2026-03-27 20:44:29 +01:00
CTCaer
1d4b835060
nyx: info: improve emmc info
...
And also add maintenance (bkops) info.
2026-03-27 20:44:15 +01:00
CTCaer
1561af252f
bdk: sdmmc: parse bkops info
2026-03-27 20:44:15 +01:00
CTCaer
5b1f9d25e7
nyx: info: seems that 16nm wafer has 28 max Y
2026-03-27 20:44:15 +01:00
CTCaer
14d9d3e9bf
nyx: add info about 7" LCD OEM clone
...
And its touch panel.
TODO: Find markings on it and use them.
2026-03-27 20:44:15 +01:00
CTCaer
70262c8695
minerva: fix off-by-one in shifting
2026-03-27 20:44:15 +01:00
CTCaer
d8487e529b
l4t: refactor return values
2026-03-27 20:44:15 +01:00
CTCaer
f6cecdc783
bdk: memory map: define max use from sdram params
2026-03-27 20:44:15 +01:00
CTCaer
387b5b07ed
bdk: sdmmc: rename bkops define
...
And remove dead code.
2026-03-27 20:44:15 +01:00
CTCaer
e7deafd6a1
bdk: smmu: reset heap on disable
...
And rename domain init/deinit
2026-03-27 20:42:31 +01:00
CTCaer
3e6df2459d
bdk: sdram: add missing T210 1GB density timings
2026-03-27 20:42:31 +01:00
CTCaer
902246984b
nyx: add creme accent support
...
Also change reset to default grey instead of current.
2026-03-27 20:42:31 +01:00
CTCaer
7ca071a67c
bdk: lvgl: add creme accent support
2026-03-27 20:42:31 +01:00
CTCaer
07408305f5
bdk: lvgl: correct slider knob signal coordinates
...
It should always point to the middle of the knob and not be variable with offset.
2026-03-27 20:42:31 +01:00
CTCaer
64a5d48ab5
touch: increase max allowed touched area
2026-03-27 20:42:31 +01:00
CTCaer
fb6fb75448
hos: add 22.0.0 support
2026-03-27 20:42:31 +01:00
CTCaer
a02624cd39
bdk: mc: reduce ahb aperture by 4KB
...
The state machine automatically uses TOM + 4KB as real top address.
This can cause issues with HW that accesses that low RAM range,
since once the request enters ARC can't be redirected to MC and can hang.
2026-03-27 20:42:31 +01:00
CTCaer
a4765e2839
hekate/nyx: remove obsolete compile flag
...
BDK_MC_ENABLE_AHB_REDIRECT
2026-03-27 20:42:31 +01:00
CTCaer
88ba35b73f
bdk: mc: always enable ahb redirection
2026-03-27 20:42:31 +01:00
CTCaer
860e1b12ac
nyx: show forced 8GB with an asterisk
2026-03-27 20:42:31 +01:00
CTCaer
95639d9bf1
nyx: fix off-by-one bug in emmc part manager
...
Last step after finish do not have a UMS option, so adjust accordingly.
2026-03-27 20:42:31 +01:00
CTCaer
eb8f46fd74
hos: fix building
2026-03-27 20:42:31 +01:00
CTCaer
f975364a8e
bdk: touch: add clone support
...
From LCD on OLED sku.
2026-03-27 20:42:31 +01:00
CTCaer
096e544332
nyx: emummc: remove unneeded stuff, it's 2026.
2026-03-27 20:42:31 +01:00
CTCaer
c5eefcb609
hos: homogenize return values
2026-03-27 20:19:37 +01:00
CTCaer
89b71d9e81
hekate/nyx: adjust handling of ini return values
2026-03-27 20:17:35 +01:00
CTCaer
72623d5a80
bdk: ini: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
12d970fa64
bdk: pmc: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
0a0e8697bc
nyx: adjust handling of kfuse return values
2026-03-27 20:16:31 +01:00
CTCaer
9bca3c0253
bdk: kfuse: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
fcbae9d581
bdk: clock: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
a8325f4ec4
bdk: tsec: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
2ce8a57b89
nyx: adjust handling of se return values
2026-03-27 20:16:31 +01:00
CTCaer
0e49d62bed
bdk: se: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
1101db8f19
bdk: power: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
45446486f2
bdk: dram: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
267f4bff93
nyx: adjust handling of touch return values
2026-03-27 20:16:31 +01:00
CTCaer
10fceea4be
bdk: touch: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
f26e9f0504
bdk: i2c: homogenize return values
2026-03-27 20:16:31 +01:00
CTCaer
5ecc2a8202
nyx: wait for the first frame to render
...
Needed for lcd oem clones on oled sku because of no fade in support.
2026-03-27 20:08:45 +01:00
CTCaer
58064bda34
bdk: vic: expose idle wait
2026-03-27 20:08:45 +01:00
CTCaer
1319984285
bdk: touch: check event count for wait event
...
And increase checks during autotune execution.
2026-03-27 20:08:45 +01:00
CTCaer
f45cb1c536
nyx: update for new touch driver changes
2026-03-27 20:08:45 +01:00
CTCaer
8881faa91b
bdk: touch: simplify input reporting
...
Additionally, touch polling now returns 1 for no event result.
2026-03-27 20:08:45 +01:00
CTCaer
0e64b9384f
bdk: touch: switch to custom chip info cmd
...
And also check if chip id is correct on init.
2026-03-27 20:08:45 +01:00
CTCaer
e3fba92e00
bdk: touch: use packet i2c for all transfers
...
The repeating byte doesn't exist in i2c packet mode.
Additionally, adjust split transfers to one.
2026-03-27 20:08:45 +01:00
CTCaer
2a7e148011
bdk: touch: refactor
...
And also use packet mode for big tx/rx combo i2c trasnfers.
2026-03-27 20:08:45 +01:00
CTCaer
476c070cf4
bdk: i2c: optimize packet mode functions
...
- Allow xfer packet to send up to 20 bytes before receiving
- Remove interrupt use since it's only polling
- Check proper status for TX finish.
2026-03-27 20:08:45 +01:00
CTCaer
8f6dce1368
bdk: i2c: refactor
2026-03-27 20:08:45 +01:00
CTCaer
10c2d3d379
bdk: clk: add missing macro
2026-03-27 20:08:45 +01:00
CTCaer
84234948cd
nyx: parted: remove android 10 references
...
Additionally, swap Legacy and Dynamic button sides and state dynamic is preferred.
2026-03-27 20:08:45 +01:00
CTCaer
67b002348e
nyx: tools: swap result check for touch ito test
2026-03-27 20:08:45 +01:00
CTCaer
e2ff75291b
bdk: touch: refactor/improve
...
- Remove useless poll wait
- Use more defines
- Deduplicate code
- Add more checks
- Add switch sense mode
2026-03-27 20:08:45 +01:00
CTCaer
45a08c058f
bdk: clk: reduce i2c freq input to save power
2026-03-27 20:08:45 +01:00
CTCaer
e4c226f101
readme: add which are ini only and adjust defaults
2026-03-27 20:08:45 +01:00
CTCaer
7a37ddc45e
bdk: vic: add hw version that this driver aims for
...
Also TRM lies about best cache width, like always.
The higher the faster. The lower the simpler alignment.
A balanced one is used by default.
2026-03-27 20:08:45 +01:00
CTCaer
2939f69928
nyx: fix launch rolling boot entry names
...
Somehow this broke half a decade ago and it went unnoticed... which is good.
Fix it and make measurements fully proper.
2026-03-27 20:08:45 +01:00
CTCaer
2c071eb878
nyx: use renamed bm92t function
2026-03-27 20:08:45 +01:00
CTCaer
de3a74d351
bdk: bm92t: do not parse non fixed pdos
2026-03-27 20:08:45 +01:00
CTCaer
eb62a31a1a
bdk: sdmmc: remove dependency to ram for init
2026-03-27 20:08:45 +01:00
CTCaer
29c64c5458
nyx: adjust sdmmc dma buffer name
2026-03-27 20:08:45 +01:00
CTCaer
bf5372628a
bdk: mem: rename sdmmc dma buffer
2026-03-27 20:05:57 +01:00
CTCaer
f16602c0cf
hekate/nyx: adjust exception storage based on bdk
2026-03-27 20:05:57 +01:00
CTCaer
aba56fd173
bdk: move exception type base away from IRQ stack
...
Allow a more heavy stack usage by IRQ handlers.
2026-03-27 20:05:57 +01:00
CTCaer
27bc159831
nyx: lvgl: complete black theme and add options
...
Since, this has the side-effect to make any theme color component from 0x0B to 0xC7
work, add theme background controls in Nyx Options.
Additionally, set shadow color to black and fix inactive buttons on transparent styles.
2026-03-27 20:05:57 +01:00
NaGa
d24debc642
nyx: deduplicate window creation functions
...
Also rename mbox_action and fix a double lv obj deletion in partition manager.
2026-03-27 20:02:53 +01:00
CTCaer
618e3007b5
bdk: lvgl: complete black theme
...
This has the side-effect to make any theme color component from 0x0B to 0xC7 work.
2026-03-27 19:38:45 +01:00
CTCaer
378d38b850
bdk: add missing header guards
2026-03-27 19:38:45 +01:00
CTCaer
6a43aa8c33
modules: set page size to 256 bytes
...
Since this runs on BPMP a meaningful alignment is 32 bytes, so use a nicer 256.
Reduces size of libs of up to 64KB.
If libs are compiled for armv7/8, 4KB should be used if missing from compiler.
2026-03-27 19:38:45 +01:00
CTCaer
801c31f613
modules: adjust for ianos changes
2026-03-27 19:38:45 +01:00
CTCaer
b8dcd5a05b
hekate: adjust for ianos changes
2026-03-27 19:38:45 +01:00
CTCaer
f155346238
bdk: ianos: restructure for future expansion
2026-03-27 19:38:08 +01:00
CTCaer
f08557fb8f
modules: lp0: refactor t210b01 to use the macros
...
This actually makes it faster too.
Additionally, remove support for DDR in T210 function.
2026-03-27 19:36:58 +01:00
CTCaer
c69cdacf30
l4t: use the updated pmc defines/struct
2026-03-27 19:36:58 +01:00
CTCaer
b3c95990ed
bdk: pmc: refactor register defines and structs
2026-03-27 19:36:58 +01:00
CTCaer
b86701823c
bdk: pinmux: always detach I2C4 pins from I2C3 pm
...
Generally I2C3 communication can work via I2C3 or I2C4 pins.
Defaults are fine as long as one of the pin groups are floating or grounded or
both share I2C traces.
In NX boards I2C4 SDA is used for GC and connected to 1V8.
So if a GC is slotted, I2C3 works, if not, no communication is possible.
This config was done previously inside I2C3 consumer driver (touchscreen).
Now it's moved inside pinmux_config_i2c.
2026-03-27 19:36:58 +01:00
CTCaer
9fe3ac7589
Bump hekate to v6.5.1 and Nyx to v1.9.1
2026-03-27 10:02:21 +01:00
CTCaer
315457651c
bdk: joycon: make init stricter but relax timings
...
Additionally, if both Joy-Con are found, try to send rumble simultaneously.
2026-03-27 10:02:21 +01:00
CTCaer
aecd657358
bdk: display: reduce display off waiting time
...
And align oled panel inside vblank.
Assumes display deinit happens before the rest of deinit.
2026-03-27 10:02:21 +01:00
CTCaer
ef84b9804c
nyx: handle exFAT truncation in stat/backup
...
It's possible for the overflow check to fail if exFAT and file size is big enough.
(4GB + total_size)
So check it properly.
This avoids unnecessary copying before RAM disk gets filled and copy errors out.
No other check is needed since max capacity is RAM disk size.
2026-03-27 10:02:21 +01:00
CTCaer
16b14b74c2
nyx: constrain reboot to OFW a bit
...
Disable if T210 and real dram id is 7 since this will fatal nx bootloader.
If T210B01 and fake id is dual rank and higher density than real id, show a warning.
Booting HOS like that can cause performance degradation and sometimes crashes.
How worse it is, depends on ram chips and selected unmatched config.
2026-03-27 10:02:21 +01:00
CTCaer
925b6e22bb
bdk: se: add T210 SHA256 silicon errata WAR
...
Apparently, some T210 silicon have an undocumented errata where the MSG_LEFT2/3
registers are not ignored as they should.
When they have random data in POR they cause a hang as long as the message and
SHA calculation speed. So always clear them.
Additionally, clear MSG_LENGTH2/3 registers too even though they do not matter.
2026-03-27 10:02:21 +01:00
CTCaer
5a35a61753
bdk: se: adjust T210 silicon errata coherency WAR
...
Add a 15us worst case scenario delay after OP done for T210.
Practically, because of 1600 MHz RAM, less than 1us delay is needed.
(204 MHz: 15us, 408 MHz: 5us, etc).
2026-03-27 10:02:21 +01:00
CTCaer
e649d1df8e
bdk: se: correct result for < block size aes
2026-03-27 10:02:21 +01:00
CTCaer
154d8b114c
hos: store wb anyway even if unused
...
Partially reverts 73d96b7ca8bd4360b288e53d95295fd98d1655e5.
This should be completely removed at some point.
2026-03-27 10:02:21 +01:00
CTCaer
a8d3018e83
hos: refactor ctr/hash vars in pkg2 header
2026-03-27 10:01:38 +01:00
CTCaer
ef2247a3f0
Bump hekate to v6.5.0 and Nyx to v1.9.0
2026-03-27 10:01:21 +01:00
CTCaer
0f4636546c
hos: add 21.2.0 support
2026-03-27 10:01:20 +01:00
CTCaer
22dd1a42c7
hekate/nyx: remove coreboot support
...
Everything external is finally updated and beyond parity with old things that needed it.
2026-03-27 10:01:20 +01:00
CTCaer
4daa02fe85
bdk: hwinit: remove coreboot support
...
Everything external is finally updated and beyond parity with old things that needed it.
2026-03-27 10:00:26 +01:00
CTCaer
8c8ca53ab7
bdk: joycon: more refactoring
2026-03-27 10:00:26 +01:00
CTCaer
e6a3c80f4d
bdk: joycon: generalize _jc_packet_add_uart_hdr
...
Correct its header construction in case it's used in the future.
Plus some unhardcoding of lengths.
2026-03-27 10:00:26 +01:00
CTCaer
2a0617dbf6
bdk: joycon: increase connection timeout to 1.8s
2026-03-27 10:00:26 +01:00
CTCaer
690beb0de7
bdk: joycon: refactor some fields
...
And add better comments.
2026-03-27 10:00:26 +01:00
CTCaer
6bcc2e082f
bdk: joycon: use packed structs and bitfields
2026-03-27 10:00:26 +01:00
CTCaer
c605e924ed
bdk: joycon: correct crc8 offsets
...
By luck the current offset and length of the calculation always worked.
Correct it though because the function might be used fully in the future.
2026-03-27 10:00:26 +01:00
CTCaer
d252dd7e52
bdk: joycon: maintain consistent naming styles
2026-03-27 10:00:26 +01:00
CTCaer
2d3b6e1a39
nyx: always show console stats
...
When main Joy-Con or all are disconnected, always show Joy-Con debug info.
Additionally, always allow opening/closing console window with the secondary one,
in the same conditions.
2026-03-27 10:00:26 +01:00
CTCaer
b414e6b35f
nyx: make sure ram is set to 1600 MHz
...
No matter how Nyx was launched.
2026-03-27 10:00:26 +01:00
CTCaer
1651316f72
nyx: options: make sure var has a value in all -O#
2026-03-27 10:00:26 +01:00
CTCaer
c200ef3f4a
bdk: joycon: optimize rumble enable
2026-03-27 10:00:26 +01:00
CTCaer
5fe649d7dd
bdk: display: add OLED status pin
...
Code is commented out for now until it gets used.
Status is set when RST is enabled.
2026-03-27 10:00:26 +01:00
CTCaer
d5a1bdf9bf
nyx: update rng calls based on new bdk
2026-03-27 10:00:26 +01:00
CTCaer
8e2a776e73
bdk: se: support multiple/partial blocks for RNG
2026-03-27 09:59:42 +01:00
CTCaer
57e6875b42
hekate/nyx: update ctx keys calls based on new bdk
2026-03-27 09:59:42 +01:00
CTCaer
d0dcfd0008
bdk: se: use proper naming for ctx keys
2026-03-27 09:59:42 +01:00
CTCaer
0cd9a5c80e
hekate/nyx: update sha calls based on new bdk
2026-03-27 09:59:42 +01:00
CTCaer
a258c726dc
bdk: se: refactor and optimize SHA256
...
- Simplify config and fix partial hashing
- Add partial function calls
- All partial state is handled internally
- All functions now use the classic naming convention.
2026-03-27 09:59:42 +01:00
CTCaer
89795a4c96
bdk: se: use classic naming convention for XTS
2026-03-27 09:59:42 +01:00
CTCaer
5a40f26010
bdk: se: add AES OFB encryption/decryption support
2026-03-27 09:59:42 +01:00
CTCaer
ab794bc61d
hekate/nyx: update aes calls based on new bdk
2026-03-27 09:59:42 +01:00
CTCaer
6c7370bec3
bdk: se: remove dst/src size argument requirement
...
All operations expect the destination buffer to fit the selected size.
And for simplicity STATE_WAIT is not supported.
Additionally, remove single block ECB and just use the normal function.
2026-03-27 09:59:42 +01:00
CTCaer
ba71fb0dba
bdk: se: optimize and update aes cmac hashing
...
`se_aes_cmac_128` was also renamed to `se_aes_hash_cmac`.
By following the convention of 128bit functions not having size in their name.
2026-03-27 09:59:42 +01:00
CTCaer
d1066da9fa
bdk: se: handle original and updated IV in one go
...
IV set now requires a size where the second block is updated IV
IV clear now clears both.
2026-03-27 09:59:42 +01:00
CTCaer
542fba6fbd
bdk: se: support partial blocks for all aes modes
2026-03-27 09:59:42 +01:00
CTCaer
1295152f20
bdk: se: do a trivial refactor pass
2026-03-27 09:59:42 +01:00
CTCaer
9ebd03802f
bdk: heap: use ultra fast defragmentation
...
The defragmentation runs on every free and it only merges subsequent nodes.
So there's no point of looping all nodes.
So, just check if previous and next nodes are mergeable.
This makes free performant and achieves the same exact functionality.
2026-03-27 09:59:42 +01:00
CTCaer
07229f1002
Restructure and refactor makefiles
...
- Allow rebuilds without rebuilding everything
By detecting changes everywhere that matters (flags, objects and headers).
- Add progress bar
- Fully clean everything when clean goal is used
2026-03-27 09:59:42 +01:00
CTCaer
d391ef3b0f
bdk: max17050: simplify calculations
...
And make current readings a tiny bit (±0.16%) more accurate.
2026-03-27 09:58:48 +01:00
CTCaer
18a3dd6374
nyx: add joycon charging debug info
2026-03-27 09:58:48 +01:00
CTCaer
8a25c8294f
minerva: update rate_from if clock the same
2026-03-27 09:58:48 +01:00
CTCaer
9ef684037b
bdk: max17050: remove unused cached batt voltage
2026-03-27 09:58:48 +01:00
CTCaer
19279fa57d
bdk: joycon: improve charger config
...
Utilize charger config set command which allows for supplement mode.
Additionally, remove ping config when SIO and parse buttons/sticks on subcmd reports.
2026-03-27 09:58:48 +01:00
CTCaer
0edd5295d6
fatfs: set default date to 1/1/2026
2026-03-27 09:58:48 +01:00
CTCaer
992245f044
l4t: make mselect config common for t210/t210b01
...
It's already handled in soc powerdown exit in ATF but it doesn't hurt to have it generally.
2026-03-27 09:57:59 +01:00
CTCaer
2004b38f41
bdk: ccplex: do not disable mselect on cpu pwrgate
2026-03-27 09:57:59 +01:00
CTCaer
64a4f9db16
hekate/nyx: remove last calloc references
2026-03-27 09:57:59 +01:00
CTCaer
8220466523
bdk: heap: add more safe guards
...
- Use magic for used regions
- Deduplicate calloc
Enable a print/abort in _heap_free() for debugging.
2026-03-27 09:57:59 +01:00
CTCaer
d379a17444
bdk: display: improve and deduplicate more
...
- Add delay after a DSI soft reset
- Remove more duplicated configs
- Improve code to save code size
- Improve comments
- Do not allow display_backlight to be used with OLED
2026-03-27 09:57:59 +01:00
CTCaer
db4c6a0b69
bdk: util: use volatile base for reg_write_array
2026-03-27 09:57:59 +01:00
CTCaer
8b86bf3808
bdk: display: use a scratch reg for backlight
...
Spare registers normally have hidden hw config usage, so avoid them just in case.
2026-03-27 09:57:59 +01:00
CTCaer
46fa18be89
bdk: display: simplify macros
...
Expand register index in parent macro and remove _DI/_DSIREG macros.
2026-03-27 09:57:59 +01:00
CTCaer
c17881f2c3
bdk: display: use spare reg to store dcs bl duty
...
And also remove backlight pwm restoring from coreboot hw deinit path.
2026-03-27 09:57:59 +01:00
CTCaer
c907d143b7
bdk: fatfs: improve fat read/write
...
- Convert access from min cluster size to block size
Also allow read/writes to less than cluster size
- In case of intercluster access throw an error
- Do not error on zero size
On reads buffer still needs to be block (instead of cluster) aligned.
On writes, buffer still needs to be readable out of bounds.
2026-03-27 09:57:59 +01:00
CTCaer
a8db6470ea
nyx: info: update 20nm wafer bounds
2026-03-27 09:57:59 +01:00
CTCaer
e50a7c8bfd
nyx: info: unlocked T210B01 fuses dumping support
2026-03-27 09:57:59 +01:00
CTCaer
ffc0aa2c3d
bdk: fuse: return array size with fuse_read_array
2026-03-27 09:57:23 +01:00
CTCaer
bb20eabea2
nyx: parted: remove invisible btns in eMMC mode
2026-03-27 09:57:23 +01:00
CTCaer
330b463110
nyx: add a small stall in lvgl loop
...
EMC CC should not run in less than 20us.
2026-03-27 09:56:31 +01:00
CTCaer
4af99c9f78
hos/l4t: deduplicate sc7exit-b01 load
...
And remove obsolete MWS (L4T one deprecated it 3 years ago).
2026-03-27 09:56:31 +01:00
CTCaer
4c2f8f14dc
hos: reflect minerva changes
2026-03-27 09:55:59 +01:00
CTCaer
fd8c2ef56d
lp0 cfg: use a more appropriate entry name
2026-03-27 09:55:12 +01:00
CTCaer
6b66b7f079
minerva: update tov1.6_T210/v0.1_T21X
...
T21X v0.1:
- Add IRB/no table support
T210 v1.6/Common:
- Add a proper table for 8GB T210 config instead of editing a 4GB one
- Increase timeout to 2ms
- Generally improve checks and guard against unknown SoCs/SKUs
- Remove the long ago obsolete OVERCLOCK_FREQ/OVERCLOCK_VOLTAGE ifdefs
2026-03-27 09:55:12 +01:00
CTCaer
76922b7b87
bdk: minerva: add IRB support
...
Aka no table support.
2026-03-27 09:55:12 +01:00
CTCaer
2bc4000acc
hekate: gfx: correct a very very very old typo
2026-03-27 09:55:12 +01:00
CTCaer
892dba3a71
hekate: exo: simplify fatal screen to save space
...
And remove an obsolete message.
2026-03-27 09:55:12 +01:00
CTCaer
851bf05841
hekate: remove precise free clusters calc in TUI
2026-03-27 09:55:12 +01:00
CTCaer
03cb1aac29
bdk: clock: update some defines
2026-03-27 09:54:06 +01:00
CTCaer
61cb77a016
bdk: sdmmc: add defines for max block number
2026-03-27 09:54:06 +01:00
CTCaer
facd5c9ae9
Bump hekate to v6.4.2 and Nyx to v1.8.2
2026-03-27 09:53:33 +01:00
CTCaer
5c04530bfc
nyx: options: add month/date checks for roller
...
Now the roller will return back automatically if day can't be set for selected month.
Additionally, fix the check when saving.
2026-03-27 09:53:33 +01:00
CTCaer
ef5033fb0e
nyx: info: add wafer graph with die x/y placement
2026-03-27 09:53:33 +01:00
CTCaer
952a7e8aa2
nyx: info: streamline hw info from fuses
...
- Compact and group relevant values together
- Use actual value name instead of register name where possible
- Fix LOT code masking
- Fully parse and show LOT code (it's the same marking on die)
- Correct X coordinate parsing (9bit 2s complement)
- Add product code
2026-03-27 09:53:33 +01:00
CTCaer
4430833d28
hekate: write rsvd cfg to update.bin if different
2026-03-27 09:53:33 +01:00
CTCaer
3af536f954
nyx: do init always with lowest clock boost
2026-03-27 09:52:34 +01:00
CTCaer
5bc98c4b19
nyx: fix bt pairing dumping
2026-03-27 09:52:34 +01:00
CTCaer
2b353c1336
nyx: info: add forced 8GB ram info
2026-03-27 09:52:34 +01:00
CTCaer
32c374aff5
hekate: show errors before parsing R2C
2026-03-27 09:52:34 +01:00
CTCaer
1af22f6c45
hekate: add force 8GB ram config mode
2026-03-27 09:52:34 +01:00
CTCaer
4b796ab63f
loader/hekate/nyx: utilize the new rsvd cfg
2026-03-27 09:52:34 +01:00
CTCaer
8d525a3c50
bdk: add reserved cfg to ipl meta and nyx storage
2026-03-27 09:51:47 +01:00
CTCaer
ef0ab0b0f1
bdk: sdmmc: correct drive ohms comment
2026-03-27 09:51:47 +01:00
CTCaer
7b7906efc2
bdk: clock: add i2c to the errata affected list
2026-03-27 09:51:47 +01:00
CTCaer
e29d139946
bdk: fuse: allow overriding dram id fuses
...
This should be set before running sdram init.
fuse_read_dramid(true) will still return the real id.
2026-03-27 09:51:47 +01:00
CTCaer
cfcbb62768
hekate/nyx: use minerva storage and panel id
2026-03-27 09:51:47 +01:00
CTCaer
b862311c0c
bdl: minerva: add deinit function
...
Removes dependency to Nyx storage for hw init too.
2026-03-27 09:51:46 +01:00
CTCaer
11b49e3bbc
bdk: nyx: rename disp_id to panel_id
2026-03-27 09:51:46 +01:00
CTCaer
ac245a0b6f
bdk: minerva: remove dependency to Nyx storage
...
minerva_str_t must be used now and passed directly to minerva_init.
2026-03-27 09:51:46 +01:00
CTCaer
c0300b1cee
bdk: display: remove dependency to Nyx storage
...
display_get_verbose_panel_id should now be used to get the full panel id.
2026-03-27 09:51:46 +01:00
CTCaer
1eaa801d6a
bdk: bpmp: add write commits
...
And deduplicate bpmp_clk_rate_relaxed in bpmp_clk_rate_set.
2026-03-27 09:51:46 +01:00
CTCaer
25359b23b9
bdk: clock: add sdmmc1 to the errata affected list
2026-03-27 09:51:46 +01:00
CTCaer
db08514ff0
bdk: clock: allow pll lock wait to timeout
...
Also enable PLLC4 p/f lock and reduce time waiting before disabling.
2026-03-27 09:51:46 +01:00
CTCaer
877e2c7c2e
bdk: clock: improve PLLC init
...
- Use 6 as divm and div1 for OUT1 to avoid having very high frequency on OUT0
There seems to be an undocumented silicon errata where PLLC OUT0 produces EMI
to input mux logic in modules, even when not using it.
- Always check if PLL is enabled and disable first in order to avoid a silicon
errata with hybrid PLLs
- Fix PLLC_FLL_LD_MEM value
2026-03-27 09:51:46 +01:00
CTCaer
fa2d7854d3
bdk: clock: streamline sdmmc func naming
...
Additionally, restored the pclock variable because of _clock_sdmmc_config_clock_host store order.
2026-03-27 09:51:46 +01:00
CTCaer
ac0d98ad29
bdk: clock: use SET/CLR registers for all modules
...
This is not mandatory but removes unnecessary load-mask/or-stores.
On the other hand, due to an undocumented T210 silicon errata,
these are mandatory for SDMMC modules.
This is because a fraction of T210 chips can glitch out and cause SoC hang.
T210B01 is not affected.
2026-03-27 09:51:46 +01:00
CTCaer
9b216efddf
Bump hekate to v6.4.1 and Nyx to v1.8.1
2026-03-27 09:49:29 +01:00
CTCaer
911b170b4d
nyx: info: add hos version for 22 fuses burnt
2026-03-27 09:49:29 +01:00
CTCaer
c026b1db3d
hos: fix 21.0.0 nogc FS patch and refactor patches
...
The NOGC sdmmc memio patch was incorrectly changing the register that keeps the value for HOS 21.0.0.
Refactored all patches to stop patching the whole op and just change the value from 0x200 to 0x400.
2026-03-27 09:49:29 +01:00
CTCaer
dc1ad1a5a7
Bump hekate to v6.4.0 and Nyx to v1.8.0
2026-03-27 09:49:29 +01:00
CTCaer
36aa1b21ad
nyx: parted: do not allow FULL on upgraded eMMC
...
It's not allowed on creation anyway because of unknown HOS USER size factors
2026-03-27 09:49:29 +01:00
CTCaer
10521a32d3
hos: add 21.0.0 support
2026-03-27 09:48:54 +01:00
CTCaer
82a97aae53
nyx: extend bpmpclock
...
Add 2 more slower modes.
2026-03-27 09:48:54 +01:00
CTCaer
a365af0492
bdk: bpmp: add binX clock defines
2026-03-27 09:48:54 +01:00
CTCaer
28dce16877
bdk: fuse: add sense function
2026-03-27 09:48:54 +01:00
CTCaer
f541f14699
bdk: fuse: add extra info on regs
2026-03-27 09:48:54 +01:00
CTCaer
518cfd401a
bdk: fuse: correct masking on array read cmd
2026-03-27 09:48:54 +01:00
CTCaer
44dd00c29a
bdk: t210: add mc channel macros
2026-03-27 09:48:54 +01:00
CTCaer
0fa5db1d74
bdk: emc/mc: don't use [io]_rsvd naming for unused regs
2026-03-27 09:48:53 +01:00
CTCaer
76d5cf591f
bdk: lvgl: make sure task has a task to call
2026-03-27 09:48:53 +01:00
CTCaer
daf832971e
nyx: part: extend Fix Hybrid MBR/GPT functionality
...
- Allow invalid/out-of-bounds and empty partitions to be removed from GPT
- Add fix for wrong emuMMC offset because of older bugged Android Dynamic scheme
2026-03-27 09:48:53 +01:00
CTCaer
3c260b1918
nyx: info: update SD errors after a bench session
2026-03-27 09:48:07 +01:00
CTCaer
6b4b20e0ac
nyx: info: say when sbk fuses can't be read
...
Additionally, swap the IDDQ real with raw values.
2026-03-27 09:48:07 +01:00
CTCaer
0468877136
nyx: fix a mem leak on closing emummc change win
2026-03-27 09:48:07 +01:00
CTCaer
fba05d4e7a
nyx: part: add support for max 24GB resized emuMMC
...
If a partition is added manually, 28GB is the max allowed to be created.
2026-03-27 09:46:51 +01:00
CTCaer
b70fcb77e2
Update template with ;/# and newline info
2026-03-27 09:44:58 +01:00
CTCaer
5437f9ce2c
nyx: backup/restore UX improvements
...
- Fix the verification % and bar if restored backup is smaller than partition
- Use orange bar for restoring when writing to eMMC/emuMMC.
- Fix bar color on restoring after verification
- Allow verification to be aborted for all parts in partial mode (FAT32 or small card)
2026-03-27 09:44:58 +01:00
CTCaer
87e3ddadf7
nyx: part mgr: remove gpt 126 entries check
...
It's done before to validate GPT anyway
2026-03-27 09:44:58 +01:00
CTCaer
8b7777f25b
minerva: update to v1.5
...
- "Perf" hack removal (match L4T mini Minerva)
It's not a performance hack, it just kills low power modes.
If wanted in L4T, use HP Mode in `ram_oc_opt`.
- Simplify of burst regs config
- Refactor of several bit defines and variables
2026-03-27 09:44:07 +01:00
CTCaer
b0ec8a1e64
l4t: add some missing carveout configs
...
Mostly relevant for CARVEOUT_NVDEC_TSEC_ENABLE.
2026-03-27 09:44:07 +01:00
CTCaer
67157b1867
bdk: ini: switch back to ASCII ordering
...
For combining multiple inis.
2026-03-27 09:44:07 +01:00
CTCaer
23ac454b1d
hekate: use the new dirlist
2026-03-27 09:44:07 +01:00
CTCaer
af72bb5b94
bdk: dirlist: use flags instead of arguments
...
A new flag was also added that forces an ASCII ordering instead of Alphabetical one.
2026-03-27 09:44:07 +01:00
CTCaer
e19cf3038b
bdk: minerva: allow sdmmc la to be skipped on L4T
2026-03-27 09:44:07 +01:00
CTCaer
b52f5edce6
bdk: hwinit: refactor MBIST WAR & add description
...
The biggest take here is that the split approach of having it in Bootrom and
Bootloader is that it's only for boot. Any later powerdown must rerun the WAR
for that particular power domain.
2026-03-27 09:44:07 +01:00
CTCaer
393d135105
bdk: hwinit: fix RAM_SVOP_PDP try no 2
...
Previously the correct reg name was used but register address was not fixed.
So finally fix it.
2026-03-27 09:44:07 +01:00
CTCaer
6cc3aee389
bdk: storage: small mmc refactoring
...
- Correct some Response Type names
- And use _def for mmc defines similarly to sd_def
2026-03-27 09:44:07 +01:00
CTCaer
7b4b26bb38
hos: use the renamed mc carveout function
2026-03-27 09:44:07 +01:00
CTCaer
030576ff3f
bdk: mc: carveouts are not set by cfg so fix them
...
For HOS <= 3.0.2 the carveouts are set by bootloader and sdram config actually does not set them.
So add which need different value from reset and also make sure that data is flushed for WPR config.
2026-03-27 09:44:07 +01:00
CTCaer
44e4c0ab21
bdk: make use of new MC/EMC defines
2026-03-27 09:44:07 +01:00
CTCaer
f45adfd92f
bdk: rework MC/EMC register defines from scratch
...
And add register structs also.
2026-03-27 09:44:06 +01:00
CTCaer
2fda4115aa
bdk: add some t210 and fuses defines
...
PGUP tag register can be used to identify which cpu we are running on.
2026-03-27 09:44:06 +01:00
CTCaer
d289224653
bdk: clock: simplify logic
...
Simplify logic for clock enable and sdmmc clock management
2026-03-27 09:44:06 +01:00
CTCaer
0647fd06d8
bdk: clock: remove non existent module ids
...
And add comments to special handling ones
2026-03-27 09:44:06 +01:00
CTCaer
d33ded5f6d
bdk: pmc: rename pmc_enable_partition
2026-03-27 09:44:06 +01:00
CTCaer
d0cb4f54a5
Update readme with timeoffset and timedst
2026-03-27 09:44:06 +01:00
CTCaer
b70932cfaa
bdk: clock: wait for PLLD to lock when set
2026-03-27 09:44:06 +01:00
CTCaer
1cf9cdc390
hekate: reorder some checks & add load nyx in TUI
2026-03-27 09:44:06 +01:00
CTCaer
a532353682
hos: simplify warmboot pa id calculation
2026-03-27 09:43:28 +01:00
CTCaer
3c02710192
hos: add NX BIT/BC structures and utilize them
...
These are used to communicate between bootloader stages and pass config.
The NX Boot Config is now passed as is from PKG2 partition.
2026-03-27 09:43:28 +01:00
CTCaer
b91ee67521
nyx: tools: correct the backup tool description
2026-03-27 09:43:28 +01:00
CTCaer
961acef306
hos: simple refactor of defines
2026-03-27 09:43:28 +01:00
CTCaer
86a70c3431
nyx: boost dump pkg1/2 functionality
...
The tool can now dump main and safe pkg1/2.
Additionally, it can identify if FS is exfat or not and set the proper filename.
(FAT32 only FS will still use FS.kip1)
Lastly, this will also dump and decrypt the main/safe BCT structures.
2026-03-27 09:43:28 +01:00
CTCaer
8bb483f20a
hos: refactor keyblob to eks and kb to mkey
...
Use the official name for keyblob which is EKS.
For that reason the keyblob version enum is renamed to master key version.
2026-03-27 09:42:41 +01:00
CTCaer
c83bd247dd
bdk: add tegra BCT/BIT headers for T210/T210B01
2026-03-27 09:42:41 +01:00
CTCaer
e484986c8f
nyx: do communication checks in battery info
...
If communication with an IC fails, an error will show up.
2026-03-27 09:42:41 +01:00
CTCaer
ba9863cca7
nyx: show warning colors if sd vendor is fake
2026-03-27 09:42:41 +01:00
CTCaer
760c93e92f
config: utilize devmode variable
...
This holds the NX hw state.
2026-03-27 09:42:40 +01:00
CTCaer
48b2f20c88
config: move externs into header
2026-03-27 09:41:57 +01:00
CTCaer
d13088f177
nyx: deduplicate jc bt pairing dumping
2026-03-27 09:41:57 +01:00
CTCaer
f6a32b538f
nyx: invalidate time and add dst support
...
The invalidation is needed for dst to work as we don't know when user
set the clock.
2026-03-27 09:41:57 +01:00
CTCaer
3874b025a9
bdk: rtc: add auto dst support and fix an off-by-one
2026-03-27 09:41:57 +01:00
CTCaer
dd3b7d3ceb
nyx: part mgr: add eMMC partition manager
...
The eMMC partition manager allows user the following:
- Resize HOS USER partition
- Add and flash Linux partitions
- Add and flash Android partitions
It is hidden and is accessible by holding the `Partition SD Card` button for
5 seconds.
2026-03-27 09:41:57 +01:00
CTCaer
a2d35fb90e
nyx: simplify HOS bis key validation and export it
2026-03-27 09:30:05 +01:00
CTCaer
cca4f4c1fa
nyx: fix resized emummc backup GPT
...
Additionally, fix resized emuMMC GPT partition size
2026-03-27 09:25:40 +01:00
CTCaer
0d3df99f76
nyx: part mgr: fix 64GB emuMMC size
...
Fix size so the emuMMC data can be aligned properly.
2026-03-27 09:23:37 +01:00
CTCaer
93e3aa7830
nyx: part mgr: fix android super partition size
...
The size was incorrectly set before and it would cause unalignment of later partitions.
2026-03-27 09:22:49 +01:00
CTCaer
86bb96e01a
nyx: part mgr: only copy metadata in mbr if they exist
2026-03-27 09:18:28 +01:00
CTCaer
9158036902
nyx: part mgr: improve layout
2026-03-27 09:11:32 +01:00
CTCaer
64a754509e
nyx: use correct warning for emummc backup/restore
2026-03-27 09:10:44 +01:00
CTCaer
c3e971eb5b
nyx: part mgr: use globals for storage and minsize
...
Allow setting these dynamically depending on application.
2026-03-27 09:10:44 +01:00
CTCaer
91caf7822f
nyx: part mgr: disable next step if already done
2026-03-27 09:09:52 +01:00
CTCaer
b22b90e55e
nyx: part manager: use u16 for names
...
Simplify logic and have readable partition names.
2026-03-27 09:08:48 +01:00
CTCaer
26d8faa502
bdk: lvgl: set long press to 5s
2026-03-27 09:07:45 +01:00
CTCaer
e66ab207d9
bdk: fatfs: optimize format and fix PrFILE2 SAFE
...
The FAT tables are now always aligned 1MB which can increase the FAT traversing
speed. Additionally, always aligning the FAT tables to minimum 16KB fixes a case
where PrFILE2 SAFE could be disabled because of unaligned FAT.
2026-03-27 09:07:45 +01:00
CTCaer
baea3b0265
bdk: use f_unmount instead of null f_mount
2026-03-27 09:07:45 +01:00
CTCaer
380c1dc9b2
bdk: refactor several comments and defines
2026-03-27 09:05:58 +01:00
CTCaer
1ee9a9cd64
bdk: update memory map to increase ramdisk size
...
From 1040 to 1280MB.
2026-03-27 09:05:58 +01:00
CTCaer
528e1fb0a4
bdk: usb: revamp hid logic
...
- Add support for GET REPORT. Allows OS to get a single input report.
- Add support for SET_IDLE. Allows OS to control when to send input reports
The SET IDLE and the underlying logic change fixes several things:
- The old issue of congestion in some systems.
- The new bug that would not allow setup packets to be received because mode
was set to only send when there are changes.
- Now this starts properly as the old code but allows to be changed by OS on
demand, while continuing servicing setup packets.
2026-03-27 09:05:58 +01:00
CTCaer
077986cb47
bdk: usb: small refactor
2026-03-27 09:05:58 +01:00
CTCaer
ec84a58dcc
bdk: usb: remove unused endpoint from hid
2026-03-27 09:05:58 +01:00
CTCaer
51c1e31134
bdk: max17050: add version check
2026-03-27 09:05:58 +01:00
CTCaer
95af92d912
bdk: bq24193: add version check
2026-03-27 09:05:58 +01:00
CTCaer
a028568349
bdk: bm92t: add version check
2026-03-27 09:05:58 +01:00
CTCaer
fbaa88cc31
bdk: smmu: add smmu disable
2026-03-27 09:05:58 +01:00
CTCaer
1e870bcef4
bdk: display: update comments
...
And also set WinD reg updating to HSYNC
2026-03-27 09:05:58 +01:00
CTCaer
2d91e9b549
bdk: clock: refactor common PLL defines
2026-03-27 09:05:58 +01:00
Christoph Baumann
e2968c69dc
fix button map styling
2025-10-10 22:28:41 +02:00
Christoph Baumann
bc42579f01
boot_storage_mount: only deinitialize storage, if it wasnt initialized to begin with
2025-10-09 12:36:35 +02:00
Christoph Baumann
335b8b9a94
ensure sd/emmc get disabled
2025-09-12 23:08:38 +02:00
Christoph Baumann
e1e2366684
make sure both sd and emmc are deinitialized
2025-06-20 18:15:38 +02:00
CTCaer
b0690a7280
Bump hekate to v6.3.1
2025-06-14 18:52:51 +02:00
CTCaer
7f0835a548
hos: bail if requested emummc patch is not applied
2025-06-14 18:52:43 +02:00
CTCaer
5704004bc8
hos: 20.1.0 FS support
2025-06-14 18:52:33 +02:00
Christoph Baumann
c7e1f5c09f
fix emmc end
2025-05-25 15:30:33 +02:00
Christoph Baumann
50170f7cf2
set legacy bootable flag on fat partition if android or l4t is enabled
2025-05-23 18:06:06 +02:00
Christoph Baumann
52dba9a5a5
use correct storage when checking if can flash android
2025-05-23 18:05:27 +02:00
Christoph Baumann
db519a454b
fix partition set
2025-05-22 18:42:48 +02:00
Christoph Baumann
f8436d1247
fix mem_mode_auto config
2025-05-22 18:42:33 +02:00
Christoph Baumann
6340881f59
disable console
2025-05-21 23:04:33 +02:00
Christoph Baumann
8405a86937
make sure same fs version is set for emusd and emummc config
2025-05-21 20:32:34 +02:00
Christoph Baumann
a3f5e33625
init sd card when emusd inactive
2025-05-21 16:52:33 +02:00
Christoph Baumann
cfc2febc1b
dont unmute console
2025-05-21 16:52:16 +02:00
Christoph Baumann
d6fda80057
remove prints, fix backup/restore
2025-05-21 12:31:17 +02:00
Christoph Baumann
37c8874930
add option to determine memory mode from physical memory
2025-05-21 01:17:44 +02:00
Christoph Baumann
37a016122c
fix message
2025-05-21 00:04:44 +02:00
Christoph Baumann
9b95d026f3
support for file based and sd partition based emusd
2025-05-20 00:40:48 +02:00
Christoph Baumann
865b9dc1a4
Change some messages and other stuff
2025-05-19 01:27:30 +02:00
Christoph Baumann
7ebceb78bd
add emusd.c
2025-05-14 02:51:21 +02:00
Christoph Baumann
154ed594fc
Support for hekate to boot hos with emusd/emmc base emummc
2025-05-14 02:24:33 +02:00
Christoph Baumann
af39c76b3a
Fix size partition indicators
2025-05-13 18:06:32 +02:00
Christoph Baumann
657b895aaf
Fix Android partition size slider range
2025-05-13 17:02:36 +02:00
Christoph Baumann
52a1e0ba67
Correct android reserved size
2025-05-13 16:28:12 +02:00
CTCaer
f3b104e234
Bump hekate to v6.3.0 and Nyx to v1.7.0
2025-05-13 16:27:57 +02:00
CTCaer
a5a2235b9d
Update readme
...
Add sys/l4t folder description, simplify some wording and also add `sld_type` key.
2025-05-13 16:27:52 +02:00
CTCaer
4c58708253
l4t: use strtol for sld_type
2025-05-13 16:27:49 +02:00
CTCaer
cbac787cff
Change several makefile prints
...
Silence some, fix newline to others.
2025-05-13 16:27:44 +02:00
CTCaer
082490deda
hos: add 20.0.0 support
2025-05-13 16:27:36 +02:00
CTCaer
72b0f42514
nyx: info: move sd FAT info after showing errors
2025-05-13 16:27:25 +02:00
CTCaer
8978ba9e54
bdk: mc: fix warning for arbiter check
2025-05-13 16:27:15 +02:00
CTCaer
74833e19e7
bdk: se: heap is not used anymore
2025-05-13 16:27:09 +02:00
CTCaer
d5d0f79c38
bdk: als: no need to check above 255 with u8
2025-05-13 16:27:04 +02:00
CTCaer
7927cfe818
pkg3: actually skip if instructed
2025-05-13 16:26:52 +02:00
CTCaer
a1f48e858e
Add readme info about pkg3kip1skip
2025-05-13 16:26:42 +02:00
CTCaer
fa561b70a4
Enable type limits warning
2025-05-13 16:26:32 +02:00
CTCaer
567f0f66e1
hos: secmon exo: always set private debug mode
...
It should always be enabled for CFW mode.
2025-05-13 16:26:23 +02:00
CTCaer
b798dd1ef6
hos: secmon exo: fix system_settings.ini parsing
...
A previous change guarded the setting with exosphere.ini parsing succeeding.
Correct this, so it always gets parsed.
2025-05-13 16:26:01 +02:00
CTCaer
c91cf80f8b
nyx: switch to IRAM for stack
2025-05-13 16:25:43 +02:00
CTCaer
dca5df653b
nyx: update some messaging
2025-05-13 16:25:33 +02:00
CTCaer
db08fab876
nyx: update clock min year and about to 2025
2025-05-13 16:25:14 +02:00
CTCaer
9adca44fe4
nyx: use the now exported window custom action
2025-05-13 16:20:52 +02:00
CTCaer
c202b4afb1
nyx: emummc: guard for pointer arithmetics
...
And also explain what type of backup fails on errors.
2025-05-13 16:19:14 +02:00
CTCaer
814ef14f2d
hos: add package3 kip skip option
...
By using `pkg3kip1skip`, any kip internal name that fully matches will be skipped from being loaded and the stock one will be used.
Multiple can be set by setting more lines with it or by using a comma separator.
Only for advanced users.
2025-05-13 16:18:29 +02:00
CTCaer
eaedec7b6e
hos: refactor fss to pkg3
...
To `fss0` config is now renamed to `pkg3`.
`fss0` still works but is deprecated.
Additionally `fss0experimental` key is now renamed to `pkg3ex`
2025-05-13 16:18:10 +02:00
CTCaer
e8addedd2f
bdk: se: add 0 byte sha256 support
2025-05-13 16:17:40 +02:00
CTCaer
3c6bb75267
bdk: small refactoring
2025-05-13 16:17:31 +02:00
CTCaer
169c551445
bdk: display: update color mode definitions
2025-05-13 16:17:18 +02:00
CTCaer
7dad628dfc
hos: update some comments
...
And remove unneeded checks.
2025-05-13 16:17:10 +02:00
CTCaer
8ba90ae55f
nyx: info: consider FST2 touch panel unknown
2025-05-13 16:16:58 +02:00
CTCaer
fe61c1a374
nyx: info: validate A2 support
...
Show info about A2 support.
Color coded A2 list:
White: No support
Green: Fully supported
Yellow: CMDQ/Cache needs a quirk
Red: Broken
2025-05-13 16:16:53 +02:00
CTCaer
3412714402
bdk: sdmmc: add extention regs read/parse
2025-05-13 16:16:45 +02:00
CTCaer
2b0591e2b0
bdk: utils: added qsort compare functions
...
int qsort_compare_int(const void *a, const void *b);
int qsort_compare_char(const void *a, const void *b);
int qsort_compare_char_case(const void *a, const void *b);
2025-05-13 16:16:30 +02:00
CTCaer
03b30a23c4
nyx: info: fully update sdmmc benchmark
...
- Changed to relevant A2 spec testing sizes
- Added 95th and 5th percentile IOPS for random test
Standard numbers in the industry and also helps with pinpointing latency issues
- Size of info and benchmark adjusted so important info underneath is still showing
- Refactored
2025-05-13 16:16:24 +02:00
CTCaer
4f0bba605f
nyx: info: use a more advanced ram detection
2025-05-13 16:15:51 +02:00
CTCaer
4cfbef5062
nyx: info: use custom action for hw info window
2025-05-13 16:15:35 +02:00
CTCaer
02281fccf1
fatfs: set default year to 2025
2025-05-13 16:14:54 +02:00
CTCaer
84078e5469
l4t: allow SLD type to be changed or disabled
2025-05-13 16:14:28 +02:00
CTCaer
805686105d
l4t: remove unchanged carveout config clear
...
Also allow wrong dram types to be mapped for T210B01.
The default table used is 0.
2025-05-13 16:14:11 +02:00
CTCaer
eacb4f2844
pkg2: fix ini size when not using mesosphere
...
Important in case the same ini1 space is used and stock kernel is new.
Additionally, also set the hash for the 3rd section, even if empty.
2025-05-13 16:13:49 +02:00
CTCaer
c8da71229a
hos: config: exit the loop after matching cfg key
2025-05-13 16:13:06 +02:00
CTCaer
1a157a33f6
hos: rename atmosphere key to kernelprocid
...
So it reflects what it does.
2025-05-13 16:12:46 +02:00
CTCaer
f093c9368b
hos: small refactor
...
Also exiting hos_launch is considered always an error.
2025-05-13 16:12:10 +02:00
CTCaer
9a755b895b
bdk: dirlist: switch to alphabetical ordering
2025-05-13 16:11:20 +02:00
CTCaer
4c4a63795e
bdk: sdmmc: refactor error checking on rw
...
And also check if card status is ok after a read/write.
2025-05-13 16:11:13 +02:00
CTCaer
04dc8d2a86
bdk: sdmmc: check that cmd timed out if SDSC
...
Instead of assuming that, check it.
This fix will make SDUC not to be assumed as SDSC.
2025-05-13 16:10:59 +02:00
CTCaer
ed4b638545
bdk: sdmmc: update unstuff_bits to use mod
...
Since unstuff_bits only supports 128bits, instead of subtracting the correct amount of bits with the offset array, use % 128.
2025-05-13 16:10:48 +02:00
CTCaer
a8a67ee775
nyx: info: use renamed sd storage member
2025-05-13 16:10:27 +02:00
CTCaer
1e54d538fd
bdk: sdmmc: small refactor
2025-05-13 16:10:13 +02:00
CTCaer
20487cb8b9
bdk: sdmmc: check for out bounds access
2025-05-13 16:09:06 +02:00
CTCaer
8bc14f1043
bdk: ff: check for cltbl malloc success
2025-05-13 16:08:53 +02:00
CTCaer
c8acea7ad5
bdk: se: remove malloc usage
2025-05-13 16:08:42 +02:00
CTCaer
3ea4fd81f7
bdk: display: remove malloc usage
2025-05-13 16:08:21 +02:00
Christoph Baumann
76508c74e8
file based emmc emummc, some other stuff
2025-05-12 01:24:01 +02:00
Christoph Baumann
79b6df64d6
fix emummc status
2025-05-08 01:52:05 +02:00
Christoph Baumann
0a7a004839
file based emummc on emmc
2025-05-08 01:48:04 +02:00
Christoph Baumann
7521055bec
fix name
2025-05-07 17:29:04 +02:00
Christoph Baumann
39d99a77fe
remove debug prtint
2025-05-07 17:28:56 +02:00
Christoph Baumann
b0f0e9be47
get actual size of file based emummc instead of reading from gpt
2025-05-07 17:28:47 +02:00
Christoph Baumann
55a4a814e0
fix emummc ums writes
2025-05-07 17:28:11 +02:00
Christoph Baumann
4bfe1fe2cd
add missing fsync
2025-05-07 17:27:58 +02:00
Christoph Baumann
6d09e65d85
fix emummc bis
2025-05-07 16:46:48 +02:00
Christoph Baumann
59a173c994
add support for emummc ums, this is terrible plz fix
2025-05-07 16:46:36 +02:00
Christoph Baumann
e5ceb4a2de
add mmc types for emummc, used only for emummc ums
2025-05-07 16:45:26 +02:00
Christoph Baumann
ea3dae672e
allow configuring size for file based emummc
2025-05-07 16:44:51 +02:00
Christoph Baumann
2af1cc0b8c
ums support for file based emummc
2025-05-07 16:42:57 +02:00
Christoph Baumann
942e7defe3
add methods to access file based emummc
2025-05-07 16:42:36 +02:00
Christoph Baumann
39b74dd50d
file based bis support
2025-05-07 12:17:13 +02:00
Christoph Baumann
bbe8ddaf66
ask to resize, if emu partition is larger than required
2025-05-06 17:40:53 +02:00
Christoph Baumann
47e030c7fc
fix boot drive name
2025-05-06 12:58:44 +02:00
Christoph Baumann
4a127db80b
add emusd ums
2025-05-06 12:57:40 +02:00
Christoph Baumann
241b0f2274
.
2025-05-06 12:37:46 +02:00
Christoph Baumann
ba6073610c
support for android emmc
2025-05-02 17:08:49 +02:00
Christoph Baumann
70cb99cd0c
add symbol to boot storage ums
2025-05-02 17:08:16 +02:00
Christoph Baumann
7941a3d4d6
fix boot storage selection
2025-05-02 17:07:42 +02:00
Christoph Baumann
1ddf9690b1
l4t flashing for emmc
2025-05-02 11:38:44 +02:00
Christoph Baumann
f4d8ee4efc
fix ums storage after partitioning
2025-05-02 11:15:52 +02:00
Christoph Baumann
4f72660603
fuck
2025-05-02 01:43:51 +02:00
Christoph Baumann
2440318cb5
emmc bis storage
2025-04-30 11:29:06 +02:00
Christoph Baumann
61e91f79c1
emmc partitioning mostly fixed
2025-04-30 01:36:55 +02:00
Christoph Baumann
bad8566c58
account for 1mb for backup gpt
2025-04-29 12:48:44 +02:00
Christoph Baumann
28796b417b
fix indicators, add emmc_mount, various fixes
2025-04-29 12:36:32 +02:00
Christoph Baumann
31c8ad0d88
add drive to access an area on emmc/sd as disk
2025-04-27 01:05:09 +02:00
Christoph Baumann
0be3fd4f64
only show remaining bar when it has non negligible size
2025-04-26 23:42:37 +02:00
Christoph Baumann
3e9def3608
Add emuSD to partition manager, finer emuMMC partition size control, allow double android
2025-04-26 23:37:45 +02:00
Christoph Baumann
678ce79a54
emmc partition layout selection, adjusted emummc partition size steps
2025-04-26 02:34:43 +02:00
Christoph Baumann
b11e8095ed
.
2025-04-25 15:29:22 +02:00
Christoph Baumann
849d533200
UMS: check if successfully initialized, don't care about fat mounted
2025-04-24 18:29:24 +02:00
Christoph Baumann
337f219ac6
Support for NYX to load from BOOT1/GPP/SD in that order, UMS option to mount whatever volume is selected as boot storage
2025-04-24 12:06:15 +02:00
Christoph Baumann
4e9e21b3b1
move boot_storage.h/.c to bdk/storage, check result of ensure_partition
2025-04-22 14:25:14 +02:00
Christoph Baumann
fe5e4dc40a
use enum for drive numbers
2025-04-22 14:15:45 +02:00
Christoph Baumann
5798dcde0d
Add support for reading boot files from FAT partition on BOOT1/GPP/SD in that order
...
Emummc config is read from boot partition, file based files still read from SD
2025-04-22 13:42:20 +02:00
Christoph Baumann
9d2ec42a9f
fatfs: extend gpt support
2025-04-20 19:52:15 +02:00
CTCaer
3250b2e32a
Bump hekate to v6.2.2 and Nyx to v1.6.4
2024-10-12 17:51:00 +03:00
CTCaer
e3eee73318
nyx: do not spam log on partition restore
2024-10-12 17:50:54 +03:00
CTCaer
81fb318f6b
hos: add 19.0.0 support
2024-10-11 13:04:16 +03:00
CTCaer
84f3f7d92a
nyx: add 400us sleep in lv task loop
...
Tiny power save.
2024-10-10 18:28:29 +03:00
CTCaer
788ecb60a3
l4t: bump api to 7
2024-10-10 18:26:19 +03:00
CTCaer
14413ae6bd
bdk: timer: restore rtc timer spinlock
2024-10-10 18:22:03 +03:00
CTCaer
1849ac6667
nyx: optimize battery info
...
- Remove input voltage limit
- Add an extra PD profile
2024-10-10 15:21:32 +03:00
CTCaer
1bec721baf
hos: add missing deinit
2024-10-10 15:21:32 +03:00
CTCaer
6fa844b031
hekate/nyx: use updated dirlist
2024-10-09 15:22:16 +03:00
CTCaer
d2fc6379c6
bdk: utils: improve dirlist
...
Stop doing unnecessary copies during reordering and use pointers for that.
2024-10-09 15:14:44 +03:00
CTCaer
f15af01727
readme: explain what stock basically is even more
2024-10-09 15:10:23 +03:00
CTCaer
69acef4db3
nyx: part manager: change GPT partition colour
...
Since many confuse that on MBR
2024-10-04 22:19:01 +03:00
CTCaer
cdc1012f50
nyx: part manager: add version on android button
...
Check partition scheme for android and add the version on the flash button
2024-10-04 22:18:20 +03:00
CTCaer
63c4bdd7d9
nyx: no need to double check for errors
2024-10-04 22:16:36 +03:00
CTCaer
0e23d0e0fd
nyx: name button list object appropriately
2024-10-04 22:14:51 +03:00
CTCaer
9463f8aa7d
nyx: fix memleak when 10 launcher items are shown
2024-10-04 22:14:23 +03:00
CTCaer
34f8692f5c
nyx: do not use global cal0 buf name
2024-10-04 22:12:53 +03:00
CTCaer
9da5149394
minerva: correct init done type
2024-10-04 22:11:41 +03:00
CTCaer
75676a78ff
hos: secmon name ini lists properly
2024-10-04 22:10:50 +03:00
CTCaer
66454b934c
hos: no need to double check allocated eks
2024-10-04 22:09:54 +03:00
CTCaer
7b60c3d162
hekate/nyx: constify more args
2024-10-04 22:09:06 +03:00
CTCaer
c422d63b64
hekate: tools: fix menu memleak
2024-10-04 22:04:56 +03:00
CTCaer
0acdefb32a
hekate: info: remove input voltage limit
...
It's a useless metric and in HOS it's used incorrectly.
2024-10-04 22:02:34 +03:00
CTCaer
edf00d8e51
bdk: bpmp: add state set function
...
Some states are controlled via software. So add a function for that.
2024-10-04 21:54:58 +03:00
CTCaer
1a98e3a702
bdk: irq: disable irq if handler error
2024-10-04 21:53:17 +03:00
CTCaer
8bf3bee08b
bdk: uart: fix fifo clear
...
- Do not clear fifo for everything if not needed
- Correct fifo clear checks
2024-10-04 21:52:24 +03:00
CTCaer
f2be59888b
bdk: add irq header to bdk header
2024-10-04 21:48:44 +03:00
CTCaer
5c77601f7a
bdk: ums: always allow finish reply
...
Parse scsi cmd failures are handled internally.
2024-10-04 21:47:26 +03:00
CTCaer
9e239df39e
bdk: constify various args
2024-10-04 21:45:57 +03:00
CTCaer
b1bc6ebdd8
bdk: joycon: utilize packet id per joycon
...
Also fix a possible infinite loop
2024-10-04 21:39:35 +03:00
CTCaer
5c39d04ca2
Bump hekate to v6.2.1 and Nyx to v1.6.3
2024-07-02 19:02:46 +03:00
CTCaer
85cd26e305
l4t: update loader to v6
...
- Move TZ parameters to a static address inside TZDRAM
- Update fw rev for new ARC
- Refactor context and parameters into a single struct
2024-07-02 18:37:15 +03:00
CTCaer
6c601ccaa5
hekate: reinstate charger enable
...
Add back charger enable on boot, inside low battery check.
It will be kept as is since there's the following case that addresses:
OTG mode and shut off will not restore charger mode.
2024-07-02 18:32:16 +03:00
CTCaer
0aea402632
Add rel versioning and adjust accordingly
2024-07-02 18:29:39 +03:00
CTCaer
280ebcc1e6
nyx: refactor hw info to provide more SKU data
2024-07-02 18:06:32 +03:00
CTCaer
106a08f19c
hos: rename function
2024-07-02 18:04:52 +03:00
CTCaer
aacae78420
nyx: partition manager error message improvement
...
Inform user that there's an issue with bootloader folder when a partial backup is done during partitioning.
2024-07-02 18:04:09 +03:00
CTCaer
716cfbfbaf
bdk: sdram: refactor init
2024-07-02 18:02:05 +03:00
CTCaer
e47b6ec19b
bdk: hwinit: display changes
...
Do not display ldo0 if enabled here as it's not needed.
Make sure PLLP_OUTB is properly reset in case of coming out of warmboot.
2024-07-02 17:59:14 +03:00
CTCaer
acb3997a7d
bdk: hwinit: reorder no io power
...
And make sure sdmmc iopower is not enabled after vdd disable.
2024-07-02 17:56:20 +03:00
CTCaer
4c5cc6d567
bdk: display: small refactor
2024-07-02 17:52:12 +03:00
CTCaer
c321d3508c
Bump hekate to v6.2.0 and Nyx to v1.6.2
2024-06-11 12:41:19 +03:00
CTCaer
66303d0d47
hos: reinstate host1x disable
2024-06-11 12:41:13 +03:00
CTCaer
80b3651d0a
nyx: correct touch fw id display
2024-06-11 09:08:33 +03:00
CTCaer
242debfe3e
modules: use echo -e for newline prints
2024-06-11 09:04:21 +03:00
CTCaer
68408bbb79
hos: add 18.1.0 support
2024-06-11 08:59:45 +03:00
CTCaer
cf954b451c
hekate: refactor of main
...
- Remove unused function
- Rename some functions and make them static
- Reorder freeing of menu entries
2024-06-10 16:25:50 +03:00
CTCaer
75a4a8ba1d
bdk: sdmmc: remove higher power limits
...
UHS-I Cards force a max of 1.44W even if higher modes are selected.
This does not change functionality, so remove them as unused.
2024-06-10 13:37:28 +03:00
CTCaer
a37b5c7841
bdk: sdmmc: no need to raise power limit for HS25
2024-06-10 13:24:07 +03:00
CTCaer
48334779a5
bdk: sdmmc: error reporting changes
...
- Correct transfer error message
- Add debug print for deinit
2024-06-08 17:41:11 +03:00
CTCaer
054c68f251
bdk: hwinit: power on all relevant rails
...
Since that doesn't happen via sdram init anymore, do it in hwinit.
It only matters if we came out of warmboot.
2024-06-08 12:21:15 +03:00
CTCaer
655209bedc
bdk: sdram: keep sdmmc1 no iopower state
2024-06-08 12:19:24 +03:00
CTCaer
85eb5489fe
bdk: pmc: rename io/det power defines
2024-06-08 12:16:07 +03:00
CTCaer
11262c2112
nyx: adhere to fan driver changes
2024-06-07 17:15:27 +03:00
CTCaer
8b4f776c9d
bdk: fan: rename functions and add set from temp
...
- Rename functions to proper style (drivername_)
- Add fan_set_from_temp for managing the fan with passed SoC temperature.
2024-06-07 17:14:05 +03:00
CTCaer
a34206df5b
bdk: sdmmc: small changes
...
- Log warning for comp pad calibration timeout
- Rename some func/defines
- Increase SDMMC1 power disable wait to 10ms
No real perceived functionality change.
2024-06-07 17:09:30 +03:00
CTCaer
4a24fe0b35
bdk: display: add useful functions
...
- Window disable
- Window framebuffer address set
- Window framebuffer move to new address
2024-06-06 06:27:30 +03:00
CTCaer
14c482ddce
bdk: display: remove max77620 gpio 7 enable
...
It is actually not used at all.
So do not configure it to save power.
2024-06-05 15:20:27 +03:00
CTCaer
8d49bc3c33
bdk: hwinit: move LDO8 init in regulators init
...
And also reorder it above I2C1 init (because of HOAG).
2024-06-05 01:35:05 +03:00
CTCaer
39c614a3ab
bdk: hwinit: move sd2 to hw init
...
SD2 powers LDO0/1/8 on T210B01 so there's no need to be in display init.
Also there's not need to power it down first so configure it in one go.
2024-06-05 01:33:15 +03:00
CTCaer
7652d9cdb1
bdk: display: use mipi cal sw war on T210 also
...
As per Nvidia, the pad brick separates clock and data terminations.
This necessitates doing the calibration twice.
Nvidia/Nintendo probably never updated that part on T210 since it's from around
2015/2016. T210B01 is based on 2017 codebase so it has it.
HOS (nvservices, not boot) is probably updated to also do that.
If not, then they should fix it.
There are 0 known issue reports with that on T210, but well.
2024-06-05 01:11:04 +03:00
CTCaer
21d782587f
hekate/nyx: adhere to display function renames
2024-06-05 01:03:46 +03:00
CTCaer
48ef1826e9
bdk: display: rename functions
...
display_init_framebuffer_pitch -> display_init_window_a_pitch
display_init_framebuffer_pitch_vic -> display_init_window_a_pitch_vic
display_init_framebuffer_pitch_inv -> display_init_window_a_pitch_inv
display_init_framebuffer_block -> display_init_window_a_block
display_init_framebuffer_log -> display_init_window_d_console
display_activate_console -> display_window_d_console_enable
display_deactivate_console -> display_window_d_console_disable
display_init_cursor -> display_cursor_init
display_set_pos_cursor -> display_cursor_set_pos
display_deinit_cursor -> display_cursor_deinit
2024-06-05 01:00:58 +03:00
CTCaer
4fef1890aa
bdk: rename exec_cfg to reg_write_array
...
And cfg_op_t to reg_cfg_t.
2024-06-05 00:49:15 +03:00
CTCaer
320b91a767
bdk: display: return duty for oled panel properly
...
For display_get_backlight_brightness.
2024-06-02 08:23:58 +03:00
CTCaer
c5f6837c35
bdk: display: wait 1 frame after display off cmd
2024-06-02 08:23:13 +03:00
CTCaer
72f980d0f4
bdk: display: fully streamline dc/win setup
...
As explained before, Nvidia just grabbed the whole dynamic init and made arrays
of it, without actually optimizing it.
The second part of the streamline aims to fully de-duplicate that.
- Completely remove all already set registers for DC/DISP/WIN.
- Do not touch other windows when a specific window is setup.
- Init Window D also together with A/B/C since code is made for DISPA.
- Add missing increase for syncpt 1.
2024-06-02 08:22:20 +03:00
CTCaer
b3be7e7a41
bdk: display: use the same HS exit threshold
...
No need to use minimum on T210.
Use the same byte clocks as T210B01 to simplify init.
2024-06-02 08:11:22 +03:00
CTCaer
26c6c6372d
bdk: display: rename window setup arrays
...
Add window number info and remove the fb naming
2024-06-02 08:05:50 +03:00
CTCaer
28eb3f4bcd
bdk: display: deduplicate array size macro
2024-06-02 08:02:44 +03:00
CTCaer
bd55a3e756
bdk: clock: always set DISPA source
...
No need to distinguish between LP or HS.
Setting the same value doesn't glitch.
2024-06-02 08:00:42 +03:00
CTCaer
146ff53a31
hekate: set bpmp high clock earlier
2024-06-02 07:57:22 +03:00
CTCaer
a96cac5964
hekate: adjust payload sd wait
...
hekate always waits at init, so not need to do that 2 times.
2024-06-02 07:56:07 +03:00
CTCaer
b01cc2432f
bdk: irq: remove ack source
...
HW interrupts can't be managed by FIR.
Only actual hw can clear the interrupt.
2024-06-02 07:46:18 +03:00
CTCaer
05db43a97c
bdk: hwinit: move down debug uart init
2024-06-02 07:44:22 +03:00
CTCaer
859811a154
bdk: fatfs: update copyright
...
Last edit was in 2022.
2024-06-02 07:42:35 +03:00
CTCaer
0a6521ec26
Update "about" copyrights
2024-06-02 07:41:18 +03:00
CTCaer
6b54c4a477
bdk: usb: hid: don't send a packet if no new data
...
Reduce the interrupt caused at the host side
2024-06-02 07:40:11 +03:00
CTCaer
e46f54d4e6
hekate/nyx: use static/const where it should
2024-06-02 07:38:07 +03:00
CTCaer
9d79af231e
bdk: use static where it should
2024-06-02 07:09:34 +03:00
CTCaer
d933aa80f7
hekate: use IRAM for stack
2024-06-02 07:04:17 +03:00
CTCaer
84c5439c70
bdk: usb: utilize apb relaxed clocks for init
2024-06-02 07:01:31 +03:00
CTCaer
ddd19661bd
nyx: use bpmp relaxed func
2024-06-02 06:55:25 +03:00
CTCaer
78cdb5575d
hos: use new func
2024-06-02 06:53:40 +03:00
CTCaer
8c44969afb
bdk: blz: refactor style
2024-06-02 06:51:47 +03:00
CTCaer
7a74761da9
bdk: bpmp: add and use bpmp_clk_rate_relaxed
2024-06-02 06:51:06 +03:00
CTCaer
14706cef4e
bdk: minerva: add emc src div disable
2024-06-02 06:46:28 +03:00
CTCaer
93296c2c38
bdk: joycon: add packet size checks
...
Pass the real received data size and do the proper checks for minimum info.
2024-05-19 17:42:10 +03:00
CTCaer
b744f82942
nyx: report right stick coordinates in debug
...
- Add right stick x/y
- Remove calibration x/y min/max
2024-05-19 12:19:26 +03:00
CTCaer
c4567ab2b5
nyx: set touch indev also and name them
...
Just keep it around for any reference.
2024-05-19 12:08:47 +03:00
CTCaer
0544f9143f
nyx: tools: allow dynamic size for boot partitions
...
Let UMS driver set the size in case the partition is bigger.
That doesn't affect anything other than allowing the host to see the whole
physical partition.
2024-05-19 10:58:53 +03:00
CTCaer
a070d2e394
bdk: ums: allow real sizes for boot partitions
...
Since that's eMMC, do not clamp the size to 4MB.
That doesn't affect anything other than allowing the host to see the whole
physical partition .
2024-05-19 10:57:20 +03:00
CTCaer
927489d2da
bdk: add missed defines
2024-05-19 10:50:25 +03:00
CTCaer
5453c593a3
hekate/nyx: adhere to hw_deinit change
2024-05-19 10:49:46 +03:00
CTCaer
ae29f359ee
bdk: hwinit: rename reinit_workaround to deinit
2024-05-19 10:49:25 +03:00
CTCaer
7af343dd6c
bdk: input: make joycon detection more robust
...
There's a hw bug on the gpio controller that can latch the last value on reads.
Mitigate that by reading once to unlatch the input value.
Also actually allow sio to be polled every 8ms.
2024-05-19 10:19:25 +03:00
CTCaer
547a3542ee
bdk: display: add more defines
2024-05-19 10:16:52 +03:00
CTCaer
4bc0a0591c
bdk: display: wait 2us for bl pwm config to take
...
Fixes the tiny blink showing up while pwm is still at max.
2024-05-19 10:15:52 +03:00
CTCaer
1214ab0e02
ldr/bl: manage arbiter
2024-05-19 10:12:18 +03:00
CTCaer
985c513770
bdk: hwinit: add arbiter config
2024-05-19 10:07:06 +03:00
CTCaer
16eb6a3c44
bdk: types: do not overflow on byte swaps
...
Addresses warning message.
2024-04-25 16:57:43 +03:00
CTCaer
ef1e328e11
bdk: info: revamp eMMC partition table info
...
Allow a max of 20 partitions to be shown
2024-04-25 04:57:31 +03:00
CTCaer
856994e4f4
bdk: sprintf: add right padding support
2024-04-25 04:56:38 +03:00
CTCaer
77782b974c
nyx: info: report oem id for eMMC
2024-04-25 04:55:17 +03:00
CTCaer
38f4902e1d
nyx: info: change touch fw version format
2024-04-25 04:54:58 +03:00
CTCaer
90b9f9f589
hos: add comments about autonogc
2024-04-25 04:53:06 +03:00
CTCaer
ec2e62236a
bdk: pinmux: add i2s pin config
2024-04-25 04:52:13 +03:00
CTCaer
2648a2655c
bdk: sdram: add info about custom 8GB T210 config
...
That's a suggestion on which 4GB modules are certainly fine to use.
2024-04-25 04:50:07 +03:00
CTCaer
62153fdfbb
bdk: types: add likely/unlikely global macros
2024-04-25 04:48:09 +03:00
CTCaer
28960728f9
bdk: joycon: add bit numbers on the button struct
2024-04-25 04:46:27 +03:00
CTCaer
902ccede9a
bdk: joycon: use proper bits for batt levels
2024-04-25 04:45:50 +03:00
CTCaer
96efa7a002
bdk: vic: add support for P8 and R5G5B5
2024-04-25 04:44:22 +03:00
CTCaer
d92906db5e
bdk: display: correct some reg names and add more
2024-04-25 04:44:08 +03:00
CTCaer
e8d6516f43
bdk: display: use basic profile for OLED
...
That's the one with the accurate sRGB colors.
Anything else is over saturated.
2024-04-25 04:38:57 +03:00
CTCaer
a6727f6e32
bdk: display: update active regs on vsync for WinD
...
Doing that on hsync can cause issues on disable without actually syncing to it.
2024-04-25 04:38:04 +03:00
CTCaer
35ea35f6ad
hos: pkg2: do not exit loop when non nogc
2024-03-29 15:12:53 +02:00
CTCaer
9e1b2ee573
Bump hekate to v6.1.1 and Nyx to v1.6.1
2024-03-29 16:34:08 +02:00
CTCaer
9cfe1d2162
nyx: add info about 6.2" oem panel clone
2024-03-29 16:34:08 +02:00
CTCaer
cfbbafe72f
nyx: change imu cal warning message
2024-03-29 13:42:41 +02:00
CTCaer
5607fd18ea
hos: 18.0.0 support
2024-03-29 13:21:53 +02:00
CTCaer
d71903abf2
hos: simplify nogc patch
2024-03-29 13:21:53 +02:00
CTCaer
547cfca0c9
hos: simplify emummc patch
2024-03-29 13:21:53 +02:00
CTCaer
dca350bfe9
hos: use strcmp for kip name
...
KIP1 names are NULL terminated, so use strcmp to reduce codesize.
2024-03-29 13:21:53 +02:00
CTCaer
06b7a38d47
nyx: retry to dump imu cal and skip it failed
...
On devices with mangled cal0 imu calibration can now be skipped (still mandatory on Lite).
2024-03-29 13:21:53 +02:00
CTCaer
9567ba19c8
l4t: bump loader/firmware revisions
2024-03-29 13:21:53 +02:00
CTCaer
c9ff5179f9
exo: use mixed version identification
2024-03-29 13:21:53 +02:00
CTCaer
f764bf04b1
hos: reboot to ofw if stock fails
...
If package1 fails to be read and conditions are valid, reboot to OFW automatically when stock mode is enabled.
2024-03-29 13:21:53 +02:00
CTCaer
8b1486c74b
hekate: expose autorcm check
2024-03-29 13:21:53 +02:00
CTCaer
471b99366d
hos: small refactor
2024-03-29 13:21:53 +02:00
CTCaer
368ca21316
hos: fix sys counters reset and always apply it
2024-03-29 13:21:53 +02:00
CTCaer
c021aef9b0
fss: save fss0 for being able to free it if error
...
Also do not free secmon/kernel in case it's from fss
2024-03-29 13:21:53 +02:00
CTCaer
622f7124ac
fss: remove dynamic path
...
Atmosphere never implemented per sysMMC/emuMMC support for configs.
So remove path parsing to reduce codesize.
2024-03-29 13:21:53 +02:00
CTCaer
e846f4576e
bdk: minerva: l4t: adjust sdmmc1 la and freq table
...
- LA is tightened up
- Copied frequencies are now 204/408/800/1333/1600/OC (from 204/666/800/1600/OC)
2024-03-29 13:21:53 +02:00
CTCaer
42c02e97e8
bdk: display: add 6.2" panel clone
2024-03-29 13:21:53 +02:00
CTCaer
4b3014bc18
hos: pkg2: simple refactor
2024-03-29 13:21:53 +02:00
CTCaer
4effaab241
hekate/nyx: use zalloc where appropriate
2024-03-27 09:16:06 +02:00
CTCaer
d687b53249
bdk: heap: add zalloc and utilize it
2024-03-27 09:00:53 +02:00
CTCaer
9e41aa7759
bdk: smmu: refactor and update driver
...
- Allow ASID to be configured
- Allow 34-bit PAs
- Use special type for setting PDE/PTE config
- Initialize all pages as non accessible
- Add function for mapping 4MB regions directly
- Add SMMU heap reset function
- Correct address load OP to 32-bit and remove alignment on SMMU enable payload
- Refactor all defines
2024-03-14 09:21:06 +02:00
CTCaer
0100c11757
nyx: info: show unknown for relevant eMMC vendors
2024-03-13 02:02:09 +02:00
CTCaer
9ba7c44b89
bdk: clock: use real source clock dividers
...
Use CLK_SRC_DIV macro in order to have the actual divider showing.
2024-03-13 02:01:01 +02:00
CTCaer
cdf0f30b17
hekate/nyx: smmu refactor
2024-03-13 01:56:31 +02:00
CTCaer
9a520d63a6
bdk: smmu: refactor driver and allow other asid
2024-03-13 01:54:46 +02:00
CTCaer
20e661fc01
bdk: refactor flow control defines
2024-03-13 01:50:45 +02:00
CTCaer
e341cf39f2
hekate/nyx: apply ccplex changes
...
HOS procedure can now launch secmon from coldboot again when HOS is 6.2.0.
And update L4T for the function signature change.
2024-03-13 01:49:31 +02:00
CTCaer
3a4fa12f42
bdk: smmu: powergate ccplex after enabling smmu
2024-03-13 01:44:58 +02:00
CTCaer
fb31cb2926
bdk: ccplex: add no rst vector lock & powergating
...
Allow not locking the reset vectors and launch a new payload after powergating ccplex.
2024-03-13 01:37:52 +02:00
CTCaer
82925845e3
hekate/nyx: utilize existing block size defines
2024-03-12 15:53:05 +02:00
CTCaer
f126486266
bdk: sdmmc: utilize block size defines
2024-03-12 15:47:14 +02:00
CTCaer
25b7ffecd1
bdk: fatfs: always align malloc to lba
2024-03-12 15:43:44 +02:00
CTCaer
7d1600b85c
bdk: consolidate ffsystem into bdk
2024-03-12 15:16:18 +02:00
CTCaer
b1e6661a7a
nyx: get rtc adjustments via driver
2024-03-12 15:11:32 +02:00
CTCaer
83ac40c4b9
bdk: rtc: handle offset adjustment in-place
2024-03-12 15:08:55 +02:00
CTCaer
29d1e4a809
Bump hekate to v6.1.0 and Nyx to v1.6.0
2024-02-22 11:45:19 +02:00
CTCaer
2ff2a5df2f
nyx: add error code info on lite gamepad dumping
2024-02-22 11:44:43 +02:00
CTCaer
4131ff12d7
bdk: sdram: adjust sdmmc1 la for l4t
2024-02-21 10:50:15 +02:00
CTCaer
5f8814311e
nyx: info: add panel clone info
2024-02-21 10:42:28 +02:00
CTCaer
9ea847578e
bdk: display: add another oem clone
2024-02-21 10:40:46 +02:00
Thomas Makin
f37ae083ae
nyx: add android dynamic partition support
...
Will be used in Android >=13 for larger capacity and future-proofing.
New full system size: 6 GiB.
Partitions:
- boot
- recovery
- dtb
- misc
- cache
- super
- userdata
2024-02-16 17:17:12 +02:00
CTCaer
feb5b11f66
minerva: do not reread mrr for channel b
...
Just in case the mrr fifo is not empty.
2024-02-16 16:34:30 +02:00
CTCaer
e96e74c72a
nyx: finer control of fan when temp is high
2024-02-16 16:07:27 +02:00
CTCaer
6e6f5f8eed
hekate: reduce binary size
...
By using the same message everywhere.
2024-02-16 16:05:42 +02:00
CTCaer
35c36908a1
hekate/nyx: change fs/clock year to 2024
2024-02-16 16:03:54 +02:00
CTCaer
6d69ef3cf6
bdk: sprintf: allow padding > 9
2024-02-16 16:01:54 +02:00
CTCaer
abeafb9a67
l4t: allow exFAT as boot drive
...
Allow exFAT support of boot partition.
For newer bl33 (U-Boot >= 2024-NX02).
Old ones will just fail to load the boot script in such cases.
2024-02-16 15:59:30 +02:00
CTCaer
be3297ae1f
l4t: raise T210 vdd2 limit to 1237.5mV
2024-02-16 15:57:22 +02:00
CTCaer
f05563579e
bdk: max77620: raise sd1 max voltage
...
For T210.
2024-02-16 15:55:40 +02:00
CTCaer
644747230c
bdk: dram: add FPGA code for 3rd gen micron
2024-02-16 15:54:22 +02:00
CTCaer
05f4c42a2d
l4t: add custom options
...
That's a special flag config that controls ARC.
2024-02-16 15:53:04 +02:00
CTCaer
1f30b8deb7
bdk: minerva: add custom option in table
2024-02-16 15:51:02 +02:00
CTCaer
6c518435ec
nyx: add info about 3rd gen micron lpddr4x
2024-02-14 02:18:01 +02:00
CTCaer
25e48472c8
nyx: add info about oem 5.5" panel
2024-02-14 02:17:45 +02:00
CTCaer
bfc6069b2d
bdk: display: add OEM panel id
2024-02-14 00:08:06 +02:00
CTCaer
38a792e564
nyx: add penel rev and change some labels
2024-02-12 04:14:14 +02:00
CTCaer
8c5fdf52d4
nyx: correct dram info
...
Parse per module info on channel A, rank 0.
It was channel info on chip 0, rank0 before.
2024-02-12 04:13:39 +02:00
CTCaer
4576ed81ef
sdram: acquire per chip mrr info
2024-02-12 04:08:39 +02:00
CTCaer
e9d2bdb124
l4t: remove more redundant carveout cfg
2024-01-07 12:40:28 +02:00
CTCaer
b37430dc1d
bdk: update copyright year
2024-01-07 12:38:10 +02:00
CTCaer
75543875e2
bdk: mc: remove some redundant carveout cfg
2024-01-07 12:33:29 +02:00
CTCaer
cc50ed2051
l4t: remove redundant wpr cfg
...
It's now done in dram cfg.
2024-01-06 22:09:18 +02:00
CTCaer
d1bae553ec
nyx: info: use the updated define for micron wtc
2024-01-06 22:06:21 +02:00
CTCaer
30c320d6e7
bdk: sdram: update all ram info comments
2024-01-06 22:05:24 +02:00
CTCaer
eff27d92f2
bdk: sdram: update default wpr overrides
...
Since it's only used in L4T set them to the correct latest reg tool values.
HOS overrides them anyway.
2024-01-06 22:03:54 +02:00
CTCaer
3874840d77
bdk: sdram: update cfg for 8GB erista
2024-01-06 21:59:18 +02:00
CTCaer
74e252aaf2
bdk: sdram: update latest reg tool vpr overrides
...
Set them to default config and remove them from patching.
2024-01-06 21:58:51 +02:00
CTCaer
c7333e710c
bdk: strtol: support unsigned 32bit hex
...
If base is 16 and input is not negative allow unsigned 32bit parsing.
This allows parsing numbers of up to 4294967295 in that case.
2024-01-06 21:55:21 +02:00
CTCaer
dab5eb9aa0
bdk: sprintf: do not accept null chars
...
Skip NULL chars on putc since they break the resulted string.
2024-01-06 21:52:48 +02:00
CTCaer
92093ff08e
bdk: se: deduplicate sha hash extraction
2023-12-27 21:07:52 +02:00
CTCaer
2cc6cd45d9
bdk: dram: small refactor
2023-12-27 21:06:09 +02:00
CTCaer
a6ec41744b
bdk: sdram: refactor patching offsets
2023-12-27 21:04:04 +02:00
CTCaer
bb6e4deb4c
bdk: remove unused lp0 cfg from bdk
2023-12-27 21:02:33 +02:00
CTCaer
1522f1ee92
nyx: info: add max bus speed info for sd
2023-12-27 15:02:00 +02:00
CTCaer
41d3565353
bdk: sdmmc: deduplicate function modes get
...
And parse the whole info
2023-12-27 15:01:20 +02:00
CTCaer
e23d469f06
nyx: revamp jc/sio cal info dumping
...
Hoag:
- Add stick types
- Add imu type
All the rest:
- Add imu calibration info
- Add BT mac
2023-12-25 04:17:59 +02:00
CTCaer
bd1733c4fa
minerva: use min 2 divm
...
Adhere to software based imposed limits for T210.
2023-12-25 04:11:55 +02:00
CTCaer
db214f2865
l4t: correct debug print
2023-12-25 04:09:46 +02:00
CTCaer
b584a3f53a
bdk: add several defines
2023-12-25 04:08:34 +02:00
CTCaer
7f98fb736a
bdk: hwinit: reorder sdmmc1 reg disable
2023-12-25 04:07:26 +02:00
CTCaer
87c50732c0
bdk: fuse: simplify idle wait
2023-12-25 03:47:26 +02:00
CTCaer
504659a39b
bdk: actmon: switch to averaged sampling
2023-12-25 03:46:05 +02:00
CTCaer
e47a819948
bdk: se: add more useful functions
...
- aes cmac 128bit
- aes hashing
- option to clear updated aes iv
2023-12-25 03:44:52 +02:00
CTCaer
39abeb9a28
nyx: improve fuses info
...
Correct the Chip ID Revision and also add actual (derived) iddq values.
2023-12-25 03:33:37 +02:00
CTCaer
80a32304cb
nyx: rename 3rd gen hynix ram chips
2023-12-25 03:21:17 +02:00
CTCaer
913cdee8e8
bdk: sdram: rename 3rd gen t210b01 hynix ram
...
Confirmed to be a Hynix H54G46CYRBX267 and not a H9HCNNNBKMMLXR-NEI
2023-12-25 03:02:11 +02:00
CTCaer
eff55ff378
bdk: touch: rename samsung touch panel
...
BH2109 is the board model and not the touch panel.
2023-12-25 02:41:42 +02:00
CTCaer
09dfcfc57d
bdk: display: deduplicate interrupt code
2023-12-25 02:40:38 +02:00
CTCaer
239c48c790
bdk: usb: hid: improve stick calibration
...
Wait a bit before calibrating stick centers, in order to avoid bad values.
2023-12-25 02:37:40 +02:00
CTCaer
2e1a773a08
nyx: relax joycon calibration init
...
Wait a bit before actually doing stick calibration in order to avoid bad values.
2023-12-25 02:36:27 +02:00
CTCaer
d1ee0e35fd
hos: pkg2: fix validation check for nogc 17.0.0
2023-10-13 07:58:56 +03:00
CTCaer
226b30b57c
Bump hekate to v6.0.7 and Nyx to v1.5.6
2023-10-12 09:25:14 +03:00
CTCaer
7fab13b76d
hos: correct meso version masking
...
And also use the version instead to decide for relative INI1 base setting.
That's because MSS0 and MSS1 come with prepopulated INI1 base.
2023-10-12 09:25:06 +03:00
CTCaer
d3d3768c8f
hos: correct max KB
2023-10-12 08:07:46 +03:00
CTCaer
7040f1ada2
l4t: allow setting dram voltage even if no OC
...
Mostly for allowing undervolting.
2023-10-12 07:44:00 +03:00
CTCaer
697bde8667
hos: 17.0.0 support
2023-10-12 07:41:12 +03:00
CTCaer
03f11370c7
hos: allow reusage of embedded INI1 region
2023-10-12 07:36:00 +03:00
CTCaer
533fb08a1c
nyx: info: K4U6E3S4AB-MGCL is now validated
2023-10-12 07:28:28 +03:00
CTCaer
c828539544
hos: pkg2: rename ini1 value offset
...
And simplify the logic a bit.
2023-10-12 07:26:55 +03:00
CTCaer
d1be18821d
hos: reduce pkg1 id to 8 chars to save space
2023-10-12 07:16:23 +03:00
CTCaer
613fdf621d
hos: rename KB defines
...
From KB_FIRMWARE_VERSION to HOS_KB_VERSION
2023-10-12 07:11:22 +03:00
CTCaer
5b13e81141
Adjust about-screens copyright year
2023-10-12 07:01:28 +03:00
CTCaer
ce137852b7
bdk: change some defines and comments
2023-10-12 06:59:15 +03:00
CTCaer
e84367e302
nyx: swap and fix config save text
2023-08-23 00:10:10 +03:00
CTCaer
e5a22230b1
Bump hekate to v6.0.6 and Nyx to v1.5.5
2023-08-22 16:56:59 +03:00
CTCaer
ce42e27f45
bdk: minerva: do not handle oc freq
...
Arachne already handles it.
2023-08-22 16:44:41 +03:00
CTCaer
01a8f30925
nyx: add contact me for unknown ram chips
2023-08-22 16:44:03 +03:00
CTCaer
d73a3fdd7c
bdk: sdram: name 1a micron ram chips
...
Again, as with 3rd gen samsung and hynix, that's an educated guess.
2023-08-22 14:44:27 +03:00
CTCaer
fdf0dcc636
bdk: joycon: add info about sio imu report
2023-08-22 14:36:23 +03:00
CTCaer
976a02f8bc
nyx: clock: fix year off-by-one
2023-08-07 21:12:18 +03:00
CTCaer
187b6d843e
nyx: emummc: allow migrating emummc backup
...
Now if an eMMC backup is not found, emuMMC backup will be used.
2023-08-07 21:11:17 +03:00
CTCaer
6de29094fe
nyx: gfx: add column control
...
gfx_getpos/setpos can now get/set column offset.
setpos column can be fully custom. Otherwise GFX_COL_KEEP or GFX_COL_AUTO (2 columns) can be used.
Additionally, always restore column when printing debug info in log screen.
2023-08-07 21:09:37 +03:00
CTCaer
f2bdc3f47c
bdk: i2c: fix stack buffer overflow
2023-08-07 21:02:20 +03:00
CTCaer
09b1efe2a4
nyx: info: use updated defines
2023-07-31 17:09:04 +03:00
CTCaer
bb0a1fd0a2
minerva: add freqs up to 2366 MHz
2023-07-31 17:05:09 +03:00
CTCaer
1cc97ebc51
bdk: update various comments
2023-07-31 17:03:15 +03:00
CTCaer
1e28320e5a
bdk: t210: add more mmio addresses
...
And simplify relevant drivers that hardcoded them.
2023-07-31 16:59:15 +03:00
CTCaer
0fe17cfb41
l4t: add latest api version info
2023-07-28 15:42:16 +03:00
CTCaer
91393700ff
nyx: use restore/emummc folder for restoring
...
In order to avoid mistakes, emuMMC can now only be restored from `backup/{emmc_sn}/restore/emummc`.
2023-07-28 04:07:43 +03:00
CTCaer
cb964fe5d2
l4t: allow ram undervolting
2023-07-28 04:04:03 +03:00
CTCaer
010b08d4c7
l4t: t210b01: set real dram rate by default
...
Since Arachne Register Cell (ARC) is now final and stable,
automatically set rated DRAM frequency for T210B01 by default.
1866 MHz for old ones and 2133 MHz for newer ones.
Setting anything from 1600000 and lower will disable that.
2023-07-28 04:03:01 +03:00
CTCaer
b5fcdad33f
nyx: info: improve ram channel/rank detection
2023-07-28 03:40:32 +03:00
CTCaer
6061bb5213
nyx: info: add public key info
...
And remove LOT Code 1 since it's not used.
2023-07-28 03:38:40 +03:00
CTCaer
221614212a
nyx: info: add more cal0 info
...
Touch vendor, IMU type/mount and analog stick types.
2023-07-28 03:36:10 +03:00
CTCaer
5b94e8cf8a
nyx: info: use fuel gauge reg dump function
2023-07-28 03:35:08 +03:00
CTCaer
f291a5cfa7
bdk: max17050: add reg dumping
2023-07-28 03:34:11 +03:00
CTCaer
7e397b3403
nyx: options: change autorcm icon
2023-07-28 03:33:09 +03:00
CTCaer
f35c5b0596
nyx: fix first time config save unmounting
...
SD card should not get unmounted on the first boot without hekate_ipl.ini.
Move sd card mounting management outside of it.
2023-07-28 03:32:33 +03:00
CTCaer
b142ca0f33
nyx: info: use new fuse names
2023-07-28 03:29:24 +03:00
CTCaer
21da947c02
nyx: hos: deduplicate cal0 dumping
2023-07-28 03:28:21 +03:00
CTCaer
317abb2f4e
hekate: add bootwait for each entry
...
Allow overriding global bootwait with the one from boot entry.
2023-07-28 03:23:03 +03:00
CTCaer
d3567736c8
hos: allow overriding uCID
2023-07-28 03:06:20 +03:00
CTCaer
9187fa7a8c
bdk: fuse: add all t210b01 fuses
...
And use B01 to distinguish the ones only on that SoC.
2023-07-22 07:10:12 +03:00
CTCaer
b9bc35a22e
bdk: dram: correct old comments
2023-07-21 18:39:46 +03:00
CTCaer
6e954f5cdf
nyx: provide the raw calib for Lite gamepad
...
Let L4T driver manage it.
2023-06-11 13:29:04 +03:00
CTCaer
d7ad9b874b
bdk: use the typedefs on jc calib
2023-06-11 13:27:48 +03:00
CTCaer
820e6d5a6e
bdk: update cal0 struct
2023-06-10 23:48:45 +03:00
CTCaer
0215d16405
Bump hekate to v6.0.4 and Nyx to v1.5.4
2023-06-09 11:08:13 +03:00
CTCaer
c0c0e34ef0
nyx: info: update dram info
2023-06-09 11:04:31 +03:00
CTCaer
581ac8ec33
nyx: info: always report errors for eMMC
...
Even if init fails.
2023-06-09 11:04:07 +03:00
CTCaer
26bf148188
nyx: add Lite gamepad calibration data dumping
...
Adds calibration data dumping via the Joycon BT pairing dumping function.
Calibration for everything about Sio is dumped. So Sticks and IMU.
2023-06-09 11:03:29 +03:00
CTCaer
dc8f6beb8d
nyx: info: make cal0 dumping public
2023-06-09 11:01:08 +03:00
CTCaer
25b181bf36
nyx: add missing newlines
...
Change line since the text does not fit like that in these places, effectively breaking text color.
2023-06-09 10:59:03 +03:00
CTCaer
66e5e128f6
l4t: adjust revision amidst the new changes
...
Also add helpful message if files are missing.
2023-06-09 10:56:39 +03:00
CTCaer
84822726cb
l4t: add fine tuned voltage support for DRAM
...
1000-1175mV for T210 VDDIO/Q via `ram_oc_vdd2`
1000-1175mV for T210B01 VDDIO and 600-650mV for VDDQ via `ram_oc_vdd2` and `ram_oc_vddq`.
2023-06-09 10:55:32 +03:00
CTCaer
b6e1e0d412
l4t: add bpmp-fw support for T210
2023-06-09 10:53:03 +03:00
CTCaer
496737248c
l4t: there was never a need to normalize dram freq
2023-06-09 10:51:31 +03:00
CTCaer
4f52e1f24a
l4t: refactor bpmp-fw defines for T210B01
2023-06-09 10:50:29 +03:00
CTCaer
3f9c7a7da6
hos: prep boot freq in minerva for cfw also
2023-06-09 10:41:53 +03:00
CTCaer
93ed4d0899
bdk: emc: add temp and feature reporting defines
2023-06-09 10:38:24 +03:00
CTCaer
01afd2de56
bdk: sdmmc: properly report comp pad status
...
The reporting of the resistor being shorted or open was swapped. Fix that so it's immediately known what's the issue.
2023-06-09 10:37:47 +03:00
CTCaer
d621d96af1
bdk: sdmmc: refactor comments
2023-06-09 10:36:29 +03:00
CTCaer
b674624ad0
bdk: timer: add instruction sleep
...
usage:
`isleep(ILOOP(instructions))`
Each loop is 3 cycles, or approximately 7.35ns on 408MHz CPU clock.
2023-06-09 10:33:11 +03:00
CTCaer
191a0533d9
bdk: clock: add more known pto ids
2023-06-09 10:29:47 +03:00
CTCaer
8502731fbd
bdk: tsec: refactor some register names
2023-06-09 10:28:28 +03:00
CTCaer
18f3a1b70c
bdk: max77620: reduce max DRAM VDDIO/Q
...
Reduce allowed VDDIO/VDDQfor T210B01 and VDDIO for T210B01.
2023-06-09 10:24:55 +03:00
CTCaer
418f029d11
lib: minerva: add 1966 and 2033 MHz in div table
2023-06-08 05:31:15 +03:00
CTCaer
066efda4cd
lib: minerva: normalize output frequency
...
Allow frequencies that are not exact to receive proper dividers from the supported ones from table.
2023-06-08 04:56:14 +03:00
CTCaer
d8d15bde44
lib: minerva: add Samsung 8GB support
...
And remove frequencies smaller than deep sleep frequency from the tables.
2023-06-08 04:50:59 +03:00
CTCaer
9d8ebc7e38
lib: minerva: refactor table
...
Remove _idx used initially for RE at last.
2023-06-08 04:49:16 +03:00
CTCaer
c2ee6be2f5
bdk: sdram: add Samsung 8GB RAM support for T210
...
And remove Copper support completely.
2023-06-08 04:16:51 +03:00
CTCaer
73a133556d
bdk: sdram: correct sku related info
...
Validated so rename accordingly.
2023-06-08 02:57:30 +03:00
CTCaer
7d3663616e
bdk: sdram: name 2 of the new ram chips
...
Not actually validated, but educated guess, since all previous one were correct in the end.
New Micron still unknown, can be guessed but model doesn't exist in any public list.
2023-06-08 02:52:03 +03:00
CTCaer
e76aebabba
bdk: mem: minerva: check table size in clock check
...
Don't hardcode table size to 10.
2023-06-08 02:45:34 +03:00
CTCaer
bc0eea11f3
bdk: joycon: add calibration struct
2023-06-08 02:44:35 +03:00
CTCaer
937ab52d14
Bump hekate to v6.0.4
2023-05-09 11:15:34 +03:00
CTCaer
e896d388ab
hos: 16.0.3 support
2023-05-09 11:15:11 +03:00
CTCaer
ded959c449
Bump hekate to v6.0.3 and Nyx to v1.5.3
2023-04-06 17:38:36 +03:00
CTCaer
a7fd83c793
nyx: correct build flag
2023-04-06 17:36:22 +03:00
CTCaer
dd380d4d47
l4t: increase bw priority to SDMMC1 for L4T
2023-04-06 17:34:26 +03:00
CTCaer
795b4ad26e
bdk: sdmmc: increase bw priority to SDMMC1 for L4T
2023-04-06 17:30:01 +03:00
CTCaer
bb10b8aea3
bdk: sdmmc: small refactor
2023-04-06 10:19:53 +03:00
CTCaer
811fa4c88b
bdk: sdmmc: add SD registers debug printing
...
Can be enabled with `SDMMC_DEBUG_PRINT_SD_REGS`
2023-04-06 10:13:35 +03:00
CTCaer
22462e4bf3
nyx: info: optimize random benchmarking
...
Do not allow SD/eMMC to breath during random reads benchmarking. So only render progress at 15fps.
2023-03-31 09:24:55 +03:00
CTCaer
ca0263fa8c
hekate: info: fully deinit/unmount sd card
2023-03-31 09:17:51 +03:00
CTCaer
b1112e0949
hos: set proper exo hos version for 12.1.0
...
Even if 12.0.0 one is api compatible, there was a master key change on 12.1.0.
2023-03-31 09:17:13 +03:00
CTCaer
3c3fcb29f9
hekate: clear rtc interrupt and stop alarm
...
Stopping rtc alarm is now done in the function that actually checks it, in order to avoid power offs from HOS if it's fired and user wants to continue booting.
Additionally, clear the interrupt which is the actual thing that is checked by HOS.
2023-03-31 09:15:56 +03:00
CTCaer
8528e6a08a
bdk: util: do not edit rtc alarm in power function
2023-03-31 09:12:58 +03:00
CTCaer
27ae312227
bdk: minor naming edits
2023-03-31 09:11:55 +03:00
CTCaer
50811aacfa
bdk: touch: reorder power on
...
So touch IC reset can be properly done on a fast power cycle.
2023-03-31 09:08:20 +03:00
CTCaer
f4bf48e76a
bdk: sdmmc: add driver type set support
2023-03-31 09:04:10 +03:00
CTCaer
d258c82d52
bdk: sdmmc: add UHS DDR200 support
...
The bdk flag BDK_SDMMC_UHS_DDR200_SUPPORT can be used to enable it.
SD Card DDR200 (DDR208) support
Proper procedure:
1. Check that Vendor Specific Command System is supported.
Used as Enable DDR200 Bus.
2. Enable DDR200 bus mode via setting 14 to Group 2 via CMD6.
Access Mode group is left to default 0 (SDR12).
3. Setup clock to 200 or 208 MHz.
4. Set host to DDR bus mode that supports such high clocks.
Some hosts have special mode, others use DDR50 and others HS400.
5. Execute Tuning.
The true validation that this value in Group 2 activates it, is that DDR50 bus
and clocks/timings work fully after that point.
On Tegra X1, that can be done with DDR50 host mode.
Tuning though can't be done automatically on any DDR mode.
So it needs to be done manually and selected tap will be applied from the
biggest sampling window.
Finally, all that simply works, because the marketing materials for DDR200 are
basically overstatements to sell the feature. DDR200 is simply SDR104 in DDR mode,
so sampling on rising and falling edge and with variable output data window.
It can be supported by any host that is fast enough to support DDR at 200/208MHz
and can do hw/sw tuning for finding the proper sampling window in that mode.
Using a SDMMC controller on DDR200 mode at 400MHz, has latency allowance implications. The MC/EMC must be clocked enough to be able to serve the requests in time (512B in 1.28 ns).
2023-03-31 08:54:13 +03:00
CTCaer
7f32c6d211
bdk: sd: better removal detection handling
2023-03-31 08:31:20 +03:00
CTCaer
2f7e841b50
bdk: sdmmc: move sdr12 setup for better readability
2023-03-31 08:29:20 +03:00
CTCaer
29e32f09fb
bdk: sdmmc: properly identify sdmmc1 clk config
...
Remove schmitt trigger config from clock pin on sdmmc1 for identifying previous pinmuxing state.
2023-03-31 08:27:48 +03:00
CTCaer
b123571c56
bdk: sdmmc: only allow power raise if SDR50 and up
...
As per spec.
2023-03-31 08:26:19 +03:00
CTCaer
b7164a629f
bdk: sdmmc: allow max power limit to be set
...
Even if it defaults to 1.44W.
Some cards' firmware maybe be bugged.
The 3.3V regulator on all SKUs allow more than 800mA current anyway.
2023-03-31 08:24:52 +03:00
CTCaer
25be98b7e3
bdk: sdmmc: add UHS DDR50 support
...
But disable it by default in the auto selection.
2023-03-31 08:23:10 +03:00
CTCaer
76a5facbc3
bdk: clock: rename clock_t to clk_rst_t
...
To avoid redefines when standard math header is used.
2023-03-31 08:18:45 +03:00
CTCaer
502fc1ed50
bdk: sdmmc: rename ddr100 to the actual HS100 name
2023-03-31 08:15:40 +03:00
CTCaer
5e134ed54b
bdk: sdmmc: refactor defines
2023-03-31 08:00:14 +03:00
CTCaer
4cfe5f241e
bdk: sdmmc: remove eMMC OC
...
Additionally, the flag BDK_SDMMC_OC_AND_EXTRA_PRINT is now just BDK_SDMMC_EXTRA_PRINT
2023-03-31 07:55:17 +03:00
CTCaer
9a222e0e49
bdk: sdmmc: rename divisor param to card clock
2023-03-31 07:53:46 +03:00
CTCaer
298893f404
bdk: sdmmc: remove powersave arg from sdmmc init
2023-03-31 07:51:43 +03:00
CTCaer
1ce5bb10f8
bdk: sdmmc: refactor debug prints
2023-03-31 07:49:26 +03:00
CTCaer
107fbd1d24
bdk: gpio: add debounce set function
...
The debounce time is not per pin but per bank. So software should manage proper time for sibling pins
2023-03-31 07:43:16 +03:00
CTCaer
1edb6583ac
bdk: gpio: reorder gpio config
...
Since there are some bootloaders that mess with the states of some power gpios, reorder gpio configuration for input/output in order to prevent power pin glitches.
2023-03-31 07:41:50 +03:00
CTCaer
5bdf323e5c
Bump hekate to v6.0.2 and Nyx to v1.5.2
2023-02-23 01:25:19 +02:00
CTCaer
d286ee4e9d
bdk: sd: only clear inserted when requested
...
Also rename var to further explain its usage
2023-02-23 01:25:05 +02:00
CTCaer
17cdd5af0d
bdk: hwdeinit: restore order of bpmp clock set
...
Restore order of bpmp clock scale down in deinit, in order to decrease pressure on clock deinits.
2023-02-22 14:48:43 +02:00
CTCaer
26fa363ca4
nyx: reset SD speed to SDR104 if init fails
2023-02-22 13:46:50 +02:00
CTCaer
2e8bfc1f56
hos: add 16.0.0 support
2023-02-22 13:45:46 +02:00
CTCaer
07dafe8185
nyx: fix pkg1 dump/split
...
Broken since v5.3.1.
2023-02-22 13:24:49 +02:00
CTCaer
7f92f65c26
fatfs/nyx: set minimum year to 2023
2023-02-22 13:23:40 +02:00
CTCaer
55e01ca735
bdk: sd: improve init error handling
...
- Management of sd init done is now on sd init retry function
Also manages inserted, since it can set the sd init done to false if failed
- Init will now always check if SD is also initialized, since it doesn't manage it anymore. Because of that, mounting is no longer forced, but checked first.
- Unmount/End will now always set the sd as unmounted, since no data residue is expected after the fact
The above will improve handling of faulty SD cards or faulty SD readers.
2023-02-22 13:19:12 +02:00
CTCaer
a44a4881d4
hekate/nyx: stylistic and copyright updates
2023-02-22 13:04:42 +02:00
CTCaer
c279fa2521
bdk: max77621: ckkadv is basically an enum
2023-02-22 13:00:36 +02:00
CTCaer
0f6f5f06c7
nyx: improve FS error handling on init
...
In case of FS corruption or SD issues, do the following:
- Try 2 times to init SD.
- Try 2 times to load resources
- Fatal if fail with an error message.
2023-02-12 00:17:24 +02:00
CTCaer
8600174d66
nyx: info: improve sd power limits info
2023-02-12 00:00:26 +02:00
CTCaer
a6d7fa7fe1
nyx: disable reboot to OFW button if autorcm
2023-02-11 23:59:30 +02:00
CTCaer
c9405680f2
nyx: update bpmp clock manage
...
- Test max clock on T210B01 also
- Add 3rd mode with lower clock. Manually applied only.
- Test max clock for 10s instead of 5s
2023-02-11 23:56:16 +02:00
CTCaer
64dac28073
hekate: allow accessing launch options without ini
2023-02-11 23:52:43 +02:00
CTCaer
5193416658
hekate/nyx: stylistic corrections
2023-02-11 23:51:43 +02:00
CTCaer
9a98c1afb9
bdk: stylistic corrections
...
And update copyrights
2023-02-11 23:46:38 +02:00
CTCaer
361aaf8629
l4t: disable AHB aperture and pllc war
...
We don't need AHB aperture after that point and new deinit fixes the pllc init issue on L4T boot.
2023-02-11 23:25:22 +02:00
CTCaer
080e3e2aa7
hos: disable AHB aperture before secmon launch
...
Seems that old secmon were missing that and it may cause bad behavior on boot.
Only affects stock old secmon versions.
2023-02-11 23:22:53 +02:00
CTCaer
72abe60a3b
bdk: hw init: remove support for broken hwinits
...
It's 2023 already.
2023-02-11 23:19:56 +02:00
CTCaer
ee682fdf24
bdk: l4t: minerva: don't rely on UB
2023-02-11 23:17:27 +02:00
CTCaer
42859a2373
bdk: usb: ums: print errors when sdmmc init fails
2023-02-11 23:16:37 +02:00
CTCaer
22bdd0e0ff
bdk: sdmmc: remove unused power limits
...
Also name some magic numbers
2023-02-11 23:15:28 +02:00
CTCaer
114abba815
bdk: hw init: do not touch audio clocks on t210b01
2023-02-11 23:13:41 +02:00
CTCaer
ec8c04db8a
bdk: bpmp: add 563MHz clock for worst binnings
2023-02-11 23:12:14 +02:00
CTCaer
4d7eb6a647
bdk: clock: improve pllc deinit
2023-02-11 23:11:24 +02:00
CTCaer
fd3cf1b7f8
bdk: reg-5v: remove X3 pin
...
X3 is vbus enable on mariko.
2023-02-11 23:10:43 +02:00
CTCaer
47f0734ba0
bdk: display: add more oled color mode info
2023-02-11 23:09:38 +02:00
CTCaer
5bb9a244ea
bdk: utilize new gpio functions
2023-02-11 23:08:32 +02:00
CTCaer
05b5e4f297
bdk: gpio: add simple gpio direction functions
2023-02-11 22:55:22 +02:00
CTCaer
4e15e034b8
bdk: sdram: remove (lp)ddr2/3 support
2023-02-11 22:44:31 +02:00
CTCaer
ee3fc499cd
bdk: bm92t36: add sanity checks
...
If bm92t i2c comms are broken, it can hang hekate. So sanitize buffer and max profile print supported.
2023-02-11 22:40:47 +02:00
CTCaer
f9e99212fc
Bump hekate to v6.0.1 and Nyx to v1.5.1
2022-12-22 12:39:51 +02:00
CTCaer
1666daf447
l4t: fix several issues
...
- Fixed an issue where cached data would not be flushed after setting the fw carveout. Now they are flushed before setting it.
- Fixed and off-by-one bug and setting incorrect number of mtc entries.
2022-12-22 12:37:56 +02:00
CTCaer
cfbfe403c6
bdk: di: wait 8ms before setting window for vic
2022-12-22 12:32:05 +02:00
CTCaer
47784faab2
Bump hekate to v6.0.0 and Nyx to v1.5.0
2022-12-20 17:01:42 +02:00
CTCaer
a2a302b9d5
l4t: Add L4T loader for T210 and T210B01
2022-12-20 17:00:33 +02:00
CTCaer
50dd458cfd
bdk: ums: use emmc_end instead of sdmmc_storage_end
2022-12-20 16:55:16 +02:00
CTCaer
2218ae228f
nyx: changes to partition manager
2022-12-20 16:50:04 +02:00
CTCaer
20915dd661
hekate: blink 3 times on OLED for auto hos pwr off
...
The OLED panel does not allow for variable PWM fade without sending DCS commands, so blink instead.
2022-12-19 06:03:53 +02:00
CTCaer
0ba9b49074
nyx: add nobox and hue combo for launch
...
`_hue_nobox` is now supported which colorizes the icon and also removes the border.
2022-12-19 05:53:31 +02:00
CTCaer
1582ef3a29
nyx: add sd card power info and more vendors
2022-12-19 05:50:08 +02:00
CTCaer
0a367b114c
nyx: add missing HOS info on 17 burnt fuses
2022-12-19 05:45:41 +02:00
CTCaer
f49aecad19
hekate: update to ini_check_special_section
2022-12-19 05:43:48 +02:00
CTCaer
0b1bb521d8
bdk: ini: add l4t key parsing
2022-12-19 05:38:03 +02:00
CTCaer
2e989c2338
hekate: increase battery enough limits
2022-12-19 05:35:45 +02:00
CTCaer
0e1eece04f
bdk: hw-init: remove charger forced enable
...
Anything that doesn't manage it properly should fix itself.
(Like for example disabling charging on sleep or something. They should use the gpio equivalent.)
2022-12-19 05:35:04 +02:00
CTCaer
2119401b5c
hekate: add T210B01 R2P
2022-12-19 05:31:35 +02:00
CTCaer
c9ab6352f6
bdk: rtc: add T210B01 R2P
2022-12-19 05:30:23 +02:00
CTCaer
09ca75dd8c
bdk: max77812: exit if RAM reg and not 211 phase
2022-12-19 05:28:35 +02:00
CTCaer
157464753f
nyx: add the new dram chips
...
Still no solid info, only vendor, so "contact me".
2022-12-19 05:26:35 +02:00
CTCaer
560f077196
bdk: sdram: rename new dram chips
2022-12-19 05:25:26 +02:00
CTCaer
4d823d5909
bdk: slight refactor
2022-12-19 05:22:55 +02:00
CTCaer
a1fde0d9b6
bdk: display: disable LCD DVDD on display deinit
2022-12-19 05:16:35 +02:00
CTCaer
d0b22bf374
bdk: manage host1x only in hw init
2022-12-19 05:14:39 +02:00
CTCaer
4da1d10553
nyx: Force 4MiB eMMC boot0/1 on backup/restore
...
Simplify ops on big eMMC replacements.
2022-12-19 05:09:37 +02:00
CTCaer
f16159542c
hekate/nyx: slight refactor
2022-12-19 05:04:50 +02:00
CTCaer
6257d20db9
bdk: emmc: add emmc_set_partition
...
Additionally, add SDMMC index info to errors.
2022-12-19 04:53:50 +02:00
CTCaer
227fe9b7ea
cfg: remove creation from hekate and move to Nyx
...
There's no reason for hekate to create the hekate config if missing, since Nyx is the sole manager of it.
So move the auto creation there to save binary space.
2022-12-19 04:41:21 +02:00
CTCaer
24795891ec
loader: refactor
2022-12-19 04:31:54 +02:00
CTCaer
c86554e954
Cleanup for years unused code
...
Compiler was also getting confused and actually not removing the unused functions.
So that also saves binary space.
2022-12-19 04:27:38 +02:00
CTCaer
c0cc9c9f4f
bdk: vic: ease stress to APB when enabling VIC clk
2022-10-13 00:16:08 +03:00
CTCaer
1bef259571
Bump hekate to v5.9.0 and Nyx to v1.4.0
2022-10-12 12:31:31 +03:00
CTCaer
fe0bd89c4c
bdk: pmc: extend pmc scratch locker
2022-10-11 14:41:42 +03:00
CTCaer
f534d5e316
bdk: i2c: fix send packet mode
2022-10-11 14:40:58 +03:00
CTCaer
8d2fac60ea
nyx: info: remove unused dram ids
2022-10-11 10:39:19 +03:00
CTCaer
2ea595e98d
bdk: sdram: add new dram ids/configs
...
On T210B01 dram ids 7 and 16 got removed.
29 to 34 were added.
Additionally, remove all deprecated and unused dram id enums.
2022-10-11 10:38:43 +03:00
CTCaer
7e7e86b713
hos: add HOS 15.0.0 support
2022-10-11 10:29:41 +03:00
CTCaer
a6d0bf54cd
hos: improve warmboot config
...
Add more checks, simplify it and allow it to be called on non-HOS code.
2022-10-11 08:53:46 +03:00
CTCaer
e455fe043f
nyx: add black theme option
...
New experimental black theme.
2022-10-11 08:32:32 +03:00
CTCaer
1a8075669d
bdk: lvgl: allow theme to take a bg color value
2022-10-11 08:22:48 +03:00
CTCaer
31c8292f23
config: set default auto hos power off to enabled for T210B01
...
For new users, set Auto HOS Power Off feature to enabled if T210B01 based SoC.
2022-10-11 07:51:45 +03:00
CTCaer
414721a1ff
bootloader: Add animated ticker for VOL- wait
...
Now an animated line is drawn while bootlogo wait is active.
This will remind user to press VOL- if needed and also give visible feedback.
A new config key was added to disable it for custom bootlogos. Set `noticker=1` in `[config]` section.
It always show for default hekate one.
For now now there's no GUI option for it.
2022-10-11 07:49:17 +03:00
CTCaer
9c1238f99d
Update Warnings flags in makefiles
2022-10-11 07:25:21 +03:00
CTCaer
c0b16320cc
bootloader: improve launch code
...
- Fix error not showing if payload is missing or can't be read
- Move errors to their callee function to save binary space
- Refactor various parameters and comments
- Reduce size on some errors
- Do not read HOS specific config in case of payload launch
- Remove unneeded code
2022-10-11 07:21:41 +03:00
CTCaer
e7866387cd
bootloader: remove volatile from reloc
...
To save binary space, as it's not needed.
2022-10-11 07:00:24 +03:00
CTCaer
6739f03893
bootloader: remove rtc stop alarm from auto hos powerr off
...
It's done in power_set_state anyway.
2022-10-11 06:59:39 +03:00
CTCaer
0a9c71d5d6
bootloader: simplify emmcsn_path_impl
2022-10-11 06:58:22 +03:00
CTCaer
833f060c7b
nyx: utilize VIC for hw rotation
...
It completely removes the waterfall-like slow rendering on T210B01 and speeds up even more rendering on T210.
2022-10-11 06:51:33 +03:00
CTCaer
9d889e2c3e
bdk: Add driver for VIC
...
VIC is a HW engine that allows for frame/texture buffer manipulation.
2022-10-11 06:41:38 +03:00
CTCaer
efe6e2f206
nyx: also backup payload.bin if full not possible
...
Partition manager does a backup on the following if it can't do a full backup:
- bootloader (existed)
- Mariko Warmboot Storage (MWS) (existed)
- payload.bin (newly added)
2022-10-11 06:36:06 +03:00
CTCaer
5cdee01c05
nyx: part manager: rename twrp to recovery
...
And add support for both twrp.img and recovery.img.
2022-10-11 06:31:24 +03:00
CTCaer
6337b06212
nyx: Rename Nyx Options to Nyx Settings
...
In order to not be confused with the hekate general Options.
2022-10-11 06:27:50 +03:00
CTCaer
f5fb0a1ee9
nyx: config: rename entries column var
2022-10-11 06:24:52 +03:00
CTCaer
7cac7fe095
nyx: info: warn for fuel gauge in init state
...
An icon and reason will be shown if design cap is 1000 mAh, which means that fuel gauge was reset and HOS not booted at least once.
A reason for the warning in battery voltage is now also given if low.
2022-10-11 06:20:19 +03:00
CTCaer
fefa7d9149
nyx: correct error message for emummc creation
2022-10-11 06:18:02 +03:00
CTCaer
bfad719fcd
bdk: small refactor
2022-10-11 06:16:38 +03:00
CTCaer
4f2a6f16d3
nyx: fix use after free and a heap corruption
...
Fix use after free and a heap corruption on emummc config loading/freeing that could cause hangs when entering emummc window.
2022-10-11 04:37:17 +03:00
CTCaer
f41d6be8d4
nyx: do not allow padding buttons to be pressed
...
So closing the window from a miss-touch can be avoided.
2022-10-11 04:32:53 +03:00
CTCaer
5392971c2c
hekate/nyx: utilize emmc_end
2022-10-11 04:19:29 +03:00
CTCaer
07695196cb
bdk: emmc: utilize emmc_end
2022-10-11 04:12:04 +03:00
CTCaer
8bbe403e41
bdk: util: replace strtol/atoi w/ custom versions
...
To get rid of reentrancy baggage (which is not needed) and save binary space
2022-10-11 04:11:21 +03:00
CTCaer
d08fac5a08
bdk: xusb: improve clock deinit
...
Allows L4T to use XUSB on T210B01 after a UMS usage.
T210 somehow was fine.
2022-10-11 04:07:24 +03:00
CTCaer
197ce4c76f
bdk: sdmmc: timing changes
...
- Correct HS102 naming to DDR100
- Fix clock for DDR50 (even if it's unused)
2022-10-11 04:05:12 +03:00
CTCaer
eaa25114ad
bdk: lvgl: do not do unneeded invalidations
...
A bug was fixed that was causing full parent object invalidations when tapping into a window.
Now if the object is already on top the invalidation is skipped and the whole rerender/draw is skipped, saving valuable cpu time.
2022-10-11 04:00:41 +03:00
CTCaer
0b2c2aa564
bdk: regulator 5V: improve management per SKU
2022-10-11 03:57:17 +03:00
CTCaer
2aa251c44f
bdk: max77812: uncomment RAM regulator
2022-10-11 03:53:17 +03:00
CTCaer
c52c11e7bc
bdk: mem: improve emc MRR reading
2022-10-11 03:51:12 +03:00
CTCaer
ff5ee9758d
bdk: joycon: refactor some structs and comments
2022-10-11 03:49:18 +03:00
CTCaer
a33663f759
nyx: Add info about Sharp LQ055T1SW10 panel
2022-10-11 03:47:05 +03:00
CTCaer
44b429d5cd
bdk: display: Name panel 1040 to Sharp LQ055T1SW10
2022-10-11 03:45:49 +03:00
CTCaer
b891657fb6
bdk: tsec: fix regression on HOS 6.2.0 not booting
...
With the latest BDK changes on enabling always on AHB redirect with a compile time flag, TSEC fw boot was regressed because it needs it off.
Always disable redirect and if the flag is enabled, enable it on exit.
2022-07-11 22:28:09 +03:00
CTCaer
801ebd3543
bdk: xusb: fully clear device mode ctrl register on deinit
2022-07-11 22:13:13 +03:00
CTCaer
d259d6f6d6
bdk: watchdog: clear timer interrupt also in handling
2022-07-11 22:10:41 +03:00
CTCaer
70523e404f
bdk: whitespace refactor
2022-07-11 22:10:11 +03:00
CTCaer
1499f958dd
Bump hekate to v5.8.0 and Nyx to v1.3.0
2022-07-01 13:47:47 +03:00
CTCaer
b787053c2d
bdk: joycon: fixup hori pads
...
For Hori game pads:
- Restore the no power down fix
- Revert RTS signal back to active high
2022-07-01 13:47:41 +03:00
CTCaer
fe7fd6370e
hekate/nyx: push some missed changes
2022-07-01 11:33:43 +03:00
CTCaer
535ea95086
hekate/nyx: gfx: add text color defines
...
And reduce code size when using W/EPRINTF macros
2022-07-01 04:37:57 +03:00
CTCaer
eba6b285ec
hekate: utilize watchdog to catch sd based hangs
...
Utilize watchdog when configuring LP0/Minerva.
A problematic SD card connector can cause corrupted reads to happen and thus cause hekate to hang on a black screen.
By using a watchdog there, such issues can be avoided and the user can get notified visually.
2022-06-29 12:19:19 +03:00
CTCaer
e921d8f51c
bdk: update memory map with more used addresses
2022-06-29 12:13:04 +03:00
CTCaer
57c8fd1f8c
bdk: fiq: watchdog handling
...
`BDK_WATCHDOG_FIQ_ENABLE` enables watchdog handling.
`BDK_RESTART_BL_ON_WDT` causes a reload of bootloader on FIQ
These 2 are useful when wanting to detect and handle hangs.
2022-06-29 12:12:03 +03:00
CTCaer
d38ddad873
bdk: display: correct night mode value
2022-06-27 10:27:18 +03:00
CTCaer
b0c0a86108
bdk: migrate timers/sleeps to timer driver
2022-06-27 10:22:19 +03:00
CTCaer
061e10152f
bdk: timer: add timer/watchdog driver
2022-06-27 10:20:25 +03:00
CTCaer
b65b2d7f71
bdk: se: do not use heap for linked lists
2022-06-27 09:14:43 +03:00
CTCaer
3369dcd110
nyx: if no full backup, backup MWS folder also
...
When full backup is not possible, together with bootloader folder, also backup mariko warmboot storage if it exists.
2022-06-25 06:47:12 +03:00
CTCaer
677770bfee
nyx: offer wipe if partitioning can backup files
2022-06-25 06:41:34 +03:00
CTCaer
50886382bf
bdk: list: add LIST_FOREACH_INVERSE and LIST_FOREACH_ENTRY_INVERSE
2022-06-25 05:59:53 +03:00
CTCaer
2378bf2863
bdk: ini: simplify kv free
2022-06-25 05:56:11 +03:00
CTCaer
e5ddac5211
bdk: sdmmc: rename current limit to power limit
2022-06-25 05:53:04 +03:00
CTCaer
489e222aac
bdk: sdmmc: expose csd/scr functions
2022-06-25 05:48:54 +03:00
CTCaer
16af97c79a
uart: rename print to printf
2022-06-25 05:42:42 +03:00
CTCaer
bdb8f6d352
ccplex: name some flow control values
2022-06-25 05:42:19 +03:00
CTCaer
e2f6e925c4
nyx: info: show total size of fat partition
2022-06-19 12:39:02 +03:00
CTCaer
258a343e21
bdk: usb: support deconfiguration of endpoints
...
TODO: Signal that to userspace and manage it.
2022-06-14 18:48:21 +03:00
CTCaer
f6c9e636d1
bdk: usb: improve USB2/XUSB power down
...
TODO: add more power downs on XUSB stack
2022-06-14 18:46:46 +03:00
CTCaer
605f270f98
bdk: usb: fix a race condition in USB2 stack
...
When RAM is slow (no training), it's possible to have the stack failing to negotiate configuration successfully.
The race condition is caused by not flushing cache before sending a configuration packet reply.
Although, cache is write-through, this needs to happen.
2022-06-14 18:41:33 +03:00
CTCaer
3fa01a1975
hekate: fix a bug in low battery monitor
...
Do not try to deinit display if it's not enabled.
Can happen if LBM disables display to reserve power while charging and user presses both VOL buttons to exit the mode.
2022-06-04 22:03:47 +03:00
CTCaer
0e526bf9e8
nyx: tools: fix hybrid mbr changes
...
- MBR is now checked if it has GPT partition, in order to avoid revival of a dead but valid GPT
- MBR secret attributes can now be cleared even if there's no GPT
2022-05-27 04:44:42 +03:00
CTCaer
c77c741c07
bdk: sdmmc: correct lower speed mode checks
...
Both bus widths of 8 and 4 should be checked for HS200 support and host type support, instead of giving 8-bit bus width a free pass.
2022-05-26 03:04:27 +03:00
CTCaer
358896eb7d
nyx: tools: inform user on erros in archive bit fixer
2022-05-21 14:24:43 +03:00
CTCaer
10205b17dd
hekate: remove sd mount/unmout management for payload launch
...
Callers manage it anyway.
Fixes a case where missing the payload would result to Nyx not relaunching because sd was unmount.
2022-05-21 13:10:12 +03:00
CTCaer
75b7d91abf
hekate: always init sublist on section creation
...
Even if there are no edge cases here
2022-05-21 13:08:46 +03:00
CTCaer
369df25cd3
nyx: fatfs: add failsafes for wrong mkfs usage
2022-05-19 15:17:54 +03:00
CTCaer
af22085172
nyx: move emuMMC backup folder to {emmc_sn}/emummc
2022-05-19 15:15:36 +03:00
CTCaer
38010ce65e
nyx: utilize ini free and fix various memleaks
...
With the new changes the heap and heap node usage drops 95% on boot. Subsequent accesses to Launch/More config keep the counter the same.
2022-05-19 15:14:05 +03:00
CTCaer
8428ce1a2e
hekate/nyx: gfx: changes to putn
2022-05-19 15:06:37 +03:00
CTCaer
bf00c79edb
bdk: ini: add ini free
...
Additionally, fix a bug where a list could not be initialized if section type is comment or caption.
2022-05-19 15:03:00 +03:00
CTCaer
429074293a
bdk: sprintf: no support for lower case hex and base that is not 10/16
2022-05-19 15:01:10 +03:00
CTCaer
2c768db542
bdk: heap: add nodes info
2022-05-19 14:53:02 +03:00
CTCaer
889317da58
bdk: sdmmc: add missing sd block size define
2022-05-16 13:34:36 +03:00
CTCaer
e09710e3eb
bdk: fatfs: mkfs alignment changes
...
- Default data alignment is now 1MB **when it's not set**
- Default volume alignment is now based on data alignment and not hardcoded to 16MB.
- Change max allowed alignment to 64MB.
The above changes allow selecting alignments for volume and data between 1MB and 64MB.
(From the previous 1 to 16MB for data and 16MB for volume).
2022-05-16 13:33:38 +03:00
CTCaer
fb45804adf
nyx: refactor various functions and add comments
...
Emphasis on partition manager deduplication and remove of some magic numbers.
2022-05-16 13:28:38 +03:00
CTCaer
796207a41b
nyx: do not allow joycon pairing info dump on Hoag
2022-05-16 13:12:45 +03:00
CTCaer
1649d446cd
nyx: options: set min year for clock offset to 2022
2022-05-16 13:12:11 +03:00
CTCaer
7459214fed
nyx: info: add mov r1 print for patched t210
2022-05-16 13:06:40 +03:00
CTCaer
e9587a325c
bdk: fuse: add ipatch support for T210B01
2022-05-16 13:05:12 +03:00
CTCaer
331f1926d1
bdk: display: remove unneeded pinmuxing on Aula
2022-05-16 10:16:24 +03:00
CTCaer
87fe374b3b
bdk: uart: use 2 STOP bits based on baudrate
2022-05-14 12:25:02 +03:00
CTCaer
b56e788d12
bdk: pinmux: more proper uart pinmuxing
2022-05-14 12:20:57 +03:00
CTCaer
abdf621ad5
nyx: simplify uart debug port path
2022-05-13 03:57:09 +03:00
CTCaer
9e613a7600
bdk: hwinit: simplify uart debug port paths
2022-05-13 03:56:59 +03:00
CTCaer
c2ff5dbd1c
nyx: add no box and 5 entries per line support
...
Icons that have `_nobox.bmp` in their name will make the grey background disappear.
Additionally a new option was added in Nyx Options called `Extended Boot Entries` that allows user to have a total of 10 entries showing up in Launch and More configs menus.
2022-05-13 03:49:32 +03:00
CTCaer
b9cdf5d697
nyx: fix s_printf bugs pointed by format checker
2022-05-12 16:43:18 +03:00
CTCaer
b6384d5da5
bdk: utils: Set format attribute for s_printf
...
This allows the custom sprintf to be recognized as printf by gcc and effectively doing format checking.
NOTE: 64bit formatting is not supported for now, even if gcc asks to be set.
2022-05-12 16:40:34 +03:00
CTCaer
7df76bff4a
nyx: input: add Sio support (for Hoag)
2022-05-09 06:13:10 +03:00
CTCaer
54b054c940
bdk: usb: add Sio support to hid gadget
2022-05-09 06:10:49 +03:00
CTCaer
f31170bb51
bdk: joycon: add Sio support (for Hoag)
2022-05-09 06:09:06 +03:00
CTCaer
f452d916c9
bdk: clock: add ext peripheral clock control
2022-05-09 06:08:39 +03:00
CTCaer
47d06d0e8a
bdk: joycon: use flow control to improve packet integrity
2022-05-09 05:55:06 +03:00
CTCaer
2aed1b3b83
bdk: joycon: add 3 mbaud support and full init
...
Additionally use states for proper init
2022-05-09 05:48:10 +03:00
CTCaer
12aac3a0fc
bdk: clock: add 3 megabaud support for UART
2022-05-09 05:47:08 +03:00
CTCaer
833a115eb2
bdk: joycon: improve and streamline jc detect
2022-05-09 05:39:45 +03:00
CTCaer
9f30c51bd1
bdk: joycon: refactor driver
2022-05-09 05:32:32 +03:00
CTCaer
62d68b33c3
nyx: tools: use actual gpt entries num in part manager
2022-05-08 05:59:57 +03:00
CTCaer
c51877d588
nyx: tools: add mbr hidden attr fixer in hybrid mbr fixer
2022-05-08 05:59:32 +03:00
CTCaer
471f3c50ea
nyx: tools: do not allow part manager backup/restore to hang on corruption
2022-05-08 05:57:59 +03:00
CTCaer
6d66bfc168
nyx: tools: do not allow arc bit fixer to hang on corruption
...
Check if path exceeds 1024 characters.
2022-05-08 05:56:44 +03:00
CTCaer
9163151dd0
nyx: info: add battery lot and another old panel rev
2022-05-08 05:55:46 +03:00
CTCaer
334d89973f
hekate/nyx: adhere to uart driver changes
2022-05-08 05:46:23 +03:00
CTCaer
f7bf4af3ec
bdk: uart: refactor and add new functionality
...
- Allow to set CTS/RTS mode (only specific combos supported for now)
- Support the above modes in receiving
- Set 2 stop bits to decreases errors on high baudrates
2022-05-08 05:45:16 +03:00
CTCaer
ae394d9f37
nyx: remove negative decimal external handling
2022-05-08 05:32:21 +03:00
CTCaer
c2869703af
hekate: gfx: add negative decimals printing
...
And remove external handling
2022-05-08 05:29:30 +03:00
CTCaer
ebe7b5a603
bdk: utils: add approx. square root calc for u64
2022-05-08 05:27:05 +03:00
CTCaer
ebf0db77ee
bdk: sprintf: add negative number support for %d
...
This will now force a number as negative if bit31 is set and properly create the relevant string.
That means that external handling in order to show sign is now not needed.
2022-05-08 05:26:01 +03:00
CTCaer
81730c5f7e
bdk: pinmux/pmc: add more defines
2022-05-08 05:22:41 +03:00
CTCaer
76d1b4e221
bdk: sdmmc: refactor defines
...
And fix a bug with tuning trim values
2022-05-08 05:21:29 +03:00
CTCaer
4a1cb1f2ea
bdk: fan: add Hoag and Aula SKUs support
...
Now that what was hanging Aula is found (using PWM with its clock disabled), add full support for fan control on both SKUs.
2022-05-08 05:07:38 +03:00
CTCaer
58a2094448
bdk: reg 5v: add support for Hoag and Aula SKUs
...
Add support back and make it more proper.
Also add fan regulator support also.
2022-05-08 05:05:39 +03:00
CTCaer
1b7b7ab7f5
nyx: info: add new hynix chip model info
2022-05-08 05:00:46 +03:00
CTCaer
37de367fef
bdk: sdram: deduplicate dram configs
...
Additionally add info about new hynix chip and correct ids 3 and 5 on T210B01 based Switch.
2022-05-08 04:58:36 +03:00
CTCaer
450d95e573
bdk: di: correct samsung backlight set
...
Now that vblank writes are fixed we can return to proper backlight set.
Additionally, account for the pwm smoothing when backlight is turned off. That's to avoid visible green tint glitches when display is also turned off.
2022-05-08 04:53:13 +03:00
CTCaer
969a49edba
bdk: di: reselect winA when done with winD config
2022-05-08 04:49:28 +03:00
CTCaer
9908eb8bb3
bdk: di: samsung panel: better init
...
- Set display color profile to natural (it's still vivid but not overblown.)
- Enable PWM slope and set it to 6 frames in order to have smooth backlight transitions
2022-05-08 04:48:55 +03:00
CTCaer
56dcbb2b23
bdk: di: cleanup configs
...
Nintendo or Nvidia copied pasted the dynamic display code into static arrays in order to do the static hw init in bootloader and boot sysmodule.
Ofc that does double the work that is not needed at all, making it suboptimal.
Clean up every single config based on how tegra display interface hw works in order to save up space and make the process a bit faster.
2022-05-08 04:45:03 +03:00
CTCaer
b9f40fed7a
bdk: di: move plld setup code out of display obj
2022-05-08 04:41:05 +03:00
CTCaer
6ae4904c8f
bdk: di: make dsi normal/vblank writes more robust
2022-05-08 04:36:20 +03:00
CTCaer
dd2bb0f555
bdk: di: refractor configs
2022-05-08 04:34:44 +03:00
CTCaer
0b8cdaf0ea
bdk: di: split normal and vblank dsi reads
...
And also make vblank reads more robust
2022-05-08 04:23:31 +03:00
CTCaer
8f540b2543
Bump hekate to v5.7.2 and Nyx to v1.2.2
2022-03-23 19:34:59 +02:00
CTCaer
f687c4f6da
hos: add support for HOS 14.0.0
2022-03-23 02:21:59 +02:00
CTCaer
5c4e895c35
nyx: update dram/touch info for HOS 14.0.0
2022-03-23 02:21:21 +02:00
CTCaer
83c95d8a3b
bdk: sdram: update 20/21/22 ids for new dram
...
Dram chip is Samsung 4GB built on 1z-nm that allows for 40% lower power usage.
2022-03-23 02:20:55 +02:00
CTCaer
ff214f25c1
bdk: update l4t hekatf prep functions
2022-03-23 00:58:20 +02:00
CTCaer
f818d094c5
Add .exe version of the tools in .gitignore
2022-03-23 00:56:32 +02:00
CTCaer
69c312daac
nyx: clear B button context on option actions
...
Fixes an issue that was causing an NULL pointer dereference when a certain access path was followed
2022-03-23 00:55:18 +02:00
CTCaer
b7e59dfc28
nyx: print sd oemid in hex also
2022-03-23 00:53:56 +02:00
CTCaer
c04d423f4b
nyx: add option to use right joycon as mouse control
...
`jcforceright=1` in nyx.ini enables that feature.
Useful for users with broken touch screen and broken left joycon rail.
2022-03-23 00:49:47 +02:00
CTCaer
af1ece903b
nyx: Do not reserve alignment space if no extra partitions
2022-03-23 00:24:51 +02:00
CTCaer
547c90a0a9
hekate: remove ipatches info from main hekate
2022-03-23 00:24:13 +02:00
CTCaer
0fef90dc4c
bdk: sd: return proper error for sd file save
2022-02-15 00:36:23 +02:00
CTCaer
a76ad9838e
nyx: cosmetics
2022-02-15 00:29:23 +02:00
CTCaer
499a9cf5f3
hekate: disable heap defrag
2022-02-15 00:27:17 +02:00
CTCaer
cfd6567f5d
pkg1: move warmboot rsa patching into pkg1
...
And create a function for hekatf to be used
2022-02-15 00:26:07 +02:00
CTCaer
ee465b98af
bdk: sdmmc correct exit on eMMC < 4.0 modules
2022-02-15 00:24:53 +02:00
CTCaer
9aa55c2d76
hekate/nyx: correct type on heap_init
2022-02-15 00:23:23 +02:00
CTCaer
83b895a062
bdk: heap: improvements
...
Correct types everywhere.
Add BDK_MALLOC_NO_DEFRAG that disables defragmentation on the heap.
2022-02-15 00:22:38 +02:00
CTCaer
ad4014f295
hekate: sd info: always reset mode after done
2022-02-15 00:18:24 +02:00
CTCaer
ce8d1eca91
bdk: remove sd mounts from ianos and check if sd is mounted in sd ops
2022-02-15 00:17:53 +02:00
CTCaer
73d38e1183
hos: loop through counter instead of explicit sets
2022-02-15 00:16:42 +02:00
CTCaer
3f65a30b2e
bdk: more atf prep
2022-02-15 00:14:53 +02:00
CTCaer
7c74391754
bdk: bpmp: do not use full maintenance
...
Instead use proper clean/invalidation of dcache.
2022-02-15 00:14:14 +02:00
CTCaer
70ee61f0da
More 2022 copyright updates
2022-01-29 01:43:35 +02:00
CTCaer
b0b538f8f2
build: force dwarf v4
2022-01-29 01:43:16 +02:00
CTCaer
52bb6a96e5
bdk: nx emmc bis: fix out of cluster bounds accesses
2022-01-29 01:40:38 +02:00
CTCaer
6666dd4b46
bdk: fatfs: better PrFILE2 SAFE record creation
2022-01-29 01:40:05 +02:00
CTCaer
4a13a1d190
nyx: fix aula full emummc creation (for real this time)
2022-01-29 01:39:01 +02:00
CTCaer
2b7217242d
nyx: align down resized emu sectors to cluster size
2022-01-29 01:37:57 +02:00
CTCaer
ce16a08694
main: check pstore log size if 0
2022-01-29 01:37:02 +02:00
CTCaer
0ad42762e7
main: rename logo buffer
2022-01-29 01:36:35 +02:00
CTCaer
5f337bffd6
config: do not unmount on exit
...
Fixes Nyx not found for new users without hekate_ipl.ini
2022-01-29 01:35:09 +02:00
CTCaer
3fdb72ce37
bdk: i2c: correct order of spinlock wait
2022-01-29 01:34:01 +02:00
CTCaer
9a80f8b4b5
bdk: minerva: fix fsp op/wr check for l4t
2022-01-29 01:31:28 +02:00
CTCaer
c0c8fb263a
hekate/nyx: enable ahb arbitration
2022-01-29 01:29:39 +02:00
CTCaer
ef5790cc2c
bdk: mc: always on ahb arbitration
...
- Removed disables
- SDMMC code now just checks if it has access
2022-01-29 01:29:02 +02:00
CTCaer
7bb8b1da62
di: restore window config wait for inv pitch and block linear
2022-01-29 01:26:00 +02:00
CTCaer
aee5861f65
hekate/nyx: improve cyclomatic complexity
2022-01-29 01:23:40 +02:00
CTCaer
2f1d1572f7
Bump hekate to v5.7.0 and Nyx to v1.2.0
2022-01-20 14:34:54 +02:00
CTCaer
d52283f0c2
nyx: add support for FULL emuMMC for OLED model
...
That supports creating a 64GB emuMMC partition.
That's added for consistency.
Because it's a waste of space, better use resized emuMMC.
2022-01-20 14:11:36 +02:00
CTCaer
6be12f32e6
nyx: remove nx_emmc_bis objects as they reside in bdk now
2022-01-20 14:08:39 +02:00
CTCaer
49f34581bb
hos: add 13.2.1 support
2022-01-20 14:06:50 +02:00
CTCaer
0a1db98210
nyx: add eMMC hw issues reporting
2022-01-20 14:00:45 +02:00
CTCaer
17b0270eb5
hekate: move display init above others that need it
2022-01-20 13:57:25 +02:00
CTCaer
39ce19e6f4
hekate: remove unnecessary sd mounts
...
- Main already mounts sd. Also by trying again it takes forever to go into TUI
- Skip l4t kernel pstore dump and auto launch fw if sd failed to mount
2022-01-20 13:56:36 +02:00
CTCaer
b18b5076b3
hos: change order of deinits and update for newer exo
2022-01-20 13:49:29 +02:00
CTCaer
6ac9d79282
pkg2: do not hash kernel/ini1 if exo
2022-01-20 13:34:18 +02:00
CTCaer
836530d4e3
pkg2: refactor bitflags and remove debugging code
2022-01-20 13:32:48 +02:00
CTCaer
3b2f438f69
pkg2: ini patches: reduce heap fragmentation/pressure
2022-01-20 13:31:16 +02:00
CTCaer
781f377083
nyx: adhere to nx_emmc_bis changes
2022-01-20 13:26:24 +02:00
CTCaer
20c4d6dba6
minerva: update copyright years
2022-01-20 13:22:39 +02:00
CTCaer
192a936a31
bdk: add NX eMMC BIS driver
2022-01-20 13:21:04 +02:00
CTCaer
23945ee12f
nyx: use new bdk compile time flags
2022-01-20 13:20:06 +02:00
CTCaer
8327de8e2e
bdk: replace NYX flag with proper flags
...
- BDK_MINERVA_CFG_FROM_RAM: enables support for getting minerva configuration from nyx storage
- BDK_HW_EXTRA_DEINIT: enables extra deinit in hw_reinit_workaround
- BDK_SDMMC_OC_AND_EXTRA_PRINT: enables eMMC OC support (533 MB/s) and extra error printing
2022-01-20 13:19:48 +02:00
CTCaer
960f3b23e7
bdk: ums: adhere to emmc ops changes also
2022-01-20 13:17:55 +02:00
CTCaer
28167b7304
hekate/nyx: move emmc ops to bdk and adhere to changes
2022-01-20 13:15:04 +02:00
CTCaer
b08e36a7b0
bdk: add emmc ops
...
- Add support for lower eMMC bus speed init in case of failures
- Add error count reporting
- Function names and defines changed from nx_emmc to emmc (except autorcm helper function)
- Enabling emuMMC support needs BDK_EMUMMC_ENABLE flag passed over
2022-01-20 13:14:38 +02:00
CTCaer
943f675046
hekate/main: move sd ops into bdk
2022-01-20 12:49:18 +02:00
CTCaer
00110a8863
bdk: move sd ops into bdk
2022-01-20 12:48:41 +02:00
CTCaer
7ae4fd03c2
bdk: minerva: prep for ATF direct boot support
2022-01-20 12:43:24 +02:00
CTCaer
e071fe44b0
bdk: ini: reduce heap fragmentation/pressure
2022-01-20 12:41:20 +02:00
CTCaer
39d411dc68
bdk: uart: add uart va print
2022-01-20 12:39:32 +02:00
CTCaer
82f90fae28
bdk: utils: add vprintf
2022-01-20 12:37:41 +02:00
CTCaer
10e1f67dc5
bdk: utils: add strcpy with head/tail whitespace removal
2022-01-20 12:36:25 +02:00
CTCaer
10b479dc1c
bdk: clock: add apb/ahb clock control
2022-01-20 12:32:57 +02:00
CTCaer
3dd12321f8
bdk: add activity monitor driver
2022-01-20 12:32:02 +02:00
CTCaer
c1441a64c7
bdk: se: expose xts functions and add nx xts
2022-01-20 12:28:26 +02:00
CTCaer
0e35e68fd5
bdk: se: add t210b01 data coherency WAR
2022-01-20 12:27:25 +02:00
CTCaer
853f10f774
bdk: pmc: update tzram defines
2022-01-20 12:13:35 +02:00
CTCaer
4628ee6dc5
bdk: di: window fb changes
...
- Get fb address from in window regs
- Remove 2 frames wait
2022-01-20 12:12:19 +02:00
CTCaer
3bb46c6470
bdk: di: allocate fifo buffer once
2022-01-20 12:09:29 +02:00
CTCaer
6a74f6ed04
minerva: make is_pllmb and fsp automatic
...
No need to keep these values around.
Software will automatically check the proper registers to get status.
2022-01-16 01:43:16 +02:00
CTCaer
d1c0d464dc
minerva: name needs_training flags
2022-01-16 01:41:24 +02:00
CTCaer
6092994240
nyx: sd part: set attributes to folders also on restore
2022-01-16 01:38:47 +02:00
CTCaer
5a88f7bc06
nyx: info: highlight battery temp info if cold/hot
2022-01-16 01:37:26 +02:00
CTCaer
06e7af150e
hekate/nyx: improve exceptions reporting
...
- Do not report HOS panic if status is 0
- Do not report LP0/MTC libs missing if failed to mount sd
- Rename panics to be explicit of their source
2022-01-16 01:33:07 +02:00
CTCaer
864ec50a2d
main: add L4T kernel panic report back
...
L4T kernel now uses a PANIC magic flag instead of a bitflag and so it's simpler to detect.
2022-01-16 01:23:39 +02:00
CTCaer
aa0a9da37b
fatfs: default year to 2022
2022-01-16 01:09:45 +02:00
CTCaer
30a4861da6
exo: change BOOT2 error message
2022-01-16 01:08:56 +02:00
CTCaer
5e6a7c486b
bdk: btn: enable HOME button as input
2022-01-16 01:05:42 +02:00
CTCaer
1a9c6bf983
bdk: correct reg init as per TRM
2022-01-16 01:04:52 +02:00
CTCaer
70504c295e
bdk: various functionality independent changes
2022-01-16 01:03:24 +02:00
CTCaer
5894062b93
hekate/nyx: utilize bdk global header
2022-01-16 00:04:34 +02:00
CTCaer
a5cd962f99
bdk: add global header
2022-01-15 23:58:27 +02:00
CTCaer
01b6e645b3
Bump hekate to v5.6.5 and Nyx to v1.1.1
2021-10-26 11:39:53 +03:00
CTCaer
db8c41cdaa
hos: pkg2: add 13.1.0 support
2021-10-26 11:39:32 +03:00
CTCaer
b0fe84070f
nyx: add new touch panel fw info
...
Additionally, do not alloc/free heap every time status bar update must run
2021-10-26 10:55:11 +03:00
CTCaer
4d91d2baff
bdk: fan: clamp duty before checking if the same
2021-10-26 10:53:22 +03:00
CTCaer
c6fdb637ca
Bump hekate to v5.6.4 and Nyx to v1.1.0
2021-10-19 09:16:49 +03:00
CTCaer
bdd9e48606
nyx: simplify touch ic fw ids
2021-10-19 09:16:18 +03:00
CTCaer
25a7544010
nyx: add new mircon ram model info
2021-10-19 09:15:28 +03:00
CTCaer
821ad23341
nyx: add fuses keygen revision info
2021-10-19 09:14:36 +03:00
CTCaer
981c986b3f
bdk: sdram: name the new micron modules
2021-10-19 09:13:14 +03:00
CTCaer
09b3e47ac8
bdk: touch: rename samsung touch panel
2021-10-19 09:11:58 +03:00
CTCaer
d2684f66a1
hos: change exfat check order
2021-10-19 09:11:36 +03:00
CTCaer
964381854e
readme: fix key name in description
2021-10-15 16:52:11 +03:00
CTCaer
d8670fbd87
nyx: bis: correct lookup check
2021-10-15 16:50:56 +03:00
CTCaer
3c81ac91df
nyx: fix months that have 30/31 days on date picker
2021-10-15 16:50:16 +03:00
CTCaer
147c82e0e2
nyx: fix text color on restore emmc errors
2021-10-15 16:49:28 +03:00
CTCaer
339ce2d861
minerva: change some types and fix temp check
...
Temperature error check for over temp compensation was wrong.
It's still unused though, so it didn't matter.
2021-10-15 16:48:51 +03:00
CTCaer
a7f0701cbf
hos: move storage end above final touches
2021-10-15 16:47:06 +03:00
CTCaer
65b3b87c99
hos: pkg1: explicitly which type pkg1 is wrongly flashed
2021-10-15 16:42:39 +03:00
CTCaer
8d3700b76b
hos: improve error for missing BEK or corrupt pkg1 on T210B01
2021-10-15 16:40:06 +03:00
CTCaer
d2595a00b6
nyx: move autorcm protection in nyx
2021-10-15 16:34:15 +03:00
CTCaer
c4bf129d5e
hos: name pkg1/secmon states
2021-10-15 16:30:14 +03:00
CTCaer
503f4d4cd6
tui: tools: simplify autorcm warning
2021-10-15 16:26:57 +03:00
CTCaer
31d6c7d85d
bdk: reg 5v: fix a hang with T210B01 and Hoag/Aula
...
- Hoag and Aula do not have a USB based 5V bus source, so do not touch CC4 pin.
- More importantly, in T210B01 the GPIO AO IO rail seems to be working properly from boot.
Plus it also seems that is needed by various components.
That was found when running on Aula. It was causing an immediate hang. Probably SoC wide.
Only allow control of it on T210 to avoid such issues.
2021-10-15 16:26:11 +03:00
CTCaer
9a17ca2628
bdk: disable fan control on Hoag and Aula
...
TODO: Add support for them.
These use a different way to init/control fan.
2021-10-15 16:19:16 +03:00
CTCaer
49bcaf3914
bdk: correct some types and warnings
2021-10-15 16:18:06 +03:00
CTCaer
82d0346615
bdk: fatfs: remove errors that depend on full diskio
2021-10-15 16:17:08 +03:00
CTCaer
808da1bce0
bdk: di: adjust OLED panel brightness curve
...
The Samsung AMOLED panel least legible backlight is at a high duty (45 / 255).
Change the linear curve to a more appropriate one.
2021-10-15 16:16:24 +03:00
CTCaer
6992ece762
bdk: touch: add samsung touch model name
2021-10-15 16:09:25 +03:00
CTCaer
734e70b755
nyx: add samsung display/touch model info
2021-10-15 16:08:48 +03:00
CTCaer
681182540e
bdk: di: add model name for the samsung panel
2021-10-15 16:07:18 +03:00
CTCaer
9c29ee437a
Bump hekate to v5.6.3 and Nyx to v1.0.8
2021-10-01 15:54:49 +03:00
CTCaer
785baad5ea
hos: exo: better fatal description for boot2
2021-10-01 15:46:38 +03:00
CTCaer
91b08f10fd
hekate/nyx: use size defines where applicable
2021-10-01 15:45:25 +03:00
CTCaer
c801ef8dda
bdk: use size defines where applicable
2021-10-01 15:03:18 +03:00
CTCaer
b47c01981f
hekate: add OS panic error reporting
2021-10-01 14:35:39 +03:00
CTCaer
7e4c71748f
bdk: types: refactor and add size defines
2021-10-01 14:33:55 +03:00
CTCaer
a1910156d8
bdk: hwinit: save boot reason for later usage
2021-10-01 14:32:42 +03:00
CTCaer
99d15eaac8
bdk: fatfs: check if string is null for puts/printf
...
Avoid writing garbage to a file by checking string pointer passed to f_puts and f_printf.
Important on many embedded platforms that do not abort on NULL dereference.
2021-10-01 14:27:57 +03:00
CTCaer
e31d6446db
nyx: correct reboot name for patched devices
2021-09-26 12:53:34 +03:00
CTCaer
05ce867064
hekate: move emummc config load inside relevant functions
...
This ensures that hekate can re-read it in case of sd card swap while in TUI and also doesn't read it if not needed.
2021-09-26 12:23:54 +03:00
CTCaer
609a76045a
nyx: remove always true check
2021-09-26 12:16:04 +03:00
CTCaer
000ea3096a
nyx: check if emuMMC path is null before producing the ID
2021-09-26 12:15:25 +03:00
CTCaer
0160df7fb9
Bump hekate to v5.6.2
2021-09-20 11:45:58 +03:00
CTCaer
05c989a1ce
emummc: correct id size and also set id if emupath is used
...
This corrects a truncation that was happening and also if `emupath` key is used to change emuMMC on the fly, it now uses the path as id instead of 0.
2021-09-20 11:41:48 +03:00
CTCaer
ebefd1c2d3
Bump hekate to v5.6.1 and Nyx to v1.0.7
2021-09-19 22:35:56 +03:00
CTCaer
983d661da5
nyx: add many SD manufacturers
...
This will now properly identify many more manufacturers.
As a reminder, it shows who made the sd card, even if the SD card has another vendor name.
In that case, it's normally because the manufacturing is outsourced and vendor only puts a label on it.
For example, now lexar, transcend and sony do not exist in the list as they don't manufacture sd card nands and microcontrollers
2021-09-17 23:45:48 +03:00
CTCaer
da08d00d21
nyx: replace Tsec Keys with Lockpick RCM
...
This checks if bootloader/payloads/Lockpick_RCM.bin exists and if found it allows to launch it directly from there.
Only works with Lockpick RCM copied there and is version 1.9.5 or newer.
2021-09-17 23:41:40 +03:00
CTCaer
6bd4c31965
nyx: add info for new touch panels
...
New 6.2" touch panel and a new firmware for 7.0"
2021-09-17 23:37:43 +03:00
CTCaer
af7bee2231
nyx: derive emuMMC ID from its main path
...
This allows every emuMMC to have a unique id because its path is unique.
2021-09-17 23:35:13 +03:00
CTCaer
d61be73bca
nyx: add reminder that reload also checks for update.bin
2021-09-17 23:34:16 +03:00
CTCaer
768b3ba2d9
hos: update some log messages
2021-09-17 23:32:48 +03:00
CTCaer
0ff121284a
hos: add full 13.0.0 support
...
- 13.0.0 master key support
- Derive proper keys per mkey revision instead of the latest for Erista devices
This allows to identify issues with Pkg1/Pkg2 mismatch and also allows using old Exosphere/Atmosphere versions.
- Simplify pkg2 decryption because of proper keys
7.0.0 is still done via 8.1.0 mkey because of an Exosphere bug.
- Add nogc patches
2021-09-17 23:32:13 +03:00
CTCaer
bcc2512cb6
hos: exo: fatal: add check for mixed atmosphere sysmods
...
Normally that can only happen if atmosphere is updated and config uses fusee-secondary instead of package3. In that case boot2 sysmodule (0100000000000008) will fatal.
2021-09-17 23:23:43 +03:00
CTCaer
a2d18f0848
hos: update fss0 parser
...
- Move extra key checks in the parser
- Remove some sept leftover checks
- Update printing to reflect PK3 name (FSS0 -> FSS/PK3)
2021-09-17 23:20:39 +03:00
CTCaer
7fb10b0242
sdram: fix building for embedded lp0 config
2021-09-17 23:17:56 +03:00
CTCaer
bcec028b0f
clock: update device frequency getter function
...
- Add missing write commits
- Remove hardcoded values
2021-09-17 23:16:43 +03:00
CTCaer
8f9d52aa89
clock: move pllx enable to clock object
2021-09-17 23:13:53 +03:00
CTCaer
d368b93fdd
sdmmc: move error prints checks inside ifdefs
2021-09-17 23:12:54 +03:00
CTCaer
d5322f384b
tsec: make sure cpu power rails are off
2021-09-17 23:10:57 +03:00
CTCaer
03d027615c
sdram: update config for t210b01 (unused)
2021-09-17 23:09:33 +03:00
CTCaer
7fbab0122d
Modernize hekate_ipl.ini for atmosphere 1.0.0 and up
...
Additionally add extra info and guidance for various entries
2021-09-12 17:43:22 +03:00
CTCaer
f3f5687bc8
Correct bootlogo readme
2021-09-12 17:34:19 +03:00
CTCaer
bbffcc20d7
Modernize readme
2021-09-12 17:34:05 +03:00
CTCaer
197ed8c319
Bump hekate to v5.6.0 and Nyx to v1.0.6
2021-08-28 20:08:44 +03:00
CTCaer
9363494c3f
nyx: lower launch priority for ums boot
...
This fixes the backlight not being dimmed if UMS is launched from boot
2021-08-28 20:08:08 +03:00
CTCaer
d8d32f7932
Update readme with new changes
...
- Add feature list
- Remove sept references
- Add missing info
2021-08-28 18:13:08 +03:00
CTCaer
d575586d77
minerva: add non standard frequencies selection
2021-08-28 18:11:29 +03:00
CTCaer
4326dcdc6c
remove sept from makefile
2021-08-28 18:10:20 +03:00
CTCaer
792a3511da
nyx: clear nand patrol for resized emummc
...
On used eMMCs, the usage size might exceed the new resized size.
In such cases if the nand patrol points there, it will cause the sd card to timeout because of out of bounds access.
Clearing that allows resized emuMMC to always have the same speed as full sized emuMMC.
2021-08-28 18:09:34 +03:00
CTCaer
9ba867f19e
nyx: fix missing labels in launch if a previous label was big
2021-08-28 18:07:32 +03:00
CTCaer
49943ee46f
nyx: unconditionally dump pk1/2 encrypted states
2021-08-28 18:06:32 +03:00
CTCaer
2a8c58af31
nyx: improve info tools
...
- Add Aula report
- Add new dram ids/names
- Signify that a SD card is fake if MID is 0
2021-08-28 18:05:49 +03:00
CTCaer
66cf88b967
nyx: fix percentage when restoring size unmatched emmc backup
2021-08-28 18:04:24 +03:00
CTCaer
f61e284ac0
config: add clamping of bootwait
2021-08-28 17:57:36 +03:00
CTCaer
9d69c9bd3f
main: deduplicate code
2021-08-28 17:56:19 +03:00
CTCaer
9258025eea
hos: add wrong pkg1 flashed detection
2021-08-28 17:55:30 +03:00
CTCaer
063abb3e23
hos: Fix compilation
2021-08-28 17:55:03 +03:00
CTCaer
f5ec4a3a37
hekate/Nyx: remove Sept completely
...
- remove any reference to sept and parsing of it
- completely refactor and simplify keygen
- use new Atmo tsec keygen for 7.0.0 and up
- simplify all info/tools that depend on hos keygen and bis keys
2021-08-28 17:53:14 +03:00
CTCaer
e9edcfeeb0
bdk: remove all references and defines to sept
2021-08-28 17:10:21 +03:00
CTCaer
4b7e1f699d
ums/xusb: do not allow multiple CBW requests
...
On XUSB do not allow multiple requests for CBW to be done.
This avoids an issue with some XHCI controllers and OS combos (e.g. ASMedia and Linux/Mac OS) which confuse that and concatenate an old CBW request with another write request (SCSI Write) and create a babble error (transmit overflow).
2021-08-28 17:09:38 +03:00
CTCaer
134f3dac52
ums: add warn reporting to log status
...
Some OSes do not adhere to limits reported by UMS gadget to them.
In such cases, make sure that user is notified about their host skipping the checks and sending "illegal" commands.
2021-08-28 17:08:15 +03:00
CTCaer
1afb1a50c3
xusb: update driver
...
- Better port init/status
- Correct port status report
- Add babble detection and rescue
- Some refactoring
2021-08-28 17:03:49 +03:00
CTCaer
4914ce1d49
usb: add more timeout control for ep1 read/write finish
2021-08-28 17:00:23 +03:00
CTCaer
70a06a6cae
sdram: add support for missing new dram ids
...
In preparation of dram chip shortages, add missing new ids that are now confirmed that they will be in mass usage
2021-08-28 16:56:49 +03:00
CTCaer
5044f014bf
mc: move ahb aperture size control inside enable function
2021-08-28 16:51:16 +03:00
CTCaer
7c72c9777a
fuse/hwinit: move automatic SBK set into fuse
2021-08-28 16:46:15 +03:00
CTCaer
73df5e6743
fuse: add nx aula hw type
2021-08-28 16:44:16 +03:00
CTCaer
9cf0b0f484
tsec: change kb to type
...
Now the path taken is decided by tsec fw type instead of mkey version
2021-08-28 16:42:03 +03:00
CTCaer
9541d1bbd3
se: add encrypt/decrypt defines
2021-08-28 16:40:29 +03:00
CTCaer
3e15eb44ab
touch: rename 4th panel so it's not confused with errors
2021-08-28 16:39:38 +03:00
CTCaer
bf89d9b841
display: Add Aula panel support
2021-08-28 16:38:42 +03:00
CTCaer
d8995ee9c0
hekate: clean unused stuff
...
Remove anything that will never be in TUI in the future.
Especially these that need modernization.
2021-08-22 16:56:05 +03:00
CTCaer
42f86cf82c
Bump hekate to v5.5.8 and Nyx to v1.0.5
2021-07-06 20:02:23 +03:00
CTCaer
a704679990
nyx: add sandisk device report for eMMC mods
2021-07-06 19:51:00 +03:00
CTCaer
5876e1765d
nyx: hos: support BIS for 12.1.0 keygen devices
2021-07-06 19:49:15 +03:00
CTCaer
dcdf687a07
sdmmc: add support for sandisk emmc device report
2021-07-06 10:15:59 +03:00
CTCaer
e94bd23d6f
nyx: info: add missing old touch fw version
2021-07-06 10:10:17 +03:00
CTCaer
cd5b93feb1
nyx: tools: improve error messaging when restore folder is empty
2021-07-06 10:09:06 +03:00
CTCaer
f231173ebe
fss: remove deprecated check
2021-07-06 10:06:49 +03:00
CTCaer
561a96c62a
hos: small refactoring
2021-07-06 10:05:37 +03:00
CTCaer
57e6623d74
hos: 12.1.0 support
2021-07-06 10:02:52 +03:00
CTCaer
57623acc99
Bump hekate to v5.5.7 and Nyx to v1.0.4
2021-06-08 06:06:26 +03:00
CTCaer
4f8d29d0b7
pkg2: Add HOS 12.0.3 support
...
In 12.0.3 only FS is the relevant change.
So add support for 12.0.3 emuMMC and NOGC
2021-06-08 06:05:12 +03:00
CTCaer
8eda2d805f
nyx: explicitly state if fuses are overburnt
2021-06-08 05:57:39 +03:00
CTCaer
432d4a4ffa
Use bit_count for burnt fuses counting
2021-06-08 05:57:00 +03:00
CTCaer
539caf3d83
utils: add bit count and bit count mask
2021-06-08 05:53:58 +03:00
CTCaer
ce6926c36c
fuse: remove fuse counting, bit count will be used instead
2021-06-08 05:53:31 +03:00
CTCaer
8058d550ab
nyx: reflect 5v regulator changes
2021-06-08 05:51:52 +03:00
CTCaer
9a21ff6976
regulator 5v: don't enable usb one by default
2021-06-08 05:51:21 +03:00
CTCaer
1f4f41b6e6
als: Update ambient light sensor driver to use integers
...
Additionally separate calibration so later Aula one can be used
2021-06-08 05:49:16 +03:00
CTCaer
a959196c2a
Add info about usb3force key in readme
...
Additionally explain what atmosphere config keys can affect hekate boot configuration externally when the equivalent ones are missing from hekate config.
2021-06-03 03:25:51 +03:00
CTCaer
3f22601022
Bump hekate to v5.5.6 and Nyx to v1.0.3
2021-05-12 12:55:03 +03:00
CTCaer
a80a7ecba9
hos: nogc detection support for 12.0.2
...
12.0.2 burnt a fuse so we can now automatically detect if NoGC is needed for LAFW v5
2021-05-12 12:04:46 +03:00
CTCaer
7c450f4a5f
hos: 12.0.2 support
2021-05-12 11:47:39 +03:00
CTCaer
6316d3076d
nyx: fix restore logic when backup does not match emmc
...
- If sd backup size exceeds eMMC size, bail out.
- If partial files backup is smaller allow restoring in case user has an eMMC upgrade.
Following the same behavior that single file backup has when it's smaller.
2021-05-12 11:47:25 +03:00
CTCaer
7181683d8e
ums: various fixes
...
- Immediately exit if offset exceeds num of sectors.
- Correct cmnd type and checks.
- Inform user if ejected unsafely (while medium removal prevention is enabled).
2021-05-11 10:45:17 +03:00
CTCaer
7d7134dd9e
utils: correct align down
2021-05-11 10:34:10 +03:00
CTCaer
c29db97f73
hwinit/joycon: move uart clock deinits to joycon driver
2021-05-11 10:24:48 +03:00
CTCaer
05833bb38c
minerva: update to v1.4
...
- Correct Zqlatch period checks
- Update periodic training
- Simplify some logic
- Fix some mr13 values
- Separate EMC channel enums from macros
- Add extra reg flushes
- Fix tree margin comparison signedness
By using incorrect signedness on tree margins the delta taps would always apply.
By casting margins to integer it now properly checks if it should apply delta taps on the new trimmers.
This fixes a bug that exists in every Nvidia emc dvfs code.
2021-05-11 10:23:08 +03:00
CTCaer
253de81a6b
Further reduce hekate size by streamlining about screen
2021-05-11 10:11:31 +03:00
CTCaer
21e6a0cf7e
pkg1: reduce struct sizes
2021-05-11 10:08:43 +03:00
CTCaer
d0fefabad7
nyx: return unknown if SD vendor is not known
...
TODO: Investigate which OEM/ODM makes the new Lexar SD cards.
2021-05-11 10:07:08 +03:00
CTCaer
44db160ab1
nyx: add info about new InnoLux panel revision
2021-05-11 10:04:31 +03:00
CTCaer
cb633a8f32
display: add info about new InnoLux panel revision
2021-05-11 10:04:24 +03:00
CTCaer
66b7130641
nyx: align total sectors to guarantee alignment
...
Helps on some sd cards with weird total sectors number.
2021-05-11 09:57:29 +03:00
CTCaer
80d9718770
GCC 11 fixes
...
The array/stringop warning removals are undesirable.
Consider removing them when a new GCC version moves back to saner checks for pointers.
2021-05-11 09:51:08 +03:00
CTCaer
dfbbca4c9f
pkg2: isolate kernel/kip patches structs from code
2021-05-11 09:45:12 +03:00
CTCaer
f4d08b2d9b
pkg2: refactor defines for kernel patches
2021-05-11 09:38:20 +03:00
CTCaer
588a834ae4
nyx: allow backing up resized emummc
2021-05-11 09:34:19 +03:00
CTCaer
833dda7e7c
nyx: bpmp: automatically find best clock for t210
...
There were 4 reports of Nyx hanging or UMS and backup verification failing because of low binned Erista SoC.
This change reduces clock for hekate main and Nyx will now automatically try and find a working one.
In case Nyx hangs it will reduce it on next inject.
If Nyx works and user still has issues with UMS/Verification, manually editing nyx.ini and setting `bpmpclock=2` will fix that.
2021-05-11 09:32:38 +03:00
CTCaer
6a4ab55930
storage: add sd_get_card_mounted declaration
2021-05-11 09:22:39 +03:00
CTCaer
d7ce2a81db
bpmp: return previous fid when setting a new one
2021-05-11 09:21:12 +03:00
CTCaer
4d90fa4830
hos: set applied bits on double defined kip patches
...
The loop would break before and if a patch was double defined, would not set its applied bit and thus throw an error.
2021-04-12 04:28:14 +03:00
CTCaer
501fdda138
main: do not clear screen on payload launch
2021-04-12 04:26:16 +03:00
CTCaer
678e8d34e3
Bump hekate to v5.5.5 and Nyx to v1.0.2
2021-04-11 15:02:35 +03:00
CTCaer
07d1982abf
minerva: add compile time sdram voltage change
2021-04-11 10:31:57 +03:00
CTCaer
fd05f83636
ianos: add extensions magic
...
Useful to avoid using extensions if bootloader does not support them.
2021-04-11 10:30:24 +03:00
CTCaer
94e119fb51
max77620: allow max sdram voltage of 1.25V
2021-04-11 10:20:54 +03:00
CTCaer
c2ff4bf623
ianos: add regulator voltage set
2021-04-11 10:18:47 +03:00
CTCaer
faf5651607
minerva: more accurate clock tree delays
...
Additionally, do not restore source DPD ctrl when switching frequencies or training is not needed.
2021-04-11 09:50:06 +03:00
CTCaer
978e8344cf
nyx: check for errors in benchmark
2021-04-11 09:28:28 +03:00
CTCaer
160d6eacc0
nyx: add new touch panel id
2021-04-11 09:27:47 +03:00
CTCaer
075d8e6393
gfx: change line if max width is reached
2021-04-11 09:25:53 +03:00
CTCaer
28008ac7ac
hwinit: add seamless display (L4T Linux/Android)
...
Initial support is for coreboot based preloading.
2021-04-11 09:18:55 +03:00
CTCaer
345d36287e
display: add pwm duty getter
2021-04-11 09:16:55 +03:00
CTCaer
edff6c551d
hos: Add 12.0.0 support
2021-04-09 19:49:44 +03:00
CTCaer
d42a94f148
minerva: Scale down RAM OC if stock boot
2021-04-09 19:28:04 +03:00
CTCaer
c01b8aa89c
exo: add usb3 force enable support
...
Like the other configs, it can be read from system_settings.ini and be set.
Additionally a new `usb3force` key was added to allow user to override and enable/disable that setting via a boot entry.
This allows for fast (re)boot into an entry that disables that (important because of the huge interference that USB3 creates to Bluetooth and WiFi 2.4GHz).
2021-03-17 09:31:06 +02:00
CTCaer
4958bd6a52
fatfs: utilize fatfs buffers for parsing gpt
2021-03-17 09:23:51 +02:00
CTCaer
46038032a4
bdk: make sure that boot storage has the correct size
2021-03-17 09:23:13 +02:00
CTCaer
f66ddca100
nyx: make hybrid mbr fixer smarter
...
Allow usage of FatFS simple gpt parsing for setting the fat partition in case its label is not hos_data.
Additionally allow hos_data partition to not be the first one.
2021-03-17 09:20:01 +02:00
CTCaer
6981c59de3
gpt: properly check that GPT is valid
2021-03-17 09:14:50 +02:00
CTCaer
f21f13b15d
ums/nyx: reinit sd to update cal trimmers for max perf
2021-03-17 09:12:30 +02:00
CTCaer
ef5a01433d
nyx: inform user that Fix RAW also fixes partition type
2021-03-17 09:09:59 +02:00
CTCaer
0e12d8545b
Decrease stack usage on various functions
2021-03-17 09:08:34 +02:00
CTCaer
9dbf745649
regulator 5V: fix battery/usb source swap
2021-03-17 08:56:46 +02:00
CTCaer
e8f73a42b8
fan: increase irq polling to get more accurate rpm
2021-03-17 08:55:54 +02:00
CTCaer
dbe431095a
touch: report gpio info in case of unknown panel
2021-03-17 08:53:23 +02:00
CTCaer
513f77a2ad
uart: use proper interrupt decoding
2021-03-17 08:51:49 +02:00
CTCaer
e8cf85bd65
Merge pull request #575 from DarkMatterCore/master
...
Fix bin2c behaviour under Windows if compiled with MinGW / TDM-GCC.
2021-02-08 23:32:51 +02:00
Pablo Curiel
be23d1fa15
Update bin2c.c
...
Fix behaviour under Windows if compiled with MinGW / TDM-GCC.
2021-02-08 14:10:38 -04:00
CTCaer
4e7e5081a7
Bump Nyx to v1.0.1
2021-02-08 04:01:39 +02:00
CTCaer
fff750e609
bis: Fix BIS write for emuMMC
...
A last minute cleanup changed the function for writing the changed BIS sectors in emuMMC to a read.
Restore it to a sd card write.
2021-02-08 04:00:11 +02:00
CTCaer
38ce46a158
nyx: Add more info while formatting emuMMC USER
2021-02-08 03:52:23 +02:00
CTCaer
7a27a7b3b5
joycon: Disable regulators before sending the sleep cmd
2021-02-08 03:49:04 +02:00
CTCaer
c6ec175045
Bump hekate to v5.5.4 and Nyx to v1.0.0
2021-02-06 17:32:07 +02:00
CTCaer
3b9ab66cf1
nyx: Add resized emuMMC creation
2021-02-06 17:19:37 +02:00
CTCaer
b6e458e97b
sept: Correct bct buffer pointer and turn on backlight on error
2021-02-06 17:14:07 +02:00
CTCaer
c5152f6a9d
nyx: Correct double emuMMC values in part manager
2021-02-06 17:12:09 +02:00
CTCaer
e5689cfe57
fatfs: Add raw emuMMC support for USER partition
2021-02-06 17:11:32 +02:00
CTCaer
f3f1d4d4f0
sdmmc: More functions use the global emmc storage
2021-02-06 17:10:13 +02:00
CTCaer
796b15a861
nyx: Correct text in Launch when missing boot entries
2021-02-06 04:47:23 +02:00
CTCaer
add351289a
nyx: Show status for migration and update main window
2021-02-06 04:46:10 +02:00
CTCaer
a4a056128a
sdmmc: Add support for SDSC cards
2021-02-06 04:18:30 +02:00
CTCaer
6e314933d9
Various small changes
2021-02-06 04:17:31 +02:00
CTCaer
a31bedda97
ramdisk: Sypport variable size
2021-02-06 04:15:19 +02:00
CTCaer
a25c82a8ce
nyx: Allow fix hybrid mbr tool to always run
2021-02-06 04:10:50 +02:00
CTCaer
8ccc47dfa5
nyx: Add resized raw emuMMC support in partition manager
2021-02-06 04:10:02 +02:00
CTCaer
9de5a4ba66
nyx: Swap tab for Partition Manager and Dump Pkg1/2
2021-02-06 04:07:28 +02:00
CTCaer
84e437ae5b
nyx: Explicitly state status in Joycon BT dumping
2021-02-06 04:06:09 +02:00
CTCaer
9e34c5995d
bis: Pull latest lockpick driver and refactor it
...
- Refactor various variables and functions
- Flush whole cache when full
- Allow cache to be disabled
- Add support for raw emuMMC in nyx contenxt
- Use partition names for keys (to avoid issues with different ordering)
- Add deinit function that flushes the whole cache
- Change bis lookup address
- Halve cache size to 256MB in order to support 512MB ramdisk also.
Co-Authored-By: shchmue <7903403+shchmue@users.noreply.github.com >
2021-02-06 04:05:31 +02:00
CTCaer
497bbdf3cd
fatfs: Add PrFile2Safe creation in format tool
2021-02-06 03:59:20 +02:00
CTCaer
8683a0ff58
gfx: Accept any type in gfx_hexdump
2021-02-06 03:57:39 +02:00
CTCaer
874c801772
Do not force deinit on hekate TUI sd info
2021-02-06 03:55:43 +02:00
CTCaer
eea5463a5c
nyx: Refactor nyx extra cfg
2021-02-06 03:55:01 +02:00
CTCaer
af790aeaf8
nyx: Beef up eMMC/SD benchmark
...
- Added 4KB sequential and random tests that shows IOPS and rate
- The test is now faster as it does 1GB raw reads and 512GB for random reads
- Still does 3 iterations in order to cover both nands that most eMMCs and SDs have.
2021-02-06 03:51:26 +02:00
CTCaer
a8a45b215a
nyx: Add emmc info about write cache and enhanced area
2021-02-06 03:44:27 +02:00
CTCaer
38f456a2ee
sdmmc: Refactor again
...
- Refactor various variables and defines
- Removed Card/BGA and OEM ID info as they are static and useless
- Commented out bkops functions completely as not used
- Remove extra buf usage when there's already storage for storing that data
- Optimize various functions to save space
- Clean up useless or duplicate code
2021-02-06 03:41:35 +02:00
CTCaer
a980eac647
hos: disallow no configuration booting as it's useless nowadays
2021-02-06 03:27:18 +02:00
CTCaer
ea83566fc9
sept: Disallow sept if improper BCT to avoid black screen
2021-02-06 03:24:58 +02:00
CTCaer
0857d7ff0e
hos: Do not clear SBK in Nyx for HOS 4.0.0 to 6.0.0
2021-02-06 03:21:14 +02:00
CTCaer
48e98ab8c9
eks: Update old version automatically
2021-02-06 03:20:43 +02:00
CTCaer
8cd438146d
sdmmc: Use global emmc storage in various places
2021-02-06 03:19:42 +02:00
CTCaer
a80cc0ae2c
hos: Add error message for mariko warmboot fw not found
...
Ability to continue without sleep working also.
2021-02-06 03:05:41 +02:00
CTCaer
2428736bfa
hos: Use structs for eks keyblobs and tsec keys
2021-02-06 03:00:48 +02:00
CTCaer
a7bf8bf118
se: Refactor with proper names
...
Additionally fix some bugs in rsa access control
2021-02-06 02:55:58 +02:00
CTCaer
8038e1faa9
fatfs: Restore win buffer order and explicitly DMA align it
2021-02-05 23:32:07 +02:00
CTCaer
15a7e49dde
fatfs: Add simple GPT support
...
This allows for a simple GPT parsing and checking first partition to see if it's FAT based.
This allows hekate booting GPT with tiny size cost.
2021-02-05 23:27:52 +02:00
CTCaer
8b30bd4b57
loader: Add array alignment compensation
2021-02-05 23:17:46 +02:00
CTCaer
63d03303a2
Rename Reboot normal to OFW in TUI
...
That otherwise needless change was actually made to change the compiled and compressed size of the payload.
A certain bad chainloader actually corrupts payloads when launched from it. The corruption seems to depend on hekate's actual compressed payload size.
2021-01-14 23:04:21 +02:00
CTCaer
0e40fef049
Modernize hekate_ipl.ini once again.
...
Additionally explain in **explicit words** that stock option disables CFW kips.
2021-01-14 19:24:56 +02:00
CTCaer
1a50425475
Bump hekate to v5.5.3 and Nyx to v0.9.9
2021-01-14 18:55:11 +02:00
CTCaer
8fc5267110
tmp451: Show correct temperature for T210B01
...
The thermal measurement substrate transistor was changed in Mariko SoCs.
This ensures that it's properly offset by -12.5 °C.
2021-01-14 17:58:23 +02:00
CTCaer
f6a3b2c9ac
sdmmc: Ensure writes gone through after disabling io power
2021-01-14 17:53:22 +02:00
CTCaer
7aa1e77642
nyx: Do not over decrypt pkg1 on t210b01
2021-01-11 23:28:06 +02:00
CTCaer
2370ca0a44
util: Clear alarm wake flags also on power off even if rtc alram is off
2021-01-11 23:24:29 +02:00
CTCaer
abcf7f6f57
nyx: Allow reboot to OFW for patched units
...
- OFW: This bypasses fuses like always and does not cause a SYS Reset.
- Normal: Resets regulators and causes a SYS Reset.
2021-01-11 22:18:36 +02:00
CTCaer
d1f0ea3de7
Formalize language in various messages
2021-01-11 21:39:44 +02:00
CTCaer
dbc8f4a4c2
nyx: Fix an underflow on Android UDA partition
2021-01-11 21:32:35 +02:00
CTCaer
c6c396ce2a
reg5V: Manage battery source based on charger status
2021-01-11 21:30:59 +02:00
CTCaer
74b91b0085
nyx: Cover edge case on backup/restore checks for partition manager
...
An edge was fixed where the checks for if it's possible to backup files for partition manager would overflow and end up with a value < 1GB and thus proceeding to the backup/restore process.
2021-01-10 02:09:03 +02:00
CTCaer
53c9ca8072
nyx: Fix nyx hanging when updating the partition buttons
2021-01-06 21:29:18 +02:00
CTCaer
13e5216a4e
Bump hekate to v5.5.2 and Nyx to v0.9.8
2021-01-05 17:13:39 +02:00
CTCaer
147ccd3070
nyx: Add Main/CPU/GPU pmic info.
2021-01-05 17:12:03 +02:00
CTCaer
dc5c26e7c6
nyx: Change fuse dumping names for T210B01 again
...
Use offsets in names for making it easier to parse.
2021-01-05 15:52:34 +02:00
CTCaer
4914af1200
nyx: Allow selection of emuMMC migration type
2021-01-05 15:44:35 +02:00
CTCaer
b57d26e99a
nyx: Add nyx options save reminder
2021-01-05 15:41:27 +02:00
CTCaer
f196b8bb0e
eks: Add compatibility support for v1.1
2021-01-05 15:37:36 +02:00
CTCaer
7b460f7e56
gfx: Do not try to print if console is not initialized
2021-01-05 15:36:43 +02:00
CTCaer
9daa14abec
ums: Dim backlight and change the maintenance order
2021-01-04 20:12:26 +02:00
CTCaer
bf8fd9a33b
hos: Replace fuse count if current fw is higher
2021-01-04 19:05:04 +02:00
CTCaer
1f37b96359
coreboot mitigation: Reinstate SD controller power
2021-01-04 19:03:50 +02:00
CTCaer
46921aca22
Disable battery management on dev units
2021-01-04 02:58:07 +02:00
CTCaer
41f96d4305
hos: Utilize burnt fuse info instead of keyblob
...
Streamline identification of HOS version quirks
2021-01-04 02:57:07 +02:00
CTCaer
0959dc3a2d
nyx: Add touch panel info
...
This can probably also show if the panel is paired to the firmware.
In case it's not, an error will show up.
2021-01-04 02:49:07 +02:00
CTCaer
31baf3d19a
nyx: Rearrange hw info a bit
2021-01-04 02:47:08 +02:00
CTCaer
f4696da0ef
sdram: Update names for Aula
2021-01-04 02:45:32 +02:00
CTCaer
83ab79c51e
fuse: Return the proper dram id when raw is requested
2021-01-04 02:41:55 +02:00
CTCaer
745ac609d2
max7762x: Update everything to use the improved pmic management
2021-01-04 02:41:15 +02:00
CTCaer
0f9aa51afe
max7762x: Refactor pmic
...
- Add Erista CPU/GPU pmics and Mariko CPU/GPU/DRAM pmics together with system pmic.
- Every type of pmic can be configured via the relevant functions.
- Better and easier configation of the regulators
2021-01-04 02:34:58 +02:00
CTCaer
9fbb28e887
max7762x: Update registers for all pmic types
2021-01-04 02:29:36 +02:00
CTCaer
adf2045896
joycon: Do not send CRC if nxpad + some refactoring
2021-01-03 15:37:44 +02:00
CTCaer
1a797bf93a
Merge pull request #545 from krnlyng/hori_support
...
joycon: add support for the hori split pad pro
2021-01-03 14:59:02 +02:00
CTCaer
1a9372b4ce
nyx: Add MSC partition for L4T Android
2021-01-03 14:52:13 +02:00
CTCaer
87b91174ec
nyx: Disable Flash Linux/Android buttons if partitions not found
2021-01-03 14:51:48 +02:00
CTCaer
26fff275ce
nyx: Remove L4T joycon driver mitigation
...
Seems that this was fixed long ago
2021-01-03 14:46:42 +02:00
CTCaer
53b44a525d
Refactor emmcsn_path_impl and return serial number if needed
...
The refactoring also makes consecutive requests instantaneous.
2021-01-03 14:45:06 +02:00
CTCaer
8ce5d55eb8
mtc: Confine RAM OC completely inside minerva
...
Enabling OVERCLOCK_FREQ takes care of everything without the need of changing minerva caller.
2021-01-03 14:37:39 +02:00
CTCaer
afb749560a
mtc: Fix temperature deltas for clk tree delays when negative
2021-01-03 14:35:21 +02:00
CTCaer
7a66e0298a
mtc: Refactor various types
2021-01-03 14:33:56 +02:00
Franz-Josef Haider
e491a4cf57
joycon: add support for the hori split pad pro
2020-12-31 13:54:00 +02:00
CTCaer
b7789f1edb
xusb: Increase performance up to 96%
...
The default interrupt moderation on XUSB controller was causing 4.62ms latency, hurting performance tremendously, especially in smaller usb packets (which are the norm).
This change brings it to parity with USB2 controller.
2020-12-30 13:40:16 +02:00
CTCaer
4949331f4c
usb: Rework timeouts
...
- Rework all timeouts to be more relaxed when doing big data transfers.
- Fix a bug where async transfer would timeout sooner instead of infinite tries.
Both showed up in Arch Linux, because of it's huge latency USB stack latency that can reach 1-2s.
The rework will let every OS work without adding additional wait time in the gadget loops.
2020-12-30 13:37:36 +02:00
CTCaer
2c695e9a96
ums: Refactor errors
2020-12-30 13:29:29 +02:00
CTCaer
faaf801534
nyx: Add metadata copy in partitioning and extra warns
2020-12-28 05:34:01 +02:00
CTCaer
3fa775e3ad
nyx: Add burnt fuses - HOS pair info
...
Additionally add raw value info for ODM fuses 4, 6 and 7.
2020-12-28 05:32:23 +02:00
CTCaer
6663330de3
nyx: Split T210B01 fuse dumping for better readability
2020-12-28 05:30:34 +02:00
CTCaer
ed916360eb
display: Add new panel revision
2020-12-28 05:24:42 +02:00
CTCaer
e4bc5c41ce
display: Add fifo draining before requesting info
...
In case we got loaded from bad chainloader.
Fixes issues with incorrect display ID when fifo has left overs.
2020-12-28 05:23:33 +02:00
CTCaer
d0d943c9c3
display: Make dsi write buffer bigger
2020-12-28 05:21:21 +02:00
CTCaer
60b629e57f
Move display related objects to display parrent
2020-12-28 05:19:23 +02:00
CTCaer
df80339060
mc: Simplify clock enable/reset
...
Additionally utilize the redirect flag.
2020-12-27 12:50:20 +02:00
CTCaer
cbbd427d3a
Change coreboot error from T210B01 to Mariko
...
Change T210B01 name in order for users to understand that it's about Mariko.
2020-12-26 17:30:49 +02:00
CTCaer
dfcdb2e1e6
mtc: Update minerva to simplify some logic
2020-12-26 17:28:49 +02:00
CTCaer
11ca6caf5f
clock: Add more defines and simplify some logic
2020-12-26 17:28:08 +02:00
CTCaer
15afdf53e4
clock: Add module actual frequency getter
2020-12-26 17:25:23 +02:00
CTCaer
d15f958b48
irq: Disable irq if not handled.
2020-12-26 17:22:56 +02:00
CTCaer
5fd3bdede7
pmc: Add defines for power rails
2020-12-26 17:20:26 +02:00
CTCaer
e2dd218f33
pmc: Add latest pmc secure scratch lock
2020-12-26 16:48:00 +02:00
CTCaer
a85891ae00
Refactor AutoRCM tools
2020-12-26 16:38:21 +02:00
CTCaer
2628044ba8
fuse: Move more parsing into its specific object
2020-12-26 16:34:12 +02:00
CTCaer
e620783a89
Add tools cleanup with parrent clean
2020-12-26 16:17:03 +02:00
CTCaer
2fba9848ae
In case native GCC is missing, inform user
2020-12-20 21:34:43 +02:00
CTCaer
52c65661d8
Improve Power off by resetting all regulators
2020-12-15 19:37:52 +02:00
CTCaer
601c85c23e
util: Refactor power management (reboot/power off)
2020-12-15 19:33:46 +02:00
CTCaer
9d79f39897
Bump hekate to v5.5.1 and Nyx to v0.9.7
2020-12-11 18:34:52 +02:00
CTCaer
2a7a3452ba
hos: Add HOS 11.0.1 support
2020-12-11 18:24:10 +02:00
CTCaer
f1386c60af
hos: Fix sleep on modchiped Erista
2020-12-11 18:22:33 +02:00
CTCaer
b6ec217484
exo: Support uart logging
...
This can be enabled via compile time flags or exosphere.ini.
Compile time flags override exosphere.ini
2020-12-11 18:14:00 +02:00
CTCaer
ad560b650e
nyx: di: Set display id we got from bootloader
2020-12-11 17:49:06 +02:00
CTCaer
14a048a496
nyx: Add SD init info from bootloader
...
This shows info about the sd initialization process that happened on hekate main
2020-12-11 17:46:44 +02:00
CTCaer
ba984d02eb
sdmmc: Mitigate some Phison SDs which think they are SDSC
2020-12-11 17:43:01 +02:00
CTCaer
fce59fba43
nyx: Add SD card AU info
2020-12-11 17:41:09 +02:00
CTCaer
685663dcf6
nyx: Add bis key print in console
2020-12-11 17:39:30 +02:00
CTCaer
cb61e856ad
hos: Fix bis keygen for keygen rev 11 (HOS 9.1.0+)
2020-12-11 17:39:05 +02:00
CTCaer
5b8fb9fb6b
Various refactoring and addition of comments
2020-12-11 17:25:59 +02:00
CTCaer
8249d9e1a2
se: Ensure aligned key/iv/ctr/hash copy
2020-12-05 20:39:17 +02:00
CTCaer
4a152504cb
Bump hekate to v5.5.0 and Nyx to v0.9.6
2020-12-02 22:34:54 +02:00
CTCaer
b8eff953c6
nyx: Utilize full shutdown based reboot for patched Erista also
2020-12-02 22:27:22 +02:00
CTCaer
cf1f94662c
sdram: Correct some dram names
2020-12-02 22:26:06 +02:00
CTCaer
d4d6730c20
fss: Disallow Mariko boot on Atmosphere< 0.17.0
...
Trying to boot on lower Atmosphere versions can have serious implications.
2020-12-02 22:03:20 +02:00
CTCaer
d287d40208
hos: Add HOS 11.0.0 support
2020-12-02 02:41:32 +02:00
CTCaer
7e5e365f18
hos: Change warmboot PA id calculation a bit
2020-12-02 02:17:41 +02:00
CTCaer
7bebec1304
hos: Change warmboot storage numbering from dec to hex
2020-12-02 02:14:06 +02:00
CTCaer
2aa1ce5390
nyx: Add eMMC and SD vendor id decoding into names
2020-12-02 02:11:22 +02:00
CTCaer
aaaf470dcf
display: Provide dsi command reading/writing to user
...
These work while video stream is either disabled or enabled.
2020-12-02 02:09:49 +02:00
CTCaer
cf175fc00d
nyx: Add alternate power saving modes
...
T210:
By default max power savings is enabled.
By changing `newpowersave=` to 0, it reverts to the old behavior of smaller power savings.
This was added to mitigate some strange DRAM chips, hanging from constant frequency change of a 800 MHz - 1600 MHz back and forth.
T210B01:
Defaults to a simple loop with no power savings. That's because of untrained ram.
2020-12-02 02:07:31 +02:00
CTCaer
c13eabcde8
sdmmc: Add T210B01 support
...
The driver was working before this, but adding the changes provides a proper and better sdmmc controller inner state.
2020-12-02 02:07:15 +02:00
CTCaer
8e45fcc069
hos: Disable stock secmon for Mariko until fixed
2020-12-02 01:56:29 +02:00
CTCaer
d1e3a0fdff
display: Add new Switch Lite panel support
2020-12-02 01:53:00 +02:00
CTCaer
19ddff299a
hos: Fix exfat FS check again..
2020-12-02 01:47:37 +02:00
CTCaer
0954eb2b09
nyx: Use full shutdown based reboot on T210B01
...
That's because of how the system is exploited.
2020-12-02 01:45:12 +02:00
CTCaer
0a9931ddb3
exo: Add exosphere fatal binary support for Mariko
...
Can be overriden with `exofatal={SD path}`.
2020-12-02 01:41:23 +02:00
CTCaer
0ccea3aa83
usb: Improve UMS ejection heuristic
2020-12-02 01:16:45 +02:00
CTCaer
a1188505e8
usb: Add XUSB support mainly for T210B01
2020-12-02 01:13:52 +02:00
CTCaer
2424ecc4f0
Disable coreboot.rom chainloading for T210B01
...
Unlike all RCM payloads that are based on hekate's hwinit, coreboot does full power management before sdram init is run.
Because of that and because it doesn't support T210B01, it does not hang as expected and configures all regulators and pins which can be dangerous!
2020-12-02 00:57:32 +02:00
CTCaer
202540c7f7
joycon: Disable driver for Switch Lite
2020-12-02 00:51:29 +02:00
CTCaer
1ceb380f6f
Add hekate loader
2020-07-04 22:12:12 +03:00
CTCaer
da0cdf1bd0
hos: Add stock secmon support for Mariko
2020-07-04 21:58:21 +03:00
CTCaer
708863358e
hos: Move warmboot patching into pkg1 object
2020-07-04 21:44:39 +03:00
CTCaer
a862b85a46
hos: Add Mariko warmboot storage and general configurator
...
The Mariko warmboot storage is needed because the warmboot exploit is not existant.
Fuses and PA id must match with the proper warmboot binary. Thus for supporting downgrades, we keep a copy of it for future use.
2020-07-04 21:43:34 +03:00
CTCaer
495907b8a4
sept: Mark as ready for Mariko
2020-07-04 21:36:37 +03:00
CTCaer
f9a1935762
nyx: Fix Dump pkg1/pkg2 and cal0 for Mariko
2020-07-04 21:36:04 +03:00
CTCaer
8ef9f888f6
hos: Add PK21 decryption support for Mariko
2020-07-04 21:35:26 +03:00
CTCaer
9b3e9724b7
hos: Add Mariko PK11 decryption and unpacking
2020-07-04 21:32:36 +03:00
CTCaer
8880dfab24
eks: Disallow on Mariko
2020-07-04 21:21:48 +03:00
CTCaer
5ffbbf40a5
hos: Add Mariko keygen
2020-07-04 21:13:25 +03:00
CTCaer
a36fec5696
clock: Lock clock to always enabled for SE in T210B01
2020-07-04 21:07:25 +03:00
CTCaer
7acad84932
nyx: Disable TSEC keys status for T210B01
2020-07-04 21:04:57 +03:00
CTCaer
8d2230dc51
fuse: Correct fuse array size for T210B01
2020-07-04 21:04:20 +03:00
CTCaer
528ddbe12c
minerva: Disable for T210B01
...
Minerva is currently unsupported for Mariko LPDDR4X.
2020-07-04 21:02:45 +03:00
CTCaer
e4c0756ded
nyx: Add DRAM names info + Mariko new ram codes
2020-06-26 22:41:34 +03:00
CTCaer
1c9efa327c
Correct RCM patched status for Mariko
...
This also disallows AutoRCM for Mariko.
2020-06-26 22:40:06 +03:00
CTCaer
fbbfeb2d1c
se: Add a T210B01 only register
2020-06-26 22:31:23 +03:00
CTCaer
ccaf49bece
display: Add T210B01 support
2020-06-26 22:29:52 +03:00
CTCaer
147fed39c8
ccplex: Add regulator for T210B01
2020-06-26 19:02:37 +03:00
CTCaer
d0a73bdc72
sc7: Add T210B01 SC7/LP0 (deep sleep) support
...
Note to future self: Almost a month passed and nothing changed, have fun cleaning that in the end...
2020-06-26 19:00:30 +03:00
CTCaer
29dc122dd4
sdram: Add T210B01 support & new LPDDR4X tables
2020-06-26 18:53:12 +03:00
CTCaer
293c47774d
fuse: Add NX hw type getter
2020-06-26 18:45:21 +03:00
CTCaer
795ed8aadc
hwinit: Add T210B01 support
2020-06-26 18:42:31 +03:00
CTCaer
377825d4fb
usb gadgets: Replace error status labels with error label and color
2020-11-26 01:58:13 +02:00
CTCaer
b89bb35054
usb: Refactor some variables
2020-11-26 01:55:33 +02:00
CTCaer
caae685fab
usb: Add buffer alignment checks
...
EDCI/EHCI controllers only allow 0x1000 aligned buffers.
So reply with a specific error type instead of a EP xfer error.
2020-11-26 01:54:10 +02:00
CTCaer
bd4517abab
usb: Name all controller errors
2020-11-26 01:50:49 +02:00
CTCaer
095b234fce
max17050: Be explicit about hardcoded calculations
2020-11-26 01:44:04 +02:00
CTCaer
b1c09f8a9c
max77620: Change try set to just retry if i2c xfer failed
2020-11-26 01:43:19 +02:00
CTCaer
cabaa6cfb8
Utilize BIT macro everywhere
2020-11-26 01:41:45 +02:00
CTCaer
94486873c1
di: Skip panel deinit if DI was not properly deinit'ed
2020-11-26 01:12:44 +02:00
CTCaer
89a4eadab0
sdmmc: Refactor some names
2020-11-26 01:08:42 +02:00
CTCaer
55395ea4fd
sdmmc: Correct bus speed for SDR25
...
Fix bus speed on SDR25 even if all UHS cards support SDR50 and SDR104.
2020-11-15 15:11:19 +02:00
CTCaer
4166a3c128
sdmmc: Add more debugging
2020-11-15 15:08:53 +02:00
CTCaer
cabb8cd33a
Allow booting on damaged fuel gauge
2020-11-15 14:49:54 +02:00
CTCaer
ab7a81081c
t210: Refactor AHB Gizmo registers
2020-11-15 14:46:42 +02:00
CTCaer
8a352bdfe2
usb: Split init into PHY init and device init
2020-11-15 14:45:48 +02:00
CTCaer
721e926a75
usb: Do proper UTMIPLL_HW_PWRDN_CFG0 config
2020-11-15 14:44:35 +02:00
CTCaer
0b314d7f21
clock: Move UTMIPLL init from USB to clock
2020-11-15 14:43:36 +02:00
CTCaer
8305058cf5
clock: Move PLLU init/deinit from USB to clock
2020-11-15 14:42:01 +02:00
CTCaer
6dddb968fa
usb: Fix various descriptor transfers in order to not rely on quirks
2020-11-15 14:38:18 +02:00
CTCaer
d3c318d0c9
usb: Correct latencies for HID gadgets
2020-11-15 14:37:14 +02:00
CTCaer
604ec4416d
usb: Refactor driver names and defines
2020-11-15 14:36:20 +02:00
CTCaer
c7fcea5f35
usb: Rfactor driver/gadgets in prep for XUSB
...
Allow gadgets using different USB controllers on demand.
This will allow plugging in XUSB for Mariko usage.
2020-11-15 14:30:25 +02:00
CTCaer
a84f1e5ee5
usb: Split descriptors to object and header
2020-11-15 14:10:00 +02:00
CTCaer
6a4161fdc4
usb: Move lang/serial descriptors to header
2020-11-15 14:04:10 +02:00
CTCaer
e45ffab5d8
Remove stray hekate cfg set. It's handled by default.
2020-11-15 14:00:35 +02:00
CTCaer
669e42960c
Utilize ARRAY_SIZE macro
2020-11-15 13:56:45 +02:00
CTCaer
55568b037f
nyx: Properly calculate Ranks and Channels in hw info
2020-11-15 13:50:19 +02:00
CTCaer
b5df428e43
nyx: Create bootloader folder on screenshots if missing
2020-11-15 13:47:47 +02:00
CTCaer
1c19a69e35
hos: Do not use custom kernel if stock
2020-11-15 13:45:45 +02:00
CTCaer
67a03bbd85
eks: Use LOT0 for identification
2020-11-15 13:43:22 +02:00
CTCaer
32955380c7
nyx: Fix icons for backup/restore swap
2020-11-15 13:40:53 +02:00
CTCaer
93b4514343
minerva: Return failed if module not found inside Nyx
2020-11-15 13:40:13 +02:00
CTCaer
68d57861cd
Add missing guard from some macros
...
Guard them for future usage, as none of these macros had a non-preset variable used with them yet.
2020-11-15 13:39:27 +02:00
CTCaer
485edb4883
emc: Rename Device to Rank
2020-11-15 13:23:37 +02:00
CTCaer
bbc3f41493
joycon: Fix controller button masking
...
Previously if the Right JC was missing it would clear the Capture button that's on the Left one
2020-11-15 13:10:44 +02:00
CTCaer
5a6608dff4
Bump hekate to v5.3.4 and Nyx to v0.9.5
2020-10-27 21:28:06 +02:00
CTCaer
8f222fd0bd
main: Fix update.bin creation on first boot
2020-10-27 21:27:51 +02:00
CTCaer
1f5b371608
Refactor some names
...
Additionally:
- Do not retry to init sd if all modes failed in Nyx.
- Do not try to read/write if sdmmc controller and card are not initialized.
2020-10-23 06:32:24 +03:00
CTCaer
ce156ab4e7
hos: Automate some eks and bis checks
2020-10-20 11:53:28 +03:00
CTCaer
94235dd005
bm92t30: Add proper info
...
The driver will now show more charger supported profiles and will also show selected profile.
2020-10-20 10:42:57 +03:00
CTCaer
cb471162d2
i2c: Fix packet mode
2020-10-20 10:37:33 +03:00
CTCaer
9d1c0ce308
Create update.bin if missing
...
This will allow l4t/Android to always use latest hekate in case of old r2p.
2020-10-20 10:34:33 +03:00
CTCaer
27b1f0e843
Various small fixes
2020-10-20 10:32:32 +03:00
CTCaer
dae7be8ec4
nyx: Allow disabling of Joycon
...
Setting `jcdisable=1` in nyx.ini disables the usage of Joycon completely.
This also disables the BT pairing data dumping tool.
2020-10-20 10:21:48 +03:00
CTCaer
2f5b52223c
config: Add bootloader protection
...
`bootprotect=1` enables protection of the `bootloader` folder inside HOS.
This disallows any reading/writing of the folder and its contents inside HOS, preventing any corruption of it.
This of course has the side-effect of homebrew that depend on it (e.g. hekate Toolbox) to not work fully.
2020-10-20 10:16:12 +03:00
CTCaer
bf222290b8
hos: Add support for mesosphere
...
The change adds support for mesosphere loading from fss0 or sd (kernel=).
2020-10-17 23:18:48 +03:00
CTCaer
d825be5eb2
hos: Tiny refactoring
2020-10-17 23:16:16 +03:00
CTCaer
9da0e0358b
Merge pull request #500 from AuroraWright/master
...
hos: Prevent booting emummc with failed emummc patching
2020-10-17 23:02:34 +03:00
Aurora Wright
216d97aada
Push changes as requested
2020-10-17 21:11:21 +02:00
Aurora Wright
e3421fd44e
hos: Prevent sysmmc boot on emummc patch failure if emummc is forced
2020-10-14 19:37:36 +02:00
CTCaer
85d43147ee
Bump hekate to v5.3.3 and Nyx to v0.9.4
2020-09-15 20:24:56 +03:00
CTCaer
e3e5dab0fc
nyx: Add USB Charger info
2020-09-15 20:14:56 +03:00
CTCaer
8b837dd81b
bm92t30 Add USB-PD driver stub
...
TODO:
This driver is a stub and relies on incorrect I2C requests.
The I2C driver needs to be updated with proper multi-xfer support.
For now it replies its whole register range, according to request size.
That's because the IC does not support the classic single transfer request-response style.
2020-09-15 20:13:29 +03:00
CTCaer
8f7bdd45b1
hos: Report exFAT compatible if missing FS kip hashes
2020-09-15 19:07:16 +03:00
CTCaer
0142ac1697
Add TUI reload in case of missing bootloader files
2020-09-15 18:57:49 +03:00
CTCaer
e8fb6624c0
Merge pull request #481 from NicholeMattera/master
...
Added new FS patches for 10.2.0.
2020-09-15 18:39:04 +03:00
Nichole Mattera
bdb21ce3fd
Added new FS patches for 10.2.0.
2020-09-15 07:26:27 -04:00
CTCaer
2ca4fb6d8f
Correct readme about UMS on boot
2020-09-07 00:10:23 +03:00
CTCaer
e7900b11b4
nyx: Allow L4T last part to be unaligned
2020-09-02 13:11:03 +03:00
CTCaer
d71f6d0b99
sdmmc: Restart xfer on Read/Write error
2020-08-28 09:39:06 +03:00
CTCaer
926bd5d2fb
Add SD error report on first boot
2020-08-28 09:37:48 +03:00
CTCaer
461d14c39a
di: Correct panel id for AUO A062TAN02
2020-08-28 05:26:18 +03:00
CTCaer
6714cae498
i2c: Add packet mode support (32 bytes)
2020-08-27 10:04:52 +03:00
CTCaer
b20a0e74c2
i2c: Refactor
2020-08-27 10:04:26 +03:00
CTCaer
9686eaf3f1
info: Add better SD error debugging on hekate main
...
Now the SD Card info function on hekate main will not rely on proper FAT partition, allowing for SDMMC init and FAT mounting to be separate for debugging issues with each one.
Additionally, add SDMMC error counters info.
2020-08-15 13:23:11 +03:00
CTCaer
7b03a24196
sdmmc: Add extra error printing
2020-08-15 13:16:37 +03:00
CTCaer
98555b24f8
l4t: Clear boot mode if user canceled autoboot
2020-08-15 13:12:41 +03:00
CTCaer
3d05b58856
nyx: Add eMMC NAND cells life estimation
2020-08-15 12:33:11 +03:00
CTCaer
15b46ddb27
hos: Hold more devices in Reset for secmon launch
2020-08-15 12:31:44 +03:00
CTCaer
78c4e6510d
hos: Add backup bootloader support
2020-08-15 12:30:18 +03:00
CTCaer
cd76d5ac09
nyx: Fix hang on using B button after Launch window
2020-08-15 12:22:01 +03:00
CTCaer
9c2a064817
nyx: Allow SD removal without reloading Nyx
2020-08-15 12:21:25 +03:00
CTCaer
db2da89f69
nyx: Remove delay on JC calibration
...
This does not help with drifting as the logged values are always changing drastically.
2020-08-15 12:19:43 +03:00
CTCaer
0652d6b3f1
util: sprintf: Fix pointer printing
2020-08-15 12:16:25 +03:00
CTCaer
1111125aab
usb: Invalidate cache on ep1_out_reading_finish
2020-08-15 12:15:02 +03:00
CTCaer
4fc420616d
nyx: Control UART debug completely via makefile
...
Also enables LvGL log.
2020-08-13 10:21:00 +03:00
CTCaer
fb7c83a66c
exo: Fix exo fatal dump's header
2020-08-02 03:51:36 +03:00
CTCaer
f021665089
Bump hekate to v5.3.2
2020-07-19 23:26:05 +03:00
CTCaer
6c887c15be
l4t: Disable kernel panic dumping for now
2020-07-19 23:25:49 +03:00
CTCaer
2b7722da7d
hos: Fix hold usbd in reset
2020-07-19 23:10:21 +03:00
CTCaer
4f65697522
Bump hekate to v5.3.1 and Nyx to v0.9.3
2020-07-19 20:56:22 +03:00
CTCaer
5140992a7b
nyx: Add proper info about SD write protect
2020-07-19 20:56:08 +03:00
CTCaer
af0cd34f92
l4t: Add panic dump (PSTORE)
2020-07-19 20:32:22 +03:00
CTCaer
b8ca88ee0a
exo: Change fatal names and add stack overflow
2020-07-18 12:53:05 +03:00
CTCaer
fac1884a43
i2c: Reduce timeout to proper levels (100ms)
2020-07-18 02:33:46 +03:00
CTCaer
46fa330bdd
Add proper make prints for modules
2020-07-18 01:36:16 +03:00
CTCaer
adfa7c0780
fuse: Use fuse count function for burnt fuses
2020-07-18 01:15:28 +03:00
CTCaer
11df6030f9
Various fixes
2020-07-18 00:54:35 +03:00
CTCaer
45ca2938f5
pmc: Move rail power function to its own object
2020-07-18 00:42:53 +03:00
CTCaer
88fa4fa861
se: Add set/clear IV and aes key get
2020-07-18 00:36:51 +03:00
CTCaer
100d6cc4a5
lz: Return uncompressed size
2020-07-18 00:35:04 +03:00
CTCaer
32e58d2bb3
hw init: Cosmetic refactoring
2020-07-17 18:08:27 +03:00
CTCaer
638a3909c5
Refactor various variables and names
2020-07-17 18:00:32 +03:00
CTCaer
82da1aaf2a
sdmmc: Correct name of bus speed 14
2020-07-17 17:38:01 +03:00
CTCaer
3c2d86ef7b
sdmmc: Add protected area info (Content Protection)
2020-07-17 17:01:40 +03:00
CTCaer
f559017aeb
di: Update display panels and info
2020-07-17 16:57:45 +03:00
CTCaer
e158d9bc00
clk: Refactor CLK devices bits
2020-07-17 16:50:17 +03:00
CTCaer
3ddd1c26ad
pkg1: Fix PK11 component split in pkg1/2 dump tool
2020-07-14 23:29:48 +03:00
CTCaer
ab5b59e10d
Refactor fatal/hard error names
2020-07-14 22:41:48 +03:00
CTCaer
1f67251331
nyx: Use strcat whenever possible
2020-07-14 22:26:40 +03:00
CTCaer
4eecdfa553
nyx: Add decrypted CAL0 dumping
2020-07-14 21:16:52 +03:00
CTCaer
80dd0f1580
joycon: Skip first 4 packets for calibration
2020-07-14 21:13:37 +03:00
CTCaer
4e0c70a402
nyx: Do not timeout joycon with screenshot
...
Additionally, screenshots are allowed only every 2s instead per second.
2020-07-14 21:12:09 +03:00
CTCaer
ffd5a198f9
Beautify make size prints
2020-07-14 20:56:56 +03:00
CTCaer
ddc89c9f49
hos: Reduce size of pkg1 id array
2020-06-22 12:04:49 +03:00
CTCaer
9673d5524a
hos: Fix pkg2 re-encryption for exo2 & 8.1.0/9.0.X
2020-06-20 21:31:58 +03:00
CTCaer
3214fc2f93
nyx: Fix validation check for emuMMC restore
...
When checking a partition for enough size for emuMMC restore, always check against the extra 16MB.
2020-06-18 01:23:06 +03:00
CTCaer
3b0925b912
touch: Check if init failed and stop parsing if yes
2020-06-17 00:41:37 +03:00
CTCaer
c5f032fcb2
Fix building on msys2
2020-06-16 12:41:42 +03:00
CTCaer
98e05d941d
Bump hekate to v5.3.0 and Nyx to v0.9.2
2020-06-15 17:33:20 +03:00
CTCaer
90ab1e5656
hos: Hold USBD in reset before booting
2020-06-15 17:33:13 +03:00
CTCaer
564f36fc8b
hos: Fix mkey validation on BIS derivation
2020-06-15 17:31:29 +03:00
CTCaer
6159284be6
nyx: Check for huge files in part manager backup
2020-06-15 15:05:47 +03:00
CTCaer
9afc6f0a4e
joycon: Add bigger deadzone for virtual mouse
2020-06-15 15:04:46 +03:00
CTCaer
f689bb253e
nyx: Add simple CAL0 info
2020-06-15 15:03:14 +03:00
CTCaer
0738c96867
nyx: Fix pkg1/2 dumping with new changes
2020-06-15 15:01:18 +03:00
CTCaer
edba8ca986
hos: Add BIS keys derivation
2020-06-15 14:59:45 +03:00
CTCaer
2aa9055fae
Various fixes
2020-06-15 14:58:50 +03:00
CTCaer
1369d66043
exo: Use exo new instead of fss ver for new versioning
2020-06-15 10:57:15 +03:00
CTCaer
9e48d64b27
hos: Clear secmon mailbox where appropriate
2020-06-15 10:54:52 +03:00
CTCaer
d37fe213d7
mtc: Name sdram ids
2020-06-14 17:39:39 +03:00
CTCaer
029d66bd95
Fix build for lvgl UART log
2020-06-14 17:33:57 +03:00
CTCaer
c73b4ad6ba
nyx: Include Hoag as Mariko in fuses info
2020-06-14 16:51:06 +03:00
CTCaer
6e256d29c7
Utilize hekate's BDK for hekate main and Nyx
2020-06-14 16:45:45 +03:00
CTCaer
185526d134
Introducing Bootloader Development Kit (BDK)
...
BDK will allow developers to use the full collection of drivers,
with limited editing, if any, for making payloads for Nintendo Switch.
Using a single source for everything will also help decoupling
Switch specific code and easily port it to other Tegra X1/X1+ platforms.
And maybe even to lower targets.
Everything is now centrilized into bdk folder.
Every module or project can utilize it by simply including it.
This is just the start and it will continue to improve.
2020-06-14 15:25:21 +03:00
CTCaer
9b1c61fbcf
storage: Add cal0 struct
2020-06-14 14:11:15 +03:00
CTCaer
ae7ef7d79a
fuse: Add get odm keygen type
2020-06-14 14:10:29 +03:00
CTCaer
273f11cd59
sdram: Extend sdram id
2020-06-14 14:07:21 +03:00
CTCaer
f5092bc981
heap: Add heap object copy
2020-06-14 14:02:13 +03:00
CTCaer
9489eca487
hos: Add secmon/warmboot base selection
2020-06-14 14:00:07 +03:00
CTCaer
3aa195943d
hos: Add identification for hos 5.1.0
2020-06-14 13:58:03 +03:00
CTCaer
3c6c92aa9c
exo: Add support for exo2
2020-06-14 13:57:11 +03:00
CTCaer
c2160ae367
hos: Fix a long standing bug with kip1 patches
...
The kip1 patcher since its inception was checking for patches wrongly.
This would create an edge case scenario, where up to 1 patch could be skipped.
2020-06-14 13:55:41 +03:00
CTCaer
d607a8830b
hos: Support new sept/exo keyslots
2020-06-14 13:53:21 +03:00
CTCaer
f7f99bddab
hos: Remove emmc reinit for grabbing rsa modulus
2020-06-14 13:49:59 +03:00
CTCaer
4564db0b6d
exo: Support new fw versioning
2020-06-14 13:49:03 +03:00
CTCaer
0a44a31f2c
hos: Allow booting when kip1 patches failed
...
This can lead to a hanged boot if kip was corrupted or it can lead to unforeseen results if emummc or nogc patches fail and user chooses to continue.
2020-06-14 13:47:47 +03:00
CTCaer
0692e4de8d
hos: Fix some keyslot bugs
2020-06-14 13:45:01 +03:00
CTCaer
92d013dd65
eks: Upgrade to new version and support BIS keys
2020-06-14 13:42:48 +03:00
CTCaer
242bbdada5
storage: Better BIS support
...
It now supports more than one crypto block and keys are expected to slot 0 and up to slot 5.
2020-06-14 13:36:36 +03:00
CTCaer
d90f5b7e7c
ccplex: Renable cluster object to ccplex in makefile
2020-06-14 13:34:13 +03:00
CTCaer
d95449c22d
usb: Fix some issues with usb descriptors
2020-06-14 13:33:13 +03:00
CTCaer
28f2fb1468
emummc: Fix issue with emu_path corrupting bss
2020-06-14 13:32:04 +03:00
CTCaer
ad5a50ecd9
emummc: Bail if emummc is not enabled
2020-06-14 13:31:16 +03:00
CTCaer
4d8dbe068d
sept: Remove support for obsolete no _00/01 suffix
2020-06-14 13:25:08 +03:00
CTCaer
157e415636
uart: Decreases timeouts to reduce latency
2020-06-14 13:21:59 +03:00
CTCaer
48f84c5cf4
gpio: Remove dependency to irq driver
2020-06-14 13:20:56 +03:00
CTCaer
1d3d1c8454
clock: Prevent PLLC4 from glitching
2020-06-14 13:19:53 +03:00
CTCaer
bb2b339b54
ianos: Remove sd (un)mount usage
2020-06-14 13:17:26 +03:00
CTCaer
5790c585f5
nyx: Reduce idle power draw by 280mW
2020-06-14 13:14:32 +03:00
CTCaer
a2655912d4
nyx: Auto center cursor based on its size
2020-06-14 13:13:27 +03:00
CTCaer
e2c905e9b2
joycon: More robust spi dumping for bd addr/ltk
2020-06-14 13:13:04 +03:00
CTCaer
9619417b07
nyx: Allow arc bits tool to work on all compat folders
2020-06-14 13:09:10 +03:00
CTCaer
b0bcdeafac
nyx: Find best cluster size automatically
2020-06-14 13:07:42 +03:00
CTCaer
7b76015fd1
nyx: Fix an issue with hos partition initial size
2020-06-14 13:07:21 +03:00
CTCaer
465955c8f5
nyx: Use sd actual size for partition making
2020-06-14 13:06:43 +03:00
CTCaer
90a759b98e
Use reconfig workaround for power off and reboots
2020-06-14 13:05:51 +03:00
CTCaer
0096b91146
Add corrupted bmp protection
2020-06-14 13:04:13 +03:00
CTCaer
125f000894
nyx: Use date/time for screenshot names
...
Now that RTC clock can be offset in software it's good to have actual dates on screenshots.
2020-06-14 13:02:54 +03:00
CTCaer
f9a0e6ce4f
nyx: Show clock edit on boot if 0 offset
2020-06-14 13:00:55 +03:00
CTCaer
0d5a1416d0
nyx: Show SD card total blocks in info
2020-06-14 12:59:41 +03:00
CTCaer
43f3132069
nyx: Do not show SFD partitions as valid for emuMMC
2020-06-14 12:53:35 +03:00
CTCaer
3d00a1be21
nyx: Support multiple backup based emuMMC
2020-06-14 12:52:54 +03:00
CTCaer
87ce09f4b1
Some fixes
2020-06-14 12:50:54 +03:00
CTCaer
31f90a0a47
se: Fix CBC encryption
2020-06-14 03:10:30 +03:00
CTCaer
af30904624
se: Simplify oneshot execute calls
2020-06-14 03:10:04 +03:00
CTCaer
f2f995af17
se: Allow sha256 continuation without saving the msg
2020-06-14 03:08:27 +03:00
CTCaer
1c213d73c9
hos: Remove some unneeded secmon patches
2020-06-14 02:24:18 +03:00
CTCaer
3dcd2ad15f
hos: Header for pkg2 is now more proper
2020-06-14 02:23:02 +03:00
CTCaer
accf226214
hos: Fix bct clear
2020-06-14 02:19:55 +03:00
CTCaer
71df1e2da1
hos: Initialize eMMC only once. Saves half second.
2020-06-14 02:13:18 +03:00
CTCaer
d49a40b0da
hekate: Better error prints for failed launching
2020-06-14 02:09:48 +03:00
CTCaer
75c6b01696
power: Always enable low battery protect
2020-06-14 02:05:57 +03:00
CTCaer
eb2c8a032f
power: Enable charger unconditionally
2020-06-14 02:04:50 +03:00
CTCaer
416db840ec
power: Refactor max17050 driver
2020-06-14 02:03:43 +03:00
CTCaer
b0c4cef077
power: Fix max77621 DVS voltage reg names
2020-06-14 02:02:26 +03:00
CTCaer
58d12e5754
power: Refactor bq24193 driver
2020-06-14 02:01:26 +03:00
CTCaer
bcda64a5df
tsec: Decouple hos header dependency
2020-06-14 01:32:54 +03:00
CTCaer
ba77de3dc5
exo: Refactor exo_cfg context to exo_ctx
2020-06-14 01:29:41 +03:00
CTCaer
53325617bb
hos: Small refactoring
2020-06-14 01:27:08 +03:00
CTCaer
8e836d958f
Rename cluster to ccplex
2020-06-14 01:09:17 +03:00
CTCaer
fa72d1154d
Update readme to include the UMS autoboot
2020-06-14 01:02:47 +03:00
CTCaer
27926b0d55
Allow automatic inlining for modules
2020-06-13 18:40:09 +03:00
CTCaer
8ce6bf82a9
Minimize make info noise during building
2020-06-13 18:39:17 +03:00
CTCaer
36aeb36c90
Generate debug info for hekate main elf
2020-06-13 18:36:03 +03:00
CTCaer
780d17e61c
tui: Remove menu logo and ifdefs
2020-06-13 18:35:07 +03:00
CTCaer
c613acb31d
tui: Localize status bar time keeping
2020-06-13 18:33:44 +03:00
CTCaer
21548545fc
Equalize hekate main and Nyx sd based functions
2020-06-13 18:32:40 +03:00
CTCaer
7dd3178d48
Equalize hekate main and Nyx common functions
2020-06-13 18:16:29 +03:00
CTCaer
c9ee530205
Merge pull request #424 from devkitPro/gcc10-fixes
...
Fixes for compiling with gcc 10
2020-05-09 04:45:41 +03:00
Dave Murphy
cc54df87d7
fixes for compiling with gcc 10
...
gcc 10 no longer lets you get away with not externing global variables in header files. This adds the necessary extern and adds defines in appropriate c files
2020-05-08 23:32:44 +01:00
CTCaer
9698cbc9d7
nyx: Fix archive bits fixer and extention folders
2020-05-05 21:24:28 +03:00
CTCaer
f085cbc4a4
Bump hekate to v5.2.1 and Nyx to v0.9.1
2020-05-05 20:40:22 +03:00
CTCaer
d8b6aa3831
nyx: Correct the error message for format
2020-05-05 19:28:34 +03:00
CTCaer
3e5ef39686
nyx: Fix emummc slider when there's not enough space
2020-05-05 19:28:15 +03:00
CTCaer
bc7c65447d
nyx: Add start clearing for ext4 partitions
2020-05-05 19:27:45 +03:00
CTCaer
a91378b9c1
nyx: Allow always writeable emmc via config
...
The key is `umsemmcrw` and resides in nyx.ini
2020-05-05 19:26:10 +03:00
CTCaer
7543234401
emummc: Fix emupath folder and add more checks
...
The checks are checking if the emuMMC was found. If it didn't and error will be show.
2020-05-05 19:23:31 +03:00
CTCaer
5b91c54936
fatfs: Backport some fixes
2020-05-05 19:21:07 +03:00
CTCaer
322280757f
nyx: Fix time offset parsing
2020-05-05 19:20:04 +03:00
CTCaer
b1636fbb96
nyx: Add unsaved config changes pop up
2020-05-05 19:19:12 +03:00
CTCaer
cc18a7b146
nyx: Allow changing Date/Time via tickers
2020-05-05 19:17:29 +03:00
CTCaer
5fe84a78ac
rtc: Remove custom encoding
2020-05-05 19:16:16 +03:00
CTCaer
822e0dcd98
Various small fixes
2020-05-05 19:11:39 +03:00
CTCaer
a6be3714a3
ums: Update Nyx status bar during UMS
2020-05-05 19:02:01 +03:00
CTCaer
f56d1bad04
nyx: Allow hue icons from section names
2020-05-05 19:01:08 +03:00
CTCaer
c7ab404fc1
exo: Fix prodinfo blanking overriding
2020-05-05 18:58:53 +03:00
CTCaer
e8f41a03f3
res: Fix name of colorized lakka icon
2020-05-03 02:52:51 +03:00
CTCaer
8edc9971f9
nyx: Refactor launch icon colorization
...
The Switch and Payload icons will be colorized by default, because they are system icons.
Users can still replace them with icons named `icon_switch_custom.bmp` and `icon_payload_custom.bmp` that do not get colorized.
2020-05-03 01:57:15 +03:00
CTCaer
54c36a7e46
Merge pull request #409 from NicholeMattera/master
...
Added support to have launch icons match theme color.
2020-05-03 01:16:59 +03:00
Nichole Mattera
afb820202d
Small fix to make sure icon_path is long enough.
2020-05-02 16:34:06 -04:00
Nichole Mattera
0ce973966f
Add support for launch icons changing color with theme.
2020-05-02 16:16:38 -04:00
CTCaer
da8c040c08
hos: Fix exosphere.ini parsing
2020-05-01 20:30:17 +03:00
CTCaer
ee8854fa14
So it has come to this. (hekate v5.2.0, Nyx v0.9.0)
2020-05-01 17:33:31 +03:00
CTCaer
11ca71cbc7
joycon: Wait for disconnect cmd reply
2020-05-01 17:29:05 +03:00
CTCaer
3794c61ab2
Mitigate a L4T Joy-Cond driver issue
2020-05-01 17:28:24 +03:00
CTCaer
dde3ca2d73
sdmmc: Properly disable parent clock
2020-05-01 03:41:00 +03:00
CTCaer
9850dc305c
sept: Make parsing more readable
2020-04-30 16:34:24 +03:00
CTCaer
4d1b59c05b
Update Readme
2020-04-30 16:33:14 +03:00
CTCaer
a0c3323b7c
nyx: Allow emuMMC backup now that is working
2020-04-30 16:29:03 +03:00
CTCaer
c9e53d4b1d
nyx: Decrease idle power drain
2020-04-30 16:27:40 +03:00
CTCaer
1a89246e7f
Remove emmc tools from TUI. You will not be missed.
...
Now that Nyx has Joy-Con support as a fallback, the eMMC backup/restore tools can now be removed from TUI.
2020-04-30 16:25:35 +03:00
CTCaer
2094ac2bba
exo: Add exosphere.ini support and cal0 blanking
...
exosphere.ini will always be loaded and the values set by it.
User can still choose to override them with the `cal0blank` and `cal0writesys` in a boot entry.
Override keys get a 0 or 1.
2020-04-30 16:21:38 +03:00
CTCaer
f9b0ff70f7
hos: Disallow Auto NOGC for stock
...
If you still want to use it, you must use `kip1patch=nogc` in your boot entry to force it.
2020-04-30 16:15:49 +03:00
CTCaer
d2d3597c29
Update template with new key for config section
2020-04-30 16:14:03 +03:00
CTCaer
4b62b1f69f
nyx: Introducing Partition Manager for SD Card
...
Allow you to select up to 2 emuMMC + Linux + Android.
Any combo is allowed, even if you just want to repartition it back to one FAT partition.
The procedure is automatic on selecting sizes and offsets.
The tool is also able to backup your SD Card into Ramdisk and then get restored, if the total used size is less than 1GB.
If you have more files than that, you will be asked to copy your files to your PC via UMS.
It also allows you to flash L4T Linux images and Android Twrp images.
The Flash Android can be also used to reboot into Twrp if a file to flash is not found.
2020-04-30 16:12:55 +03:00
CTCaer
91c2c891fd
nyx: Fix verification bar/percent not updating
2020-04-30 15:13:12 +03:00
CTCaer
1ba0a7d264
nyx: Allow restoring eMMC backup of different size
...
You will get a warn. If you choose to skip without reading it, then you are toasted.
2020-04-30 15:12:34 +03:00
CTCaer
5f6bf332d3
nyx: Add emuMMC partition backup
...
For now it will automatically dump the first found and the size will be based on its GPT.
2020-04-30 15:11:18 +03:00
CTCaer
448cc49cff
hwinit: Add proper deinit for new components
2020-04-30 15:09:25 +03:00
CTCaer
81f0c0a0dc
touch: Add FB SRAM read function
2020-04-30 15:06:31 +03:00
CTCaer
95c1046765
nyx: Add eMMC and SD read benchmarks
2020-04-30 15:05:41 +03:00
CTCaer
2a8c27115c
fatfs: Use RTC clock for date/time
2020-04-30 15:04:52 +03:00
CTCaer
b6933013be
storage: Add primitive BIS support
2020-04-30 15:04:20 +03:00
CTCaer
a2bb576c03
fatfs: Add Ramdisk support
2020-04-30 15:03:25 +03:00
CTCaer
c8d6da5a23
storage: Add Ramdisk driver
2020-04-30 14:58:53 +03:00
CTCaer
f09263d3be
nyx: Add Update r2p option
2020-04-30 14:56:44 +03:00
CTCaer
fdfd383c34
nyx: Add Joy-Con Bluetooth pair info dump
2020-04-30 14:55:51 +03:00
CTCaer
39a32fc83d
nyx: Add Nyx Options (Theme, Homescreen, Time)
2020-04-30 14:55:15 +03:00
CTCaer
c072041039
nyx: Add time offset
...
The epoch is based on HOS format.
An automatic time set will be implemented in a later version.
2020-04-30 14:51:48 +03:00
CTCaer
6d75f96ed5
nyx: Add Home Screen selection
...
You can now choose between Main menu and Launch/More Cfg as home screens.
2020-04-30 14:49:28 +03:00
CTCaer
ab304c9178
nyx: Small fixes in init
2020-04-30 14:45:59 +03:00
CTCaer
abcb1dec46
boot cfg: Allow Launching UMS from boot.
...
By using `BOOT_CFG_AUTOBOOT_EN` in `boot_cfg` and `EXTRA_CFG_NYX_UMS` in `extra_cfg` you can launch UMS from boot.
The `ums` variable must be populated with one of the following:
```
NYX_UMS_SD_CARD 0
NYX_UMS_EMMC_BOOT0 1
NYX_UMS_EMMC_BOOT1 2
NYX_UMS_EMMC_GPP 3
NYX_UMS_EMUMMC_BOOT0 4
NYX_UMS_EMUMMC_BOOT1 5
NYX_UMS_EMUMMC_GPP 6
```
2020-04-30 14:44:27 +03:00
CTCaer
ac4bf9cf2c
nyx: Add tab separator for Tools tabs
2020-04-30 14:32:52 +03:00
CTCaer
72a51f9506
nyx: Add Touch Panel Calibration tool
2020-04-30 14:31:32 +03:00
CTCaer
d50a77f861
nyx: Fix Archive bits tool v3
2020-04-30 14:30:37 +03:00
CTCaer
0ecd6b16b0
nyx: USB Gamepad emulation (Joy-Con)
...
This allows you to use your joycon as a free gamepad for your PC. Often paired with tools like x360ce.
2020-04-30 14:28:16 +03:00
CTCaer
4dcbaa8c2b
Update Clocks and Fuses for USB
2020-04-30 14:25:58 +03:00
CTCaer
2261dbce83
nyx: USB Mass Storage support (SD/eMMC/emuMMC)
2020-04-30 14:25:43 +03:00
CTCaer
53ff1102df
usbd: Add device descriptors
2020-04-30 14:15:50 +03:00
CTCaer
b01b49aff4
usbd: Add USB Gadget HID driver
2020-04-30 14:15:26 +03:00
CTCaer
c9a7659d93
usbd: Add USB Gadget UMS driver
2020-04-30 14:14:58 +03:00
CTCaer
4f75cd62e5
usb: Add USB Device driver
2020-04-30 14:14:16 +03:00
CTCaer
2a74715c3c
Update some copyrights
2020-04-30 14:10:08 +03:00
CTCaer
1210c3e689
nyx: Add log window screenshots for debugging
2020-04-30 14:09:11 +03:00
CTCaer
a3f430c224
nyx: Add capture effect on screenshots
2020-04-30 14:08:25 +03:00
CTCaer
2f7be43ccb
nyx: Allow screenshots only every 2s
2020-04-30 14:08:06 +03:00
CTCaer
f5432c734c
nyx: Utilize Log Window
...
- or + on Joy-Con displays the log screen.
If there are errors somewhere, they are normally also logged in there.
2020-04-30 14:07:26 +03:00
CTCaer
5ca35aa4fc
memory map: Repartition RAM based on new needs
2020-04-30 14:03:57 +03:00
CTCaer
2dd474ad26
gfx: Switch Nyx gfx prints to landscape
2020-04-30 14:01:10 +03:00
CTCaer
97e45346ea
display v2: Utilize Window D as log window
2020-04-30 13:58:41 +03:00
CTCaer
6c1ce41900
display v2: Add Cursor Window
2020-04-30 13:57:43 +03:00
CTCaer
4a57901746
display v2: Always check if already initialized
2020-04-30 13:55:26 +03:00
CTCaer
c32636b8cb
nyx: Fuses info is now HW and Fuses info
...
Additionally add chip revision info
2020-04-30 13:54:11 +03:00
CTCaer
190ffdaa5a
nyx: Add DRAM modules info
2020-04-30 13:51:46 +03:00
CTCaer
bdd2b40c96
nyx: Add Touch panel info
2020-04-30 13:51:25 +03:00
CTCaer
53f54cf23b
nyx: Add display panel info
2020-04-30 13:50:58 +03:00
CTCaer
474d531788
display v2: Add multiple panel support
2020-04-30 13:49:03 +03:00
CTCaer
3db55df0a6
display v2: Refactor everything
2020-04-30 13:45:28 +03:00
CTCaer
1483a61f11
nyx: Add joycon fallback support as a virtual mouse
...
Cursor Movement: Left Stick
Click: A / ZL / ZR
Back: B
2020-04-30 13:16:30 +03:00
CTCaer
7b715f7be9
input: Add Joy-Con UART driver
2020-04-30 13:02:14 +03:00
CTCaer
56034f9aac
nyx: Ensure that close button var always gets nulled
2020-04-30 04:32:55 +03:00
CTCaer
7e96a4dd3a
nyx: Keep last close button to a var
2020-04-30 04:25:51 +03:00
CTCaer
523c81f797
nyx: Add theme colors for highlight text
2020-04-30 04:04:24 +03:00
CTCaer
f540c8250b
nyx: Disallow eMMC ops with low battery
2020-04-30 03:59:16 +03:00
CTCaer
e89b7f12dd
nyx: Update hekate theme
2020-04-30 03:57:10 +03:00
CTCaer
279b67fa49
i2c: Update driver in hekate main also
2020-04-30 03:54:24 +03:00
CTCaer
11f1f65ed1
rtc: Fix hour parsing
2020-04-30 03:53:29 +03:00
CTCaer
071dfa9792
lvgl: Enable keyboard and add HEX mode
2020-04-30 03:53:04 +03:00
CTCaer
3cecb03dac
nyx: Fix a long standing heap corruption issue
2020-04-30 03:51:13 +03:00
CTCaer
a7c64f8ba2
lvgl: Better heap alignment
2020-04-30 03:49:40 +03:00
CTCaer
6749dad1a4
lvgl: Fix HSV to RGB calculation
2020-04-30 03:49:10 +03:00
CTCaer
91b4c86bbe
minerva: Fix emc table corruption
2020-04-30 03:47:23 +03:00
CTCaer
aadb88eeea
regulators: Enable 5V to missing GPIO AO IO rails
2020-04-30 03:46:21 +03:00
CTCaer
2c4d6552e9
Fixes to battery charger and fuel gauge ICs
2020-04-30 03:45:19 +03:00
CTCaer
c2e8d51115
hos: Add EKS
2020-04-30 03:43:29 +03:00
CTCaer
1d69809022
sdram: Allow killing ram clock source if desired
2020-04-30 03:39:18 +03:00
CTCaer
093f14923c
sdram: Document cfg and use vendor patches
2020-04-30 03:37:40 +03:00
CTCaer
63768ccc99
uart: Add rounded clocking for 1 mbaud
2020-04-30 03:34:05 +03:00
CTCaer
a00f25d2f9
l4t: Clear payload mode from scratch0 reg
2020-04-30 03:31:42 +03:00
CTCaer
54faa38920
utils: Add normal CRC32
2020-04-30 03:30:51 +03:00
CTCaer
ae1bb909b6
se: Add prng128 generator and get aes keys
2020-04-30 03:29:05 +03:00
CTCaer
ecb616e411
sdram: Add MR read request
2020-04-30 03:27:39 +03:00
CTCaer
8c762c52e2
Various fixes and whitespace removal
2020-04-30 03:25:22 +03:00
CTCaer
e14a7d1d4d
nyx: Clear partition start when creating emuMMC
2020-04-30 02:05:24 +03:00
CTCaer
08c81fe1f8
Move verification config to nyx config
2020-04-30 02:00:33 +03:00
CTCaer
63be93be64
nyx: Use a static color for verifying bar indicator
2020-04-30 01:35:18 +03:00
CTCaer
de4891e133
nyx: Correct label styles set
2020-04-30 01:33:14 +03:00
CTCaer
8fd398f213
nyx: Fix heap corruption while parsing emmc gpt
2020-04-30 01:31:01 +03:00
CTCaer
ec53aa86dd
emmc: Use gpt struct and only add valid entries
...
Additionally keep track of partition index
2020-04-30 01:29:58 +03:00
CTCaer
51985ed2ca
sdmmc v2: Bus/IO clock refactoring and fixes
...
Use the exact same clocks with HOS and utilize low jitter clock parents.
Add back our compatibility mode and the missing timeout clock parent.
Hekate main will continue to use PLLP clock parent for all.
2020-04-30 01:26:55 +03:00
CTCaer
67ae7b9dcb
nyx: Add SD Card error report in Console Info
2020-04-30 01:09:48 +03:00
CTCaer
96654d9620
nyx: Throw a warning if SD Card in 1 bit mode
2020-04-30 01:05:22 +03:00
CTCaer
ce97b97c8d
sdmmc v2: Add full SD card fallback initialization
...
hekate main always runs in compatibility mode (SDR82).
This ensures speed on boot process.
Nyx will first try SDR104.
If the sd card is a sandisk U1 and fails, it will try the compatibility mode.
After that it fallbacks to lower bus speeds.
Both support 1bit mode for broken sd card readers.
Having the new error checking in the sdmmc driver, allows for all that to work.
It can now fail instead of continuing, like how HOS reacts.
2020-04-30 00:00:00 +03:00
CTCaer
034f680a8e
sd fs: Move sd init/mount/helpers to their own object
2020-04-29 23:20:18 +03:00
CTCaer
7d17e34dee
sdmmc v2: Add eMMC overclocking
2020-04-29 22:11:23 +03:00
CTCaer
d0a16a49b6
sdmmc v2: Add error checking for all cases
2020-04-29 22:09:36 +03:00
CTCaer
5442547a59
sdmmc v2: Name eMMC physical partitions
2020-04-29 22:06:33 +03:00
CTCaer
10e7e06048
sdmmc v2: Move address alignment check in driver
2020-04-29 21:46:25 +03:00
CTCaer
eac6426125
sdmmc v2: Driver fixes
2020-04-29 21:43:07 +03:00
CTCaer
88b01994bd
sdmmc v2: HW driver fixes
2020-04-29 21:39:03 +03:00
CTCaer
66780bb4c2
sdmmc v2: Refactor and fix registers
2020-04-29 21:23:28 +03:00
CTCaer
7f26981fa1
sdmmc v2: Refactor function names and vars
2020-04-29 21:16:44 +03:00
CTCaer
5b0a0070c7
sdmmc v2: Refactor everything
2020-04-29 18:53:29 +03:00
CTCaer
0462f3b252
Add simple exception handling
...
This adds support for exception handling.
It should provide simple and fast reporting of crucial info and full restoration without powering off.
2020-04-27 09:56:19 +03:00
CTCaer
9a5cfdff4c
gpio: Upgrade GPIO driver
...
Use macros to get bank addresses and add full configuration support.
2020-04-27 09:51:25 +03:00
CTCaer
cb3b1bf6e1
irq: Add Legacy Interrupt Controller driver
2020-04-27 09:49:00 +03:00
CTCaer
b4d2df8111
Name various t210 registers
2020-04-27 09:47:47 +03:00
CTCaer
cadb95e3ce
hos: Add emummcforce key
...
This disallows booting if emummc.ini is missing or emuMMC is disabled. Useful when sysmmc must be avoided at all cases.
2020-04-27 09:44:06 +03:00
CTCaer
f148757110
hos: Disallow booting CFW if normal FS and exFAT sd
...
This will stop black screens when user boots CFW with an exFAT sd card and without having the exFAT microupdate.
2020-04-27 09:41:13 +03:00
CTCaer
6e538cd291
hos: Improve kip patching
...
Allows more kip names to be added. To use it on them you will need to dump the kips via the Dump pkg1/2 function and then sha256 to get the hash.
The name must be used as is, otherwise the name compare will fail.
Because of that, also allow unordered parsing and gluing.
2020-04-27 09:38:09 +03:00
CTCaer
62a73ee612
ini: Always clear the section allocations
2020-04-27 09:33:21 +03:00
CTCaer
4160037c81
emummc: Add boot entry emuMMC selection
...
Using the key `emupath` on a boot entry will load the selected emuMMC.
This can also be forced by using the correct boot cfg storage bit and writing the path at the emummc path offset. Check readme for these.
This can only be used if the emuMMC was created via Nyx. because of the raw_based and file_based files that have emuMMC info.
(emupath=emuMMC/RAW1, emupath=emuMMC/SD00, etc)
2020-04-27 09:30:53 +03:00
CTCaer
3fa537e54a
nyx: Move emummc cfg load function
2020-04-27 09:18:31 +03:00
CTCaer
f35c18a0c2
nyx: Refresh emuMMC status after a creation
2020-04-27 09:13:22 +03:00
CTCaer
aff137ac34
nyx: Allow partition selection for emuMMC raw
2020-04-27 09:09:52 +03:00
CTCaer
6236b0ab00
nyx: Use mbr context for emuMMC partition
2020-04-27 09:06:53 +03:00
CTCaer
ae656a0f81
types: User a proper struct for MBR partition table
2020-04-27 08:58:37 +03:00
CTCaer
6a6648d3b3
nyx: Change many lvgl static labels to dynamic
2020-04-27 08:47:00 +03:00
CTCaer
a4c90aeff3
Bump hekate to v5.1.4 and Nyx to v0.8.7
2020-04-14 21:34:59 +03:00
CTCaer
bfe13981bc
Disable some options from TUI to lessen codesize v2
2020-04-14 18:11:34 +03:00
CTCaer
ef11dd883a
Allow bypassing empty battery charging
2020-04-14 17:55:31 +03:00
CTCaer
da149c296f
touch: Reinitialize up to 3 times if failed
2020-04-14 17:52:22 +03:00
CTCaer
9af4c717a8
util: Add btn_read_vol
2020-04-14 17:51:42 +03:00
CTCaer
281e5a138e
sept: Create sept folder if missing
2020-04-14 17:45:34 +03:00
CTCaer
e7f8b2c6c2
hos: Add HOS 10.0.0 support
2020-04-14 17:43:43 +03:00
CTCaer
3d9c64d548
hos: Use a new method to get kernel/ini1 offsets
2020-04-14 17:40:41 +03:00
CTCaer
5f142b4c86
main: Add empty battery screen
...
This disables low battery monitor shutdown (LBM shutdown) on boot and checks if battery is enough.
The logic is as follows:
If battery is not enough:
- If not charging and 15s pass, it will re enable LBM shutdown and power off.
- If charging, it will wait until it is charged above the limit.
Screen will auto turn off to save power. A press on Power button or a change on charger, will enable it for another 15s.
If battery is enough:
- Enables LBM shutdown and continues with the boot process.
2020-04-06 05:54:45 +03:00
CTCaer
52c506af9a
tools: Force sparse verification on TUI
...
Additionally, because the tool relies 100% on sd card, it will become a Nyx only. Remove the config also, as it will be moved to nyx configuration.
2020-04-06 05:36:09 +03:00
CTCaer
dc9c7fd95c
touch: Do a panel HW test before calibration
...
In case the panel or the panel connection has issues, abort the calibration.
2020-03-25 01:38:16 +02:00
CTCaer
4ec7befe82
touch: Small refactor
2020-03-25 01:31:58 +02:00
CTCaer
dd4dd91152
makefile: Show a warning when binary exceeds limits
2020-03-24 20:06:10 +02:00
CTCaer
a39ba2cd71
lvgl: Fix edge case in lv_label_set_text
...
This fixes an edge case where the original label set was done with set_static_text, the next one with set_text and the text is at the same address.
The incomplete check would think that the text resides on heap and it would reallocate it as such, effectively corrupting .data on the next sets.
2020-03-22 04:48:50 +02:00
CTCaer
9c2202fa39
Bump hekate to v5.1.3 and Nyx to v0.8.6
2020-03-21 22:30:39 +02:00
CTCaer
9c6931a17c
Bugfixes
...
The fan driver change ensures power off in any situation where a chainload software re-enables the 5V regulator.
2020-03-21 22:28:50 +02:00
CTCaer
976925c697
nyx: Allow cancellation of emuMMC creation
2020-03-21 22:27:17 +02:00
CTCaer
d50af46b03
chnldr: Support variable sizes of coreboot.rom
2020-03-21 22:18:40 +02:00
CTCaer
3405910f4c
hwinit: Disable SD Card power on boot
...
Fixes issues with warmboot based reboots.
2020-03-21 22:13:18 +02:00
CTCaer
52874f9113
minerva: More protections
2020-03-21 22:10:06 +02:00
CTCaer
91a241dafa
touch: Add Tuning Calibration
...
This, for now, can be done at Nyx boot by holding VOL- and VOL+.
Make sure that you don't touch the touchscreen.
2020-03-21 22:03:51 +02:00
CTCaer
a8db070755
fss: Fix launching CFW on sys for < 7.0.0
2020-03-21 13:15:24 +02:00
CTCaer
76676f3a2e
nyx: Allow for big filepaths for archive bit fixer
...
It also fixes corruptions/hangs when path is bigger than 255 chars
2020-03-18 06:30:11 +02:00
CTCaer
f5040f1e41
Update and add missing copyrights
...
Probably more need to change.
2020-03-14 09:24:24 +02:00
CTCaer
c9c3c8f716
touch: Add context based ready checks on init
2020-03-13 17:36:44 +02:00
CTCaer
144d6fd3f6
i2c: Update drivers
...
Adds support for 8 byte transfers needed by touch driver changes.
2020-03-13 10:25:27 +02:00
CTCaer
9697067466
touch: Add fw info
2020-03-13 08:48:20 +02:00
CTCaer
8539095bdb
touch: Proper init
...
This patch applies the simpler init from HOS driver.
The most important change is enabling a feature that the fw supports:
Automatic tuning and calibration based on saved tuning values (running HOS only once saves these).
2020-03-13 08:39:38 +02:00
CTCaer
95e3159fe9
touch: Correct pressure calculation
...
Fingertip S for Nintendo Switch uses a custom spatial calculation. It now allows to identify area of touch.
2020-03-13 08:34:16 +02:00
CTCaer
8b74c487eb
exo: Add support for fatal version AFE2
2020-03-09 09:09:25 +02:00
CTCaer
8abda7f259
fss0: Support experimental content
...
Use key `fss0experimental=1` in a boot entry with `fss0=` defined to enable experimental content.
(Older versions of hekate will just skip any experimental content.)
2020-03-09 08:58:12 +02:00
CTCaer
8d5c52f087
lvgl heap: Fix critical issue with node header size
...
This fixes a critical issue where the node header was 28 bytes instead of 32, causing misalignment and heap corruption.
2020-03-09 08:39:31 +02:00
CTCaer
e6c1d9bf66
nyx: Simplify label sets
...
- Use only lv_label_set_text to simplify label sets
- Fix an issue with a label cut
- Add more maintenance functions for DRAM training
2020-03-09 08:37:41 +02:00
CTCaer
a52af1bf41
Fix building on make 4.3
2020-03-04 01:34:35 +02:00
CTCaer
3f10cc774b
Bump hekate to v5.1.2 and Nyx to v0.8.5
...
Additionally disable archive bit fix tool in hekate main to shave binary size.
The archive bit fix in Nyx is the only maintained one and so the only one that should be used.
2020-03-03 04:42:01 +02:00
CTCaer
ac92ca220f
fan: Better thermal logic based on HOS patterns
2020-03-03 04:37:59 +02:00
CTCaer
ab8801d0de
touch: Add edge compensation
...
Switch touch panels have a 10-15px offset around the edges.
(10-1269, 10-709) / (15-1264, 15-704)
This allows touch driver to report a max of 0-1279, 0-719.
2020-03-03 04:28:12 +02:00
CTCaer
f3802ec464
lists: Fix list member iteration with no entries
2020-03-03 04:24:38 +02:00
CTCaer
bc7a7bcfa0
info: Allow dumping of battery characterization table
2020-03-03 04:22:59 +02:00
CTCaer
6a52d44da6
heap: Fix edge case of reusing first node
...
There is an edge case fixed where the whole would be freed and this would make use of a nullptr.
Additionally, remove usage of reserved names for vars and add comments on how it works.
2020-03-03 04:16:20 +02:00
CTCaer
03a8a11933
Small fixes and changes
...
- Allow printing of more log on HOS boot when LOGS are OFF.
- A small name refactoring
- Add battery warning symbol when battery < 3200mV
2020-03-03 04:11:13 +02:00
CTCaer
c474e35732
hos: 9.2.0 support
2020-03-03 03:32:45 +02:00
CTCaer
4c1f67d022
Fix build errors
2020-01-19 15:22:59 +02:00
CTCaer
91759aba95
r2p/update: Fix check for the 'if not forced' case
...
This fixes the following case:
When force is 0 and the payload is not hekate, the function jumps to the 'is old' check.
This skips the is magic value check and only does the version check.
In case the foreign payload has a low value on that offset, it causes an overwrite which is unneeded.
2020-01-17 09:35:16 +02:00
CTCaer
5a9bbaf900
fss0: Fix parsing Sept from fusee-secondary
2020-01-17 09:27:53 +02:00
CTCaer
01a767cbfa
fss0: Fix heap corruption when sept is loaded from fss
2020-01-17 09:26:13 +02:00
CTCaer
8552a7282c
ini: Fix heap corruption caused by backlight option
...
Additionally, name all text size values so it doesn't happen again in the future.
2020-01-17 09:22:28 +02:00
CTCaer
2a161b572b
sdmmc: Set power cycle wait to 0 at boot
2020-01-17 09:19:58 +02:00
CTCaer
422852795f
ini: Remove \r stripping as is done by FatFS
2020-01-17 09:18:31 +02:00
CTCaer
4d53f21387
mtc: Clear init magic on chainload
...
Fixes a hang caused when rebooting 2 payload from L4T with old hekate in vendor partition.
L4T does not overwrite the nyx storage where the Minerva configuration is stored.
This makes new Minerva parse the wrong tables from old hekate and eventually hang the RAM, which causes an exception on BPMP.
2020-01-14 23:41:15 +02:00
CTCaer
9263e2192f
nyx: Fix low battery voltage color
2020-01-07 06:50:33 +02:00
CTCaer
c99a87dd09
clock: Move PLLC config from bpmp.c to clock.c
2020-01-07 06:46:22 +02:00
CTCaer
009db77426
bpmp: Switch to PLLC for SCLK/BPMP clock source
2020-01-07 06:26:29 +02:00
CTCaer
4e5ded7cb3
Merge pull request #340 from cclauss/patch-1
...
Fix compatibility with python 3
2020-01-07 06:14:51 +02:00
Christian Clauss
50f31cad14
import sys for lines 17 and 34
2020-01-04 18:05:42 +01:00
CTCaer
2f43145131
uart: Add invert, get/set IIR and fifo empty functions
2019-12-16 22:16:40 +02:00
CTCaer
e3fca2bce5
uart: Add timeout and len report to uart receive
2019-12-16 22:15:21 +02:00
CTCaer
da112a0ae9
uart: Proper uart init
2019-12-16 22:12:09 +02:00
CTCaer
90060d1d83
mtc: Don't rely on clean BSS for Minerva lib
2019-12-16 22:06:13 +02:00
CTCaer
1ccce5f1a2
gfx: Fix off-by-one in right half of 16px rendering
2019-12-16 21:49:54 +02:00
CTCaer
8584493c7f
sept: Add support for loading sept from fss0
...
If `fss0=` key is detected, sept will be loaded from fusee-secondary.bin instead of `sept/sept_*`.
This will negate missing sept and failed to decrypt pkg2 errors, when booting HOS, for users that forget to update sept folder.
2019-12-16 00:53:22 +02:00
CTCaer
9b2d906648
hos: Add message for possible cause of unk pkg1
2019-12-14 22:43:00 +02:00
CTCaer
2aaa0331ac
rtc: Add epoch convertion functions
...
Thanks @shchmue for the HOS conversion
2019-12-14 22:27:07 +02:00
CTCaer
7604239237
bpmp: Update driver to latest
2019-12-14 22:21:42 +02:00