]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/commitdiff
updated bootscript, added "How to build" to README.txt
authorMartin Jerabek <jerabma7@fel.cvut.cz>
Tue, 29 Mar 2016 19:22:07 +0000 (21:22 +0200)
committerMartin Jerabek <jerabma7@fel.cvut.cz>
Wed, 30 Mar 2016 17:54:59 +0000 (19:54 +0200)
README.txt
petalinux/bootscript.txt

index f3d86a22d02fdc8c824d0208f6ce6162b004ff6b..e0b6dbab02301ebc8f4f215f8d57b38a12a83a16 100644 (file)
@@ -1 +1,58 @@
 CAN benchmark FPGA design and software for MicroZed board.
+
+Building
+========
+
+1. Build Hardware Description File (system.hdf)
+
+The compiled system.hdf file is itself versioned so if you did not modify
+the system configuration, you do not have to build it.
+
+1.1 Recreate the Vivado project
+
+  Run this step only once.
+  Make sure you have sourced $VIVADO_INSTALL_DIR/settings.sh.
+
+  $ make system_project
+
+1.2 Build system.hdf
+
+  $ make system/system.hdf
+
+2. Build PetaLinux and applications
+
+  Make sure you have sourced both $VIVADO_INSTALL_DIR/settings.sh
+  and $PETALINUX_INSTALL_DIR/settings.sh.
+
+  $ make petalinux_config
+
+  You may then configure PetaLinux or its components.
+  Set NFS server path in configuration (TODO: where).
+  The rootfs will be rsynced here by petalinux-build.
+  You may later change the NFS server IP and path in bootscript.
+
+  $ cd petalinux && petalinux-config
+
+
+3. Configure TFTP server
+
+4. Configure NFS server
+
+   The server must support NFSv2, otherwise it will not work and
+   no sensible error message will be printed.
+
+5. Modify module IP, server IPs and paths in u-boot environment and bootscript
+
+  Set the variables "ipaddr", "serverip" in uEnv.txt
+  and "nfsserver", "nfspath" in bootscript.txt.
+
+6. Copy images/linux/{image.ub,top_wrapper.bit,system.dtb,bootscript} into /tftpboot
+
+7. Copy boot files to SD card
+
+  Copy the boot image (petalinux/images/linux/BOOT.IMG),
+  u-boot environment (petalinux/uEnv.txt)
+  to a FAT32 partition on SD card.
+  The internal QSPI flash may be used instead, however make sure
+  the jumpers on MicroZed board are set appropriately.
+
index 2f7bce88bad0261533bd00e60c68507f79d6501d..3e1e937a1670510a9a9e26345fcc8523f2aa5931 100644 (file)
@@ -4,6 +4,13 @@ setenv bitstream_image top_wrapper.bit
 setenv dtb_img system.dtb
 setenv kernel_img image.ub
 
+setenv nfsserverip 192.168.1.75
+setenv nfspath /export/canbench
+
+# Comment out if out want to use compiled-in values.
+# If duplicate parameters are present, the later will take effect.
+setenv bootargs ${bootargs} ip=${ipaddr} nfsroot=${nfsserverip}:${nfspath}
+
 setenv bitstream_load_address 0x04000000
 
 setenv bitstream_tftp 'tftpboot ${bitstream_load_address} ${tftp_dir}${bitstream_image}'