Matjaz Zibert
Created May 7, 2025 © GPL3+

Project-3: Boot Kria Over Network Using TFTP and NFS Servers

Speed up development by booting the AMD Kria KR260 Starter Kit using kernel and rootfs over the network via TFTP and NFS servers.

ExpertFull instructions provided3 hours66
Project-3: Boot Kria Over Network Using TFTP and NFS Servers

Things used in this project

Hardware components

AMD Kria™ KR260 Robotics Starter Kit
AMD Kria™ KR260 Robotics Starter Kit
×1

Software apps and online services

PetaLinux
AMD PetaLinux
Docker Engine

Story

Read more

Code

boot.cmd

Plain text
A script containing U-Boot commands that automate the boot process—such as setting environment variables and loading the kernel over TFTP. It’s compiled into a binary boot.scr file that the Kria board reads from the SD card during boot. Use mkimage to convert boot.cmd into boot.scr before copying it to the SD card.
# Script for U-Boot
#
# To generate boot.scr use:
# mkimage -A arm64 -T script -C none -n "Kria Netboot" -d boot.cmd boot.scr
# 

# configuration
setenv ipaddr <kria-ip-address>
setenv serverip <host-ip-address>

setenv path_to_nfsroot /path/to/kria-petalinux/workspace/nfsroot

setenv kernel_addr 0x00200000
setenv fdt_addr 0x00100000

tftpboot ${kernel_addr} Image
tftpboot ${fdt_addr} system.dtb

setenv bootargs console=ttyPS0,115200 root=/dev/nfs rw rootwait nfsroot=${serverip}:${path_to_nfsroot},v3 ip=on cma=900M init=/sbin/init

booti ${kernel_addr} - ${fdt_addr}

Credits

Matjaz Zibert
14 projects • 31 followers
Hardware Engineer with Software Development Skills, Extensive background in telecommunications, FPGA integration, Callsign S59MZ (Ham-Radio)

Comments