The $r variable doesn't appear to be set anywhere, although it appears to be expecting the kernel major version.
When camera_i2c is run on my machine it crashes my Pi complete.
Updating $r to $kernel appears to fix it on my machine. I will submit a PR.
uname -r: 4.19.75-v7l+
cat /proc/cpuinfo:
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : c03111
Serial : 10000000df3bf811
Model : Raspberry Pi 4 Model B Rev 1.1
The $r variable doesn't appear to be set anywhere, although it appears to be expecting the kernel major version.
When camera_i2c is run on my machine it crashes my Pi complete.
Updating $r to $kernel appears to fix it on my machine. I will submit a PR.
uname -r
:4.19.75-v7l+
cat /proc/cpuinfo
: