Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix suggested] cannot identify hardware when running Alpine Linux #58

Open
draeath opened this issue Apr 27, 2019 · 3 comments
Open

[fix suggested] cannot identify hardware when running Alpine Linux #58

draeath opened this issue Apr 27, 2019 · 3 comments

Comments

@draeath
Copy link

draeath commented 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.

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

@draeath draeath changed the title cannot identify hardware when running Alpine Linux [fix suggested] cannot identify hardware when running Alpine Linux Apr 27, 2019
@Cosik
Copy link
Collaborator

Cosik commented May 9, 2020

@draeath do you have something like vcgencmd on Alpine linux?

@draeath
Copy link
Author

draeath commented May 9, 2020

I don't recall there's a package for it... But the binaries from the firmware repository work. I keep them in /opt myself.

@draeath
Copy link
Author

draeath commented May 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants