]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - README.txt
system: added CAN crossbar IP
[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. Build PetaLinux and applications
23
24   Make sure you have sourced both $VIVADO_INSTALL_DIR/settings.sh
25   and $PETALINUX_INSTALL_DIR/settings.sh.
26
27   $ make petalinux_config
28
29   You may then configure PetaLinux or its components.
30   Set NFS server path in configuration (TODO: where).
31   The rootfs will be rsynced here by petalinux-build.
32   You may later change the NFS server IP and path in bootscript.
33
34   $ cd petalinux && petalinux-config
35
36
37 3. Configure TFTP server
38
39 4. Configure NFS server
40
41    The server must support NFSv2, otherwise it will not work and
42    no sensible error message will be printed.
43
44 5. Modify module IP, server IPs and paths in u-boot environment and bootscript
45
46   Set the variables "ipaddr", "serverip" in uEnv.txt
47   and "nfsserver", "nfspath" in bootscript.txt.
48
49 6. Copy images/linux/{image.ub,top_wrapper.bit,system.dtb,bootscript} into /tftpboot
50
51 7. Copy boot files to SD card
52
53   Copy the boot image (petalinux/images/linux/BOOT.IMG),
54   u-boot environment (petalinux/uEnv.txt)
55   to a FAT32 partition on SD card.
56   The internal QSPI flash may be used instead, however make sure
57   the jumpers on MicroZed board are set appropriately.
58