WP 1 Documentation Booting Petalinux from TFTP and
WP 1 - Documentation Booting Petalinux from TFTP and using Network file system Section for developers Zynq 7020 R. Assiro
Boot a Peta. Linux Image on Hardware with Trivial File Trasfer Protocoll (TFTP) TFTP boot saves a lot of time because it is much faster than booting through JTAG and you don’t have to flash the image for every change in kernel source. This section assumes that the following prerequisites have been satisfied: - FSBL installed on QSPI partition - (Bitstream file is optional) - UBOOT installed on QSPI partition - UUB Ethernet connection works - UUB console connection works R. Assiro
Running Petalinux (QSPI memory map) First Stage Boot Loader FSBL. elf RUN Bitstream (optional but neede final) design_wrapper. bit All of this file are generated in petalinux compliling process. I will describe this process in my next document. The QSPI memory allocation: FBSL from the address 0 x 00001700 runs U-boot for the second stage of the boot Second stage bootloader U-BOOT U-boot. elf RUN Kernel start address 0 x 00520000 Linux Kernel Devicetree. dtb Image. ub To build a linux image for QSPI memory on UUB’s Zynq you need: Software Xilinx SDK Files: - FSBL (generated by petalinux builder) - Bitstream file (generated from Vivado for the PL side of the FPGA) - Universal Booloader for Zynq (folder images of petalinux builder) - Kernel image (z. Image) - Device tree file and image of root file system compressed. U-Boot runs automatically the kernel image from the address memory 0 x 520000 of the QSPI flash. (to change this parameter I think is necessary to recompile U-BOOT). By serial terminal windows is possible to stop the process to control U-boot directly. For developing is possible to run Petalinux (Image. ub) by TFTP istead the QSPI. RAM Disk image (compressed) rootfs. cpio. gz R. Assiro
QSPI Flash Memory partitions Image. ub generated from petalinux build Memory Address 0 x 0000 QSPI memory map Header zone FSBL 0 x 00015740 Image. ub 0 x 00400000 bitstream U-boot 0 x 00520000 KERNEL Devicetre. dtb Image. ub Root File System R. Assiro
Boot a Petalinux image on UUB with TFTP Jtag USB Serial console USB LAN Network R. Assiro When U-boot is started. UUB cans get a IP number from Network. This can be done using the following command: U-Boot – Petalinux> print serverip Set the server IP address to the host address with: U-Boot – Petalinux> set serverip <host ip addr> U-Boot – Petalinux> saveenv Boot the kernel from your host U-Boot – Petalinux> run netboot
- Slides: 5