Skip to content

Instantly share code, notes, and snippets.

@ThomasKaiser
Last active April 2, 2024 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasKaiser/05a0ec1685ee19b3713640b06431d2b7 to your computer and use it in GitHub Desktop.
Save ThomasKaiser/05a0ec1685ee19b3713640b06431d2b7 to your computer and use it in GitHub Desktop.
Allwinner SoCs feature something called a SID (Security ID) which should be available with
mainline kernel as /sys/bus/nvmem/devices/sunxi-sid0/nvmem. From the first bytes the SoC
model might be detectable once the SIDs are known. Unfortunately information in linux-sunxi
wiki is/was a bit sparse and outdated: https://linux-sunxi.org/SID_Register_Guide
The following list is based on linux-sunxi wiki contents and complemented with own checks
(crawling through sbc-bench submissions and conducting tests on own devices).
SoCs are sorted by chip ID, starting with 'old scheme':
A10 (1623) 162367* --> 1623*
A10s (1625) 162541* \__ following the old ID scheme it's
A13/R8 (1625) 162541*, 162542* / simply 1625* for all A10s/A13/R8
A31/A31s (1633) 16524251, 16554144 --> with these SoCs the SID is stored in the PMIC
(AXP221 or AXP221s, most probably their chip
IDs are 1652 and 1655, see also R40 below)
A20 (1651) 165165*, 165166* --> 1651*
R40/V40 (1701) 16554153 --> that's 1st part of Serial number on all BPi-M2
Ultra/Berry which both rely on AXP221s
new SID scheme (SID not starting with chip ID any longer)
A33/R16 (1667) 0461872a
A83T (1673) 32c0040?: 32c00401 (87%), 32c00403 (13%)
H2+ (1680) 02c00?42: 02c00042 (79%), 02c00142 (11%), 02c00242 (0.4%)
H3 (1680) 02c00?81: 02c00081 (91%), 02c00181 (9%)
V3s (1681) 12c00000
S3 (1681) 12c00001
A64 (1689) 92c00?ba: 92c000ba, 92c001ba <- https://archive.ph/mpiHO#selection-317.39-317.74 / https://archive.ph/CM9Oy#selection-1279.39-1279.74
H64 (1689) 92c000bb
R40/V40 (1701) 12c00017
H5 (1718) 82800001
H6 (1728) 82c0000?: 82c00001 (40%), 82c00007 (60%)
H313 (1823) 32c05c00 (Tanix TX1)
H616 (1823) 32c05000 (OPi Zero 2 / X96 Mate)
H618 (1823) 33802000 (OPi Zero 2W / OrangePi Zero3 / Transpeed 8K618-T)
H700 (1823) 33806c00 (Anbernic RG35XX)
T527 (1890) 03005f30 (Sipeed LM4B with M00X0DCH variant)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment