Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.18 KB

kv260-console.md

File metadata and controls

86 lines (58 loc) · 2.18 KB

Install Ubuntu 22.04.3 LTS(Console) to Kv260

Downlowd from github

Note: Downloading the entire repository is time consuming, so download only the branch you need.

shell$ wget https://github.com/ikwzm/ZynqMP-FPGA-Ubuntu22.04-Console/archive/refs/tags/v3.0.1.tar.gz
shell$ tar xfz v3.0.1.tar.gz
shell$ cd ZynqMP-FPGA-Ubuntu22.04-Console-3.0.1

File Description

  • target/Kv260/
    • boot/
      • boot.scr : Stage Script file
      • uEnv.txt : U-Boot environment variables for linux boot
      • devicetree-6.1.70-zynqmp-fpga-trial-kv260-revB.dtb : Linux Device Tree Blob
      • devicetree-6.1.70-zynqmp-fpga-trial-kv260-revB.dts : Linux Device Tree Source
  • files/
    • vmlinuz-6.1.70-zynqmp-fpga-trial-2 : Linux Kernel Image
  • ubuntu22.04-console-rootfs.tgz.files/ : Ubuntu 22.04.3 LTS Console Root File System
    • x00 .. x09 : (splited files)

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/Kv260/boot/* /mnt/usb1
shell# gzip -d -c files/vmlinuz-6.1.70-zynqmp-fpga-trial-2 > /mnt/usb1/image-6.1.70-zynqmp-fpga-trial

Make RootFS Partition

shell# (cat ubuntu22.04-console-rootfs.tgz.files/*) | tar xfz - -C /mnt/usb2

Add boot partition mount position to /etc/fstab

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

Change system console

If you want to change the system console, change the "linux_boot_args_console" variable in "/mnt/usb1/uEnv.txt".

Change to serial port
linux_boot_args_console=console=ttyPS1,115200
Change to Motitnor+Keyboard
linux_boot_args_console=console=tty1

Unmount SD-Card

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