Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Changes between Version 1 and Version 2 of Boards/Zynq - Zedboard


Ignore:
Timestamp:
02/08/17 10:19:15 (7 years ago)
Author:
Chris Johns
Comment:

Add more detail

Legend:

Unmodified
Added
Removed
Modified
  • Boards/Zynq - Zedboard

    v1 v2  
    6565The [http://www.denx.de/wiki/U-Boot U-Boot] boot loader supports the Zed and Microzed boards.
    6666
    67 I do not used the Xilinx version of u-boot and I do not use any binary builds available for download.
     67I do not used the Xilinx version of U-Boot they provide on Github. I also do not use any binary builds available for download.
    6868
    6969== Building U-Boot ==
    7070
    71 Get the source code:
     71To build U-Boot for an ARM processor you need an ARM cross-compiler. The following list what you need to install for your host.
     72
     73
     74||= Host OS =||= Commands =||
     75|| FreeBSD || {{{ $ pkg install arm-none-eabi-binutils arm-none-eabi-gcc }}}
     76
     77 ''Please add your host if not present.''
     78
     79Get the source code from the project's git repository:
    7280
    7381{{{
     
    7785My last working build is `b615267633996a9410a88b54a55965d8b021f6f8`.
    7886
    79 You need a suitable `arm-none-eabi` tool set for your development host.
    80 
    81 === FreeBSD ===
     87Change into the `u-boot`directory and run the following script `mk-zed`:
    8288
    8389{{{
    84 $ pkg info arm-none-eabi*
    85 arm-none-eabi-binutils-2.25.1_3,1
    86 arm-none-eabi-gcc-5.3.0
     90$ cat ../mk-zed
     91#! /bin/sh
     92gmake CROSS_COMPILE=arm-none-eabi- distclean
     93gmake CROSS_COMPILE=arm-none-eabi- zynq_zed_config
     94gmake CROSS_COMPILE=arm-none-eabi- HOSTCC=cc
    8795}}}
     96
     97I use `gmake` because `make` on FreeBSD is a BSD `make`. The `HOSTCC` is  added to the U-Boot build command line because the FreeBSD's default compiler which is `clang` and U-Boot default to `gcc`.
     98
     99The files created you need to use are:
     100
     101||= File =|| Description =||
     102|| `spl/boot.bin` || U-Boot's FSBL ||
     103|| `arch/arm/dts/zynq-zed.dtb` || Zed board device tree blob ||
     104|| `arch/arm/dts/zynq-microzed.dtb` || Microzed board device tree blob ||
     105|| `u-boot.img` || U-Boot executable loaded by the U-Boot FSBL ||
     106
     107== U-Boot Environment ==
     108
     109TDB
     110
     111== SD Card Set Up ==
     112
     113Create a MBR DOSFS partition on an SD card with enough space to hold the files needed. The card I have:
     114
     115{{{
     116# df -h /dev/da0s1
     117Filesystem    Size    Used   Avail Capacity  Mounted on
     118/dev/da0s1     64M    1.3M     63M     2%    /mnt/sd
     119}}}
     120
     121Copy the files:
     122
     123{{{
     124# cp spl/boot.bin /mnt/sd/boot.bin
     125# cp arch/arm/dts/zynq-microzed.dtb /mnt/sd/system.dtb
     126# cp u-boot.img /mnt/sd/u-boot.img
     127}}}
     128
     129= RTEMS Application =
     130
     131TDB