Hi all
I have noticed in 18.06.0 RC2 that there is a new "Architecture" info row in the LUCI Status page
I have added aa new sunxi target board (Orange Pi PC2) but my image display a "?" instead of something meaningful.
I guess that there is some new file that LUCI process, but I cannot understand which is
Can anyone help me?
Bye
The LuCI source code pretty clearly indicates that it is queried with ubus. But I have not traced how ubus finds the info in the main Openwrt source...
display:
https://github.com/openwrt/luci/blob/master/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm#L373
query:
https://github.com/openwrt/luci/blob/master/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm#L19
example:
root@router2:~# ubus call system board
{
"kernel": "4.9.111",
"hostname": "router2",
"system": "Atheros AR7161 rev 2",
"model": "NETGEAR WNDR3700v2",
"board_name": "wndr3700",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"revision": "r7581-7880a6f7fe",
"target": "ar71xx\/generic",
"description": "OpenWrt SNAPSHOT r7581-7880a6f7fe"
}
}
I think it is from /proc/cpuinfo
But for all winner SoC there is no such informato, that is why it endup in display ?