We have an oak-d-cm4-poe device that we have been using for several months with no issue. Last week we stopped being able to record on it. We tested it with the depthai_demo.py code to make sure it wasn't an issue with our custom codebase, and the demo code wasn't working either. We get the following error message:

pi@oak3:~/depthai $ python depthai_demo.py
Using depthai module from:  /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
Depthai version installed:  2.17.3.0
Setting up demo...
Available devices:
[0] 18443010B1665B1200 [X_LINK_UNBOOTED]
  File "/home/pi/depthai/depthai_demo.py", line 655, in run
    self.instance.run_all(self.conf)
  File "/home/pi/depthai/depthai_demo.py", line 131, in run_all
    self.setup(conf)
  File "/home/pi/depthai/depthai_demo.py", line 208, in setup
    self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

Not sure what's causing this. I confirmed x forwarding is working ok on the computer I am using to ssh into the device as I did the exact same procedure sshing into another of our oak-d-cm4-poe devices and everything worked correctly without issue.

If anyone has run into something similar or has an idea of what could be causing the issue please let me know 🙂

    Hi jack-t
    Please use the latest depthai version you can.

    Thanks,
    Jaka

    I tried upgrading the depthai version using pip, however when I run depthai_demo.py it then gives me an error and instructs me to install the correct requirements using install_requirements.py. When I do this it just reinstalls the 2.17.3.0 version.

    But also I doubt that this is the issue as we were previously using this version for months without issue and are still using this version without issue on several other devices.

      Hi jack-t,
      You would have to update to the latest depthai repository commit (https://github.com/luxonis/depthai).
      Alternatively, you can run the depthai_demo.py with --skipVersionCheck flag, but since you are on a much older version, it might not work properly.

      Sometimes, running experiments with different versions/dependencies will bug the host, which would cause the issues you are experiencing. You could have unknowingly changed something that causes the said error.

      Let me know if it still doesn't work.

      Thanks,
      Jaka

      I updated the depthai package as you suggested (with a git pull) and it looked to update correctly now. When I ran the depthai_demo.py I got a very similar error message as before, new error message shown below.

      pi@oak3:~/depthai $ python depthai_demo.py
      Using depthai module from:  /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
      Depthai version installed:  2.21.2.0
      qt.qpa.xcb: could not connect to display localhost:10.0
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
      
      Aborted
      Error while running demo script... Command '"/usr/bin/python" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 134.
      Waiting 5s for the device to be discoverable again...
      Setting up demo...
      Available devices:
      [0] 18443010B1665B1200 [X_LINK_UNBOOTED]
      Traceback (most recent call last):
        File "/home/pi/depthai/depthai_demo.py", line 1053, in <module>
          runOpenCv()
        File "/home/pi/depthai/depthai_demo.py", line 1043, in runOpenCv
          demo.run_all(confManager)
        File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
          self.setup(conf)
        File "/home/pi/depthai/depthai_demo.py", line 209, in setup
          self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
      RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
      Error in atexit._run_exitfuncs:
      Traceback (most recent call last):
        File "/home/pi/depthai/depthai_demo.py", line 336, in stop
          self._pv.closeQueues()
      AttributeError: 'Demo' object has no attribute '_pv'
      Sentry is attempting to send 2 pending error messages
      Waiting up to 2 seconds
      Press Ctrl-C to quit
      • erik replied to this.

        oak-d-cm4-poe, although we manually swapped the RGB CCM for a wide angle CCM

        • erik replied to this.

          first command:

          pi@oak3:~/jack $ lsusb | grep 03e7
          Bus 001 Device 010: ID 03e7:2485 Intel Movidius MyriadX

          Second command - it produces the very long output shown below, then hangs and I have to exit it with ctrl-c:

          pi@oak3:~/jack $ dmesg -w
          [    0.000000] Booting Linux on physical CPU 0x0
          [    0.000000] Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:57 BST 2021
          [    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
          [    0.000000] CPU: div instructions available: patching division code
          [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
          [    0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 4 Rev 1.1
          [    0.000000] random: fast init done
          [    0.000000] Memory policy: Data cache writealloc
          [    0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
          [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
          [    0.000000] Zone ranges:
          [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
          [    0.000000]   Normal   empty
          [    0.000000]   HighMem  [mem 0x0000000030000000-0x00000000fbffffff]
          [    0.000000] Movable zone start for each node
          [    0.000000] Early memory node ranges
          [    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
          [    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
          [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
          [    0.000000] On node 0 totalpages: 1012736
          [    0.000000]   DMA zone: 1728 pages used for memmap
          [    0.000000]   DMA zone: 0 pages reserved
          [    0.000000]   DMA zone: 196608 pages, LIFO batch:63
          [    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
          [    0.000000] percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920
          [    0.000000] pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096
          [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
          [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1011008
          [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=720 bcm2708_fb.fbswap=1 smsc95xx.macaddr=E4:5F:01:C7:7E:35 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=004cb080-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
          [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
          [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
          [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
          [    0.000000] software IO TLB: mapped [mem 0x0000000024890000-0x0000000028890000] (64MB)
          [    0.000000] Memory: 3863792K/4050944K available (10240K kernel code, 1364K rwdata, 3192K rodata, 2048K init, 891K bss, 121616K reserved, 65536K cma-reserved, 3264512K highmem)
          [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
          [    0.000000] ftrace: allocating 34315 entries in 68 pages
          [    0.000000] ftrace: allocated 68 pages with 2 groups
          [    0.000000] rcu: Hierarchical RCU implementation.
          [    0.000000] 	Rude variant of Tasks RCU enabled.
          [    0.000000] 	Tracing variant of Tasks RCU enabled.
          [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
          [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
          [    0.000000] GIC: Using split EOI/Deactivate mode
          [    0.000000] random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=1
          [    0.000007] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
          [    0.000026] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
          [    0.000087] bcm2835: system timer (irq = 25)
          [    0.000739] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
          [    0.000757] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
          [    0.000776] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
          [    0.000790] Switching to timer-based delay loop, resolution 18ns
          [    0.001047] Console: colour dummy device 80x30
          [    0.001116] printk: console [tty1] enabled
          [    0.001170] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
          [    0.001202] pid_max: default: 32768 minimum: 301
          [    0.001366] LSM: Security Framework initializing
          [    0.001553] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
          [    0.001580] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
          [    0.003054] cgroup: Disabling memory control group subsystem
          [    0.003288] CPU: Testing write buffer coherency: ok
          [    0.003748] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
          [    0.004967] Setting up static identity map for 0x200000 - 0x20003c
          [    0.005166] rcu: Hierarchical SRCU implementation.
          [    0.006098] smp: Bringing up secondary CPUs ...
          [    0.007318] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
          [    0.008695] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
          [    0.010001] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
          [    0.010160] smp: Brought up 1 node, 4 CPUs
          [    0.010182] SMP: Total of 4 processors activated (432.00 BogoMIPS).
          [    0.010197] CPU: All CPU(s) started in HYP mode.
          [    0.010211] CPU: Virtualization extensions available.
          [    0.011155] devtmpfs: initialized
          [    0.025628] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
          [    0.025862] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
          [    0.025891] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
          [    0.027770] pinctrl core: initialized pinctrl subsystem
          [    0.028818] NET: Registered protocol family 16
          [    0.033009] DMA: preallocated 1024 KiB pool for atomic coherent allocations
          [    0.033772] audit: initializing netlink subsys (disabled)
          [    0.034039] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
          [    0.034621] thermal_sys: Registered thermal governor 'step_wise'
          [    0.035399] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
          [    0.035417] hw-breakpoint: maximum watchpoint size is 8 bytes.
          [    0.035823] Serial: AMBA PL011 UART driver
          [    0.067470] bcm2835-mbox fe00b880.mailbox: mailbox enabled
          [    0.080825] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-10-29T10:47:33, variant start
          [    0.090839] raspberrypi-firmware soc:firmware: Firmware hash is b8a114e5a9877e91ca8f26d1a5ce904b2ad3cf13
          [    0.132130] Kprobes globally optimized
          [    0.137179] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
          [    0.141438] vgaarb: loaded
          [    0.141883] SCSI subsystem initialized
          [    0.142110] usbcore: registered new interface driver usbfs
          [    0.142169] usbcore: registered new interface driver hub
          [    0.142242] usbcore: registered new device driver usb
          [    0.142582] usb_phy_generic phy: supply vcc not found, using dummy regulator
          [    0.144588] clocksource: Switched to clocksource arch_sys_counter
          [    1.103593] VFS: Disk quotas dquot_6.6.0
          [    1.103689] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
          [    1.103851] FS-Cache: Loaded
          [    1.104080] CacheFiles: Loaded
          [    1.115052] NET: Registered protocol family 2
          [    1.115305] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
          [    1.116754] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
          [    1.116796] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
          [    1.116861] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
          [    1.116932] TCP: Hash tables configured (established 8192 bind 8192)
          [    1.117101] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
          [    1.117139] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
          [    1.117403] NET: Registered protocol family 1
          [    1.118146] RPC: Registered named UNIX socket transport module.
          [    1.118162] RPC: Registered udp transport module.
          [    1.118177] RPC: Registered tcp transport module.
          [    1.118192] RPC: Registered tcp NFSv4.1 backchannel transport module.
          [    1.118216] PCI: CLS 0 bytes, default 64
          [    1.121203] Initialise system trusted keyrings
          [    1.121446] workingset: timestamp_bits=14 max_order=20 bucket_order=6
          [    1.129850] zbud: loaded
          [    1.132087] FS-Cache: Netfs 'nfs' registered for caching
          [    1.132866] NFS: Registering the id_resolver key type
          [    1.132914] Key type id_resolver registered
          [    1.132929] Key type id_legacy registered
          [    1.133056] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
          [    1.133072] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
          [    1.134100] Key type asymmetric registered
          [    1.134117] Asymmetric key parser 'x509' registered
          [    1.134309] bounce: pool size: 64 pages
          [    1.134352] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
          [    1.134616] io scheduler mq-deadline registered
          [    1.134632] io scheduler kyber registered
          [    1.139014] gpio-507 (ant1): hogged as output/high
          [    1.140429] gpio-511 (ant2): hogged as output/low
          [    1.141911] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
          [    1.141943] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
          [    1.142023] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
          [    1.142112] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
          [    1.196726] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
          [    1.197110] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
          [    1.197130] pci_bus 0000:00: root bus resource [bus 00-ff]
          [    1.197152] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
          [    1.197242] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
          [    1.197487] pci 0000:00:00.0: PME# supported from D0 D3hot
          [    1.201013] PCI: bus0: Fast back to back transfers disabled
          [    1.201037] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
          [    1.201350] pci 0000:01:00.0: [1912:0014] type 00 class 0x0c0330
          [    1.201435] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
          [    1.201791] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
          [    1.205252] PCI: bus1: Fast back to back transfers disabled
          [    1.205274] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
          [    1.205372] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
          [    1.205396] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600001fff 64bit]
          [    1.205445] pci 0000:00:00.0: PCI bridge to [bus 01]
          [    1.205471] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
          [    1.205900] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
          [    1.206114] pcieport 0000:00:00.0: PME: Signaling with IRQ 61
          [    1.206466] pci 0000:01:00.0: enabling device (0140 -> 0142)
          [    1.207139] bcm2708_fb soc:fb: FB found 1 display(s)
          [    1.219132] Console: switching to colour frame buffer device 160x45
          [    1.224069] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1280x720
          [    1.231995] iproc-rng200 fe104000.rng: hwrng registered
          [    1.232287] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
          [    1.233159] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
          [    1.245707] brd: module loaded
          [    1.258248] loop: module loaded
          [    1.260042] Loading iSCSI transport class v2.0-870.
          [    1.263302] libphy: Fixed MDIO Bus: probed
          [    1.265133] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
          [    1.284655] libphy: bcmgenet MII bus: probed
          [    1.364777] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
          [    1.366000] usbcore: registered new interface driver r8152
          [    1.366070] usbcore: registered new interface driver lan78xx
          [    1.366133] usbcore: registered new interface driver smsc95xx
          [    1.367716] xhci_hcd 0000:01:00.0: xHCI Host Controller
          [    1.367753] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
          [    1.373959] xhci_hcd 0000:01:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000410
          [    1.375590] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
          [    1.375610] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
          [    1.375627] usb usb1: Product: xHCI Host Controller
          [    1.375644] usb usb1: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
          [    1.375660] usb usb1: SerialNumber: 0000:01:00.0
          [    1.376430] hub 1-0:1.0: USB hub found
          [    1.376506] hub 1-0:1.0: 4 ports detected
          [    1.377585] xhci_hcd 0000:01:00.0: xHCI Host Controller
          [    1.377613] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
          [    1.377639] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
          [    1.377840] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
          [    1.378137] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
          [    1.378155] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
          [    1.378172] usb usb2: Product: xHCI Host Controller
          [    1.378188] usb usb2: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
          [    1.378205] usb usb2: SerialNumber: 0000:01:00.0
          [    1.378923] hub 2-0:1.0: USB hub found
          [    1.378999] hub 2-0:1.0: 4 ports detected
          [    1.406118] xhci-hcd fe9c0000.xhci: xHCI Host Controller
          [    1.406154] xhci-hcd fe9c0000.xhci: new USB bus registered, assigned bus number 3
          [    1.407173] xhci-hcd fe9c0000.xhci: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000000010010
          [    1.407273] xhci-hcd fe9c0000.xhci: irq 59, io mem 0xfe9c0000
          [    1.407873] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
          [    1.407892] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
          [    1.407910] usb usb3: Product: xHCI Host Controller
          [    1.407926] usb usb3: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
          [    1.407943] usb usb3: SerialNumber: fe9c0000.xhci
          [    1.408597] hub 3-0:1.0: USB hub found
          [    1.408666] hub 3-0:1.0: 1 port detected
          [    1.409178] xhci-hcd fe9c0000.xhci: xHCI Host Controller
          [    1.409205] xhci-hcd fe9c0000.xhci: new USB bus registered, assigned bus number 4
          [    1.409231] xhci-hcd fe9c0000.xhci: Host supports USB 3.0 SuperSpeed
          [    1.409390] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
          [    1.409685] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
          [    1.409703] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
          [    1.409720] usb usb4: Product: xHCI Host Controller
          [    1.409736] usb usb4: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
          [    1.409752] usb usb4: SerialNumber: fe9c0000.xhci
          [    1.410405] hub 4-0:1.0: USB hub found
          [    1.410488] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
          [    1.411340] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
          [    1.411660] dwc_otg: FIQ enabled
          [    1.411675] dwc_otg: NAK holdoff enabled
          [    1.411689] dwc_otg: FIQ split-transaction FSM enabled
          [    1.411707] Module dwc_common_port init
          [    1.412193] usbcore: registered new interface driver uas
          [    1.412348] usbcore: registered new interface driver usb-storage
          [    1.412566] mousedev: PS/2 mouse device common for all mice
          [    1.414229] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
          [    1.417685] sdhci: Secure Digital Host Controller Interface driver
          [    1.417700] sdhci: Copyright(c) Pierre Ossman
          [    1.418347] mmc-bcm2835 fe300000.mmc: could not get clk, deferring probe
          [    1.419023] sdhci-pltfm: SDHCI platform and OF driver helper
          [    1.423197] ledtrig-cpu: registered to indicate activity on CPUs
          [    1.423549] hid: raw HID events driver (C) Jiri Kosina
          [    1.423755] usbcore: registered new interface driver usbhid
          [    1.423770] usbhid: USB HID core driver
          [    1.429924] Initializing XFRM netlink socket
          [    1.429967] NET: Registered protocol family 17
          [    1.430082] Key type dns_resolver registered
          [    1.430536] Registering SWP/SWPB emulation handler
          [    1.430709] registered taskstats version 1
          [    1.430740] Loading compiled-in X.509 certificates
          [    1.431628] Key type ._fscrypt registered
          [    1.431645] Key type .fscrypt registered
          [    1.431661] Key type fscrypt-provisioning registered
          [    1.443660] uart-pl011 fe201000.serial: there is not valid maps for state default
          [    1.443981] uart-pl011 fe201000.serial: cts_event_workaround enabled
          [    1.444061] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
          [    1.451191] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
          [    1.452304] mmc-bcm2835 fe300000.mmc: mmc_debug:0 mmc_debug2:0
          [    1.452322] mmc-bcm2835 fe300000.mmc: DMA channel allocated
          [    1.482133] of_cfs_init
          [    1.482413] of_cfs_init: OK
          [    1.521437] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
          [    1.522114] Waiting for root device PARTUUID=004cb080-02...
          [    1.525883] mmc1: host does not support reading read-only switch, assuming write-enable
          [    1.529501] mmc1: new high speed SDXC card at address aaaa
          [    1.531007] mmcblk1: mmc1:aaaa SN512 477 GiB
          [    1.533494]  mmcblk1: p1
          [    1.588471] mmc0: new DDR MMC card at address 0001
          [    1.589478] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
          [    1.589980] mmcblk0boot0: mmc0:0001 BJTD4R partition 1 4.00 MiB
          [    1.590519] mmcblk0boot1: mmc0:0001 BJTD4R partition 2 4.00 MiB
          [    1.590765] mmcblk0rpmb: mmc0:0001 BJTD4R partition 3 4.00 MiB, chardev (244:0)
          [    1.592530]  mmcblk0: p1 p2
          [    1.612635] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
          [    1.612714] VFS: Mounted root (ext4 filesystem) readonly on device 179:34.
          [    1.613244] devtmpfs: mounted
          [    1.623207] Freeing unused kernel memory: 2048K
          [    1.664630] usb 1-1: new high-speed USB device number 2 using xhci_hcd
          [    1.684932] Run /sbin/init as init process
          [    1.684947]   with arguments:
          [    1.684962]     /sbin/init
          [    1.684978]     splash
          [    1.684991]   with environment:
          [    1.685006]     HOME=/
          [    1.685021]     TERM=linux
          [    1.880433] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [    1.880456] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [    1.880474] usb 1-1: Product: Movidius MyriadX
          [    1.880492] usb 1-1: Manufacturer: Movidius Ltd.
          [    1.880508] usb 1-1: SerialNumber: 03e72485
          [    1.898795] systemd[1]: System time before build time, advancing clock.
          [    1.974818] NET: Registered protocol family 10
          [    1.976251] Segment Routing with IPv6
          [    2.033335] systemd[1]: systemd 247.3-7+rpi1+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
          [    2.034273] systemd[1]: Detected architecture arm.
          [    2.035645] systemd[1]: Set hostname to <oak3>.
          [    2.184774] systemd-rc-local-generator[108]: /etc/rc.local is not marked executable, skipping.
          [    2.451025] systemd[1]: Configuration file /etc/systemd/system/cm4-rvc2-usb-prepare.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
          [    2.730109] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
          [    2.932308] systemd[1]: Queued start job for default target Graphical Interface.
          [    2.933835] random: systemd: uninitialized urandom read (16 bytes read)
          [    2.937460] systemd[1]: Created slice system-getty.slice.
          [    2.937839] random: systemd: uninitialized urandom read (16 bytes read)
          [    2.938885] systemd[1]: Created slice system-modprobe.slice.
          [    2.939016] random: systemd: uninitialized urandom read (16 bytes read)
          [    2.939960] systemd[1]: Created slice system-systemd\x2dfsck.slice.
          [    2.940827] systemd[1]: Created slice User and Session Slice.
          [    2.941368] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
          [    2.942613] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
          [    2.943252] systemd[1]: Reached target Network (Pre).
          [    2.943562] systemd[1]: Reached target Slices.
          [    2.943824] systemd[1]: Reached target Swap.
          [    2.944948] systemd[1]: Listening on Syslog Socket.
          [    2.945742] systemd[1]: Listening on fsck to fsckd communication Socket.
          [    2.946214] systemd[1]: Listening on initctl Compatibility Named Pipe.
          [    2.947335] systemd[1]: Listening on Journal Audit Socket.
          [    2.948143] systemd[1]: Listening on Journal Socket (/dev/log).
          [    2.949147] systemd[1]: Listening on Journal Socket.
          [    2.953180] systemd[1]: Listening on udev Control Socket.
          [    2.954013] systemd[1]: Listening on udev Kernel Socket.
          [    2.955366] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
          [    2.960565] systemd[1]: Mounting POSIX Message Queue File System...
          [    2.966565] systemd[1]: Mounting RPC Pipe File System...
          [    2.973296] systemd[1]: Mounting Kernel Debug File System...
          [    2.980660] systemd[1]: Mounting Kernel Trace File System...
          [    2.981437] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
          [    2.991661] systemd[1]: Starting Restore / save the current clock...
          [    3.000453] systemd[1]: Starting Set the console keyboard layout...
          [    3.007996] systemd[1]: Starting Create list of static device nodes for the current kernel...
          [    3.016042] systemd[1]: Starting Load Kernel Module configfs...
          [    3.023998] systemd[1]: Starting Load Kernel Module drm...
          [    3.032478] systemd[1]: Starting Load Kernel Module fuse...
          [    3.036388] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
          [    3.042822] systemd[1]: Starting File System Check on Root Device...
          [    3.061419] systemd[1]: Starting Journal Service...
          [    3.073908] fuse: init (API version 7.32)
          [    3.084452] systemd[1]: Starting Load Kernel Modules...
          [    3.092319] systemd[1]: Starting Coldplug All udev Devices...
          [    3.125301] systemd[1]: Mounted POSIX Message Queue File System.
          [    3.126839] systemd[1]: Mounted RPC Pipe File System.
          [    3.128275] systemd[1]: Mounted Kernel Debug File System.
          [    3.129769] systemd[1]: Mounted Kernel Trace File System.
          [    3.132336] systemd[1]: Finished Restore / save the current clock.
          [    3.139251] systemd[1]: Finished Create list of static device nodes for the current kernel.
          [    3.152138] systemd[1]: modprobe@configfs.service: Succeeded.
          [    3.153705] systemd[1]: Finished Load Kernel Module configfs.
          [    3.156010] systemd[1]: modprobe@drm.service: Succeeded.
          [    3.157436] systemd[1]: Finished Load Kernel Module drm.
          [    3.159565] systemd[1]: modprobe@fuse.service: Succeeded.
          [    3.161023] systemd[1]: Finished Load Kernel Module fuse.
          [    3.165320] i2c /dev entries driver
          [    3.184022] systemd[1]: Mounting FUSE Control File System...
          [    3.200942] systemd[1]: Mounting Kernel Configuration File System...
          [    3.207366] systemd[1]: Started File System Check Daemon to report status.
          [    3.216859] systemd[1]: Finished Load Kernel Modules.
          [    3.218060] systemd[1]: Mounted FUSE Control File System.
          [    3.227561] systemd[1]: Starting Apply Kernel Variables...
          [    3.263165] systemd[1]: Mounted Kernel Configuration File System.
          [    3.307157] systemd[1]: Finished File System Check on Root Device.
          [    3.313255] systemd[1]: Starting Remount Root and Kernel File Systems...
          [    3.316251] systemd[1]: Finished Apply Kernel Variables.
          [    3.482834] systemd[1]: Started Journal Service.
          [    3.577470] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
          [    3.638655] systemd-journald[130]: Received client request to flush runtime journal.
          [    3.648514] systemd-journald[130]: File /var/log/journal/028060992a8745ca9295b913369e678e/system.journal corrupted or uncleanly shut down, renaming and replacing.
          [    4.477562] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
          [    4.480058] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
          [    4.482684] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
          [    4.483332] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
          [    4.796836] mc: Linux media interface: v0.10
          [    4.861542] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.863951] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
          [    4.863980] [vc_sm_connected_init]: start
          [    4.871373] videodev: Linux video capture interface: v2.00
          [    4.893983] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.903036] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.948427] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.960501] [vc_sm_connected_init]: installed successfully
          [    4.966277] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.968804] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.969936] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.972925] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.980638] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.985887] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
          [    4.999953] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
          [    5.000550] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
          [    5.001036] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
          [    5.001455] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
          [    5.001487] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
          [    5.001512] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
          [    5.001535] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
          [    5.001558] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
          [    5.001779] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
          [    5.012658] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
          [    5.012708] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
          [    5.029773] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
          [    5.029824] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
          [    5.051079] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
          [    5.051146] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
          [    5.055642] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
          [    5.055688] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
          [    5.062684] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
          [    5.070508] bcm2835_audio bcm2835_audio: there is not valid maps for state default
          [    5.100780] bcm2835_audio bcm2835_audio: card created with 8 channels
          [    5.322657] exFAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
          [    6.559029] 8021q: 802.1Q VLAN Support v1.8
          [    6.721832] uart-pl011 fe201000.serial: no DMA platform data
          [    6.736026] cfg80211: Loading compiled-in X.509 certificates for regulatory database
          [    6.866366] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
          [    6.873649] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
          [    6.944664] random: crng init done
          [    6.944688] random: 7 urandom warning(s) missed due to ratelimiting
          [    6.945836] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
          [    7.022246] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
          [    7.024119] bcmgenet fd580000.ethernet eth0: Link is Down
          [    8.633028] tun: Universal TUN/TAP device driver, 1.6
          [    9.114770] bcmgenet fd580000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
          [    9.114797] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
          [  201.973412] usb 1-1: USB disconnect, device number 2
          [  202.379522] usb 1-1: new high-speed USB device number 3 using xhci_hcd
          [  202.564732] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [  202.564741] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [  202.564748] usb 1-1: Product: Movidius MyriadX
          [  202.564755] usb 1-1: Manufacturer: Movidius Ltd.
          [  202.564762] usb 1-1: SerialNumber: 03e72485
          [  256.393372] usb 1-1: USB disconnect, device number 3
          [  256.790685] usb 1-1: new high-speed USB device number 4 using xhci_hcd
          [  256.975913] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [  256.975923] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [  256.975930] usb 1-1: Product: Movidius MyriadX
          [  256.975937] usb 1-1: Manufacturer: Movidius Ltd.
          [  256.975945] usb 1-1: SerialNumber: 03e72485
          [  405.992171] usb 1-1: USB disconnect, device number 4
          [  406.393947] usb 1-1: new high-speed USB device number 5 using xhci_hcd
          [  406.579153] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [  406.579176] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [  406.579194] usb 1-1: Product: Movidius MyriadX
          [  406.579212] usb 1-1: Manufacturer: Movidius Ltd.
          [  406.579229] usb 1-1: SerialNumber: 03e72485
          [  603.803154] usb 1-1: USB disconnect, device number 5
          [  604.208319] usb 1-1: new high-speed USB device number 6 using xhci_hcd
          [  604.393646] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [  604.393680] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [  604.393710] usb 1-1: Product: Movidius MyriadX
          [  604.393738] usb 1-1: Manufacturer: Movidius Ltd.
          [  604.393755] usb 1-1: SerialNumber: 03e72485
          [44102.531730] usb 1-1: USB disconnect, device number 6
          [44102.938533] usb 1-1: new high-speed USB device number 7 using xhci_hcd
          [44103.123793] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [44103.123803] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [44103.123817] usb 1-1: Product: Movidius MyriadX
          [44103.123824] usb 1-1: Manufacturer: Movidius Ltd.
          [44103.123831] usb 1-1: SerialNumber: 03e72485
          [75210.571337] usb 1-1: USB disconnect, device number 7
          [75210.970774] usb 1-1: new high-speed USB device number 8 using xhci_hcd
          [75211.156093] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [75211.156109] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [75211.156117] usb 1-1: Product: Movidius MyriadX
          [75211.156124] usb 1-1: Manufacturer: Movidius Ltd.
          [75211.156131] usb 1-1: SerialNumber: 03e72485
          [75499.803158] usb 1-1: USB disconnect, device number 8
          [75500.216292] usb 1-1: new high-speed USB device number 9 using xhci_hcd
          [75500.401543] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [75500.401560] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [75500.401567] usb 1-1: Product: Movidius MyriadX
          [75500.401574] usb 1-1: Manufacturer: Movidius Ltd.
          [75500.401581] usb 1-1: SerialNumber: 03e72485
          [75876.872275] usb 1-1: USB disconnect, device number 9
          [75877.273530] usb 1-1: new high-speed USB device number 10 using xhci_hcd
          [75877.458796] usb 1-1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
          [75877.458812] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [75877.458835] usb 1-1: Product: Movidius MyriadX
          [75877.458847] usb 1-1: Manufacturer: Movidius Ltd.
          [75877.458869] usb 1-1: SerialNumber: 03e72485
          • erik replied to this.

            jack-t terminal output looks good. Did you install the requirements?

            sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash

            Just ran that and it did update some stuff. However, when I run depthai_demo.py it still errors. The new error message is similar to before but a little different now. I have shown the new error message below. It displays this error, then the execution hangs. The demo window pops up, but the video feed is empty, it just says "starting demo…".

            pi@oak3:~/depthai $ python depthai_demo.py
            Using depthai module from:  /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
            Depthai version installed:  2.21.2.0
            Setting up demo...
            Available devices:
            [0] 18443010B1665B1200 [X_LINK_UNBOOTED]
              File "/home/pi/depthai/depthai_demo.py", line 656, in run
                self.instance.run_all(self.conf)
              File "/home/pi/depthai/depthai_demo.py", line 132, in run_all
                self.setup(conf)
              File "/home/pi/depthai/depthai_demo.py", line 209, in setup
                self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
            RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
            • erik replied to this.