Last active
October 10, 2022 03:10
-
-
Save EncryptedCurse/1661a9cfa0b1aef0e0deb554bb044940 to your computer and use it in GitHub Desktop.
Raspberry Pi MPEG-2, VC-1 license patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su <<EOF | |
cd /boot | |
cp start_x.elf start_x.elf_backup && \ | |
perl -pne 's/\x47\xE9362H\x1D\x18/\x47\xE9362H\x1D\x1F/g' < start_x.elf_backup > start_x.elf | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su <<EOF | |
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 | |
EOF |
You could replace the byte with a hex editor, EPiC-APOC, but I'm not even sure this is a valid solution. I still don't get mpeg2 or vc1 enabled. shrug
BTW, "sudo -s" is usually the way to get a root shell. (but is also frowned upon. just prepend sudo to your three lines of code. ;-)
is there a workaround without perl?
Mount SD on Linux , i used a virtual machine with an Ubuntu dist and used perl there.
Last version this works on is Apr-15-2020:
https://github.com/raspberrypi/firmware/tree/9e3c23ce779e8cf44c33d6a25bba249319207f68/boot
The latest files all show the following after the 47E933363248 string:
start.elf: 0918
start_x.elf: has two locations, 0090 and 1D18
Hopefully someone smarter than me will be able to make it work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a workaround without perl?