Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.53 KB

kr260.md

File metadata and controls

76 lines (57 loc) · 2.53 KB

Kria KR260

Downlowd from github

Note: Downloading the entire repository takes time, so download the source code from https://github.com/ikwzm/ZynqMP-FPGA-Debian11/releases.

shell$ wget https://github.com/ikwzm/ZynqMP-FPGA-Debian11/archive/refs/tags/v1.0.1.tar.gz
shell$ tar xfz v1.0.1.tar.gz
shell$ cd ZynqMP-FPGA-Debian11-1.0.1

File Description

  • target/Kr260/
    • boot/
      • boot.scr : Stage Script file
      • uEnv.txt : U-Boot environment variables for linux boot
      • devicetree-5.15.108-zynqmp-fpga-generic-kr260-revB.dtb : Linux Device Tree Blob
      • devicetree-5.15.108-zynqmp-fpga-generic-kr260-revB.dts : Linux Device Tree Source
  • files/
    • vmlinuz-5.15.108-zynqmp-fpga-generic-5 : Linux Kernel Image
  • debian11-rootfs-vanilla.tgz.files/ : Debian11 Root File System
    • x00 .. x08 : (splited files)
  • debian/
    • linux-image-5.15.108-zynqmp-fpga-generic_5.15.108-zynqmp-fpga-generic-5_arm64.deb : Linux Image Package
    • linux-headers-5.15.108-zynqmp-fpga-generic_5.15.108-zynqmp-fpga-generic-5_arm64.deb : Linux Headers Package
    • fclkcfg-5.15.108-zynqmp-fpga-generic_1.7.2-1_arm64.deb : fclkcfg(1.7.2) Device Driver and Services Package
    • u-dma-buf-5.15.108-zynqmp-fpga-generic_4.4.1-0_arm64.deb : u-dma-buf(4.4.1) Device Driver and Services Package

Format SD-Card

./doc/install/format-disk.md

Write to SD-Card

Mount SD-Card

shell# mount /dev/sdc1 /mnt/usb1
shell# mount /dev/sdc2 /mnt/usb2

Make Boot Partition

shell# cp target/Kr260/boot/*                                    /mnt/usb1
shell# gzip -d -c files/vmlinuz-5.15.108-zynqmp-fpga-generic-5 > /mnt/usb1/image-5.15.108-zynqmp-fpga-generic

Make RootFS Partition

shell# cat debian11-rootfs-vanilla.tgz.files/* | tar xfz - -C /mnt/usb2
shell# mkdir                                                  /mnt/usb2/home/fpga/debian
shell# cp debian/*                                            /mnt/usb2/home/fpga/debian

Add boot partition mount position to /etc/fstab

shell# mkdir /mnt/usb2/mnt/boot
shell# cat <<EOT >> /mnt/usb2/etc/fstab
/dev/sda1	/mnt/boot	auto	defaults	0	0
EOT

Unmount SD-Card

shell# umount /mnt/usb1
shell# umount /mnt/usb2

Install Debian Packages

./doc/install/debian-packages.md