1. Git clone Vitis AI 2.0 , from there you will need “DPU IP” and “ZCU102-DPU-TRD2.0.BSP”.
2. Create the VIVADO Block design with DPU IP. You can download the Tcl file of the VIVADO project, Block Design PDF, XSA and generate the project on your PC.
3. Here is the Block design view from VIVADO:
4. Given Tcl source automatically setup the addresses and also validate the Block Design.
5. Generate the design. Export the XSA.
B. Petalinux Steps1. Download the BSP of Kria SoM-2021.1 from Xilinx Petalinux Download Page.
Note: Instead of using BSP of Kria Starter Kit we are following SoM based Approach.
2. Source the Petalinux 2021.1 installed on your PC.
$source <Petalinux_2021_1 installed directory>settings.sh
Note: here message as “this is not supported OS” can be don’t cared.
3. Upgrade the Petalinux SDK:
$petalinux-upgrade -u http://petalinux.xilinx.com/sswreleases/rel-v2021/sdkupdate/2021.1_update1/ -p "aarch64" --wget-args "--wait 1 -nH --cut-dirs=4"
4. Create the Petalinux Project:
$petalinux-create -t project -s xilinx-k26-som-v2021.1-updated-final.bsp
Here, similarly create the ZU102 BSP Project using the Vitis AI DPU TRD-ZCU102 BSP. This ZCU102 Petalinux project need to create just to copy necessary "Recipe files" we need for Kria KV260 Petalinux Project.
5. Change directory into Kria KV260 SoM project directory:
$cd xilinx-k26-som-2021.1/
6. Run the Petalinux config with the directory where generated XSA located from Step 1:
petalinux-config --get-hw-description=/home/userpc/VIVADO-DPU-TRD/xilinx-k26-som-dpu-trd/xilinx-k26-som-2021.1/ --silentconfig
7. Now inside /project-spec/meta-user/copy the recipes-modules, recipes-tools and recipes-vitis-ai from "ZCU102-BSP-Petalinux-Project" which we have created. Also copy resnet50 application from ZCU102-BSP-Project into “recipes-apps”.
8. Edit the petalinuxbsp.conf at /project-spec/meta-user/confis following:
9. Edit the user-rootfsconfig at /project-spec/meta-user/conf following: Comment som, cmdline and jupyter packagegroup.
Note: if we enable SOM packagegroup, then it will call xmutil, kv260-dp overlay and many un-necessary packages for our DPU-TRD-VIVADO-Flow From following picture you can see what packagegroup SoM calls while building Petalinux project.
10. Now, from Petalinux rootfs config, disable Package group as SoM”.
$ petalinux-config -c rootfs
11. Now from Petalinux config, disable the “FPGA Manager
$petalinux-config
12. Now update the system-user.dtsifile in the /project-spec/meta-user/recipes-bsp/device-tree/with following bootargs and SDHCi1 node:
13. Now build the Petalinux.
$petalinux-build
For complete the build it may take some 30 minute to 1 hour on this method based on PC.
14. Goto, images/linux, then create the BOOT.BIN of Petalinux:
$petalinux-package --boot --fsbl zynqmp_fsbl.elf --u-boot u-boot.elf --pmufw pmufw.elf --fpga system.bit –force
15. Now, Create WIC of Petalinux:
$petalinux-package --wic --bootfiles "ramdisk.cpio.gz.u-boot BOOT.BIN boot.scr Image system.dtb"
16. Now you can use Balena Etcher to Burn the SD card with WIC file and boot the Kria KV260.
17. Plug the SD card on Kria KV260.
18. Power on the Board, Connect the UART Terminal at baud rate 115200. You can see the BOOT messages in UART now.
19. Now open the XSCT of VIVADO or Vitis/SDK and enter following commands on XSCT to load the BOOT.BIN manually, as Kria-KV260 indefault loads BOOT.BIN from QSPI while we need to load our own BOOT.BIN or hardware file into the board:
connect
targets -set -filter {name=~"PSU"}
mwr 0xffca0010 0x0
mwr 0xff5e0200 0xe100
rst -system
after 2000
con
20. Now you can see board has been re-started. Now, UART Terminal shows the log from starting of BOOT.
21. Now you can do, show_dpu and xdputil query command to check the DPU Status.
22. Now you can run the Resnet50 application:
***END of Tutorial***
C. Known Issues- Petalinux Project/Build:1. Kria SoM BSP: Petalinux error on “Reset Connection”
You can don’t care this reset connection error!
For solving this, you can update petalinuxbsp config with RPM link before building the Petalinux. You can follow Witney-Knitter's tutorial for this step!
PACKAGE_FEED_URIS = "http://petalinux.xilinx.com/sswreleases/rel-v2021.2/generic-updates \
http://petalinux.xilinx.com/sswreleases/rel-v2021.2/generic"
PACKAGE_FEED_BASE_PATHS = "rpm"
2. For any change on the project configuration, you can either run “Petalinux-build” again or you can do “petalinux-build -x distclean” for cleaning the project and rebuild:
3. In case you face large errors and need complete erase of Build and rebuild then you can follow: petalinux-build -x mrproper
This mrproper will remove the Build directory for Petalinux and take to you the stage where you have just made “petalinux-config” or hardware description command.
4. Kria Starter Kit BSP- Issue may appear:
While using BSP of Starter Kit (KV260) the Petalinux project could build straightforward but as Starter Kit has own setting to “configurating the overlay or application packages”. So editing the Petalinux configuration setting of Starter Kit is time taking.
This is why we are using the Kria K26-SoM BSP on this “DPU TRD VIVADO Flow”.
For Vitis Flow or accelerator flow, Kria Starter Kit BSP might reduce the number of steps to follow or need to update on configurations.D. Known Issues- Boot up and Testing
1. Error 1- Kria Carrier Card BSP Issue:
If you find following call trace error or error on show_dpu with factory empty, then it shows your DPU based hardware is not loaded.
Starting udev
[ 10.067033] udevd[357]: starting version 3.2.9
[ 10.095495] random: udevd: uninitialized urandom read (16 bytes read)
[ 10.105308] random: udevd: uninitialized urandom read (16 bytes read)
[ 10.111775] random: udevd: uninitialized urandom read (16 bytes read)
[ 10.171041] udevd[358]: starting eudev-3.2.9
[ 10.310347] dpu: loading out-of-tree module taints kernel.
[ 10.316588] xlnx-dpu: Xilinx Deep Learning Processing Unit driver
[ 10.322893] Internal error: synchronous external abort: 96000210 [#1] SMP
[ 10.329669] Modules linked in: dpu(O+) uio_pdrv_genirq
[ 10.334803] CPU: 1 PID: 361 Comm: udevd Tainted: G O 5.10.0-xilinx-v2021.1 #1
[ 10.343227] Hardware name: ZynqMP SMK-K26 Rev1/B/A (DT)
[ 10.348437] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
[ 10.354433] pc : xlnx_dpu_probe+0x6c/0x7d0 [dpu]
[ 10.359037] lr : xlnx_dpu_probe+0x5c/0x7d0 [dpu]
[ 10.363642] sp : ffff8000130ab8b0
[ 10.366940] x29: ffff8000130ab8b0 x28: 0000000000000013
[ 10.372244] x27: 0000000000000100 x26: ffff0008003fe000
[ 10.377548] x25: ffff000800363c10 x24: 0000000000000000
[ 10.382851] x23: 000000000000003b x22: ffff000800363c00
[ 10.388155] x21: ffff800008dab030 x20: ffff000800c71880
[ 10.393458] x19: 0000000000000000 x18: 0000000000000020
[ 10.398761] x17: 0000000000000001 x16: 000034dab745148e
[ 10.404065] x15: ffff0008003fe418 x14: ffffffffffffffff
[ 10.409369] x13: ffff800010000000 x12: ffff80001121c3d8
[ 10.414672] x11: 0000000001000000 x10: ffff00087ffff000
[ 10.419976] x9 : ffff80001148a000 x8 : ffff800011399c64
[ 10.425279] x7 : ffff8000114a5518 x6 : 006800008fe00715
[ 10.430583] x5 : ffff000800363ec0 x4 : 0000000000000000
[ 10.435886] x3 : 0000000000000001 x2 : ffff0008073f5500
[ 10.441190] x1 : ffff000800363eb8 x0 : ffff8000140001e0
[ 10.446494] Call trace:
[ 10.448930] xlnx_dpu_probe+0x6c/0x7d0 [dpu]
[ 10.453192] platform_drv_probe+0x54/0xb0
[ 10.457189] really_probe+0xe8/0x4b4
[ 10.460748] driver_probe_device+0x58/0xc0
[ 10.464827] device_driver_attach+0xc0/0xd0
[ 10.468994] __driver_attach+0x84/0x124
[ 10.472813] bus_for_each_dev+0x70/0xc0
[ 10.476632] driver_attach+0x24/0x30
[ 10.480191] bus_add_driver+0x104/0x1ec
[ 10.484010] driver_register+0x78/0x130
[ 10.487830] __platform_driver_register+0x4c/0x60
[ 10.492519] xlnx_dpu_init+0x30/0x1000 [dpu]
[ 10.496780] do_one_initcall+0x54/0x1bc
[ 10.500608] do_init_module+0x54/0x240
[ 10.504348] load_module+0x1ec8/0x2500
[ 10.508080] __do_sys_finit_module+0xb8/0xfc
[ 10.512333] __arm64_sys_finit_module+0x24/0x30
[ 10.516849] el0_svc_common.constprop.0+0x94/0x1c0
[ 10.521630] do_el0_svc+0x44/0xb0
[ 10.524929] el0_svc+0x14/0x20
[ 10.527967] el0_sync_handler+0x1a4/0x1b0
[ 10.531959] el0_sync+0x174/0x180
[ 10.535261] Code: f9000680 b140041f 54001d88 91078000 (b9400000)
[ 10.541345] ---[ end trace 76f4450f5f0d3263 ]---
[ 10.551261] udevd[358]: worker [361] terminated by signal 11 (Segmentation fault)
[ 10.558821] udevd[358]: worker [361] failed while handling '/devices/platform/amba_pl@0/8f000000.dpuczdx8g'
[ 11.130194] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 11.264438] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 14.090795] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /fpga-full/firmware-name
[ 14.100897] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/status
[ 14.111325] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/zynqmp_dp_snd_pcm0/status
[ 14.123406] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/zynqmp_dp_snd_pcm1/status
[ 14.135485] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/zynqmp_dp_snd_card/status
[ 14.147563] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/zynqmp_dp_snd_codec0/status
[ 14.168454] OF: graph: no port node found in /axi/display@fd4a0000
Starting tcf-agent: OK
Starting TCG TSS2 Access Broker and Resource Management daemon: tpm2-abrmd.
PetaLinux 2021.1 xilinx-k26-starterkit-2021_1 ttyPS1
or Error like:
xilinx-k26-starterkit-2021_1:~$ show_dpu
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0309 04:40:23.209763 1369 dpu_controller.cpp:44] Check failed: !the_factory_methods.empty()
*** Check failure stack trace: ***
Aborted
Solution of above error:
a. Either you have to check for “are you using SoM BSP or Carrier Card BSP”. Above error mainly comes when using the Carrier BSP of Kria KV260.
b. Load the BOOT.BIN or BIT/DTBO via the XSCT.
c. Check is the hardware or XSA/BIT loaded properly or not? If hardware is loaded properly, then you can see "found 1 dpu @frequency and x softmax" message with address of DPU on BOOT LOG.
2. Error 2- Kria SoM BSP project Boot issue: Cannot open /dev/dpu
If you find following error of cannot open /dev/dpu, then you need to gofor “sudo su” or sudo option to run the “show_dpu” or “xdputil query” command.
i. If you have build the Petalinux project, then goto images/linux and open “rootfs.tar.gz”. Search for dpu.ko, xdputil, show_dpu command, If those command is there then your build (mainly rootfs.tar.gz) is good. If you also find “xmutil” while searching then you may disable the “SoM package group” from BSP config as well as petalinux config.
ii. After bootup, check this information on your BOOT LOG:
a. Is your BOOT LOG showing DPU based information, messages?
If not check the “BOOT.BIN” loading process or Petalinux config with get hardware description (XSA Loading) step.
b. Is your BOOT LOG also has the DPU base address which you assied in VIVADO address editor? Address on range of 0x08f0000 to 0x08ffffff?
If not again check the XSA loading step or BOOT.BIN loading step
iii. Running Resnet50 application
a. If you have configured your DPU on VIVADO design completely same as “Vitis DPU TRD- VIVADO Flow” then you can run resnet50 directly.
b. If your DPU configuration is different, then you have to “compile” the resnet50 downloaded from Vitis AI Model Zoo using the Vitis AI tool. You can use “Vitis AI CPU” for model compilation and get the XMODEL.
iv. Need to install VART or Vitis AI library?
a. For this you can follow the VART Git page at Vitis AI, where you can see option of “dnf” or manually loading the VART runtime on Board (which is running the DPU TRD).
v. Building your application source?
For this you have to have GCC and cmake enabled on your Petalinux build.
vi. Running Gstreamer? Running desktop(matchbox)?
For this you have to enable the gstreamer package group in Petalinux. For desktop, enable the matchbox and build the Petalinux.
F. XSCT & BOOT LOG from Kria KV260I. XSCT Log:
II. BOOT Log [Main Section]:
Xilinx Zynq MP First Stage Boot Loader
====Truncated LOG Messages here, as log are quite long====
==========================================================
Starting udev
[ 24.777420] udevd[353]: starting version 3.2.9
[ 24.824314] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.831666] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.838136] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.929602] udevd[354]: starting eudev-3.2.9
[ 25.211048] dpu: loading out-of-tree module taints kernel.
[ 25.220698] xlnx-dpu: Xilinx Deep Learning Processing Unit driver
[ 25.236241] xlnx-dpu 8f000000.dpuczdx8g: found 1 dpu @275MHz and 0 softmax, dpu registered as /dev/dpu successfully
[ 27.019814] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 27.244196] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 30.629265] macb ff0e0000.ethernet eth0: Could not attach PHY (-19)
Starting tcf-agent: OK
PetaLinux 2021.1 xilinx-k26-som-2021_1 ttyPS1
xilinx-k26-som-2021_1 login: petalinux
You are required to change your password immediately (administrator enforced)
New password:
Retype new password:
xilinx-k26-som-2021_1:~$ ls
xilinx-k26-som-2021_1:~$ show_dpu
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0309 12:35:24.941711 1224 dpu_controller_dnndk.cpp:68] Check failed: fd >= 0 (-1 vs. 0) cannot open /dev/dpu
*** Check failure stack trace: ***
Aborted
xilinx-k26-som-2021_1:~$ sudo su
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
xilinx-k26-som-2021_1:/home/petalinux# show_dpu
device_core_id=0 device= 0 core = 0 fingerprint = 0x1000020f6014407 batch = 1 full_cu_name=unknown:dpu0
xilinx-k26-som-2021_1:/home/petalinux# xdputil query
{
"DPU IP Spec":{},
"VAI Version":{
"libvart-runner.so":"Xilinx vart-runner Version: 2.0.0-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-10-18-06:47:53 ",
"libvitis_ai_library-dpu_task.so":"Xilinx vitis_ai_library dpu_task Version: 2.0.0-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-01-20 07:11:10 [UTC] ",
"libxir.so":"Xilinx xir Version: xir-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-10-18-06:41:42",
"target_factory":"target-factory.2.0.0 d02dcb6041663dbc7ecbc0c6af9fafa087a789de"
},
"kernels":[
{
"DPU Arch":"DPUCZDX8G_ISA1_B4096_0101001FF6014407",
"DPU Frequency (MHz)":275,
"cu_addr":"0x8f000000",
"cu_idx":0,
"fingerprint":"0x101001ff6014407",
"is_vivado_flow":true,
"name":"DPU Core 0"
}
]
}
xilinx-k26-som-2021_1:/home/petalinux# ls
xilinx-k26-som-2021_1:/home/petalinux#
xilinx-k26-som-2021_1:/home/petalinux# cd ../root/
xilinx-k26-som-2021_1:~# ls
app dpu_sw_optimize
xilinx-k26-som-2021_1:~# cd ap
sh: cd: ap: No such file or directory
xilinx-k26-som-2021_1:~# cd app
xilinx-k26-som-2021_1:~/app# ls
img model samples
xilinx-k26-som-2021_1:~/app# cp ./model/resnet50.xmodel .
xilinx-k26-som-2021_1:~/app# env LD_LIBRARY_PATH=samples/lib samples/bin/resnet50 img/bellpeppe-994958.JPEG
score[945] = 0.992235 text: bell pepper,
score[941] = 0.00315807 text: acorn squash,
score[943] = 0.00191546 text: cucumber, cuke,
score[939] = 0.000904801 text: zucchini, courgette,
score[949] = 0.00054879 text: strawberry,
xilinx-k26-som-2021_1:~/app#
G. Complete BOOT LOGXilinx Zynq MP First Stage Boot Loader
Release 2021.1 Jun 6 2021 - 07:07:32
NOTICE: ATF running on XCK26/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: v2.4(release):xlnx_rebase_v2.4_2021.1_update1
NOTICE: BL31: Built : 08:27:07, Apr 28 2021
U-Boot 2021.01 (Jun 01 2021 - 11:54:06 +0000)
Model: ZynqMP SM-K26 Rev1/B/A
Board: Xilinx ZynqMP
DRAM: 4 GiB
usb dr_mode not found
PMUFW: v1.1
Xilinx I2C FRU format at nvmem0:
Manufacturer Name: XILINX
Product Name: SM-K26-XCL2GC-ED
Serial No: 50572B111F0J
Part Number: 5057-02ED
File ID: 0x0
Revision Number: A
Xilinx I2C FRU format at nvmem1:
Manufacturer Name: XILINX
Product Name: SCK-KV-G
Serial No: 50582B112M1J
Part Number: 5058-02
File ID: 0x0
Revision Number: B
EL Level: EL2
Chip ID: xck26
NAND: 0 MiB
MMC: mmc@ff170000: 1
Loading Environment from FAT... In: serial
Out: serial
Err: serial
Bootmode: LVL_SHFT_SD_MODE1
Reset reason: DEBUG
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface rgmii-id
No ethernet found.
Hit any key to stop autoboot: 0
*** U-Boot Boot Menu ***
Auto-Select - 1.CC boot 2.SOM boot
Carrier Card (CC) boot device
System on Module (SOM) boot device
U-Boot console
Press UP/DOWN to move, ENTER to select
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
2594 bytes read in 14 ms (180.7 KiB/s)
## Executing script at 20000000
Trying to load boot images from mmc1
21516800 bytes read in 2405 ms (8.5 MiB/s)
42575 bytes read in 22 ms (1.8 MiB/s)
24433181 bytes read in 2736 ms (8.5 MiB/s)
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name: petalinux-initramfs-image-zynqmp
Created: 2011-04-05 23:00:00 UTC
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 24433117 Bytes = 23.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00100000
Booting using the fdt blob at 0x100000
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface rgmii-id
Loading Ramdisk to 778b2000, end 78fff1dd ... OK
Loading Device Tree to 000000000fff2000, end 000000000ffff64e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.0-xilinx-v2021.1 (oe-user@oe-host) (aarch64-xilinx-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP Tue Aug 24 05:53:21 UTC 2021
[ 0.000000] Machine model: ZynqMP SM-K26 Rev1/B/A
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff010000 (options '115200n8')
[ 0.000000] printk: bootconsole [cdns0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 1000 MiB at 0x0000000039000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000087fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000007fefffff]
[ 0.000000] node 0: [mem 0x0000000800000000-0x000000087fffffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 256 pages
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000087fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 22 pages/cpu s50968 r8192 d30952 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1031940
[ 0.000000] Kernel command line: earlycon console=ttyPS1,115200 clk_ignore_unused ext4=/dev/mmcblk1p2:/rootfs rw init_fatal_sh=1 cma=1000M
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x000000007bf00000-0x000000007ff00000] (64MB)
[ 0.000000] Memory: 2977400K/4193280K available (13888K kernel code, 980K rwdata, 3920K rodata, 2112K init, 588K bss, 191880K reserved, 1024000K cma-reserved)
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x31c/0x524 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171015c90f, max_idle_ns: 440795203080 ns
[ 0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns
[ 0.008250] Console: colour dummy device 80x25
[ 0.012392] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.99 BogoMIPS (lpj=399996)
[ 0.022753] pid_max: default: 32768 minimum: 301
[ 0.027464] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.034701] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.043455] rcu: Hierarchical SRCU implementation.
[ 0.047458] EFI services will not be available.
[ 0.051868] smp: Bringing up secondary CPUs ...
[ 5.110883] CPU1: failed to come online
[ 5.110918] CPU1: failed in unknown state : 0x0
[ 10.233581] CPU2: failed to come online
[ 10.233616] CPU2: failed in unknown state : 0x0
[ 15.356274] CPU3: failed to come online
[ 15.356309] CPU3: failed in unknown state : 0x0
[ 15.359000] smp: Brought up 1 node, 1 CPU
[ 15.362950] SMP: Total of 1 processors activated.
[ 15.367622] CPU features: detected: 32-bit EL0 Support
[ 15.372724] CPU features: detected: CRC32 instructions
[ 15.377863] CPU: All CPU(s) started at EL2
[ 15.381900] alternatives: patching kernel code
[ 15.387291] devtmpfs: initialized
[ 15.393961] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 15.399285] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 15.428778] pinctrl core: initialized pinctrl subsystem
[ 15.429262] DMI not present or invalid.
[ 15.432347] NET: Registered protocol family 16
[ 15.437550] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 15.443677] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 15.451497] audit: initializing netlink subsys (disabled)
[ 15.457209] cpuidle: using governor menu
[ 15.460793] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 15.467485] audit: type=2000 audit(15.404:1): state=initialized audit_enabled=0 res=1
[ 15.475258] ASID allocator initialised with 65536 entries
[ 15.480721] Serial: AMBA PL011 UART driver
[ 15.503798] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 15.504859] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 15.511516] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 15.518173] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 16.465250] cryptd: max_cpu_qlen set to 1000
[ 16.487580] DRBG: Continuing without Jitter RNG
[ 16.565580] raid6: neonx8 gen() 2380 MB/s
[ 16.633626] raid6: neonx8 xor() 1776 MB/s
[ 16.701691] raid6: neonx4 gen() 2433 MB/s
[ 16.769736] raid6: neonx4 xor() 1736 MB/s
[ 16.837800] raid6: neonx2 gen() 2308 MB/s
[ 16.905854] raid6: neonx2 xor() 1590 MB/s
[ 16.973928] raid6: neonx1 gen() 1973 MB/s
[ 17.041971] raid6: neonx1 xor() 1355 MB/s
[ 17.110031] raid6: int64x8 gen() 1597 MB/s
[ 17.178075] raid6: int64x8 xor() 856 MB/s
[ 17.246141] raid6: int64x4 gen() 1779 MB/s
[ 17.314190] raid6: int64x4 xor() 908 MB/s
[ 17.382254] raid6: int64x2 gen() 1553 MB/s
[ 17.450309] raid6: int64x2 xor() 834 MB/s
[ 17.518369] raid6: int64x1 gen() 1147 MB/s
[ 17.586430] raid6: int64x1 xor() 575 MB/s
[ 17.586467] raid6: using algorithm neonx4 gen() 2433 MB/s
[ 17.590421] raid6: .... xor() 1736 MB/s, rmw enabled
[ 17.595352] raid6: using neon recovery algorithm
[ 17.600401] iommu: Default domain type: Translated
[ 17.605004] SCSI subsystem initialized
[ 17.608631] usbcore: registered new interface driver usbfs
[ 17.613976] usbcore: registered new interface driver hub
[ 17.619250] usbcore: registered new device driver usb
[ 17.624293] mc: Linux media interface: v0.10
[ 17.628500] videodev: Linux video capture interface: v2.00
[ 17.633969] EDAC MC: Ver: 3.0.0
[ 17.637424] zynqmp-ipi-mbox mailbox@ff990400: Registered ZynqMP IPI mbox with TX/RX channels.
[ 17.645695] FPGA manager framework
[ 17.649002] Advanced Linux Sound Architecture Driver Initialized.
[ 17.655225] Bluetooth: Core ver 2.22
[ 17.658510] NET: Registered protocol family 31
[ 17.662911] Bluetooth: HCI device and connection manager initialized
[ 17.669228] Bluetooth: HCI socket layer initialized
[ 17.674070] Bluetooth: L2CAP socket layer initialized
[ 17.679091] Bluetooth: SCO socket layer initialized
[ 17.684188] clocksource: Switched to clocksource arch_sys_counter
[ 17.690116] VFS: Disk quotas dquot_6.6.0
[ 17.693917] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 17.704488] NET: Registered protocol family 2
[ 17.705317] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 17.713551] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 17.721566] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 17.729001] TCP: Hash tables configured (established 32768 bind 32768)
[ 17.735204] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 17.741864] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 17.749035] NET: Registered protocol family 1
[ 17.753508] RPC: Registered named UNIX socket transport module.
[ 17.759105] RPC: Registered udp transport module.
[ 17.763770] RPC: Registered tcp transport module.
[ 17.768440] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 17.775390] PCI: CLS 0 bytes, default 64
[ 17.778842] Trying to unpack rootfs image as initramfs...
[ 18.817538] Freeing initrd memory: 23860K
[ 18.837725] Initialise system trusted keyrings
[ 18.837846] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 18.843616] NFS: Registering the id_resolver key type
[ 18.847978] Key type id_resolver registered
[ 18.852108] Key type id_legacy registered
[ 18.856105] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 18.862760] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 18.901806] NET: Registered protocol family 38
[ 18.901849] xor: measuring software checksum speed
[ 18.909121] 8regs : 2626 MB/sec
[ 18.912851] 32regs : 3110 MB/sec
[ 18.917732] arm64_neon : 2645 MB/sec
[ 18.918335] xor: using function: 32regs (3110 MB/sec)
[ 18.923359] Key type asymmetric registered
[ 18.927423] Asymmetric key parser 'x509' registered
[ 18.932287] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 18.939621] io scheduler mq-deadline registered
[ 18.944117] io scheduler kyber registered
[ 18.949801] ps_pcie_dma init()
[ 18.973733] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 18.975404] Serial: AMBA driver
[ 18.979397] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 18.987732] brd: module loaded
[ 18.991757] loop: module loaded
[ 18.992457] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 18.997510] libphy: Fixed MDIO Bus: probed
[ 19.001397] tun: Universal TUN/TAP device driver, 1.6
[ 19.005327] CAN device driver interface
[ 19.009643] usbcore: registered new interface driver asix
[ 19.014446] usbcore: registered new interface driver ax88179_178a
[ 19.020483] usbcore: registered new interface driver cdc_ether
[ 19.026277] usbcore: registered new interface driver net1080
[ 19.031899] usbcore: registered new interface driver cdc_subset
[ 19.037783] usbcore: registered new interface driver zaurus
[ 19.043327] usbcore: registered new interface driver cdc_ncm
[ 19.049715] usbcore: registered new interface driver uas
[ 19.054227] usbcore: registered new interface driver usb-storage
[ 19.060762] rtc_zynqmp ffa60000.rtc: registered as rtc0
[ 19.065371] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-01T00:01:12 UTC (72)
[ 19.073527] i2c /dev entries driver
[ 19.078230] usbcore: registered new interface driver uvcvideo
[ 19.082658] USB Video Class driver (1.1.1)
[ 19.087451] Bluetooth: HCI UART driver ver 2.3
[ 19.091137] Bluetooth: HCI UART protocol H4 registered
[ 19.096238] Bluetooth: HCI UART protocol BCSP registered
[ 19.101527] Bluetooth: HCI UART protocol LL registered
[ 19.106618] Bluetooth: HCI UART protocol ATH3K registered
[ 19.111992] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 19.118241] Bluetooth: HCI UART protocol Intel registered
[ 19.123584] Bluetooth: HCI UART protocol QCA registered
[ 19.128784] usbcore: registered new interface driver bcm203x
[ 19.134406] usbcore: registered new interface driver bpa10x
[ 19.139943] usbcore: registered new interface driver bfusb
[ 19.145392] usbcore: registered new interface driver btusb
[ 19.150852] usbcore: registered new interface driver ath3k
[ 19.156337] EDAC MC: ECC not enabled
[ 19.159938] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
[ 19.172268] sdhci: Secure Digital Host Controller Interface driver
[ 19.178069] sdhci: Copyright(c) Pierre Ossman
[ 19.182396] sdhci-pltfm: SDHCI platform and OF driver helper
[ 19.188331] ledtrig-cpu: registered to indicate activity on CPUs
[ 19.193997] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 19.200423] zynqmp_firmware_probe Platform Management API v1.1
[ 19.206183] zynqmp_firmware_probe Trustzone version v1.0
[ 19.260792] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
[ 19.260892] zynqmp_aes firmware:zynqmp-firmware:zynqmp-aes: AES Successfully Registered
[ 19.268847] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
[ 19.274988] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
[ 19.280528] usbcore: registered new interface driver usbhid
[ 19.285906] usbhid: USB HID core driver
[ 19.292151] ARM CCI_400_r1 PMU driver probed
[ 19.292582] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[ 19.300745] usbcore: registered new interface driver snd-usb-audio
[ 19.307224] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 19.314433] Initializing XFRM netlink socket
[ 19.318317] NET: Registered protocol family 10
[ 19.323053] Segment Routing with IPv6
[ 19.326413] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 19.332494] NET: Registered protocol family 17
[ 19.336601] NET: Registered protocol family 15
[ 19.341011] can: controller area network core
[ 19.345347] NET: Registered protocol family 29
[ 19.349739] can: raw protocol
[ 19.352678] can: broadcast manager protocol
[ 19.356833] can: netlink gateway - max_hops=1
[ 19.361259] Bluetooth: RFCOMM TTY layer initialized
[ 19.366007] Bluetooth: RFCOMM socket layer initialized
[ 19.371113] Bluetooth: RFCOMM ver 1.11
[ 19.374828] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 19.380099] Bluetooth: BNEP filters: protocol multicast
[ 19.385291] Bluetooth: BNEP socket layer initialized
[ 19.390220] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 19.396104] Bluetooth: HIDP socket layer initialized
[ 19.401134] 9pnet: Installing 9P2000 support
[ 19.405288] Key type dns_resolver registered
[ 19.409716] registered taskstats version 1
[ 19.413581] Loading compiled-in X.509 certificates
[ 19.419201] Btrfs loaded, crc32c=crc32c-generic
[ 19.430846] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 48, base_baud = 6249999) is a xuartps
[ 19.439865] printk: console [ttyPS1] enabled
[ 19.439865] printk: console [ttyPS1] enabled
[ 19.444160] printk: bootconsole [cdns0] disabled
[ 19.444160] printk: bootconsole [cdns0] disabled
[ 19.453442] of-fpga-region fpga-full: FPGA Region probed
[ 19.463630] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[ 19.470797] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[ 19.477944] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[ 19.485095] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[ 19.492254] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[ 19.499406] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[ 19.506561] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[ 19.513715] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[ 19.520940] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[ 19.528087] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[ 19.535243] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[ 19.542391] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[ 19.549544] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[ 19.556701] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[ 19.563849] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[ 19.571003] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[ 19.578390] xilinx-zynqmp-dpdma fd4c0000.dma-controller: Xilinx DPDMA engine is probed
[ 19.586493] xilinx-psgtr fd400000.phy: Invalid reference clock number 0
[ 19.593101] zynqmp-display fd4a0000.display: failed to get PHY lane 0
[ 19.599568] zynqmp-display: probe of fd4a0000.display failed with error -22
[ 19.608769] spi-nor spi0.0: trying to lock already unlocked area
[ 19.614777] spi-nor spi0.0: mt25qu512a (65536 Kbytes)
[ 19.619883] 16 fixed-partitions partitions found on MTD device spi0.0
[ 19.626314] Creating 16 MTD partitions on "spi0.0":
[ 19.631186] 0x000000000000-0x000000080000 : "Image Selector"
[ 19.637003] zynqmp_pll_disable() clock disable failed for dpll_int, ret = -13
[ 19.645089] 0x000000080000-0x000000100000 : "Image Selector Golden"
[ 19.651936] tpm_tis_spi spi2.0: 2.0 TPM (device-id 0x1B, rev-id 22)
[ 19.658792] 0x000000100000-0x000000120000 : "Persistent Register"
[ 19.665857] 0x000000120000-0x000000140000 : "Persistent Register Backup"
[ 19.673374] 0x000000140000-0x000000200000 : "Open_1"
[ 19.679111] 0x000000200000-0x000000f00000 : "Image A (FSBL, PMU, ATF, U-Boot)"
[ 19.687334] 0x000000f00000-0x000000f80000 : "ImgSel Image A Catch"
[ 19.694385] 0x000000f80000-0x000001c80000 : "Image B (FSBL, PMU, ATF, U-Boot)"
[ 19.702490] 0x000001c80000-0x000001d00000 : "ImgSel Image B Catch"
[ 19.709796] 0x000001d00000-0x000001e00000 : "Open_2"
[ 19.715547] 0x000001e00000-0x000002000000 : "Recovery Image"
[ 19.722069] 0x000002000000-0x000002200000 : "Recovery Image Backup"
[ 19.729675] 0x000002200000-0x000002220000 : "U-Boot storage variables"
[ 19.736495] random: fast init done
[ 19.740356] 0x000002220000-0x000002240000 : "U-Boot storage variables backup"
[ 19.748352] 0x000002240000-0x000002250000 : "SHA256"
[ 19.754117] 0x000002250000-0x000004000000 : "User"
[ 19.760347] macb ff0e0000.ethernet: Not enabling partial store and forward
[ 19.767265] macb ff0e0000.ethernet: invalid hw address, using random
[ 19.777999] libphy: MACB_mii_bus: probed
[ 19.781960] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 37 (26:12:4d:71:f4:1b)
[ 19.792256] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[ 19.798822] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
[ 19.805336] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
[ 19.811833] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
[ 19.835652] at24 1-0050: supply vcc not found, using dummy regulator
[ 19.842385] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 19.847877] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[ 19.855618] xhci-hcd xhci-hcd.1.auto: hcc params 0x0238f625 hci version 0x100 quirks 0x0000000002010010
[ 19.865022] xhci-hcd xhci-hcd.1.auto: irq 55, io mem 0xfe200000
[ 19.871188] at24 1-0050: 8192 byte 24c64 EEPROM, writable, 1 bytes/write
[ 19.878018] at24 1-0051: supply vcc not found, using dummy regulator
[ 19.884531] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 19.892792] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 19.900007] usb usb1: Product: xHCI Host Controller
[ 19.904875] usb usb1: Manufacturer: Linux 5.10.0-xilinx-v2021.1 xhci-hcd
[ 19.911571] usb usb1: SerialNumber: xhci-hcd.1.auto
[ 19.916784] at24 1-0051: 8192 byte 24c64 EEPROM, writable, 1 bytes/write
[ 19.923713] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 39
[ 19.930831] hub 1-0:1.0: USB hub found
[ 19.934598] hub 1-0:1.0: 1 port detected
[ 19.938703] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 19.944189] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 19.951843] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 19.958547] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer with timeout 60s
[ 19.965998] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer with timeout 10s
[ 19.977643] gpio-keys gpio-keys: Button without keycode
[ 19.982883] gpio-keys: probe of gpio-keys failed with error -22
[ 19.988855] of_cfs_init
[ 19.991307] of_cfs_init: OK
[ 19.994224] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 20.002239] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 20.011790] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[ 20.020052] usb usb2: New USB device s
[ 20.137127] mmcblk1: p1 p2
[ 20.190178] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 20.196711] clk: Not disabling unused clocks
[ 20.201206] ALSA device list:
[ 20.204158] No soundcards found.
[ 20.207828] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 20.216436] cfg80211: failed to load regulatory.db
[ 20.222027] Freeing unused kernel memory: 2112K
[ 20.232221] Run /init as init process
[ 20.307179] random: python3: uninitialized urandom read (24 bytes read)
[ 20.929719] random: python3: uninitialized urandom read (24 bytes read)
[ 21.515975] random: python3: uninitialized urandom read (24 bytes read)
[ 22.102172] random: python3: uninitialized urandom read (24 bytes read)
SOM:SM-K26-XCL2GC-ED CARRIER_CARD:sck-kv-g REVISION:B
Applying zy[ 22.688691] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /compatible
nqmp-sck-kv-g-revB.dtbo
[ 22.698051] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/i2c@ff030000/pinctrl-names
[ 22.710879] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/i2c@ff030000/pinctrl-0
[ 22.721222] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/i2c@ff030000/pinctrl-1
[ 22.731560] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/i2c@ff030000/scl-gpios
[ 22.741901] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/i2c@ff030000/sda-gpios
[ 22.752401] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/phy@fd400000/status
[ 22.762480] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/phy@fd400000/clocks
[ 22.772565] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/phy@fd400000/clock-names
[ 22.783076] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/status
[ 22.793510] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/phy-names
[ 22.804200] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/display@fd4a0000/phys
[ 22.814455] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/dma-controller@fd4c0000/status
[ 22.825489] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/status
[ 22.835662] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/pinctrl-names
[ 22.846441] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/pinctrl-0
[ 22.856867] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/status
[ 22.868247] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/dr_mode
[ 22.879721] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/snps,usb3_lpm_capable
[ 22.892418] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/phy-names
[ 22.904060] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/phys
[ 22.915268] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/usb0@ff9d0000/dwc3@fe200000/maximum-speed
[ 22.927262] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/status
[ 22.937340] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/pinctrl-names
[ 22.948032] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/pinctrl-0
[ 22.958377] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/no-1-8-v
[ 22.968634] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/disable-wp
[ 22.979065] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/xlnx,mio-bank
[ 22.989750] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/clk-phase-sd-hs
[ 23.000608] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/clk-phase-uhs-sdr25
[ 23.011816] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/mmc@ff170000/clk-phase-uhs-ddr50
[ 23.023029] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/ethernet@ff0e0000/status
[ 23.033541] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/ethernet@ff0e0000/pinctrl-names
[ 23.044659] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/ethernet@ff0e0000/pinctrl-0
[ 23.055431] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/ethernet@ff0e0000/phy-handle
[ 23.066290] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/ethernet@ff0e0000/phy-mode
[ 23.076994] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /firmware/zynqmp-firmware/pinctrl/status
[ 23.088623] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/serial@ff010000/status
[ 23.098964] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/serial@ff010000/pinctrl-names
[ 23.109916] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/serial@ff010000/pinctrl-0
[ 23.120528] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/u14
[ 23.129928] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/usbhub
[ 23.139588] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_0
[ 23.149420] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_1
[ 23.159245] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_2
[ 23.169072] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_3
[ 23.178897] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_4
[ 23.188723] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/si5332_5
[ 23.198552] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/mdio
[ 23.208042] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/phy0
[ 23.217534] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_uart1_default
[ 23.228501] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_i2c1_default
[ 23.239377] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_i2c1_gpio
[ 23.249993] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_gem3_default
[ 23.260869] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_usb0_default
[ 23.271745] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /__symbols__/pinctrl_sdhci1_default
[ 23.308732] zynqmp-pinctrl firmware:zynqmp-firmware:pinctrl: zynqmp pinctrl initialized
fsck: fsck.ext4: No such file or directory
[ 23.392127] EXT4-fs (mmcblk1p2): recovery complete
[ 23.403827] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
INIT: version 2.97 booting
Starting udev
[ 24.777420] udevd[353]: starting version 3.2.9
[ 24.824314] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.831666] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.838136] random: udevd: uninitialized urandom read (16 bytes read)
[ 24.929602] udevd[354]: starting eudev-3.2.9
[ 25.211048] dpu: loading out-of-tree module taints kernel.
[ 25.220698] xlnx-dpu: Xilinx Deep Learning Processing Unit driver
[ 25.236241] xlnx-dpu 8f000000.dpuczdx8g: found 1 dpu @275MHz and 0 softmax, dpu registered as /dev/dpu successfully
[ 27.019814] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 27.244196] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 30.629265] macb ff0e0000.ethernet eth0: Could not attach PHY (-19)
Starting tcf-agent: OK
PetaLinux 2021.1 xilinx-k26-som-2021_1 ttyPS1
xilinx-k26-som-2021_1 login: petalinux
You are required to change your password immediately (administrator enforced)
New password:
Retype new password:
xilinx-k26-som-2021_1:~$ ls
xilinx-k26-som-2021_1:~$ show_dpu
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0309 12:35:24.941711 1224 dpu_controller_dnndk.cpp:68] Check failed: fd >= 0 (-1 vs. 0) cannot open /dev/dpu
*** Check failure stack trace: ***
Aborted
xilinx-k26-som-2021_1:~$ sudo su
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
xilinx-k26-som-2021_1:/home/petalinux# show_dpu
device_core_id=0 device= 0 core = 0 fingerprint = 0x1000020f6014407 batch = 1 full_cu_name=unknown:dpu0
xilinx-k26-som-2021_1:/home/petalinux# xdputil query
{
"DPU IP Spec":{},
"VAI Version":{
"libvart-runner.so":"Xilinx vart-runner Version: 2.0.0-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-10-18-06:47:53 ",
"libvitis_ai_library-dpu_task.so":"Xilinx vitis_ai_library dpu_task Version: 2.0.0-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-01-20 07:11:10 [UTC] ",
"libxir.so":"Xilinx xir Version: xir-d02dcb6041663dbc7ecbc0c6af9fafa087a789de 2022-10-18-06:41:42",
"target_factory":"target-factory.2.0.0 d02dcb6041663dbc7ecbc0c6af9fafa087a789de"
},
"kernels":[
{
"DPU Arch":"DPUCZDX8G_ISA1_B4096_0101001FF6014407",
"DPU Frequency (MHz)":275,
"cu_addr":"0x8f000000",
"cu_idx":0,
"fingerprint":"0x101001ff6014407",
"is_vivado_flow":true,
"name":"DPU Core 0"
}
]
}
xilinx-k26-som-2021_1:/home/petalinux# ls
xilinx-k26-som-2021_1:/home/petalinux# cd ../root/
xilinx-k26-som-2021_1:~# ls
app dpu_sw_optimize
xilinx-k26-som-2021_1:~# cd app
xilinx-k26-som-2021_1:~/app# ls
img model samples
xilinx-k26-som-2021_1:~/app# cp ./model/resnet50.xmodel .
xilinx-k26-som-2021_1:~/app# env LD_LIBRARY_PATH=samples/lib samples/bin/resnet50 img/bellpeppe-994958.JPEG
score[945] = 0.992235 text: bell pepper,
score[941] = 0.00315807 text: acorn squash,
score[943] = 0.00191546 text: cucumber, cuke,
score[939] = 0.000904801 text: zucchini, courgette,
score[949] = 0.00054879 text: strawberry,
xilinx-k26-som-2021_1:~/app#
Kudos to Nikhil@LogicTronix.com and Krishna@LogicTronix.com for creating this in-depth Tutorial on DPU-TRD!For any queries on DPU TRD with VIVADO/Vitis Flow or ML Acceleration with MPSoC, please contact us at info@logictronix.com.
LogicTronix is Xilinx Certified Partner and Design Service Partner for Kria SoM for AI/ML!
Comments