From a768b9a2088feaf34d21139e12522e8230e9ed80 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 2 Mar 2026 01:25:35 +0700 Subject: [PATCH 1/3] feat: windeps.sh: handle necessary DLLs since i dont know how to handle them in Linux, so I write this script to download them Signed-off-by: Cuynu --- windeps.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 windeps.sh diff --git a/windeps.sh b/windeps.sh new file mode 100755 index 0000000..3c208ee --- /dev/null +++ b/windeps.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +curl -L -o deps.7z https://github.com/niXman/mingw-builds-binaries/releases/download/15.2.0-rt_v13-rev1/x86_64-15.2.0-release-win32-seh-ucrt-rt_v13-rev1.7z +7z e deps.7z libgcc_s_seh-1.dll libstdc++-6.dll -r +rm -rf deps.7z From b6eca3b885b1e1469cc6c212b4741de88a0181ff Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 2 Mar 2026 16:38:30 +0700 Subject: [PATCH 2/3] feat: suggestion when running `test1` Signed-off-by: Cuynu --- xperable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xperable.c b/xperable.c index 7738cc7..94cfca1 100644 --- a/xperable.c +++ b/xperable.c @@ -196,7 +196,9 @@ static int test1(struct fbusb *dev, int size, int offset, const char *cmd) strcpy(txbuff, cmd); else snprintf(txbuff, 64, "download:%08x", size); - + PNFO("[Device already unlocked] message means the bootloader status is now changed\n"); + PNFO("If you use [oem unlock Y] flag, the bootloader will be unlocked\n"); + PNFO("If you use [oem unlock X] flag, the bootloader will be relocked\n"); PNFO("Starting test1 size = 0x%08x, offset = 0x%08x, cmd = '%s'\n", size, offset, txbuff); From bef9f3bf654097e1f549644d2e2b2d4700032165 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 2 Mar 2026 17:41:09 +0700 Subject: [PATCH 3/3] fix: target-p118.c: different size for p118 patching tested and works with locked bootloader state in unlocked bootloader, the ABL memory region is changed, in that case, `0xb40f90` should work Signed-off-by: Cuynu --- target-p118.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-p118.c b/target-p118.c index 2ac06e9..de33cff 100644 --- a/target-p118.c +++ b/target-p118.c @@ -6,7 +6,7 @@ */ static const int p118_offset = 0x2a7000; //0x3f7030; //0x400000; -static const int p118_size = 0x400f90; //0x3fc030; //0x408000; +static const int p118_size = 0x40af90; //0x3fc030; //0x408000; static const int64_t p118_test3_hitadj = -0x97ffecddLL + 0x322D8LL - 4LL; static const int p118_stage1_cont = 0x32278;