hekate icon indicating copy to clipboard operation
hekate copied to clipboard

Fix sleep mode for 3.X.X

Open CTCaer opened this issue 8 years ago • 14 comments

CTCaer avatar Jun 18 '18 13:06 CTCaer

Any ideas on this?

I've looked at the original diff for sleep support, and it seems like everything is in place for these versions.

Could the warmboot_base be wrong? I'm guessing if the patchset was wrong for these versions it wouldn't boot at all?

michaelshiel avatar Jun 23 '18 05:06 michaelshiel

Yeah. Also last time I checked, the address was correct.

Yes, it would hang at boot. I don't have time currently to work on this. If I want to try some things, are you available (what version you have)?

CTCaer avatar Jun 23 '18 15:06 CTCaer

I am definitely available to test stuff. My console is on 3.0.1, and I'm very interested in the sleep support so I can keep my fuses the way they are.

I've got a fair bit of embedded ARM C experience (STM32, not Tegra) as well, so if you don't have time for the code but you know conceptually what needs changing/doing I can help out with that also.

michaelshiel avatar Jun 23 '18 15:06 michaelshiel

I have a 3.0.0 console and am also interested in this and can do some testing.

vgmoose avatar Jun 25 '18 02:06 vgmoose

The more the merrier.

@michaelshiel You can start by REing your nxbootloader. There's the most important stuff for lp0 power state.

CTCaer avatar Jun 25 '18 03:06 CTCaer

@michaelshiel @vgmoose Anyone available please contact me via email. (Comms via discord is preferable.)

CTCaer avatar Jun 25 '18 17:06 CTCaer

I'm also on 3.0.0 and can test.

cspencer49519 avatar Jun 25 '18 17:06 cspencer49519

EDITED

I have enough testers for this. Thank you all for wanting to help.

CTCaer avatar Jun 25 '18 17:06 CTCaer

Fixed internally.

Will be released when some other changes are ready.

CTCaer avatar Jul 07 '18 12:07 CTCaer

Thanks! Any chance you could commit the changes?

I spent a lot of time disassembling the NX Bootloader like you suggested, focusing on the sdram_lp0_save_params function, and I'm very curious where the problem actually was.

Edit: Removed wrong information

michaelshiel avatar Jul 07 '18 13:07 michaelshiel

Are you sure about cross-matching/checking everything in dissasembly? The current behavior matches Nvidia's behavior on coreboot. https://github.com/MrChromebox/coreboot/blob/master/src/soc/nvidia/tegra210/sdram_lp0.c

EDIT:

Any chance you could commit the changes?

Will be released when some other changes are ready.

CTCaer avatar Jul 07 '18 13:07 CTCaer

Yeah my mistake, I was interpreting the offsets incorrectly.

michaelshiel avatar Jul 07 '18 13:07 michaelshiel

I think you can close this @CTCaer - Nice work btw :D

AnnsAnns avatar Jul 09 '18 20:07 AnnsAnns

https://github.com/CTCaer/hekate/commit/7af531de77b5f0e5b23843e16f520078d6351d93

@tumGER Thanks ^^

CTCaer avatar Jul 09 '18 20:07 CTCaer