paulslocum
Posts: 35
Joined: Sun Apr 09, 2017 10:54 pm

Codec unlocking email doesn't contain original serial numbers

Thu Nov 09, 2017 1:45 pm

Since it is not possible to order boards with codecs unlocked, I was looking into a way to automate the codec purchase and unlocking process using scripts. But I noticed that the emails with the unlock codes do not contain the original serial numbers corresponding to the unlock codes, so there's not any way I can see to match the unlock codes with the correct Raspberry Pi. Can the emails be modified to include the original serial numbers so that everything can be matched up?

This is the email I get when I purchase a codec:

Code: Select all

Thank you for purchasing codec license keys from the Raspberry Pi Store.To enable codecs on your device(s), add the following lines to the config.txt file in the FAT partition of your SD card:

decode_MPG2=0xxxxxxxxxx,0xxxxxxxxx

If you want to verify that the codecs are now enabled, the following commands will report their status:

vcgencmd codec_enabled MPG2
vcgencmd codec_enabled WVC1

Regards
The Raspberry Pi Foundation

User avatar
DougieLawson
Posts: 31226
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Codec unlocking email doesn't contain original serial numbers

Thu Nov 09, 2017 1:48 pm

You can add up to eight keys on one line per codec in /boot/config.txt.

As soon as a codec key matches your RPi serial then a "sticky" one-time programmable (OTP) bit is burned and the licence key is no longer needed. [With latest 4.9.59 kernel and matching bootcode.]
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

paulslocum
Posts: 35
Joined: Sun Apr 09, 2017 10:54 pm

Re: Codec unlocking email doesn't contain original serial numbers

Thu Nov 09, 2017 2:20 pm

I'm ultimately trying to unlock hundreds of Raspberry Pis, and plugging in every serial number to every one and repeatedly rebooting until they're unlocked doesn't seem like a great solution, although I suppose it is a possibility. If there were ever a problem, it would probably be difficult to track down without having any record of what code goes with what serial.

User avatar
DougieLawson
Posts: 31226
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Codec unlocking email doesn't contain original serial numbers

Thu Nov 09, 2017 2:48 pm

You're going to have to email store@raspberrypi.org, explain your problem and ask them to send the keys in blocks of eight with the hardware serials they apply to.

There are serial number filters available in /boot/config.txt

For example my RPi3B needs lcd_rotate for the official display, my zero has a BMP180.

Code: Select all

[0x8e8dd26c]
total_mem=1024
lcd_rotate=2

[0xebd5f1e8]
gpu_mem=64
dtparam=act_led_activelow=on
dtoverlay=i2c-sensor,bmp180
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

paulslocum
Posts: 35
Joined: Sun Apr 09, 2017 10:54 pm

Re: Codec unlocking email doesn't contain original serial numbers

Tue Nov 21, 2017 2:58 pm

Thanks, I emailed and they have a bulk codec ordering process (minimum 20). You email them a list of all the serials, pay and invoice, and they send you an excel spreadsheet back with the serials and unlock codes.

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 3 guests