background image

 

 

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 

 

 

 

 

MiniZed Getting Started Guide 

Version 1.2 

 

Содержание MiniZed

Страница 1: ...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 MiniZed Getting Started Guide Version 1 2 ...

Страница 2: ... 2 Document Date 21 May 2018 Prior Version History Version Date Comment 1 0 12 Jun 2017 Initial MiniZed Hardware User Guide 1 1 22 Jun 2017 Fixed a formatting problem with Appendix A 1 2 21 May 2018 Fixed an error about the USB stick on page 10 ...

Страница 3: ...etup and Operation 10 Example Design 11 Hardware Setup 11 Boot Linux 13 Reading from USB 15 Wi Fi 16 Bluetooth 24 I2C Sensor and GPIO 25 Linux File System 27 Poweroff 30 Getting Help and Support 31 Avnet Support 31 Xilinx Support 32 Installing and Licensing Xilinx Software 33 Install Vivado Design Suite WebPack Edition 33 Certification Disclaimer 34 Regulatory Compliance Information 35 Safety Warn...

Страница 4: ...ure 13 ping results 18 Figure 14 Download and View Text File 19 Figure 15 ifconfig 20 Figure 16 MiniZed FTP Session 21 Figure 17 WinSCP Launched 22 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 Print Working Direct...

Страница 5: ...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 ...

Страница 6: ...rammable SoC Single Core Designers can create or evaluate designs for both the 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 Processing System PS ...

Страница 7: ... MiniZed is a community oriented kit with all materials being made available through the MiniZed org community website Official Documentation Getting started guide Hardware user guide Schematics Bill of materials Layout PCB net lengths Mechanical drawing 3D Model Board definition files for Vivado integration Programmable logic PL master user constraints Tutorials and Reference Designs Introduction...

Страница 8: ... Type 1DX wireless module with 802 11b g n Wi Fi and Bluetooth 4 1 plus EDR and BLE Bluetooth Low Energy o USB 2 0 host interface Power o Dialog Semiconductor DA9062 PMIC Power Management IC Expansion connectors o Arduino compatible shield interface o 2 x Pmod compatible interfaces Sensors o ST Micro LIS2DS12 Accelerometer and Temperature sensor o ST Micro MP34DT05 digital MEMS microphone General ...

Страница 9: ...Page 9 Figure 2 MiniZed Block Diagram ...

Страница 10: ...onstrate multiple circuits through PetaLinux including USB 2 0 eMMC Wi Fi Bluetooth I2C Sensor Microphone In addition to the items included in the kit you will also need the following to complete the exercises in this tutorial Wi Fi connection 2nd micro USB cable USB thumb drive formatted as FAT or FAT32 A MiniZed image in its expected out of box configuration is shown below along with the locatio...

Страница 11: ...t on the SourceForge Japan page ttssh2 sourceforge jp Install Tera Term or another terminal program of your choice 3 Connect the MiniZed USB JTAG UART port J2 to your Windows PC It should automatically install the proper drivers giving you a confirmation as shown below If installed correctly skip to Step 7 Figure 4 MiniZed USB JTAG UART Installed Correctly 4 In the rare circumstance that the drive...

Страница 12: ...Page 12 7 Set the MiniZed boot mode switch SW1 to QSPI mode F for Flash as shown below Figure 5 MiniZed Switch Location ...

Страница 13: ...AG UART port 9 Plug in the 2nd micro USB cable to the auxiliary power port This is necessary for the USB thumb drive to get power 10 Launch and connect Tera Term using the settings shown below Press the RESET button SW2 to reset the board so you can see the boot sequence Figure 7 COM Port Settings for USB UART Terminal ...

Страница 14: ...hese credentials are set up under the 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 ...

Страница 15: ...ee if you recognize the contents root plnx_arm df root plnx_arm ls run media sda1 Figure 10 USB Drive Mounted The eMMC was previously partitioned and formatted when your board was tested In fact you can see this in the df command in Figure 10 The eMMC shows up as already mounted on run media mmcblk1p1 In the interest of time we will use this existing formatted partition as is If you have time you ...

Страница 16: ...html You may also copy wpa_supplicant conf to the USB stick then edit on your PC then copy back to the eMMC root plnx_arm vi run media mmcblk1p1 wpa_supplicant conf Figure 11 Edit these 2 fields in wpa_supplicant conf 16 To test your Wi Fi connection several setup steps are required To ease the burden of typing a script has been provided in the usr local bin directory which is in the default searc...

Страница 17: ... make sure your PC is on the same Wi Fi network as MiniZed Also turn off any 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 Results are then displayed in Tera Term as well as in the CMD window as sho...

Страница 18: ...s 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 ...

Страница 19: ...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 ...

Страница 20: ...dows Command Prompt 26 Connect an FTP session to the remote host with the command ftp 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 28 Close the ftp session using the quit command ...

Страница 21: ...Page 21 Figure 16 MiniZed FTP Session ...

Страница 22: ... with a graphical interface WinSCP can be downloaded from http winscp net It can be run command line under Windows or Linux In Windows browse to the WinSCP directory and double click on WinSCP exe Figure 17 WinSCP Launched 30 Change the File protocol to SCP Edit the Host name to match the IP address of MiniZed Use root for both the User name and Password Figure 18 WinSCP Parameters Entered ...

Страница 23: ...t a prompt about connecting to an unknown server click 33 On the left side pane of the WinSCP which is the host browse a directory containing a file that you would like to transfer for example a new image ub or bin file for the QSPI On the MiniZed side browse to run media mmcblk1p1 which is the eMMC Drag the file to the eMMC side or click F5 and click OK if prompted for permission ...

Страница 24: ..._arm cat usr local bin bt sh 35 Turn on your phone s Bluetooth and make it discoverable 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 root plnx_arm hcitool scan or for Blueto...

Страница 25: ...esting LEDs Button Switch and Sensor 39 Set the 2nd dip switch nearest the Arduino connector towards the LED This puts both LEDs into counting mode 40 Press the PS push button SW3 to blank the LEDs and restart the counter 41 Set the 2nd dip switch towards the push button This puts the outside LED into microphone mode Speak near the microphone and the LED brightness will reflect the intensity of th...

Страница 26: ...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 44 Press any key to exit the user test application ...

Страница 27: ...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 List Contents ...

Страница 28: ... 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 root plnx_arm df Figure 26 Disk Free ...

Страница 29: ...thout explicitly spelling out the path Command which will tell you the path of the executable to be run For example see how many copies of command echo are on the system and then which one is executed root plnx_arm find name echo root plnx_arm which echo Figure 28 Which A short list of several more useful file and directory oriented commands are listed below For an explanation of these commands se...

Страница 30: ... 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 or root plnx_arm poweroff If you want to issue a restart to the system use the following command root plnx_arm reboot ...

Страница 31: ...en possible http minized org forums For questions regarding the MiniZed community website please direct any questions to MiniZed org Web Master webmaster MiniZed org To access the most current collateral for MiniZed please visit the community support page at www MiniZed org content support Once on the MiniZed org support page To access the latest MiniZed documentation click on the Documentation li...

Страница 32: ...ses xilinx com Europe Middle East and Africa eucases xilinx com Asia Pacific including Japan apaccase xilinx com For technical support including the installation and use of the product license file contact Xilinx Online Technical Support at www xilinx com support The following assistance resources are also available on the website Software IP and documentation updates Access to technical support w...

Страница 33: ... visit the following website and insert the voucher code from the certificate included in your kit http www xilinx com getlicense If a full seat of Vivado System or Design Edition has already been installed then no further software will be needed Please check online for any updates at www xilinx com support download index htm For detailed instructions on installing and licensing the Xilinx tools p...

Страница 34: ...r such purposes they are considered exempt from the EU product directives and normally are not tested for CE or FCC compliance If you choose to use your board to transmit using an antenna it is your responsibility to make sure that you are in compliance with all laws for the country frequency and power levels in which the device is used Additionally some countries regulate reception in certain fre...

Страница 35: ...a s licence exempt RSSs Operation is subject to the following two conditions 1 This device may not cause interference and 2 This device must accept any interference including interference that may cause undesired operation of the device French Le présent appareil est conforme aux CNR d Industrie Canada applicables aux appareils radio exempts de licence L exploitation est autorisée aux deux conditi...

Страница 36: ... shall comply with relevant regulations and standards applicable in the country of intended use Only compatible plug in modules shall be connected to MiniZed The connection of incompatible devices may affect compliance or result in damage to the unit and void the warranty This product shall be operated in a well ventilated environment If a case is used it shall have adequate ventilation ...

Страница 37: ...Page 37 RF Certification The frequency range is 2 4 to 2 4835GHz The max power complies with 802 11b which is 17dBm typ ...

Страница 38: ...ge media for use with a file system Enter the commands as shown below a Start the fdisk utility for the eMMC controller fdisk device name root plnx_arm fdisk dev mmcblk1 Figure 29 fdisk started b List the existing partition information by typing command p If the storage media has never been used there should be no partitions shown In our case there is one partition which is 3907 units large 32768 ...

Страница 39: ...rting at the first cylinder and extending for 128 MB using commands n p 1 1 128M Figure 32 128 MB Primary Partition Created e Create another partition that spans the remainder of the eMMC using commands n p 2 3908 232448 Figure 33 Partition 2 f Type command p to print the new partition table Figure 34 New Partitions ...

Страница 40: ...partition table and exit fdisk using command w Figure 36 Partition Table Written 3 Before the new partitions can be used they must be formatted Format the first one with a FAT32 file system Use the Linux mkdosfs utility to perform this action mkdosfs F 32 device name root plnx_arm mkdosfs F 32 dev mmcblk1p1 4 Format the 2nd partition using mkfs vfat as follows ...

Страница 41: ... 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 ...

Отзывы: