What should luci display for the architecture?
Model: Raspberry Pi 4 Model B Rev 1.1
Architecture: ?
Firmware Version: OpenWrt SNAPSHOT r13626-751e6ab8e6 / LuCI Master git-20.175.45303-bb95e67
Kernel Version: 5.4.48
What should luci display for the architecture?
Model: Raspberry Pi 4 Model B Rev 1.1
Architecture: ?
Firmware Version: OpenWrt SNAPSHOT r13626-751e6ab8e6 / LuCI Master git-20.175.45303-bb95e67
Kernel Version: 5.4.48
cat /proc/cpuinfo | grep 'model name'
#~=
cat /proc/cpuinfo | grep Hardware
cat /proc/cpuinfo > /tmp/cpuinfo
echo -e 'model name\t: berry-baby' >> /tmp/cpuinfo
mount --bind /tmp/cpuinfo /proc/cpuinfo
# cat /proc/cpuinfo | grep 'model name'
# cat /proc/cpuinfo | grep Hardware
Hardware : BCM2835
# cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : a03111
Serial : 10000000aef27ed4
Model : Raspberry Pi 4 Model B Rev 1.1
What does luci display on other architectures?
"system": "Intel(R) Pentium(R) CPU G3258 @ 3.20GHz"
The information is drawn from ubus call system board
- the system
field.
The responsible code is found here:
https://lxr.openwrt.org/source/procd/system.c#L73
Seems another case for Hardware:
needs to be added
root@OpenWrt:/# uname -m
aarch64
# ubus call system board
{
"kernel": "5.4.48",
"hostname": "OpenWrt",
"model": "Raspberry Pi 4 Model B Rev 1.1",
"board_name": "raspberrypi,4-model-b",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"revision": "r13626-751e6ab8e6",
"target": "bcm27xx/bcm2711",
"description": "OpenWrt SNAPSHOT r13626-751e6ab8e6"
}
}
What information should it display " "target": "bcm27xx/bcm2711",
?
"system": "BCM2835"
74 if (!strcasecmp(key, "system type") ||
75 !strcasecmp(key, "processor") ||
76 !strcasecmp(key, "cpu") ||
77 !strcasecmp(key, "model name")) ||
+ !strcasecmp(key, "hardware"))
78 {
Was browsing the forums for rpi 4 and came up on this thread. According to this page:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
Even though it's BCM2711 the kernel reports BCM2835 (Kernel 4.9 onwards). Just thought I'd share that info.