sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
921 stars 126 forks source link

RPi3 serial number (do I need an MPEG licence key?) #32

Closed fordfrog closed 5 years ago

fordfrog commented 6 years ago

I used to use RPi2 and there it was needed to buy MPEG license key that was provided based on the serial number of the device. I thought the same applies for RPi3 but I cannot get the serial number from cpuinfo:

# cat /proc/cpuinfo 
processor   : 0
BogoMIPS    : 38.40
Features    : fp asimd evtstrm crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 1
BogoMIPS    : 38.40
Features    : fp asimd evtstrm crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 2
BogoMIPS    : 38.40
Features    : fp asimd evtstrm crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 3
BogoMIPS    : 38.40
Features    : fp asimd evtstrm crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

So, is MPEG license key needed for RPi3 and if so, where do I find the serial number?

sakaki- commented 6 years ago

Unfortunately use of the Pi3's hardware media decoders (via MMAL/OpenMAX IL) is currently unavailable in 64-bit mode (this applies afaik to all distros, not just Gentoo, and is due to a kernel pointer size mismatch, see my post here).

fordfrog commented 6 years ago

@sakaki- thank you for the information.

Avamander commented 5 years ago

@sakaki- any updates on that? Any other issue trackers I could ping?

sakaki- commented 5 years ago

Hi @Avamander,

I think that's still the case, unfortunately. You could bump this issue thread I guess, or better perhaps, post an issue in the RPi3 forums. 6by9 is an active RPF dev. You could also contact Eric Anholt (https://github.com/anholt) himself.

sakaki- commented 5 years ago

Some interesting progress: https://github.com/raspberrypi/firmware/issues/550#issuecomment-450623596

sakaki- commented 5 years ago

As of the 1.4.0 release of the image, the RPi3's video codecs are now available, via v4l2 m2m ^-^

If you have purchased an mpeg2 license key, that codec is also usable.

sakaki- commented 5 years ago

Incidentally, you can get the serial number in 64-bit mode by issuing:

demouser@pi64 ~ # cat /proc/device-tree/serial-number
sakaki- commented 5 years ago

Closing now, since the mpeg2 codec (as noted above) is now available, via v4l2 m2m.