KV260 environment setting
---
1.download ubuntu22.04LTS (img file for kv260)
website: https://ubuntu.com/download/amd

2.transfer img file to SD card (here I use the tool )
tool : https://etcher.balena.io/#download-etcher

 <- img file
after above step , put the SDcard on kv260 ,it will automatically boot up by this img .
3.Enter kv260 , and hold the important item of this system (follow the steps)
- search the items
```
dpkg -l | grep xilinx
```
This cmd will show the important item

- Hold these item
```
sudo apt-mark hold linux-image-5.15.0-1027-xilinx-zynqmp
sudo apt-mark hold linux-modules-5.15.0-1027-xilinx-zynqmp
sudo apt-mark hold linux-headers-5.15.0-1027-xilinx-zynqmp
sudo apt-mark hold linux-image-xilinx-zynqmp
sudo apt-mark hold linux-headers-xilinx-zynqmp
sudo apt-mark hold linux-xilinx-zynqmp
sudo apt-mark hold linux-xilinx-zynqmp-headers-5.15.0-1027
```
- update
```
sudo apt update
sudo apt upgrade -y
```
- check the kernel was not updated (because the img has setup the kernel to fit the board , we don't need to modify it)
```
uname -a
ls -l /boot
```


4.check the version of system
```
cat /etc/os-release
```

5.install the KV260-PYNQ (contain vitis-AI runtime)
ref: https://github.com/Xilinx/Kria-PYNQ
```
git clone https://github.com/Xilinx/Kria-PYNQ.git
```
(we need to cancel the apt update,because xilinx had closed the website of this one)
```
grep -R "packages.xilinx.com/kria/apt"
sudo nano /etc/apt/sources.list.d/xilinx-kria.list
```
=> we need to comment out the " deb [arch=arm64] https://packages.xilinx.com/kria/apt jammy main " cmd
Then we can install PYNQ (juypter notebook)that support Xilinx DPU
```
cd Kria-PYNQ/
sudo bash install.sh -b { KV260 | KR260 | KD240 }
```
This step will spend about an hours .
It will show following log if success.

6.Then you can use jupyternotebook to do host program of this mpsoc

7.Run jupyternotebook to do host program to check whether this system can support DPU.
