Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something went wrong, exit now.. #5

Closed
workingmanrob opened this issue Jan 12, 2023 · 5 comments
Closed

Something went wrong, exit now.. #5

workingmanrob opened this issue Jan 12, 2023 · 5 comments

Comments

@workingmanrob
Copy link

     ____________________________________________________ 
    |><><><><><><><><><><><><><><><><><><><><><><><><><><|
    |  raspi_mpeg_license_patch v0.4b - (c)2022 suuhm    |
    |____________________________________________________|
                                                          

[*] First check mpeg2/vc activated?
MPG2=disabled
WVC1=disabled

[+] Getting Hexstring... May take some time...

[!] Not patched (0x) continue...

[*] set up patch now () ...
bash: line 172: [: -eq: unary operator expected
bash: line 183: [: -eq: unary operator expected
[!] Something went wrong, exit now..

Another new string maybe? I'm not sure how I would find that..

This is on a pi0 but I had the same error on a pi2 as well.

@workingmanrob
Copy link
Author

Looking at the two line numbers mentioned it must be the HS_MODE check that is failing.

if [ $HS_MODE -eq 3 ]
elif [ $HS_MODE -eq 4 ]

Added a little echo check (echo "HS_MODE is $HS_MODE") just before those lines and got:

[*] set up patch now () ...
HS_MODE is

HTH!

@suuhm
Copy link
Owner

suuhm commented Jan 16, 2023

Hi,
first: which command did you run? and which OS did you use for running my script?

Can you please offer the output from:

xxd $START_ELF | grep -Ei "47 *E9 *3(3|4) *36 *32 *48 *(3C|1D) *(18|1F)"

Replace here $START_ELF with your start.elf

@workingmanrob
Copy link
Author

workingmanrob commented Jan 25, 2023

I wrote a big long reply that for some reason is not here.

Short version - bootloader has been updated. String is not found on any of my updated systems. I have OSMC and raspbian but OSMC worked until the update from this month. I was working on raspbian when it threw the error.

wget https://raw.githubusercontent.com/suuhm/raspi_mpeg_license_patch.sh/main/raspi_mpeg_license_patch.sh -qO- | sudo bash -s -- --patch-now --os=raspbian

@workingmanrob
Copy link
Author

Thanks to cyberkeiler for the string I did a similar find and replace using ghex and now have a pi0 running raspbian and a pi3 running osmc both happily reporting..

$ vcgencmd codec_enabled MPG2
MPG2=enabled

Thanks!

@suuhm
Copy link
Owner

suuhm commented Mar 1, 2023

@suuhm suuhm closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants