1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-10 04:21:45 +00:00

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!
This commit is contained in:
CTCaer 2020-12-02 00:57:32 +02:00
parent 202540c7f7
commit 2424ecc4f0
2 changed files with 17 additions and 0 deletions

View file

@ -233,6 +233,15 @@ int launch_payload(char *path, bool update)
{
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
buf = coreboot_addr;
if (h_cfg.t210b01)
{
f_close(&fp);
gfx_con.mute = 0;
EPRINTF("T210B01: Coreboot not allowed!");
goto out;
}
}
if (f_read(&fp, buf, size, NULL))

View file

@ -169,6 +169,14 @@ lv_res_t launch_payload(lv_obj_t *list)
{
coreboot_addr = (void *)(COREBOOT_END_ADDR - size);
buf = coreboot_addr;
if (h_cfg.t210b01)
{
f_close(&fp);
EPRINTF("T210B01: Coreboot not allowed!");
goto out;
}
}
if (f_read(&fp, buf, size, NULL))