Important! Tag the page

Important! All External Links should open in a new tab/window; all Internal Links to Xilinx wiki pages, should open in the same tab/window.

<Insert introduction text here>
This wiki page introduce how to run the OpenWrt on the Xilinx ZC702 board. Now the OpenWrt supports three Xilinx Zynq7000 boards, ZC702, Zedboard, Zybo. It is done by the patch from Jason Wu <jason.wu.misc@gmail.com>

Build the Image

Get the source codes

$git clone https://github.com/openwrt/openwrt.git

Enter the root directory of the git source code.
$cd openwrt
pull the latest code in default "master" branch
$git pull

Get all the latest package (Refer to the README)
$cp feeds.conf.default feeds.conf
$./scripts/feeds update -a
$./scripts/feeds install -a

Config for Zynq7000/ZC702

Please use "make menuconfig" to configure your appreciated configuration for the toolchain and firmware.
$make menuconfig
Chose Target System as Xilinx Zynq 7000 SoCs,
Chose Target Profile as ZC702,
OpenWrt1.png

Chose ramdisk as the Target Images,
OpenWrt2.png


Build the image

Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain, the kernel and all choosen applications.

$make

The image files are built out in ./bin/zynq/ like that.
OpenWrt3.PNG


File list
zynq-zc702-fit.itb
FIT uImage
zynq-zc702-uImage
legacy uImage
zynq-zc702-zImage
zImage
zynq-zc702-system.dtb
dtb file
zynq-zc702-zc702-rootfs.tar.gz
rootfs for ramdisk
zynq-zc702-uramdisk.image.gz
rootfs in ramdisk
uboot-zynq-zc702
uboot files

Boot it On ZC702


  • Re use BOOT.BIN of pre-built of 2016.4 release
  • Copy BOOT.BIN to the SD card
  • Copy zynq-zc702-fit.itb and BOOT.bin to SD card
  • Power on zc702 and stop at u-boot CLI
  • Load kernel image (uImage in FIT format)
    • Run "fatload mmc 0 0x20008000 zynq-zc702-fit.itb"
  • Boot the kernel
    • Run "bootm 0x20008000

  • rename zynq-zc702-fit.itb to image.ub for auto boot.
  • use "mkimage -l zynq-zc702-fit.itb" to get the details of the itb image.

TBC

Other solution
1. There is a layer named meta-openwrt for yocto project. We may use this layer for Xilinx Yocto and petalinux environment.
2. Only re use rootfs built out by OpenWrt in Petalinux project

Related Links