Problem in getting picamera to work - mmal Out of memory

raspberrypi3
picamera

#1

I have the following error:
Python 3.6.6 (default, Jul 18 2018, 09:41:44)

[GCC 4.9.2] on linux

Type “help”, “copyright”, “credits” or “license” for more information.

mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/picamera/camera.py", line 456, in _init_camera
    self._camera = mo.MMALCamera()
  File "/usr/local/lib/python3.6/site-packages/picamera/mmalobj.py", line 2279, in __init__
    super(MMALCamera, self).__init__()
  File "/usr/local/lib/python3.6/site-packages/picamera/mmalobj.py", line 633, in __init__
    prefix="Failed to create MMAL component %s" % self.component_type)
  File "/usr/local/lib/python3.6/site-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/picamera/camera.py", line 431, in __init__
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/local/lib/python3.6/site-packages/picamera/camera.py", line 460, in _init_camera
    "Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

Things I have checked/tried:

I have followed the instructions on:
https://www.balena.io/docs/learn/develop/hardware/i2c-and-spi/#raspberry-pi-camera-module

RESIN_HOST_CONFIG_gpu_mem = 128 (Fleetwide)
RESIN_HOST_CONFIG_start_x = 1
RESIN_HOST_CONFIG_fixup_file = fixup_x.dat
RESIN_HOST_CONFIG_start_file = start_x.elf

I also ran:

modprobe bcm2835-v4l2
modprobe v4l2_common

root@9f27258:/usr/src/app# lsmod
Module                  Size  Used by
ipt_REJECT             16384  1 
nf_reject_ipv4         16384  1 ipt_REJECT
bcm2835_v4l2           53248  0 
v4l2_common            16384  1 bcm2835_v4l2
videobuf2_vmalloc      16384  1 bcm2835_v4l2
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 bcm2835_v4l2
videobuf2_core         45056  2 bcm2835_v4l2,videobuf2_v4l2
videodev              184320  4 v4l2_common,videobuf2_core,bcm2835_v4l2,videobuf2_v4l2
media                  32768  1 videodev
bnep                   20480  2 
ipt_MASQUERADE         16384  3 
nf_nat_masquerade_ipv4    16384  1 ipt_MASQUERADE
br_netfilter           24576  0 
hci_uart               36864  1 
btbcm                  16384  1 hci_uart
serdev                 20480  1 hci_uart
bluetooth             376832  26 hci_uart,bnep,btbcm
ecdh_generic           28672  1 bluetooth
nf_conntrack_netlink    40960  0 
nfnetlink              16384  3 nf_conntrack_netlink
i2c_dev                16384  0 
brcmfmac              311296  0 
brcmutil               16384  1 brcmfmac
cfg80211              589824  1 brcmfmac
rfkill                 32768  5 bluetooth,cfg80211
uio_pdrv_genirq        16384  0 
uio                    20480  1 uio_pdrv_genirq
fixed                  16384  0 
sch_fq_codel           20480  4 

My camera is a v1.3 camera
I have checked the actual camera connected and reseated it multiple times. I have also tested with another camera (v2.0) and the error is the same.
I have also used a multimeter to test the 3.3V and GND pins at the camera end and its good.

root@9f27258:/usr/src/app# vcgencmd get_mem gpu
gpu=128M

root@9f27258:/usr/src/app# uname -a
Linux 9f27258 4.14.39 #1 SMP Fri Jul 13 11:37:19 UTC 2018 armv7l GNU/Linux

root@9f27258:/usr/src/app# vcgencmd version
Apr 16 2018 18:21:52 
Copyright (c) 2012 Broadcom
version af8084725947aa2c7314172068f79dad9be1c8b4 (clean) (release)


root@9f27258:/usr/src/app# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.39 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Fri Jul 13 11:37:19 UTC 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x37800000
[    0.000000] On node 0 totalpages: 229376
[    0.000000] free_area_init_node: node 0, pgdat 8148a880, node_mem_map b7016000
[    0.000000]   Normal zone: 2016 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 229376 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from start_kernel+0xac/0x448 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu @b6fbf000 s38732 r8192 d22708 u69632
[    0.000000] pcpu-alloc: s38732 r8192 d22708 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 227360
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=null root=LABEL=resin-rootA rootfstype=ext4 rootwait vt.global_cursor_default=0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 879224K/917504K available (8192K kernel code, 598K rwdata, 2264K rodata, 8192K init, 721K bss, 30088K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xb8800000 - 0xff800000   (1136 MB)
    lowmem  : 0x80000000 - 0xb8000000   ( 896 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x80900000   (9184 kB)
      .init : 0x80c00000 - 0x81400000   (8192 kB)
      .data : 0x81400000 - 0x81495b94   ( 599 kB)
       .bss : 0x8149d7b0 - 0x81551ecc   ( 722 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 27776 entries in 82 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000021] Switching to timer-based delay loop, resolution 52ns
[    0.000270] Console: colour dummy device 80x30
[    0.000301] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000320] pid_max: default: 32768 minimum: 301
[    0.000637] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000656] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001498] CPU: Testing write buffer coherency: ok
[    0.001910] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002297] Setting up static identity map for 0x100000 - 0x10003c
[    0.002420] Hierarchical SRCU implementation.
[    0.003062] smp: Bringing up secondary CPUs ...
[    0.003762] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004514] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.005247] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.005353] smp: Brought up 1 node, 4 CPUs
[    0.005378] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.005387] CPU: All CPU(s) started in HYP mode.
[    0.005394] CPU: Virtualization extensions available.
[    0.006215] devtmpfs: initialized
[    0.016264] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.016484] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016506] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.017081] pinctrl core: initialized pinctrl subsystem
[    0.017835] NET: Registered protocol family 16
[    0.020330] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.024888] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.024900] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.025103] Serial: AMBA PL011 UART driver
[    0.026699] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.027154] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.057824] bcm2835-dma 3f007000.dma: DMA legacy API manager at b8813000, dmachans=0x1
[    0.059204] SCSI subsystem initialized
[    0.059432] usbcore: registered new interface driver usbfs
[    0.059488] usbcore: registered new interface driver hub
[    0.059574] usbcore: registered new device driver usb
[    0.060171] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-04-16 18:21
[    0.061389] clocksource: Switched to clocksource arch_sys_counter
[    0.142110] VFS: Disk quotas dquot_6.6.0
[    0.142200] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.142404] FS-Cache: Loaded
[    0.142607] CacheFiles: Loaded
[    0.151500] NET: Registered protocol family 2
[    0.152194] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.152309] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.152498] TCP: Hash tables configured (established 8192 bind 8192)
[    0.152634] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.152683] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.152920] NET: Registered protocol family 1
[    0.153378] RPC: Registered named UNIX socket transport module.
[    0.153389] RPC: Registered udp transport module.
[    0.153398] RPC: Registered tcp transport module.
[    0.153407] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.210972] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.214105] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.221754] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.222022] FS-Cache: Netfs 'nfs' registered for caching
[    0.222634] NFS: Registering the id_resolver key type
[    0.222670] Key type id_resolver registered
[    0.222679] Key type id_legacy registered
[    0.222699] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.223890] aufs 4.14-20180409
[    0.225079] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.225200] io scheduler noop registered
[    0.225212] io scheduler deadline registered
[    0.225478] io scheduler cfq registered (default)
[    0.225489] io scheduler mq-deadline registered
[    0.225498] io scheduler kyber registered
[    0.228156] BCM2708FB: allocated DMA memory f7910000
[    0.228188] BCM2708FB: allocated DMA channel 0 @ b8813000
[    0.274013] Console: switching to colour frame buffer device 228x61
[    0.301510] bcm2835-rng 3f104000.rng: hwrng registered
[    0.301645] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.302157] vc-sm: Videocore shared memory driver
[    0.302436] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.311958] brd: module loaded
[    0.320841] loop: module loaded
[    0.320863] Loading iSCSI transport class v2.0-870.
[    0.321670] libphy: Fixed MDIO Bus: probed
[    0.321712] tun: Universal TUN/TAP device driver, 1.6
[    0.321950] usbcore: registered new interface driver lan78xx
[    0.322011] usbcore: registered new interface driver smsc95xx
[    0.322030] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.550148] Core Release: 2.80a
[    0.550162] Setting default values for core params
[    0.550191] Finished setting default values for core params
[    0.750453] Using Buffer DMA mode
[    0.750466] Periodic Transfer Interrupt Enhancement - disabled
[    0.750474] Multiprocessor Interrupt Enhancement - disabled
[    0.750484] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.750501] Dedicated Tx FIFOs mode
[    0.750929] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xb7904000 dma = 0xf7904000 len=9024
[    0.750960] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    0.750984] dwc_otg: Microframe scheduler enabled
[    0.751031] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8064f158
[    0.751045] WARN::hcd_init_fiq:460: FIQ ASM at 0x8064f4b4 length 36
[    0.751063] WARN::hcd_init_fiq:486: MPHI regs_base at 0xb887e000
[    0.751120] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.751158] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.751197] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.751250] Init: Port Power? op_state=1
[    0.751258] Init: Power Port (0)
[    0.751494] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.751509] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.751521] usb usb1: Product: DWC OTG Controller
[    0.751533] usb usb1: Manufacturer: Linux 4.14.39 dwc_otg_hcd
[    0.751545] usb usb1: SerialNumber: 3f980000.usb
[    0.752125] hub 1-0:1.0: USB hub found
[    0.752171] hub 1-0:1.0: 1 port detected
[    0.752693] dwc_otg: FIQ enabled
[    0.752698] dwc_otg: NAK holdoff enabled
[    0.752702] dwc_otg: FIQ split-transaction FSM enabled
[    0.752712] Module dwc_common_port init
[    0.752946] usbcore: registered new interface driver usb-storage
[    0.753122] mousedev: PS/2 mouse device common for all mice
[    0.753205] IR NEC protocol handler initialized
[    0.753215] IR RC5(x/sz) protocol handler initialized
[    0.753223] IR RC6 protocol handler initialized
[    0.753232] IR JVC protocol handler initialized
[    0.753240] IR Sony protocol handler initialized
[    0.753250] IR SANYO protocol handler initialized
[    0.753258] IR Sharp protocol handler initialized
[    0.753267] IR MCE Keyboard/mouse protocol handler initialized
[    0.753277] IR XMP protocol handler initialized
[    0.753954] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.754220] bcm2835-cpufreq: min=600000 max=1200000
[    0.754606] sdhci: Secure Digital Host Controller Interface driver
[    0.754615] sdhci: Copyright(c) Pierre Ossman
[    0.754977] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.755307] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.755400] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.758164] ledtrig-cpu: registered to indicate activity on CPUs
[    0.758265] hidraw: raw HID events driver (C) Jiri Kosina
[    0.758351] usbcore: registered new interface driver usbhid
[    0.758356] usbhid: USB HID core driver
[    0.758797] vchiq: vchiq_init_state: slot_zero = b7980000, is_master = 0
[    0.759785] [vc_sm_connected_init]: start
[    0.767105] [vc_sm_connected_init]: end - returning 0
[    0.767515] nf_conntrack version 0.5.0 (14336 buckets, 57344 max)
[    0.767929] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.768255] Initializing XFRM netlink socket
[    0.768543] NET: Registered protocol family 10
[    0.769136] Segment Routing with IPv6
[    0.769178] NET: Registered protocol family 17
[    0.769207] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.769253] Key type dns_resolver registered
[    0.769437] Registering SWP/SWPB emulation handler
[    0.769783] registered taskstats version 1
[    0.773132] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.773191] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.774190] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.774198] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    0.832028] sdhost: log_buf @ b7907000 (f7907000)
[    0.869135] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.870641] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.872147] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.874870] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    0.911410] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.912466] of_cfs_init
[    0.912555] of_cfs_init: OK
[    0.912853] Warning: unable to open an initial console.
[    0.928272] Freeing unused kernel memory: 8192K
[    0.966198] random: fast init done
[    0.971542] Indeed it is in host mode hprt0 = 00021501
[    1.065839] mmc1: new high speed SDIO card at address 0001
[    1.102465] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.106648] mmc0: new high speed SDHC card at address e624
[    1.107131] mmcblk0: mmc0:e624 SC16G 14.8 GiB
[    1.111179]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    1.181492] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.181684] Indeed it is in host mode hprt0 = 00001101
[    1.214888] udevd[238]: starting version 237
[    1.422282] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.422309] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.423061] hub 1-1:1.0: USB hub found
[    1.423159] hub 1-1:1.0: 5 ports detected
[    1.741452] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.871830] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    1.871866] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.874802] smsc95xx v1.0.6
[    1.964975] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:ce:65:99
[    1.982255]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    3.070668] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.105952] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    3.422258] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.434546] aufs au_opts_verify:1623:init[1]: dirperm1 breaks the protection by the permission bits on the lower branch
[    3.798454] systemd[1]: System time before build time, advancing clock.
[    3.826317] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    3.826929] systemd[1]: Detected architecture arm.
[    3.836235] systemd[1]: No hostname configured.
[    3.836279] systemd[1]: Set hostname to <localhost>.
[    3.844970] systemd[1]: Hardware watchdog 'Broadcom BCM2835 Watchdog timer', version 0
[    3.845022] systemd[1]: Set hardware watchdog to 10s.
[    3.941813] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    3.941849] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    4.139618] systemd[1]: Unnecessary job for /dev/disk/by-label/resin-rootA was removed.
[    4.139652] systemd[1]: Unnecessary job for /dev/disk/by-label/resin-state was removed.
[    4.145096] random: systemd: uninitialized urandom read (16 bytes read)
[    4.145413] random: systemd: uninitialized urandom read (16 bytes read)
[    4.145675] random: systemd: uninitialized urandom read (16 bytes read)
[    5.251138] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    5.254822] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    5.254986] usbcore: registered new interface driver brcmfmac
[    5.507762] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    5.508404] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14 
[    6.601874] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    7.379837] uart-pl011 3f201000.serial: no DMA platform data
[    7.682939] random: crng init done
[    7.682963] random: 7 urandom warning(s) missed due to ratelimiting
[    9.045139] i2c /dev entries driver
[    9.222691] brcmfmac: power management disabled
[   10.711582] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.802676] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.860923] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   10.902930] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   10.902966] brcmfmac: power management disabled
[   11.413389] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[   11.429649] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   11.429669] brcmfmac: power management disabled
[   11.697200] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   12.033935] Bluetooth: Core ver 2.22
[   12.034053] NET: Registered protocol family 31
[   12.034060] Bluetooth: HCI device and connection manager initialized
[   12.034082] Bluetooth: HCI socket layer initialized
[   12.034097] Bluetooth: L2CAP socket layer initialized
[   12.034127] Bluetooth: SCO socket layer initialized
[   12.048125] Bluetooth: HCI UART driver ver 2.3
[   12.048137] Bluetooth: HCI UART protocol H4 registered
[   12.048142] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   12.048264] Bluetooth: HCI UART protocol Broadcom registered
[   12.138518] Netfilter messages via NETLINK v0.30.
[   12.143191] ctnetlink v0.93: registering with nfnetlink.
[   12.151302] IPv6: ADDRCONF(NETDEV_UP): balena0: link is not ready
[   12.311178] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   12.336066] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.336088] Bluetooth: BNEP filters: protocol multicast
[   12.336111] Bluetooth: BNEP socket layer initialized
[   13.593209] Bridge firewalling registered
[   14.954642] IPv6: ADDRCONF(NETDEV_UP): supervisor0: link is not ready
[   15.392845] IPv6: ADDRCONF(NETDEV_UP): br-c51d296615d9: link is not ready
[   19.500072] systemd-udevd[59]: starting version 215
[   19.745867] systemd-journald[51]: Received request to flush runtime journal from PID 1
[   20.540256] media: Linux media interface: v0.10
[   20.566006] Linux video capture interface: v2.00
[   20.602033] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[  356.582274] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  356.582719] brcmfmac: power management disabled

Output from top

top - 06:51:39 up 14 min,  0 users,  load average: 0.06, 0.05, 0.08
Tasks:   9 total,   1 running,   8 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.1 us,  0.8 sy,  0.0 ni, 97.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    895608 total,   490668 used,   404940 free,    16720 buffers
KiB Swap:        0 total,        0 used,        0 free.   130540 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
  222 root      20   0    5120   2216   1936 R   0.3  0.2   0:00.02 top         
    1 root      20   0    5132   3616   2720 S   0.0  0.4   0:00.84 systemd     
   35 root      20   0    3428    316    256 S   0.0  0.0   0:00.00 sleep       
   51 root      20   0    9532   2232   2000 S   0.0  0.2   0:00.21 systemd-jo+ 
   59 root      20   0   11396   2692   2268 S   0.0  0.3   0:00.20 systemd-ud+ 
  169 dirmngr   20   0    3448   1916   1756 S   0.0  0.2   0:00.70 dirmngr     
  181 root      20   0    5264   3132   2728 S   0.0  0.3   0:00.14 bash        
  190 root      20   0   56108  10156   5116 S   0.0  1.1   0:00.68 python      
  207 root      20   0    5264   3124   2724 S   0.0  0.3   0:00.17 bash        

I don’t know how to update the firmware but according to the commit logs shown at:

It seems that some changes have been made to the mmal subsystem. Any way to see if that is the issue?

The funny thing is that it was working up to 10pm last night and suddenly it stopped working.