Skip to content

Commit

Permalink
dumping blobs for ios4
Browse files Browse the repository at this point in the history
  • Loading branch information
m1zole committed Jan 27, 2025
1 parent 41664e1 commit 51c9943
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

.PHONY: all clean distclean

GNUARM_PREFIX ?= /opt/gnuarm/bin/arm-none-eabi-
GNUARM_PREFIX ?= ~/gcc-arm-none-eabi/bin/arm-none-eabi-
#TARGET ?= iPad3,1/11D257/iBoot
#TARGET ?= iPhone3,1/11D257/iBoot
#TARGET ?= iPhone3,1/9A405/iBoot
Expand All @@ -35,6 +35,7 @@ CFLAGS += -Wno-long-long
CFLAGS += -Os
#CFLAGS += -mthumb -march=armv6
CFLAGS += -fcall-used-r9
#CFLAGS += -DLEGACY

LD = $(GNUARM_PREFIX)gcc
LDFLAGS = -L. -nostdlib
Expand Down
5 changes: 3 additions & 2 deletions blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ save_all_blobs(void)
struct firmware_image *e;

for (n = 0, e = ((struct firmware_image *)image_list)->next; n < ARRAY_SIZE(blobs) - 2 && e != image_list; e = e->next, n++) {
printf_("saving blob for %c%c%c%c\n",
/*printf_("saving blob for %c%c%c%c: %x\n",
(e->info.type >> 24) & 0xFF,
(e->info.type >> 16) & 0xFF,
(e->info.type >> 8) & 0xFF,
e->info.type & 0xFF);
e->info.type & 0xFF,
(int)e);*/
blobs[n] = save_blob(e);
}
blobs[n++] = save_llb();
Expand Down
5 changes: 5 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,14 @@ _main(int argc, CmdArg *argv)
/* --- blob functions --- */

if (argc == 2 && argv[1].string[0] == 'b') {
#ifdef LEGACY
printf_("[!] LEGACY BUILD\n");
#endif
return save_all_blobs();
}

/* --- debug functions --- */

if (argc == 2 && argv[1].string[0] == 'f') {
return finder();
}
Expand Down
2 changes: 2 additions & 0 deletions nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ struct firmware_image {
struct bdev_t *bdev;
unsigned offset_lo;
unsigned offset_hi;
#ifndef LEGACY
unsigned field_14;
#endif
struct firmware_image_info info;
} /*__attribute__((packed))*/;

Expand Down
2 changes: 2 additions & 0 deletions note.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
on n94 7.0.4, ibex would not work with static offsets even if those are correct.
when iBoot32Patcher seems not work for iBSS, use gala's iBSS patch.
tested on n90 4.2.1
Binary file added payload
Binary file not shown.
Binary file added payload4
Binary file not shown.

0 comments on commit 51c9943

Please sign in to comment.