From 8f222fd0bd922c777f0696caed085a36c815fe31 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 27 Oct 2020 21:27:51 +0200 Subject: [PATCH] main: Fix update.bin creation on first boot --- bootloader/main.c | 2 +- nyx/nyx_gui/frontend/gui_info.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bootloader/main.c b/bootloader/main.c index 4aa7534..274cdbd 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -299,7 +299,7 @@ void auto_launch_update() else { u8 *buf = calloc(0x200, 1); - is_ipl_updated(buf, "bootloader/update.bin", false); + is_ipl_updated(buf, "bootloader/update.bin", true); free(buf); } } diff --git a/nyx/nyx_gui/frontend/gui_info.c b/nyx/nyx_gui/frontend/gui_info.c index c07ec07..b0fd271 100644 --- a/nyx/nyx_gui/frontend/gui_info.c +++ b/nyx/nyx_gui/frontend/gui_info.c @@ -646,32 +646,32 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn) switch ((ram_density.dev0_ch0 & 0x3C) >> 2) { case 2: - strcat(txt_buf, "4x512MB"); + strcat(txt_buf, " x 512MB"); break; case 3: - strcat(txt_buf, "4x768MB"); + strcat(txt_buf, " x 768MB"); break; case 4: - strcat(txt_buf, "4x1GB"); + strcat(txt_buf, " x 1GB"); break; default: - strcat(txt_buf, "4xUnk"); + strcat(txt_buf, " x Unk"); break; } s_printf(txt_buf + strlen(txt_buf), " (%d) #FF8000 |# ", (ram_density.dev0_ch0 & 0x3C) >> 2); switch ((ram_density.dev1_ch0 & 0x3C) >> 2) { case 2: - strcat(txt_buf, "4x512MB"); + strcat(txt_buf, " x 512MB"); break; case 3: - strcat(txt_buf, "4x768MB"); + strcat(txt_buf, " x 768MB"); break; case 4: - strcat(txt_buf, "4x1GB"); + strcat(txt_buf, " x 1GB"); break; default: - strcat(txt_buf, "2xUnk"); + strcat(txt_buf, " x Unk"); break; } s_printf(txt_buf + strlen(txt_buf), " (%d)\n\n", (ram_density.dev1_ch0 & 0x3C) >> 2); @@ -1014,7 +1014,7 @@ static lv_res_t _create_mbox_benchmark(bool sd_bench) char *txt_buf = (char *)malloc(0x1000); - s_printf(txt_buf, "#FF8000 %s Benchmark#\n[3 x %s raw reads. Cancel: VOL- & VOL+]\n", + s_printf(txt_buf, "#FF8000 %s Benchmark#\n[3 x %s raw reads] Abort: VOL- & VOL+\n", sd_bench ? "SD Card" : "eMMC", sd_bench ? "2GB" : "8GB"); lv_mbox_set_text(mbox, txt_buf);