]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - README.txt
scripts: include script for applying new FPGA design at runtime.
[fpga/zynq/canbench-sw.git] / README.txt
1 CAN benchmark FPGA design and software for MicroZed board.
2
3 Building
4 ========
5
6 1. Build Hardware Description File (system.hdf)
7
8 The compiled system.hdf file is itself versioned so if you did not modify
9 the system configuration, you do not have to build it.
10
11 1.1 Recreate the Vivado project
12
13   Run this step only once.
14   Make sure you have sourced $VIVADO_INSTALL_DIR/settings.sh.
15
16   $ make system_project
17
18 1.2 Build system.hdf
19
20   $ make system/system.hdf
21
22 2. Configure TFTP server
23
24 3. Configure NFS server
25
26    The server must support NFSv2, otherwise it will not work and
27    no sensible error message will be printed.
28
29 4. Modify module IP, server IPs and paths in u-boot environment and bootscript
30
31   Set the variables "ipaddr", "serverip" in uEnv.txt
32   and "nfsserver", "nfspath" in bootscript.txt.
33
34 5. Modify the NFS server IP and path in bootscript (petalinux/bootscript.txt)
35
36 6.1 Configure PetaLinux and applications
37
38   Make sure you have sourced both $VIVADO_INSTALL_DIR/settings.sh
39   and $PETALINUX_INSTALL_DIR/settings.sh.
40
41   $ make petalinux_config
42
43   You may then configure PetaLinux or its components.
44   Set NFS server path in configuration (TODO: where).
45   The rootfs will be rsynced here by petalinux-build.
46   You may later change the NFS server IP and path in bootscript.
47
48   $ cd petalinux && petalinux-config
49
50 6.2 Build PetaLinux and applications
51
52   $ make petalinux_build
53
54   This should also rsync the rootfs and images to specified locations.
55
56 6. Copy images/linux/{image.ub,top_wrapper.bit,system.dtb,bootscript} into /tftpboot
57
58 7. Copy boot files to SD card
59
60   Copy the boot image (petalinux/images/linux/BOOT.IMG),
61   u-boot environment (petalinux/uEnv.txt)
62   to a FAT32 partition on SD card.
63   The internal QSPI flash may be used instead, however make sure
64   the jumpers on MicroZed board are set appropriately.