![]() Kria™ KV260 Vision AI Starter Kit
|
Debugging |
Debugging¶
Please first review the FAQ for commonly encountered issues across 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 loaded, so there will be many errors pops up when you run the application.
This section list some debugging tips for platform peripherals¶
Monitor¶
Please 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, 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 device.
Sample record and playback¶
dnf install alsa-utils.aarch64
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 user 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]
License¶
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright© 2021 Xilinx