You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your method of detecting the hardware is not resilient. I'm running Alpine Linux 3.9 using the Raspberry Pi kernel (4.19.34-0-rpi) and my /proc/cpuinfo looks like the following. Note the lack of any "Hardware" lines, which you check for.
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
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 cpuid
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 cpuid
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 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
It is maybe wise to fall back on checking /proc/device-tree/model - anyone using recent bootcode will be loading a device tree, and this would then contain useful text. For example, on my RPI 3 B+ it contains Raspberry Pi 3 Model B Plus Rev 1.3
The text was updated successfully, but these errors were encountered:
draeath
changed the title
cannot identify hardware when running Alpine Linux
[fix suggested] cannot identify hardware when running Alpine Linux
Apr 27, 2019
Your method of detecting the hardware is not resilient. I'm running Alpine Linux 3.9 using the Raspberry Pi kernel (4.19.34-0-rpi) and my
/proc/cpuinfo
looks like the following. Note the lack of any "Hardware" lines, which you check for.It is maybe wise to fall back on checking
/proc/device-tree/model
- anyone using recent bootcode will be loading a device tree, and this would then contain useful text. For example, on my RPI 3 B+ it containsRaspberry Pi 3 Model B Plus Rev 1.3
The text was updated successfully, but these errors were encountered: