After booting the zc702 board with these images, buildroot prompt will be appear. $ cp output/images/ output/images/sd/Īt this point, the contents of the output/images/sd folder can be copied on an SD card, and used to boot the ZC702 board. $ cp output/images/zynq-zc702.dtb output/images/sd/devicetree.dtb $ cp output/images/u-boot.img output/images/sd/u-boot.img $ cp output/images/uImage output/images/sd $ cp output/images/boot.bin output/images/sd For example, this will copy all images to a sub-folder sd which can be put on an SD card to boot from. Rename the output images to match what is expected by the default u-boot configuration.This will also create a correct boot.bin including the u-boot SPL. output/build/uboot-xilinx-v2015.3/board/xilinx/zynq/ $ cp output/build/uboot-xilinx-v2015.3/board/xilinx/zynq/ZC702_hw_platform/ps7_init_gpl. Add the ps7_init files to the u-boot sources to allow a correct u-boot SPL version to be build.In order to create a bootable image for the ZC702 board, follow these additional steps: The default Buildroot configuration for the ZC702 created above can also build the Linux kernel, u-boot and u-boot SPL. $ cp output/images/ /Ĭreating bootable images for Zynq ZC702 board using U-boot SPL When using this rootfs with prebuilt images from the Xilinx wiki, this file should be renamed as and put on the SD card next to the BOOT.BIN, uImage and devicetree.dtb from the prebuilt images. Ensure that network proxy settings are done properly and all the packages required for Buildroot are installed on the host machine.Īt this point, the generated rootfs output/images/ can be used for your board. It will take some time to download and check required packages. If you encounter an error related to DTC, verify if the host machine has DTC and that the PATH is set to right directory. Build the toolchain and images with the selected setting by doing make.For this note, the images are generated with default configuration settings. Also the subcomponents can be configured here. At this point, the default menuconfig can be used to change the toolchain settings, add packages, etc.Copy following setting flags in file “zc702_defconfig”īR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="xilinx-v2015.3"īR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"īR2_LINUX_KERNEL_INTREE_DTS_NAME="zynq-zc702"īR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xilinx-v2015.3".Create the default configuration file (for ZC702 board).Change the directory to extracted Buildroot directory.Open a Terminal, change the directory to where you copied the Buildroot archive and type the following commands to extract the Buildroot archive.In Linux machines following command can be used to download the archive.Download Buildroot 2015.08 from the link and copy the archive in the Linux working directory.It will create its own toolchain, using the hardfloat ABI, and cross compile the v2015.3 u-boot and kernel from the Xilinx git, using the ZC702 settings and device tree. With the default configuration mentioned below, the tool will create a bootable SD image with the default Buildroot settings and packages. This section describes how to configure and build the custom root filesystem for Xilinx Zynq-7000 AP SoC. Find the overview of the mandatory and optional packages (note that package names may vary for different distributions) in Appendix-A.Ĭonfiguring and building RootFS for Zynq-7000 AP SoC However, certain standard Linux utilities are expected to be already installed on the host system. Before going to run the steps, update the below mentioned packages.īuildroot will build most of the host packages it needs for the compilation. Steps provided in this tech tip are executed in Ubuntu Linux system. Note: Buildroot is designed to run on Linux system. In order to achieve this, Buildroot is able to generate a cross-compilation toolchain, a root filesystem, a Linux kernel image and a boot loader for your target. It can create complete embedded Linux system, containing boot loaders, kernel, devicetree and rootfs. Because of its configurability, it allows you to create a completely customized rootfs, which can then be used with the kernel of your preference. Buildroot is a tool that simplifies and automates the process of building a complete Linux system for an embedded system, using cross-compilation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |