Skip to content

Commit

Permalink
Add support for 3.41 Kiosk consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Webber authored and kakaroto committed Oct 22, 2010
1 parent 36bf259 commit d18a5d6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -7,7 +7,7 @@ PPU_OBJCOPY = ppu-objcopy
PPU_CFLAGS =

# This isn't enough, you must also add rules for the filename_fw with the -D define
SUPPORTED_FIRMWARES = 3.41 3.15 3.10 3.01
SUPPORTED_FIRMWARES = 3.41 3.41_kiosk 3.15 3.10 3.01

PAYLOADS = shellcode_egghunt.bin \
shellcode_panic.bin \
Expand Down Expand Up @@ -68,6 +68,9 @@ $(ALL_PAYLOADS): *.h.S config.h
%_3_41.o : %.S
$(PPU_CC) $(PPU_CFLAGS) -DFIRMWARE_3_41 -c $< -o $@

%_3_41_kiosk.o : %.S
$(PPU_CC) $(PPU_CFLAGS) -DFIRMWARE_3_41 -DKIOSK -c $< -o $@

%.o : %.S
$(PPU_CC) $(PPU_CFLAGS) -c $< -o $@
%.bin : %.o
Expand Down
21 changes: 20 additions & 1 deletion firmware_symbols.h.S
Expand Up @@ -57,6 +57,24 @@

#define RESIDENT_PAYLOAD_MAXSIZE (1296)

#ifdef KIOSK
#define HASH_TABLE_1 0xA0577BB4002C8B20
#define HASH_TABLE_2 0x6B7028FE00020041
#define HASH_TABLE_3 0x8c0a948c000d93D3
#define HASH_TABLE_4 0xA2BC0C1E0004C6E2

#define elf1_func1 0x5F223C
#define elf1_func1_offset 0x00
#define elf1_func2 0x304F54
#define elf1_func2_offset 0x14
#define elf2_func1 0x2ECD4
#define elf2_func1_offset 0x374

#define elf3_data 0x0022A758
#define elf4_data 0x000c86c8

#else /* KIOSK */

#define HASH_TABLE_1 0xa0556f3d002cb8fd
#define HASH_TABLE_2 0x6b70280200020017
#define HASH_TABLE_3 0x8c0a948c000d99b1
Expand All @@ -71,7 +89,8 @@

#define elf3_data 0x0022b888
#define elf4_data 0x000d68b8

#endif /* KIOSK */

#elif defined(FIRMWARE_3_15)

/* Common Symbols */
Expand Down

0 comments on commit d18a5d6

Please sign in to comment.