cancel
Showing results for 
Search instead for 
Did you mean: 

General Discussions

19Pietruszka20
Journeyman III

Smartcamera on kria kv260 petalinux 2023, and also communicate with pmod with aio.h library or gpio?

Hello, 

This is my first problem, if anyone could help or point something in this i would really appreciate it:

I am trying to start smartcamera on kria kv260 board which has loaded Petalinux 2023 image on sd card, flashed from BalenaEtcher program. The problem is that Petalinux 2023 sudo dnf command couldn't download repositories. Can i do something to make it work? I mean i cannot build there anything, because it is linux with low memory, so tutorials on internet don't work or i am just dumb. One time i loaded petalinux 2021 on sd card and inserted it into board, and then i could download smartcamera repositories using dnf command. I tried also on petalinux 2023 download gstreamer packages and somehow make it work but i don't have enough knowledge to make it work. Also i tried to install specific rpm package from xilinx repositories from 2021 year from smartcamera on petalinux 2023, but still didn't work (maybe i miss something or it is not good option). 

I want to point that petalinux command and sudo apt get not work because it is not ubuntu and it is already builded image, so i don't need to use petalinux-build etc i guess.

This is my second problem, if anyone could help or point something in this i would really appreciate it:

I have Vitis and Vivado software on windows. I built hardware platform with Vivado, then exported it to Vitis 2023 which looks diffrent from Vitis 2021 tutorials. In Vitis 2023, somehow i managed to work build platform and also build simple hello world application for linux (didn't choose sysroot, and then automatically c/c++ libraries was added from windows path) and then ran it on my kria kv 260 board. Vitis transfered hello_world.elf file to my board when i was running it. Vitis see c/c++ libraries which i have on windows pc. When i try use xgpio.h file by including it by hand in my c file in Vitis, there is always errors, for example xparameters.h is in standalone folder, so program don't see xparameters.h header file. I have linux on kria kv260 board not standalone, if i think correctly, i don't know maybe i should change it to standalone. I also read that aio.h is for realtime process, but i don't know how to use it with pmod. Is there any way? Vitis see aio.h header file if i include it. 

Firstly i need to connect to pmod on kria kv260 board some switches and then probably some motor.  For example if i turn on switches, i want to read this input from functions from aio.h library and then for example write to output diffrent words depending on which input is turned on.

Better use xpgio.h or aio.h to work with pmod or something else? and do i need to implement something for this in vivado? I tried already, but still vitis cannot see properly xpgio library. Maybe i should include path to xpgio from vitis somehow? How to do that? C/C++ libraries was automatically attached from toolchain. Do i need to use vitis hls, transfer it to vivado and not write any code on pmod in normal vitis?

Best regards Michael

0 Likes
1 Reply

Separate help site for xilinx, https://www.xilinx.com/support.html

 

Ryzen 5 5600x, B550 aorus pro ac, Hyper 212 black, 2 x 16gb F4-3600c16dgtzn kit, NM790 2TB, Nitro+RX6900XT, RM850, Win.10 Pro., LC27G55T..
0 Likes