ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

doesn't work with 8G memory Raspberry Pi 4B model #43

Closed hexsum closed 4 years ago

hexsum commented 4 years ago

run the command rpi info in a shell, get this error :

rpi info: error: RangeError: 0x00D03114: unknown revision
    at Function.parseRevision (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiInfo.js:157:13)
    at Function.parseCpuInfo (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiInfo.js:126:25)
    at RpiInfo.getCpuInfo (/usr/local/lib/node_modules/homebridge-rpi/lib/RpiInfo.js:109:29)
    at async Main.info (/usr/local/lib/node_modules/homebridge-rpi/cli/rpi.js:182:14)
    at async Main.main (/usr/local/lib/node_modules/homebridge-rpi/cli/rpi.js:129:7)

image

I add some debug code to dump out result variable

{
  manufacturer: 'Sony UK',
  memory: undefined,
  model: '4B',
  processor: 'BCM2711',
  revision: '1.4'
}

it seems like this plugins doesn't fit the newest 8G memory Raspberry Pi model Hope we can fix this bug as soon as possible

brunnelu commented 4 years ago

I experienced the same error. I'm lucky to not be the only one Adding 8GB as a memory option in RpiInfo.js fixes this issue

ebaauw commented 4 years ago

Should work in v1.1.10.