Skip to content

WebUI incorrectly reports critical camera status on kernels < 3.14 due to missing MemAvailable #116

Description

@usa-

On kernels older than 3.14, /proc/meminfo does not contain the MemAvailable so BusyBox free shows 0 in the available column. As a result, the WebUI on Ingenic T31x reports a critical camera status on the main page.

I suggest a workaround: on kernels older than 3.14, use the free column instead of the available column from the free command output (or MemFree instead of MemAvailable from /proc/meminfo) on the main page.

Image
root@openipc-t31:~# cat /proc/meminfo | grep "MemAvailable"
root@openipc-t31:~# free
              total        used        free      shared  buff/cache   available
Mem:          59152       18568       20496           0       20088           0
-/+ buffers/cache:        18568       40584
Swap:             0           0           0

Compare to SigmaStar SSC378DE:

root@openipc-ssc378de:~# cat /proc/meminfo | grep "MemAvailable"
MemAvailable:      32552 kB
root@openipc-ssc378de:~# free
              total        used        free      shared  buff/cache   available
Mem:          53848       14300       25856           0       13692       32620
Swap:             0           0           0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions