pramkumar72
Posts: 2
Joined: Tue Jul 02, 2013 3:18 am

problem in enabling mpeg2 license (SOLVED)

Tue Jul 02, 2013 6:25 pm

Hi, Iam not able to enable my mpeg2 license which I bought from the raspberry store. Booting from SD card. Tried rebooting several times but of no use. Running openelec from noobs install.

These are the screen output from a ssh session. Please suggest some options.

openelec:~ # more /media/RECOVERY/config.txt
decode_MPG2=0xf6b0ac5e

openelec:~ # vcgencmd codec_enabled MPG2
MPG2=disabled

openelec:~ # cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 000e
Serial : 000000007df5813e

jdmeissner
Posts: 1
Joined: Fri Aug 02, 2013 4:41 pm

Re: problem in enabling mpeg2 license

Fri Aug 02, 2013 4:54 pm

Maybe a little late, you probably found an answer already.

config.txt needs to live in the /flash directory which is read-only and needs to be remounted so one can write to it.

SSH to your Raspberry PI and use the following command:

mount /flash -o remount,rw

You can edit the config.txt file you should find in /flash. I use vi.

I found I had to put the "decode_MPG2=0xyyyyyy" between two empty lines.

Hope it helps.

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: problem in enabling mpeg2 license

Fri Aug 02, 2013 5:14 pm

You can also an edit command like

Code: Select all

sudo nano /boot/config.txt
to edit with root privileges and then you do not need to remount the partition.

User avatar
rpdom
Posts: 17418
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: problem in enabling mpeg2 license

Fri Aug 02, 2013 7:38 pm

itimpi wrote:You can also an edit command like

Code: Select all

sudo nano /boot/config.txt
to edit with root privileges and then you do not need to remount the partition.
No, that won't work. If the partition is mounted read only no one can write to it, even root.

It seems Openelec does things differently to distros like Raspbian, so the files don't even sit in /boot.

Remounting the partition as writeable will work.

pramkumar72
Posts: 2
Joined: Tue Jul 02, 2013 3:18 am

Re: problem in enabling mpeg2 license

Sat Aug 03, 2013 5:21 am

Thanks, jdmeissner's suggestion worked.

hparad
Posts: 2
Joined: Tue Sep 02, 2014 5:36 pm

Re: problem in enabling mpeg2 license

Tue Sep 02, 2014 5:48 pm

The original post Aug 02 2013 described my problem exactly. installing openelec from noobs distribution, can't find config.txt file.

I needed an MPEG2 license for OpenElec, but had done the original install from a noobs distribution because I wanted to play with the other Linux releases.

I can't get to config.txt to edit it, which I would prefer to do from Windows & notepad++ as I am not a "vi" person, but I can't access from windows SD drive OR using SSH. In SSH I can access and login successfully, but the commands suggested simply don't work. Probably because it's a year old, and things have changed.

Can someone please tell me a simply way to enter my MPEG2 decode key...

hparad
Posts: 2
Joined: Tue Sep 02, 2014 5:36 pm

Problem in enabling mpeg2 license

Wed Sep 03, 2014 12:07 am

I have been trying to sole this problem for hours. May have found a solution. May have been a typo in original post, plus combined with info from other sources.

Here is what I did.
1. use SSH on windows to connect and logon
2. mount -o remount,rw /flash
3. nano /flash/config.txt
4. figure out from the limited help how to use nano to un-comment and modify the "decode_MPG2" entry
5. Reboot RaspberryPi

Return to “General discussion”