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.
This commit is contained in:
CTCaer
2020-04-30 16:12:55 +03:00
parent 91c2c891fd
commit 4b62b1f69f
5 changed files with 2326 additions and 3 deletions

View File

@@ -18,6 +18,8 @@
#include "gui.h"
#include "fe_emummc_tools.h"
#include "gui_tools_partition_manager.h"
#include "../../../common/memory_map.h"
#include "../config/ini.h"
#include "../libs/fatfs/ff.h"
#include "../mem/heap.h"
@@ -144,6 +146,22 @@ static void _create_window_emummc()
nyx_window_toggle_buttons(win, false);
}
static lv_res_t _create_emummc_raw_format(lv_obj_t * btns, const char * txt)
{
int btn_idx = lv_btnm_get_pressed(btns);
// Delete parent mbox.
mbox_action(btns, txt);
// Create partition window.
if (!btn_idx)
create_window_partition_manager(btns);
mbr_ctx.part_idx = 0;
mbr_ctx.sector_start = 0;
return LV_RES_INV;
}
static lv_res_t _create_emummc_raw_action(lv_obj_t * btns, const char * txt)
{