Avnet MiniZed Getting Started Manual

Hide thumbs Also See for MiniZed:
Table of Contents

Advertisement

MiniZed Getting Started Guide
Version 1.2
Page 1
Copyright © 2017 Avnet, Inc. AVNET, "Reach Further," and the Avnet logo are registered
trademarks of Avnet, Inc. All other brands are the property of their respective owners.
LIT# MiniZed-GSG-v1-1-V1

Advertisement

Table of Contents
loading

Summary of Contents for Avnet MiniZed

  • Page 1 MiniZed Getting Started Guide Version 1.2 Page 1 Copyright © 2017 Avnet, Inc. AVNET, “Reach Further,” and the Avnet logo are registered trademarks of Avnet, Inc. All other brands are the property of their respective owners. LIT# MiniZed-GSG-v1-1-V1...
  • Page 2 21 May 2018 Prior Version History Version Date Comment 12 Jun 2017 Initial MiniZed Hardware User Guide 22 Jun 2017 Fixed a formatting problem with Appendix A 21 May 2018 Fixed an error about the USB stick on page 10 Page 2...
  • Page 3: Table Of Contents

    Tutorials and Reference Designs: .................... 7 Trainings and Videos: ....................... 7 Available through Avnet FAE: ....................7 MiniZed Key Features ................... 8 MiniZed Basic Setup and Operation ..............10 Example Design ........................11 Hardware Setup ........................11 Boot Linux ......................13 Reading from USB ....................
  • Page 4 Figure 18 – WinSCP Parameters Entered ..............22 Figure 19 – WinSCP Save Session ................23 Figure 20 – MiniZed Bluetooth Discovers V20 Android ..........24 Figure 21 – Testing LEDs, Button, Switch, and Sensor..........25 Figure 22 – USER DIP set towards Push Button ............25 Figure 23 –...
  • Page 5 Figure 33 – Partition #2 ..................... 39 Figure 34 – New Partitions ..................39 Figure 35 – Partition Type Set to FAT32 ..............40 Figure 36 – Partition Table Written ................40 Figure 37 – eMMC Partitions Mounted ..............41 Page 5...
  • Page 6: Getting Started With Minized

    Zynq Processor Subsystem (PS) and the Programmable Logic (PL) fabric. Figure 1 – MiniZed This Getting Started Guide will outline the steps to setup the MiniZed hardware. It documents the procedure to run a PetaLinux design running on the ARM® Cortex™-A9 MPCore™...
  • Page 7: What's Inside The Box

    Digilent SD Card Pmod with SD Card (410-123)  ST Micro Motion MEMS and environmental sensor expansion board (X-NUCLEO- IKS01A1) What’s on the Web? MiniZed is a community-oriented kit, with all materials being made available through the MiniZed.org community website. Official Documentation: ...
  • Page 8: Minized Key Features

    MiniZed Key Features  Xilinx Zynq XC7Z007S SoC  Memory o Micron 512 MB DDR3L o Micron 128 MB QSPI flash o Micron 8GB eMMC mass storage  Configuration and Debug o On-board USB to JTAG and debug UART circuit ...
  • Page 9: Figure 2 - Minized Block Diagram

    Figure 2 – MiniZed Block Diagram Page 9...
  • Page 10: Minized Basic Setup And Operation

    MiniZed Basic Setup and Operation The functionality of the MiniZed is determined by the application booted from the non-volatile memory – by default that is the QSPI and eMMC. This Getting Started Guide allows system developers to exercise and demonstrate multiple circuits through PetaLinux, including: ...
  • Page 11: Example Design

    Example Design The MiniZed ships with an example PetaLinux design stored in the QSPI and eMMC. If the QSPI has been erased or reprogrammed, than use the Restore QSPI and eMMC Factory Images tutorial available at www.MiniZed.org to restore both the QSPI and eMMC to the original factory images.
  • Page 12: Figure 5 - Minized Switch Location

    7. Set the MiniZed boot mode switch SW1 to QSPI mode (‘F’ for Flash) as shown below. Figure 5 – MiniZed Switch Location Page 12...
  • Page 13: Boot Linux

    Figure 6 – QSPI/Flash Boot Mode Boot Linux 8. If previously disconnected, plug in the micro-USB cable to the USB-JTAG/UART port. 9. Plug in the 2 micro-USB cable to the auxiliary power port. This is necessary for the USB thumb drive to get power. 10.
  • Page 14: Figure 8 - Petalinux Boot On Minized

    PetaLinux build environment, and we purposely chose very simple username and password for this example).  Username: root  Password: root This Linux image creates a “ramdisk” file system in the DDR3 on MiniZed. Basic Linux commands are available as you might expect on any Linux system. Page 14...
  • Page 15: Reading From Usb

    Reading from USB 12. Plug the USB thumb drive into MiniZed. Linux should recognize the drive and report status to the terminal. Notice the USB device is labeled sda1. Figure 9 – USB Drive Recognized 13. PetaLinux will also automatically mount the USB drive. Issue the ‘df’ command to see where the USB drive was mounted.
  • Page 16: Wi-Fi

    /usr/local/bin/wifi.sh 17. Run the script to setup the Wi-Fi as shown below root@plnx_arm:~# wifi.sh When MiniZed connects with the network it will obtain an IP address and report it in the Tera Term window as below. Page 16...
  • Page 17: Figure 12 - Iperf Results On Minized

    VPN or firewall that may prevent communication across the network. Open a CMD window. Change directory to the location where you copied iperf. Then enter command below, using the IP you discovered for MiniZed in the previous step. iperf -c <IP_of_MiniZed>...
  • Page 18: Figure 13 - Ping Results

    Note that this step will only work if the Wi-Fi access point is connected to the internet. Now try using ping to see if you can reach various internet sites using the DHCP server to resolve the IP addresses. root@plnx_arm:~# ping -c 3 <URL> www.avnet.com www.xilinx.com www.google.com --- www.amazon.com, etc. Figure 13 – ping results...
  • Page 19: Figure 14 - Download And View Text File

    Note that this step will only work if the Wi-Fi access point is connected to the internet. Get a file from a host website and display it. root@plnx_arm:~# wget http://www.textfiles.com/food/brdpudd.des root@plnx_arm:~# cat brdpudd.des Figure 14 – Download and View Text File Page 19...
  • Page 20: Figure 15 -- Ifconfig

    <MiniZed IP> 27. Use the login root. You can use the ftp session to transfer files back and forth across the network to MiniZed. Commands such as ‘cd’ , ‘ls’ , ‘pwd’ , ‘put’ , and ‘get’ are all useful commands.
  • Page 21: Figure 16 - Minized Ftp Session

    Figure 16 – MiniZed FTP Session Page 21...
  • Page 22: Figure 17 - Winscp Launched

    29. So far we have seen how files can be copied to and from MiniZed using a USB memory stick or over Wi-Fi via FTP. Lastly, we will look at a secure copy mechanism that can also be used with a graphical interface. WinSCP can be downloaded from http://winscp.net.
  • Page 23: Figure 19 - Winscp Save Session

    31. Click Save. You can set the Site name to “MiniZed” if you would like. You can also choose to Save password. Then click OK. Figure 19 – WinSCP Save Session 32. Click Login. If you get a prompt about connecting to an...
  • Page 24: Bluetooth

    36. Enter the following to launch the Bluetooth setup script: root@plnx_arm:~# bt.sh Figure 20 – MiniZed Bluetooth Discovers V20 Android If you would like to scan again, do NOT rerun the script or it will hang your system. 37. To rescan the system, you can rerun the hcitool command:...
  • Page 25: I2C Sensor And Gpio

    I2C Sensor and GPIO To ease testing of several peripheral devices on your board, a user application, i2csensor, been built into image.ub. 38. To test the LEDs, button, switch, and I2C sensor on the board, enter root@plnx_arm:~# i2csensor Figure 21 – Testing LEDs, Button, Switch, and Sensor 39.
  • Page 26 42. You may have to widen your Tera Term window to see the full output. Pick up and twist the MiniZed (preferably without giving it an ESD zap). See the changes in the XYZ measurements in the terminal. 43. The relative temperature is also reported. For this sensor the temperature delta is actually tracked, and the absolute displayed value is not necessarily accurate.
  • Page 27: Linux File System

    Linux File System 45. CD into the /bin directory. root@plnx_arm:~# cd /bin/ 46. Check the current directory by typing the command below root@plnx_arm:~# pwd Figure 23 – Print Working Directory 47. List the contents of /bin by typing the command below root@plnx_arm:~# ls Figure 24 –...
  • Page 28: Figure 25 - Detailed List Contents

    48. To see full details, use the command below root@plnx_arm:~# ls -l Figure 25 – Detailed List Contents 49. To see how much free disk space is available, use the command df. This will also show you what mass storage is already mounted. In our case, the eMMC (SDIO 1) partition #1 is /dev/mmcblk1p1 and is mounted at /run/media/mmcblk1p1.
  • Page 29: Figure 27 - Find A File

    50. To find a file in the file system, use the command ‘find’. The command below searches from the root directory looking for a file called “flaschcp”. root@plnx_arm:~# find / -name "flashcp" Figure 27 – Find a File 51. In the case with two executables with the same name, it might be useful to know which one is found without explicitly spelling out the path.
  • Page 30: Poweroff

    When you are finished experimenting with PetaLinux on MiniZed, you should shut PetaLinux down gracefully to prevent corruption of your eMMC. 52. Enter either of the following commands to shut down the MiniZed properly. Both accomplish the same thing. root@plnx_arm:~# shutdown –h now...
  • Page 31: Getting Help And Support

    Getting Help and Support Avnet Support The MiniZed is a versatile development kit that allows evaluation of the Zynq SoC, which can help you adopt Zynq into your next design. All technical support is offered through www.minized.org website support forums. MiniZed users are encouraged to participate in the forums and offer help to others when possible.
  • Page 32: Xilinx Support

    To view online training and videos, click on the following link: Xilinx Support For questions regarding products within the Product Entitlement Account, send an e-mail message to the Customer Service Representative in your region: Canada, USA and South America - isscs_cases@xilinx.com Europe, Middle East, and Africa - eucases@xilinx.com...
  • Page 33: Installing And Licensing Xilinx Software

    Installing and Licensing Xilinx Software Install Vivado Design Suite, WebPack Edition The Zynq device on the MiniZed is supported in Vivado Design Suite, WebPack Edition. Version 2017.1 or later is required for the on-board USB-JTAG/UART circuit to work. See www.xilinx.com/products/design-tools/vivado/vivado-webpack.html This software can be downloaded online at: www.xilinx.com/support/download/index.htm...
  • Page 34: Certification Disclaimer

    Both CE and FCC certifications are necessary for system level products in those countries governed by these regulatory bodies. Because Avnet boards are intended for evaluation kits only and destined for professionals (you) to be used solely at research and development facilities for such purposes, they are considered exempt from the EU product directives and normally are not tested for CE or FCC compliance.
  • Page 35: Regulatory Compliance Information

    Regulatory Compliance Information EU Compliance Statement: Hereby, Avnet declares that this device is in compliance with the essential requirements and other relevant provisions of the Radio Equipment Directive 2014/53/EU. A full copy of the Declaration of Conformity can be found at http://minized.org/policies.
  • Page 36: Safety Warnings

    This product shall only be connected to an external power supply rated at 5V DC that provides a minimum current of 500mA. Any external power supply used with MiniZed shall comply with relevant regulations and standards applicable in the country of intended use.
  • Page 37: Rf Certification

    RF Certification The frequency range is 2.4 to 2.4835GHz. The max power complies with 802.11b, which is 17dBm (typ). Page 37...
  • Page 38: Appendix A - Partition And Format Emmc

    Appendix A – Partition and Format eMMC Although the eMMC was previously formatted and partitioned, you can repeat the steps to learn the process. 1. First, unmount the eMMC. root@plnx_arm:~# umount /run/media/mmcblk1p1 2. The Linux fdisk utility is used to create a partition on the storage media for use with a file system.
  • Page 39: Figure 31 - Partition 1 Deleted

    c. Delete this partition with command ‘d’ Figure 31 – Partition 1 Deleted d. Create a new primary partition #1 starting at the first cylinder and extending for 128 MB using commands ‘n’, ‘p’, ‘1’, ‘1’, ‘+128M’ Figure 32 – 128 MB Primary Partition Created e.
  • Page 40: Figure 35 - Partition Type Set To Fat32

    g. Change the Type for Partition 1 to be FAT32 using commands ‘t’, ‘1’, ‘L’, ‘b’ and then reprint the table with ‘p’ Figure 35 – Partition Type Set to FAT32 h. Write the partition table and exit fdisk using command ‘w’ Figure 36 –...
  • Page 41: Figure 37 - Emmc Partitions Mounted

    root@plnx_arm:~# mkfs.vfat /dev/mmcblk1p2 5. The first partition will be automatically mounted. The second one must be mounted manually. root@plnx_arm:~# mount /dev/mmcblk1p2 /run/media/mmcblk1p2 6. Use df to see what is available now. Figure 37 – eMMC Partitions Mounted Page 41...

Table of Contents