Reverse-engineering efforts to generate license keys for Raspberry Pi hardware video decoding
Go to file
nucular 1738fbed12 Reformat quote by q3k 2018-04-18 23:36:25 +02:00
assets Add information about the patch 2018-04-18 23:34:28 +02:00
LICENSE Initial commit 2018-04-18 23:29:27 +02:00
README.md Reformat quote by q3k 2018-04-18 23:36:25 +02:00

README.md

raspi-keygen

This is an effort to reverse-engineer the Raspberry Pi license key check for MPEG-2 and VP1 hardware video encoding.

Patch

A bootloader patch that disables licensing checks was posted to reddit by /u/fuck_the_mpeg_la on 03-03-2017:

cd /boot
cp start.elf start.elf_backup && \
 perl -pne 's/\x47\xE9362H\x3C\x18/\x47\xE9362H\x3C\x1F/g' < start.elf_backup > start.elf

Some initial analysis was done by q3k on Hacker News:

Yes, it seems to patch a licensing function at 0xEC95FD4 [1] to always return 1, by patching the jump at 0xEC95FE2 (that should be only taken for the always-allowed H263 codec) to always be taken, thus always allowing all codecs.

Mirrored from https://q3k.org/u/8e3173aef341df726e4f38f30e58417239423250f3e44f5b8b79acdc451d1553.png