background image

Software Configuration and Operation

 2018 Microchip Technology Inc.

DS50002789A-page 25

To clear the MIB counters for all ports at once:

# echo 0 > /sys/class/net/eth0/sw/mib 

       // clear MIB counters for all ports

4.7

BOOTLOADER SETTINGS

Several variables, including device addresses, can be set in the U-Boot bootloader. To 
access the boot loader settings, either reboot the processor with the “reboot” command 
or press the reset button (SW1) on the board. Then, quickly press any keyboard key 
early in the boot process at the message, “Hit any key to stop autoboot,” as shown in 

Figure 4.5

.

FIGURE 4-5:

U-BOOT ENTRY POINT

Type “print” to see a listing of environment variable settings. Below are examples of 
how to set some variables. To make the changes permanent, use the “saveenv” com-
mand after making the changes.

=> print          

                                // optional, show the environment variable settings

=> setenv ethaddr 00:10:A1:94:77:01      

                  // sets the MAC address

=> setenv ipaddr 192.168.0.201  

                                            // sets the IP address

=> saveenv          

                                                       // saves settings to NV memory

=> boot

4.8

AUTOMATICALLY RUNNING PROCESS

Depending on the software revision and the attached Ethernet daughter board, some 
processes such as AVB or RSTP may be set to run automatically when the system is 
powered up. To check if they are running, read the appropriate files in the folder 
/sys/class/net/eth0/sw

# cat /sys/class/net/eth0/sw/avb
# cat /sys/class/net/eth0/sw/stp

They can be disabled at the bootloader:

=> setenv avb 0     

                              // disable AVB

=> setenv multi_dev 3        

                  // bug workaround to enable STP control

=> 

setenv stp 0

        

                            

        // disable RSTP

=> saveenv                       

 // saves settings to NV memory

Содержание SAMA5D3 XPLAINED

Страница 1: ... 2018 Microchip Technology Inc DS50002789A SAMA5D3 Ethernet Development System User s Guide ...

Страница 2: ...ATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY OR FITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Micro chip devices in life support and or safety applications is entirely at the buyer s risk and the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages cla...

Страница 3: ...A5D3 EDS and EVB KSZ9563 Configuration 13 Chapter 3 Board Details and Configuration 3 1 Introduction 15 3 2 Power Source 15 3 3 Processor and Memory 15 3 4 Flash Memory Programming 16 3 5 Reset 16 3 6 RGMII MII GMAC Connector 17 3 7 RMII EMAC Connector 18 3 8 USB Ports 19 3 9 Serial UART Interface 19 3 10 JTAG Port 19 3 11 Board Features and Specifications 19 Chapter 4 Software Configuration and O...

Страница 4: ...ng 26 Appendix A Programming the SAMA5D3 EDS Board A 1 Introduction 27 A 2 NAND Flash Programming 27 A 2 1 NAND Flash Programming on Linux 27 A 2 2 NAND Flash Programming on Windows 27 A 3 SD Card Image Programming 32 A 3 1 SD Card Programming 32 A 4 Booting the SAMA5D3 EDS 33 A 4 1 Booting from NAND Flash 33 A 4 2 Booting from SD Card 33 Appendix B Schematics B 1 Introduction 35 Appendix C Bill o...

Страница 5: ...AMA5D3 Items discussed in this chapter include Document Layout Conventions Used in this Guide The Microchip Website Development Systems Customer Change Notification Service Customer Support Document Revision History DOCUMENT LAYOUT This document describes the Microchip SAMA5D3 Ethernet Development System Board Chapter 1 Overview This chapter provides a brief description of the SAMA5D3 Ethernet Dev...

Страница 6: ...9A page 6 2018 Microchip Technology Inc Appendix B Schematics This appendix shows the SAMA5D3 Ethernet Development System Board schematics Appendix C Bill of Materials This appendix includes the SAMA5D3 Ether net Development System Board Bill of Materials BOM ...

Страница 7: ... dialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets A key on the keyboard Press Enter F1 Courier New font Plain Courier New Sample source code define START Filenames autoexec bat File paths c mcc18 h Keywords _asm _endasm static Command line options Opa Opa Bi...

Страница 8: ...ip com click on Customer Change Notification and follow the registration instructions The Development Systems product group categories are Compilers The latest information on Microchip C compilers assemblers linkers and other language tools These include all MPLAB C compilers all MPLAB assemblers including MPASM assembler all MPLAB linkers including MPLINK object linker and all MPLAB librarians in...

Страница 9: ...r FAE for support Local sales offices are also available to help customers A listing of sales offices and locations is included in the back of this document Technical support is available through the website at http www microchip com support DOCUMENT REVISION HISTORY Revisions Section Figure Entry Correction DS50002789A 08 2 18 Initial release ...

Страница 10: ...SAMA5D3 Ethernet Development System User s Guide DS50002789A page 10 2018 Microchip Technology Inc NOTES ...

Страница 11: ... statistics counters in the PHY or switch set up VLAN and other configurations in a switch and perform traffic testing to from the MCU Source code is available for download from the website for this board and users may modify and append to it for their needs This board is built around a Cortex A5 based processor on board SDRAM and Flash memory two Ethernet MACs one gigabit and one 100 Mbit three U...

Страница 12: ...icrochip com for the latest documentation SAMA5D3 Series Data Sheet 1 3 SOFTWARE AND PROGRAMMING RESOURCES The following files are available for download from the Microchip website at www microchip com DevelopmentTools ProductDetails PartNo SAMA5D3 Ether net Development System Linux image bit file Source code Documents Ethernet Development System Image Programming Guide EVB KSZ8563 KSZ9563 3 Port ...

Страница 13: ... work with the EVB KSZ9563 3 port switch evaluation board 1 Install the following jumpers J2 pins 5 6 select 3V3 for VDDIOP1 VARIO J20 to enable NAND flash J3 J7 J17 and J13 for 12V 5V 3V3 and 2V5 respectively to the RGMII con nector 2 Remove any jumper from J4 to select SPI management Note that different daughter boards may require a jumper on J4 3 Check the daughter board documentation for possi...

Страница 14: ...led Linux operating system 6 The default IP address for the MPU is 192 168 0 210 Functionality of the Ether net daughter board can be verified by connecting a PC to an Ethernet port on the daughter board and pinging the MPU Ensure that the PC is set up with a com patible IP address in the same subnet 7 Follow the instructions in Section 4 2 Communication Options to communi cate with the MPU from a...

Страница 15: ... to 20V The current requirement is less than 500 mA without external loads The barrel connector has an inner diameter of 2 5 mm This board can supply power to the other boards connected to the RGMII connector J5 and to the RMII connector J6 Green power LEDs D2 and D3 indicate 3 3V and 5V power respectively The board cannot be powered via USB 3 3 PROCESSOR AND MEMORY The board has 256 MB of SDRAM a...

Страница 16: ...ge of the board on the Microchip website For on board flash memory and SD card programming instructions refer to Appendix A Programming the SAMA5D3 EDS Board The J20 jumper must be installed to enable the on board flash memory for programming However when reprogramming an already programmed board it may be necessary to follow these steps 1 Remove the J20 jumper this prevents the MCU from booting f...

Страница 17: ... board documen tation specifies which power rail s are used Jumpers J3 J7 J13 and J17 are used to connect disconnect 12V 5V 3V3 and 2V5 to this connector Normally all of these jumpers should be installed even if some voltages are not needed by the daughter board Header J2 is used to select the voltage for VDDIOP1 either 3 3V 2 5V or 1 8V Refer to Figure 3 3 Except for the two I2 C signals all the ...

Страница 18: ...nector Reset The SAMA5D3 EDS board combines both hardware and software gener ated reset signals into one reset signal that is available to the daughter board The daughter board may or may not use this reset signal The hardware reset is gen erated at power on and can also be generated by pressing the push button SW1 The SAMA5D3 can also generate a reset from software via GPIO pin PD19 Interrupt IRQ...

Страница 19: ...he RX TX and GND pins are used The other pins are either not connected or can be ignored The default serial port settings are 115200 baud 8 bits no parity and 1 Stop bit 8N1 This is a 3 3V interface See Section 4 2 2 USB to Serial Communication Option for more details on using this connector 3 10 JTAG PORT A standard 2 x 10 pin JTAG header J11 is implemented on the board to enable soft ware develo...

Страница 20: ...b DDR2 16M x 16 bits x 8 banks 1 x 2 Gb NAND flash 256M x 8 bits Optional on board memory One I2C EEPROM One SPI Serial Flash SD One 8 bit SD card slot USB Two USB Hosts One micro AB USB device Ethernet One 1 Gb MAC with RGMII interface One 10 100 Mb MAC with RMII interface Debug port One JTAG interface connector One serial debug interface 3 3V level Board supply voltage 12V power jack User interf...

Страница 21: ...daughter board to either the RGMII or RMII con nector and ensure that all jumper settings are correct on both boards 2 Connect an Ethernet cable between the daughter board and a PC 3 Set the network port IP address on the PC to 192 168 0 100 and set the subnet mask to 255 255 255 0 4 From a command prompt window on the PC enter the following command ping 192 168 0 210 a If ping doesn t work there ...

Страница 22: ...board 1 Get a USB to serial cable and install the PC driver if necessary Examples are the Microchip PICkit Serial Analyzer the USB to TTL Serial Cable from Ada fruit Product ID 954 and the FTDI TTL 232R 3V3 or TTL 232R 5V 2 Connect the USB to serial cable to header J10 on the SAMA5D3 EDS board a If using the Adafruit USB to Serial Cable Product ID 954 connect white to J10 pin 2 green to pin 3 and ...

Страница 23: ... MPU outputs text as shown in Figure 4 4 when it powers up FIGURE 4 4 LINUX LOGIN PROMPT 5 The login is root no quotes No password is required 6 The Linux file system root is located with command cd 4 3 SOFTWARE VERSION The software installed on the board may not be the latest revision Users are encour aged to compare the installed software version with the latest version available on the Microchi...

Страница 24: ...ample of byte word and double word reads and writes using regs_bin regs_bin spi0 0 rb 302 byte read 0000 00 rw 302 word read 0000 00 10 rd 302 double word read 0302 00 10 a1 94 wb 302 87 byte write rd 302 0302 87 10 a1 94 ww 304 88 99 word write rd 302 0302 87 10 88 99 wd 302 38 47 56 65 double word write rd 302 0302 38 47 56 65 q 4 6 ETHERNET SWITCH MIB COUNTERS When a switch daughter board is co...

Страница 25: ...w are examples of how to set some variables To make the changes permanent use the saveenv com mand after making the changes print optional show the environment variable settings setenv ethaddr 00 10 A1 94 77 01 sets the MAC address setenv ipaddr 192 168 0 201 sets the IP address saveenv saves settings to NV memory boot 4 8 AUTOMATICALLY RUNNING PROCESS Depending on the software revision and the at...

Страница 26: ...the given switch cd ptp e2e cd ptp p2p linuxptp sh 4 10 VLAN SETUP VLAN control of switches is handled through the driver The user can access the driver s VLAN functions via files located at sys class net eth0 sw Reading sys class net eth0 sw vlan_table shows the valid entries in the VLAN table See the appropriate switch reference guide for further details 4 11 DHCP To enable DHCP change the word ...

Страница 27: ...t button The dev ttyACM0 ____ is created Execute the tail f var log kernel log command to see this 5 Insert the NAND enable J20 jumper 6 If you are using an x86 system then run the flash_board script in the terminal window If you are using an x64 system then run the flash_board_x64 script sudo flash_board for x86 system sudo flash_board_x64 for x64 system 7 Once DONE is displayed press the reset b...

Страница 28: ...789A page 28 2018 Microchip Technology Inc 7 If the PC does not have Internet connection find Unknown device under Other devices in Device Manager and install the driver from the folder See Figure A 2 SAMA5D3_EDS_Images windows sam ba_3 1 4 driver for example C tmp SAMA5D3_EDS_Images windows sam ba_3 1 4 driver ...

Страница 29: ...FIGURE A 2 DEVICE MANAGER OTHER DEVICES UNKNOWN DEVICE Programming the SAMA5D3 EDS Board 2018 Microchip Technology Inc DS50002789A page 29 ...

Страница 30: ... AT91 USB TO SERIAL CONVERTER SHOWN 9 Wait for few seconds before performing the following steps after board power up Make sure the device driver installation is complete Figure A 4 shows the console display after the NAND flash pro gramming is complete Insert the NAND enable J20 jumper 10 Using Command Prompt execute flash_board bat under SAMA5D3_EDS_Images windows to program the NAND flash cd SA...

Страница 31: ...FIGURE A 4 EXECUTING THE FLASH_BOARD BAT COMMAND IN COMMAND PROMPT Programming the SAMA5D3 EDS Board 2018 Microchip Technology Inc DS50002789A page 31 ...

Страница 32: ...e GUI interface both for Windows and Linux For Windows download and install the 32 bit installer package This procedure is tested on Win7x64 For Linux download the x86 or x64 package depending on your Linux system This procedure is tested on Ubuntu x64 14 04 05 LTS distribution A 3 1 SD Card Programming Note An SD card size of 16 GB or greater is required 1 Unzip the zip file to a folder for examp...

Страница 33: ... also be connected to the SAMA5D3 EDS board A 4 1 Booting from NAND Flash The SAMA5D3 EDS board boots with the new image if MCU reset or power on off is pressed after program ming the NAND flash The buildroot login prompt is displayed To open Command Prompt enter root and press Enter A 4 2 Booting from SD Card After burning the SD card insert the SD card into the SD slot Reset the board either usi...

Страница 34: ...SAMA5D3 Ethernet Development System User s Guide DS50002789A page 34 2018 Microchip Technology Inc NOTES ...

Страница 35: ...crochip Technology Inc DS50002789A page 35 SAMA5D3 ETHERNET DEVELOPMENT SYSTEM USER S GUIDE Appendix B Schematics B 1 INTRODUCTION This appendix includes the SAMA5D3 EDS schematics See Figure B 1 to Figure B 6 ...

Страница 36: ...12V barrel jack 3V3 2V5 VBUS 1V8 1V2 Regulators RMII RGMII I F Connector QTS RMII I F Connector Curiosity 3V3 2V5 VDDIOP1 VARIO 5V 3V3 12V MDIO EEPROM MAC ID Security USB Port A Micro AB Connector DDR2 RAM USB Port C Type A USB Port B Type A SD Card Slot JTAG Header LCD Connector GPIO Headers SAMA5D36 MCU USB HS USB HS USB HS Ethernet Switch FDB Base Board with SAMA5D36 NAND Flash Carl Johnson B 0...

Страница 37: ...rcuit is shown on page 6 5V 10000pF C60 1uF C61 0 1uF C63 10R R161 3V3 3v3out i Power i Power 0 1uF C54 4 7uF C53 10uF C56 10uF C57 10uF C58 10k DNP R160 10k R159 TP87 0 1uF C59 3V3 3A On board current 2A 3v3_L i Power TP86 TP21 TP88 5VPG 12V_SW 1 91k 1 R144 3V3PG Grn D2 GREEN D3 MMBD914 7 D9 470nH L1 470nH L2 5VDD 2 PWRGD 47 PVDD 4 PVIN 14 BST 42 ANODE 40 FREQ 50 EN 48 GND 1 VIN 49 PGND 6 RIA 38 ...

Страница 38: ...RTPWRC 6 PE5_OCS 6 i Power i Power 1k DNP R111 1k DNP R110 2 2k R109 2 2k R112 2 4 VCC 5 GND 3 VCC GND G V G U16 74LVC1G14GW 125 VDDIOP0 0 1uF C20 NRST Reset USBA UFP USBB MCU EHCI Cntl USBC MCU EHCI Cntl Serial UART JTAG SD CARD NAND FLASH Reset 200ms delay NAND Enable NAND Act 6 GND 3 RXD 2 TXD Port B Port C 1k R6 1k R90 R78 R79 R80 R81 R82 R83 R84 R85 VDDIOM Vbus 2 2k R150 TP33 VDDIOP0 32 768kH...

Страница 39: ...3R R58 PD12_SPI0_SPCK 4 6 PD11_SPI0_MOSI 4 6 PD10_SPI0_MISO 6 PD13_SPI0_NPCS0 6 PC22_SPI1_MISO 4 6 PC23_SPI1_MOSI 4 6 PC24_SPI1_SPCK 4 6 PC28_SPI1_NPCS3 4 6 PME_N 6 DUPLEX 6 RST_PHY_N 6 10k DNP R157 TP63 TP64 TP84 12V_SW 12V_RGMII 10uF C12 i Power 10uF 25V C64 1 2 MMCX Vert DNP J31 DNP TP5 DNP TP70 DNP TP51 DNP TP50 DNP TP49 DNP TP48 DNP TP46 DNP TP45 DNP TP44 DNP TP43 DNP TP42 DNP TP41 DNP TP40 D...

Страница 40: ...0 50ohm Address control and data group traces may not exceed 1 3 inches 33mm Match trace lengths within the address control and data groups to within 0 1 inch 2 54mm Match address and control group trace lengths to the data group to within 0 25 inch 6 35mm 4 7uF C154 4 7uF C155 1k 1 R42 1k 1 R44 1k R146 1k R147 DDR_CAS A5 DDR_A13 A6 DDR_A11 A7 DDR_A7 A8 DDR_A2 A9 DDR_D30 A10 DDR_D27 A11 DDR_CLKN A...

Страница 41: ... RST_PHY_N 4 PME_N 4 VDDIOP0 PC25_SPI1_NPCS0 1 4 2 3 User Function SW4 VDD 8 VSS 4 CE 1 WP 3 SCK 6 HOLD 7 SO 2 SI 5 SST25VF064C 80 4I S3AE DNP U18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 J22 1 2 3 4 5 6 J21 1 2 J25 PD0 K5 PD1 P1 PD2 K6 PD3 R1 PD4 L7 PD5 P2 PD6 L8 PD7 R2 PD8 K7 PD9 U2 PD10 K9 PD11 M5 PD12 K10 PD13 N4 PD14 L9 PD15 N3 PD16 L10 PD17 N5 PD18 M6 PD19 T1 PD20 N2 PD21 M3 PD22 M2 PD23 L3 PD...

Страница 42: ...SAMA5D3 Ethernet Development System User s Guide DS50002789A page 42 2018 Microchip Technology Inc NOTES ...

Страница 43: ...icrochip Technology Inc DS50002789A page 43 SAMA5D3 ETHERNET DEVELOPMENT SYSTEM USER S GUIDE Appendix C Bill of Materials C 1 INTRODUCTION This appendix includes the SAMA5D3 Bill of Materials BOM See Table C 1 ...

Страница 44: ...2 C42 C55 CAP CER 33 pF 50V 5 NP0 SMD 0402 YES Murata Electronics North America GRM1555C1H330JA01D 10 2 C47 C60 CAP CER 10000 pF 16V 10 X7R SMD 0402 YES KEMET C0402C103K4RACTU 11 3 C49 C61 C95 CAP CER 1 uF 16V 10 X5R SMD 0402 YES TDK Corporation C1005X5R1C105K 12 1 C161 CAP CER 10 pF 50V 5 NP0 SMD 0402 Yes Murata Electronics North America GRM1555C1H100JZ01D 13 2 D1 D5 DIO LED RED 2V 30 mA 2 mcd Cl...

Страница 45: ...0603 Yes Panasonic Electronic Components ERJ 3EKF1001V 41 4 R8 R20 R27 R70 RES TKF 20k 1 1 10W SMD 0603 Yes Panasonic Electronic Components ERJ 3EKF2002V 42 2 R17 R93 RES TKF 22R 1 1 10W SMD 0603 YES Yageo RC0603FR 0722RL 43 1 R19 RES TKF 102k 1 10W 1 SMD 0603 YES Panasonic Electronic Components ERJ 3EKF2201V 44 4 R22 R109 R112 R150 RES TKF 2 2k 1 1 10W SMD 0603 Yes Panasonic Electronic Components...

Страница 46: ... BIT 536 MHz 160kB ATSAMA5D36A CU LFBGA 324 YES Microchip Technology Inc ATSAMA5D36A CU 73 2 U8 U9 IC MEMORY MT47H64M16NF 25E SDRAM 1 GBIT 400 Mhz FBGA 84 YES Microchip Technology Inc MT47H64M16NF 25E M 74 1 U10 MCHP ANALOG SUPERVISOR 3 075V MIC826TYMT TDFN 6 YES Microchip Technology Inc MIC826TYMT TR 75 1 U11 IC MEMORY MT29F2G08ABAEAWP IT E TR FLASH NAND 2GB TSOP 48 YES Micron Technology Inc MT29...

Страница 47: ... 2018 Microchip Technology Inc DS50002789A page 47 NOTES ...

Страница 48: ...00 China Xian Tel 86 29 8833 7252 China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 ASIA PACIFIC India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 Japan Tokyo Tel 81 3 6880 3770 Korea Daegu Tel 82 53 744 4301 Korea Seoul Tel 82 2 554 7200 Malaysia Kuala Lumpur Tel 60 3 7651 7906 Malaysia Penang Tel 60...

Отзывы: