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
16 lines
352 B
C
16 lines
352 B
C
#define PMC_BASE 0x7000e400
|
|
#define PMC_SCRATCH0 (PMC_BASE + 0x50)
|
|
#define PMC_CNTRL (PMC_BASE + 0x0)
|
|
#define BOOTROM_START 0xFFF00000
|
|
|
|
void _start() {
|
|
unsigned int rom_data = *(volatile unsigned int *)(BOOTROM_START);
|
|
|
|
*(volatile unsigned int *)(PMC_SCRATCH0) = rom_data;
|
|
|
|
*(volatile unsigned int *)(PMC_CNTRL) |= (1 << 4);
|
|
|
|
while (1)
|
|
;
|
|
}
|