Shofel payloader source & prebuild for jib with some old payloads i had made
these payloads may not work , i have no clue honestly i attached them , also there are 2 helper py scripts that might work with some of these payloads
This commit is contained in:
22
depricated payloads/source/jibo_mulev2.c
Normal file
22
depricated payloads/source/jibo_mulev2.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#define SRC_ADDR 0x40030000 // Higher IRAM, usually less guarded
|
||||
#define DEST_ADDR 0x40008000
|
||||
#define COPY_SIZE 0x1000 // Just 4KB for now
|
||||
#define PMC_SCRATCH0 0x7000e450
|
||||
#define PMC_CNTRL 0x7000e400
|
||||
|
||||
void _start() {
|
||||
unsigned int *src = (unsigned int *)SRC_ADDR;
|
||||
unsigned int *dest = (unsigned int *)DEST_ADDR;
|
||||
|
||||
unsigned int test_val = src[0];
|
||||
|
||||
for (int i = 0; i < (COPY_SIZE / 4); i++) {
|
||||
dest[i] = src[i];
|
||||
}
|
||||
|
||||
*(volatile unsigned int *)PMC_SCRATCH0 = 0x11223344;
|
||||
|
||||
*(volatile unsigned int *)PMC_CNTRL |= (1 << 4);
|
||||
while (1)
|
||||
;
|
||||
}
|
||||
Reference in New Issue
Block a user