5.2. Configure D3 Embedded Software

After installing D3 Embedded’s packages, the kernel drivers are ready and chomping at the bit to help you capture some beautiful images, but the kernel doesn’t know which cameras are connected to which port.

To solve this, we need to modify the devicetree to tell the kernel which camera configuration to use for each camera port. D3 Embedded provides a text-based user interface to make this process simple. In a terminal, run:

sudo d3-select-cameras-boot

The user interface will open and show a list of all the available camera ports on your hardware. Refer to the diagram at the bottom of this section for the mapping between the physical port and the port number displayed by d3-select-cameras-boot.

  1. To modify a port’s configuration, use the arrow keys ↑ ↓ to highlight the desired port then press ENTER to select it. You will then be presented with a list of compatible camera configurations for the selected port:

    1. Highlight the desired camera configuration for the port using the arrow keys ↑ ↓ and press spacebar ␣ to select it. The change is now staged but not yet applied.

      Hint

      If you’re not sure which configuration (also called an ‘overlay’) to select for your camera, refer to your camera’s documentation section under Cameras.

    2. To return to the previous screen with the list of available camera ports, press ENTER.

  2. Repeat the above steps until each connected camera’s port is configured appropriately.

  3. Once satisfied, use the arrow keys ← → to highlight the Apply button in the bottom menu and press ENTER. Your changes will be saved to disk and take effect after a reboot.

    • To confirm your selection was applied correctly, you may check the OVERLAYS property under the LABEL d3 section in /boot/extlinux/extlinux.conf. This is the property the bootloader reads to determine which devicetree overlays (camera configurations) to load during boot.

  4. Reboot the system: sudo reboot now.

Your camera selection is now active, and the kernel has loaded the appropriate camera drivers. You should now see video nodes in /dev/ like /dev/video0 assuming the selection is correct. If no video nodes appear, double check your camera selection.