Kria™ KV260 Vision AI Starter Kit
NLP SmartVision Tutorial

Debugging

Debugging

First review the FAQ for commonly encountered issues across the Kria SOM applications.

This section list some debugging tips for the application

  • Make sure you use:

    sudo xmutil      loadapp kv260-nlp-smartvision

    to load the firmware properly; otherwise, many drivers including the MIPI will not load, so there will be many errors when you run the application.

This section list some debugging tips for platform peripherals

Monitor

Review the Debug Displays for debugging the monitor.

Audio

Click here to view details

Determine the Enumeration for Audio Card

cat /proc/asound/cards

 2 [xlnxi2ssndcard0]: xlnx-i2s-snd-ca - xlnx-i2s-snd-card-0
                      xlnx-i2s-snd-card-0

In the above example, the enumeration of audio card is 2.

Determine Capture and Playback Device Number

cat /proc/asound/devices

 80: [ 2- 0]: digital audio playback
 89: [ 2- 1]: digital audio capture

In the above example [2- X]: 2- is card, X is the device.

Sample Record and Playback

  1. dnf install alsa-utils.aarch64

  2. Ensure an active source is connected at the Pmod LINE IN.

Detect USB 3.0

Click here to view details

lsusb

Bus 002 Device 003: ID 046d:085e Logitech, Inc. USB5744
Bus 002 Device 002: ID 0424:5744 Standard Microsystems Corp. USB5744
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Obtain Media Device Information

Click here to view details `ls /dev/media*`

Lists all media enumerations

media-ctl -d /dev/mediaX -p

where X in media is the enumerated value. The above command will print the Device topology and help you identify the media device.

Here is an example for capture path of ‘ar1335 sensor’.

media-ctl -d /dev/media0 -p

Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: isp_vcap_csi output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "b0100000.scaler":1 [ENABLED]

- entity 5: b0100000.scaler (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                [fmt:UYVY8_1X16/1024x768 field:none colorspace:srgb]
                <- "80000000.csiss":0 [ENABLED]
        pad1: Source
                [fmt:RBG888_1X24/1024x768 field:none colorspace:srgb]
                -> "isp_vcap_csi output 0":0 [ENABLED]

- entity 8: 80000000.csiss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Source
                [fmt:UYVY8_1X16/1024x768 field:none colorspace:srgb]
                -> "b0100000.scaler":0 [ENABLED]
        pad1: Sink
                [fmt:UYVY8_1X16/1024x768 field:none colorspace:srgb]
                <- "ap1302.4-003c":2 [ENABLED]

- entity 11: ap1302.4-003c (3 pads, 2 links)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev3
        pad0: Sink
                [fmt:SGRBG10_1X10/4208x3120 field:none colorspace:srgb
                 crop.bounds:(0,0)/4208x3120
                 crop:(0,0)/4208x3120]
                <- "ar1335 0":0 [ENABLED,IMMUTABLE]
        pad1: Sink
                [fmt:SGRBG10_1X10/4208x3120 field:none colorspace:srgb
                 crop.bounds:(0,0)/4208x3120
                 crop:(0,0)/4208x3120]
        pad2: Source
                [fmt:UYVY8_1X16/1024x768 field:none colorspace:srgb
                 crop.bounds:(0,0)/4208x3120
                 crop:(0,0)/4208x3120]
                -> "80000000.csiss":1 [ENABLED]

- entity 15: ar1335 0 (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:SGRBG10_1X10/4208x3120 field:none colorspace:srgb]
                -> "ap1302.4-003c":0 [ENABLED,IMMUTABLE]

                -> "ap1302.4-003c":0 [ENABLED,IMMUTABLE]

Copyright © 2021-2024 Advanced Micro Devices, Inc

Terms and Conditions