Compare commits

...
Message SHA1
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 <cuynu@proton.me>

Cuynu   commited 2026-03-02 17:41:09 +07:00
bef9f3bf65
feat: suggestion when running test1
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-02 16:38:30 +07:00
b6eca3b885
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 <cuynu@proton.me>

Cuynu   commited 2026-03-02 01:25:35 +07:00
a768b9a208
3 changed files with 9 additions and 2 deletions

View file

@ -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;

5
windeps.sh Executable file
View file

@ -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

View file

@ -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);