Home
Emcraft Systems M2S-FG484 SOM Starter Kit Guide
Contents
1. Product Contents This product includes the following components 2 1 Shippable Hardware Items The following hardware items are shipped to customers of this product 1 M2S FG484 SOM board 2 SOM BSB EXT baseboard 3 Mini USB cable UART power interface Note that this product does not include any JTAG programmer tools or associated hardware items Such equipment needs to be purchased directly from respective vendors 2 2 Downloadable Hardware Materials The following hardware materials are available for download from Emcraft s web site to customers of this product 1 SOM BSB EXT 1A schem pdf SOM BSB EXT schematics in PDF format 2 SOM BSB EXT 1A bom xls SOM BSB EXT Bill Of Materials BOM in Excel format 3 SOM BSB EXT 1A_Dimensions pdf SOM BSB EXT mechanical drawing in PDF format 4 M2S FG484 SOM IntLib Altium Designer 9 4 integrated library for the M2S FG484 SOM symbol and footprint 2 3 Downloadable Software Materials The following software materials are available for download from Emcraft s web site to customers of this product 1 m2s005 f9484 som 1la stp M2S FG484 SOM Libero stp file with the U Boot image embedded ready for installation onto the M2S005 FG484 SOM using the Microsemi FlashPro tool 2 m2s005 f9484 som 1la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S005 FG484 SOM 3 m2s010 f9484 som 1la stp M2S FG484 SOM Libero stp file with the U Boot
2. allocated to it there is no need to update the ethaddr variable although it is possible to do SO The MAC address can be changed by modifying the ethaddr variable as follows M2S FG484 SOM gt setenv ethaddr C0 B1 3C 88 88 89 Don t forget to store your update in the persistent storage using saveenv so it is remembered across resets and power cycles 5 3 Network Configuration You will have to update the network configuration of your board to match settings of your local environment Typically all you have to allow loading images over network from a TFTP server is update the U Boot environment variables ipaddr the board IP address and serverip the IP address of the TFTP server Here is how it is done Update ipaddr and serverip M2S FG484 SOM gt setenv ipaddr 192 168 0 2 M2S FG484 SOM gt setenv serverip 192 168 0 1 and then save the updated environment to the external Flash so that your changes are persistent across resets power cycles Linux SmartFusion2 9 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems 5 4 Running Pre installed Linux Image The M2S FG484 SOM board comes with a Linux bootable image for the networking project installed into external Flash To boot this Linux configuration onto the M2S FG484 SOM board just reset the board and let U Boot perform the autoboot sequence Detailed information on functionality of the pre installed Linux image can be found in Linux Cortex
3. lit up indicating that the board is up and running A single USB connection provides a 500 mA power to the M2S FG484 SOM which is sufficient for basic functionality Note however that some advanced operations such as WiFi connectivity using the USB WiFi module may require more than 500 mA for reliable operation Use the second link of the mini USB Y cable to connect to the PC for such configurations On the PC side the USB link provides a serial console device to the M2S FG484 SOM The software installed on the board is configured for a 115 2 K terminal On the Linux host the serial console is available using a dev ttyUSBn device To provide network connectivity to the board connect it into your LAN by plugging a standard Ethernet cable into the J1 connector The board is pre configured with an IP address of 192 168 0 2 The M2S FG484 SOM comes with the U Boot firmware and an appropriate Libero project pre installed into SmartFusion2 U Boot provides sufficient interfaces for uploading and installing new firmware images onto the board so you may never need to re install firmware over the JTAG interface If however at some point you require re programming U Boot onto your board connect it to a Microsemi FlashPro programmer tool by plugging a standard JTAG cable into the P3 connector Note Only one of the FlashPro JTAG and the ARM JTAG interfaces must be used at any time Using the two JTAG interfaces simultaneously may result in a mal
4. 2S FG484 SOM gt setenv image vlad networking uImage M2S FG484 SOM gt run update TFTP from server 172 17 0 1 our IP address is 172 17 5 100 Filename vlad networking uImage Loading H HHH HHH HH HH HH HH HH HH HH HH HH HH HH HE HH HH HH HH HH HHH HHH HHH HHH HHH HHH HH HHH HH HRH RHEE HHH HET E HRH HHH HHH HHH HHHHHH HEHE HH done Bytes transferred 2084704 1fcf60 hex 16384 KiB S25FL128S 64K at 0 0 is now current device Saving Environment to SPI Flash Erasing SPI flash Writing to SPI flash done M2S FG484 SOM gt Linux SmartFusion2 10 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems Reset the board and verify that the newly programmed image boots on the target in the autoboot mode M2S FG484 SOM gt reset resetting U Boot 2010 03 linux cortexm 1 14 3 Nov 11 2015 17 19 37 Starting kernel init started BusyBox wil i720 Nov 11 2015 172719237 5 6 U Boot Build The BSP distribution comes with U Boot pre built for the M2S FG484 SOM board If however you need to re build U Boot for your board please follow the instructions below 1 Install the Linux SmartFusion2 distribution to the development host as described in the Linux Cortex M User s Manual 2 From the top of the Linux SmartFusion2 installation activate the Linux SmartFusion2 cross compile environment by running ACTIVATE sh Go to the U Boot source directory cd u boot 4 Run the follo
5. 2s090 9484 som 1la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S090 FG484 SOM networking uImage prebuilt Linux image ready to be loaded to the M2S FG484 SOM board linux M2S 1 14 3 tar bz2 Linux SmartFusion2 software development environment including o U Boot firmware o Linux kernel o busybox and other target components o Linux hosted cross development environment o Framework for developing multiple projects embedded applications from a single installation including sample projects allowing to kick start software development for Linux SmartFusion2 2 4 Downloadable Documentation Materials The following documentation materials are available for download from Emcraft s web site to customers of this product 1 m2s fg484 som ha pdf Emcraft Systems SmartFusion2 System On Module M2S FG484 SOM Hardware Architecture specification 2 m2s fg484 som bsb ext ha pdf Emcraft Systems SOM BSB EXT Baseboard Hardware Architecture specification 3 linux cortexm um 1 14 3 pdf Linux Cortex M User s Manual 4 M2S FG484 SOM skg 1 14 3 pdf Emcraft Systems M2S FG484 SOM Starter Kit Guide this document Linux SmartFusion2 4 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems 3 Software Functionality 3 1 Supported Features The following list summarizes the features and capabilities of Linux SmartFusion2 Release 1 14 3 e U Boot fi
6. Linux SmartFusion2 Emcraft Systems M2S FG484 SOM Starter Kit Guide Release 1 14 3 Emcraft Systems Table of Contents 1 OVERVIEW tee Eege eg ege ee AE e Eet 3 2 RRODUGTGONTEN TE Geisen GEN ENN EENEG ee 3 2 1 SHIPPABLE HARDWARE TEMS s osoonsnnniusssesnnrinrssasrrreriorssrnrerioresrntrrioresrrtri ores rnrnriores rnrn rioresrntnreorennnt 3 2 2 DOWNLOADABLE HARDWARE MATERIALS 3 2 3 DOWNLOADABLE SOFTWARE Maas 3 2 4 DOWNLOADABLE DOCUMENTATION MATERIALS ssssnsnnnnusssssnnrsrresssrrrnrisesrrrnrrurssrnrnrrrrssnsrnrresrnrnrrerennn 4 3 SOFTWARE FUNCTIONALITY i ices ci cesses daisiccscs sees alia ege dd ed NEEN va gecuadtidevecada ENEE Ee 5 SL SUPPORTED PEATURES eseu Eeer eenegen SE ee Seege 5 3 2 NEW AND CHANGED FEATURES ss ns sesssnsinniusssrernriuresrsrnri tor 1nrr11t1 or nrn rn rer EErEE SNAS EErEE SE EnEn rE nE erennere nn enn 6 3 3 KNOWN PROBLEMS amp LMImramOoNg 6 4 HARDWARE SETUP a e aaa aa aa aa aaa daai Aaa Kaanaan ENEE ENNER due 7 4 1 HARDWARE INTERFACES ipe ei EEE Ee e a eaU EC aCA N UFEN aE a EEE SEa Eea 7 42y JUMPERS ien Eege Ae e Ee e e Eed EE EE Edge 7 4 3 BOARD CONNECTIONS i sc scicsccsccsssssessscsccnacesassncsttoousesacsssacnsscsoccovacducvsssovactneousosvaceacoeubeceseusesabvasssaseeact 8 4 4 EXTENSION INTERFACES ossonenssnessonssnresrssrerrririoresrnrtriorer rrtt ri resna tnri raS EE rnr Sres EEEE EESEeS EEEE rE eonenn renren eenn nnt 8 5 M2S FG484 SOM BOARD LINUX SOFTWARE SET UP ee 8 S
7. M User s Manual Section 3 5 5 Loading Linux Images At this point you are able to load Linux bootable images to the board over TFTP and either boot them directly or install them to the external Flash to allow booting Linux from Flash on power up reset On the host activate the Linux SmartFusion2 development environment and build the networking project bash 3 2S ACTIVATE sh bash 3 2 cd projects networking bash 3 2S make bash 3 2 Copy the Linux bootable image to the TFTP download directory bash 3 2 cp networking uImage tftpboot vlad bash 3 25S To load the image directly use the netboot U Boot macro M2S FG484 SOM gt setenv image vlad networking uImage M2S FG484 SOM gt run netboot TFTP from server 172 17 0 1 our IP address is 172 17 5 100 Filename vlad networking uImage Loading HHH HHH HHH HH AHHH HH HE E HHE HE HE E HE HE HE HH HE HE HE HE HE HE HE HE HE HE HE HE HE HE HE H H H H H H H H HHH HH H HHHH HEHEHE HH HH HH HE HH HH HH HH HH HHH HHH HHH HHH HHH HHH HHH HHH HHH HHH HHH FH HH HH HH HH done Bytes transferred 2084704 1fcf60 hex Image Name Linux 2 6 33 arml Image Type ARM Linux Kernel Image uncompressed Verifying Checksum OK Loading Kernel Image OK OK Starting kernel Linux version 2 6 33 arml vlad ocean emcraft com gcc version 4 4 1 Sourcery G Lite 2010q1 189 1 Wed Nov 11 15 43 44 MSK 2015 To load the image into the Flash use the U Boot update macro M
8. M2S FG484 SOM gt U boot makes use of the so called environment variables to define various aspects of the system functionality Parameters defined by the U boot environment variables include target IP address target MAC address address in RAM where a Linux bootable images will be loaded and many more To examine the current settings of the environment variables run printenv from the U Boot command interface U Boot provides a command called saveenv that stores the up to date run time environment to the persistent storage which will be the external Flash for the U Boot configuration used on the M2S FG484 SOM board You need to call saveenv any time when you want to copy current settings of the environment variables to the persistent storage in Flash This is how you can write the current U Boot environment to the external Flash M2S FG484 SOM gt saveenv Saving Environment to SPI Flash Erasing SPI flash Writing to SPI flash done M2S FG484 SOM gt 5 2 Ethernet MAC Address In Linux SmartFusion2 the MAC address of the Ethernet interface is defined by the ethaddr U Boot environment variable The value of the MAC address can be examined from the U Boot command line monitor as follows M2S FG484 SOM gt printenv ethaddr ethaddr C0 B1 3C 88 88 88 M2S FG484 SOM gt The M2S FG484 SOM board comes with ethaddr set to a MAC address uniquely allocated for the specific board Given that each M2S FG484 SOM board has a unique MAC address
9. d in harness with the Emcraft Systems SOM BSB EXT baseboard 4 1 Hardware Interfaces The M2S FG484 SOM board in harness with the Emcraft Systems SOM BSB EXT baseboard provides the following components and interfaces M2S FG484 USB OTG interface User button 64 MB LPDDR SOM Reset button ULPI USB PHY gt ozy 99 S t M2S FG484 Ka ee W I S Zen Zo al Ow 20 a a T USB Power amp o RT UART interface Z gt Le liNteE 3 074 36 WO UNION MMM ZS 9019 Je C107 l t10 SCH k Ethernet interface NOV LIYYINT MMM SWJS JDJOW Breadboard area 16 MB SPI Flash ARM JTAG interface Ethernet PHY FlashPro interface 4 2 Jumpers The following jumpers must be configured on the SOM BSB EXT board Jumper Configuration Notes IER 1 2 closed 3 4 open Enable power on the M2S FG484 SOM VCC3 JP2 1 2 open 3 4 closed Select appropriate JTAG mode and enable power to the SmartFusion2 JTAG controller Linux SmartFusion2 7 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems Jumper Configuration Notes JP3 1 3 open 2 4 closed Use the mini USB port as the power source 4 3 Board Connections To power the SOM BSB EXT baseboard with the M2S FG484 SOM up simply connect it to a PC notebook by plugging a mini USB cable into the P1 mini USB connector on the SOM BSB EXT board As soon as the connection to the PC has been made the LED DS2 should
10. driver for the embedded NVM o GPIO device driver e Development tools o ARMv7 optimized GNU toolchain from CodeSourcery 2010q1 is used for development of U Boot Linux and user space applications toolchain must be downloaded separately from the CodeSourcery web site Linux SmartFusion2 5 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems o Cross GDB for debugging user space applications o mkimage tool used by the Linux kernel build process to create a Linux image bootable by U Boot e Development environment o Linux hosted cross development environment o Development of multiple projects embedded applications from a single installation o hello sample project Hello world single process configuration o networking sample project basic shell networking and Flash management tools demonstration o developer sample project template project that can be used to jump start development of custom user space applications and loadable kernel modules 3 2 New and Changed Features This section lists new and changed features of this release 1 Support GPIO interrupts on SmartFusion2 ID RT 95260 2 Fix busybox shell hang issue ID RT 100875 3 Added support for 10 100 Mbit for SF2 DEV KIT ID RT 102588 4 Don t clobber bootargs in netboot and flashboot ID RT 107358 5 Downgrade the M2S clock to 142MHz in uClinux SmartFusion2 ID RT 104961 6 Add ARM flat device t
11. e architecture of the Emcraft Systems M2S FG484 SOM board Refer to Emcraft Systems SOM BSB EXT Baseboard Hardware Architecture for detailed information on the hardware architecture of the Emcraft Systems SOM BSB EXT baseboard Linux SmartFusion2 11 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems Refer to Linux Cortex M User s Manual for detailed information on the software architecture of the Linux SmartFusion2 distribution Visit Emcraft Systems web site at www emcraft com to obtain additional materials related to Linux SmartFusion2 7 Support We appreciate your review of our product and welcome any and all feedback Comments can be sent directly by email to a2f linux support emcraft com The following level of support is included with your purchase of this product e Email support for installation configuration and basic use scenarios of the product during 3 months since the product purchase e Free upgrade to new releases of the downloadable materials included in the product during 3 months since the product purchase If you require support beyond of what is described above we will be happy to provide it using resources of our contract development team Please contact us for details Linux SmartFusion2 12 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide
12. function of the M2S FG484 SOM 4 4 Extension Interfaces For description of the extension interfaces provided by the Emcraft Systems M2S FG484 SOM board refer to Emcraft Systems SmartFusion2 System On Module M2S FG484 SOM Hardware Architecture For description of the extension interfaces provided by the Emcraft Systems SOM BSB EXT baseboard refer to Emcraft Systems SOM BSB EXT Baseboard Hardware Architecture The above mentioned documents can be downloaded from the following page http www emcraft com som m2s fg484 5 M2S FG484 SOM Board Linux Software Set up 5 1 U Boot Environment When the M2S FG484 SOM board is reset the Linux bootstrap will proceed to boot the U Boot firmware from the on chip eNVM Unless interrupted U Boot proceeds to load the Linux bootable image from the SPI Flash into the LPDDR and passes control to the Linux kernel entry point in LPDDR Linux bootstraps the kernel mounts a root filesystem in RAM and enters the interactive shell command interface printing the following output to the serial console U Boot 2010 03 cortexm 1 14 3 Nov 04 2015 13 06 17 CPU SmartFusion2 SoC Cortex M3 Hard IP Freqs CORTEX M3 142MHz PCLK0 71MHz PCLK1 71MHz Linux SmartFusion2 8 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems Board M2S FG484 SOM Rev 1A www emcraft com DRAM 64 MB In serial Out serial Err serial Net M2S MAC Hit any key to stop autoboot 0
13. ifs U BOOT ENVIRONMENT orui e a cedtessobiaddee tat a a A a ea iiien 8 5 2 ETHERNET MAC Appptes 9 5 3 NETWORK CONFIGURATION secs ae sous ccsevaceucvnes vvcevaceicovsnusussitecasbuccedsevcbiesveasbusevaeeusctsesuateiveusvsvednaatvoee 9 5 4 RUNNING PRE INSTALLED LINUX IMAGE 10 5 5 LOADING LINUX IMAGES 0cccccccccesseeeeecececeaneseeeececeseauesseeeeeeeseaaeeeseeeseaueaseceseeeseaueaseeeeseeseaaeseeeseees 10 e LWBOOR BUILD WEE EE EEN 11 5 7 U BOOT INSTALLATIONS icin cvcovceedccrccecescucveacecocdaeessecdeedacndceussssetvasciecdestaschdosdaedasuccelebsucveachtecdaeeddevsessaes 11 6 FURTHER MATERIALS savsiccecccsesidccevicceuscaa feeces ANEN ge ENN ENN NEEN ENEE EEEa Eug 11 7 SUPPORT WEE EE 12 Linux SmartFusion2 2 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems 1 Overview This document is the Emcraft Systems M2S FG484 SOM Starter Kit Guide Release 1 14 3 The BSP provides a software development environment for evaluation and development of Linux on the Cortex M3 processor core of the Microsemi SmartFusion2 microcontroller using the Emcraft Systems M2S FG484 SOM board in harness with the Emcraft Systems SOM BSB EXT baseboard as a hardware platform This BSP is provided as part of the Emcraft Systems SmartFusion2 System On Module M2S FG484 SOM Starter Kit The kit provides a hardware platform and Linux software development environment for the SmartFusion2 System On Module M2S FG484 SOM 2
14. image embedded ready for installation onto the M2S010 FG484 SOM using the Microsemi FlashPro tool 4 m2s010 f9484 som 1la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S010 FG484 SOM Linux SmartFusion2 3 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide 10 11 12 13 14 Emcraft Systems m2s025 fg9484 som la stp M2S FG484 SOM Libero stp file with the U Boot image embedded ready for installation onto the M2S025 FG484 SOM using the Microsemi FlashPro tool m2s025 f9484 som 1la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S025 FG484 SOM m2s050 f9484 som 1la stp M2S FG484 SOM Libero stp file with the U Boot image embedded ready for installation onto the M2SO050 FG484 SOM using the Microsemi FlashPro tool m2s050 f 9484 som la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S050 FG484 SOM m2s060 f 9484 som 1la stp M2S FG484 SOM Libero stp file file with the U Boot image embedded ready for installation onto the M2S060 FG484 SOM using the Microsemi FlashPro tool m2s060 f 9484 som 1la zip M2S FG484 SOM Libero and SoftConsole Hello world demo project ready for the M2S060 FG484 SOM m2s090 f 9484 som 1la stp M2S FG484 SOM Libero stp file with the U Boot image embedded ready for installation onto the M2SO090 FG484 SOM using the Microsemi FlashPro tool m
15. ree support ID RT 112561 7 Fixed setting a MAC address for the SmartFusion2 MAC driver ID RT 113495 8 Added Bluetooth utils ID RT 114867 9 Add support for Micron SPI Flash in U boot and Linux ID RT 115224 10 Add nandwrite and nanddump to busybox ID RT 115174 11 Support M2S060 FG484 SOM in U Boot and Linux ID RT 115564 12 Update Libero projects to use Libero 11 6 ID RT 115565 3 3 Known Problems amp Limitations This section lists known problems and limitations of this release 1 This release requires updating both U Boot and Linux images on the SmartFusion2 System On Module U boot images from previous releases are not compatible with the Linux image from this release 2 USB is not supported by this release on the M2S050 FG484 SOM since the USB ULPI interface is not supported on the M2S050 FG484 ES and PP pre production devices Linux SmartFusion2 6 12 Release 1 14 3 Emcraft Systems M2S FG484 SOM Starter Kit Guide Emcraft Systems 3 CONFIG KERNEL IN ENVM requires disabling CONFIG ARM UNWIND and CONFIG EARLY PRINTK ID RT 74683 Workaround When enabling CONFIG_KERNEL IN EM in the kernel disable CONFIG ARM UNWIND and CONFIG EARLY PRINTK 4 USB hot plug doesn t work on SmarFusion2 under uClinux ID RT 82415 Workaround None This issue will be resolved in future releases of the product 4 Hardware Setup This section explains how to set up the Emcraft Systems M2S FG484 SOM boar
16. rmware o U Boot v2010 03 o Target initialization from power on reset o Runs from the internal eNVM and internal SRAM no external memory required for standalone operation o Serial console o Ethernet driver for loading images to the target o Serial driver for loading images to the target o Device driver for built in Flash eNVM and self upgrade capability o Device driver for storing environment and Linux images in external Flash o Autoboot feature allowing boot of OS images from Flash or other storage with no operator intervention o Persistent environment in Flash for customization of target operation o Sophisticated command interface for maintenance and development of the target e Linux o uClinux kernel v2 6 33 o Boot from compressed and uncompressed images o Ability to run critical kernel code from integrated Flash of SmartFusion2 o Serial device driver and Linux console o Ethernet device driver and networking ping NFS Telnet FTP ntpd etc o busybox v1 17 o POSIX pthreads o Hardened exception handling an exception triggered by a process affects only the offending process o Loadable kernel modules o Secure shell ssh daemon o Web server o MTD based Flash partitioning and persistent JFFS2 Flash file system for external Flash o Device driver for the USB OTG interface not supported on M2S050 FG484 SOM o T C device driver o SPI controller master mode device driver o Device
17. wing commands psl pvr u boot make m2s fg484 som config Configuring for m2s fg484 som board psl pvr u boot make s psl pvr u boot make s u boot hex 5 7 U Boot Installation The Emcraft Systems M2S FG484 SOM board arrives with the U Boot firmware pre installed into the on chip Flash of the SmartFusion2 The U Boot command line interface provides commands that allow upgrading U Boot on the running target in self upgrade mode However should you program a faulty U Boot image into SmartFusion2 U Boot can be re installed using the Emcraft provided Linux SmartFusion2 Libero project and a Microsemi FlashPro tool Here is an example of how this can be done 1 Start FlashPro on a Windows host 2 From the FlashPro IDE create a new project with an arbitrary name 3 From the main FlashPro window push Configure Device 4 Push Browse next to load existing programming file Browse to the Linux SmartFusion2 project stp file for the M2S FG484 SOM board and choose it 5 Push Program at the top of the main window to program the project onto the SmartFusion2 device and wait for the programming procedure to complete If the programming completes successfully a next reset should bring the U Boot start up messages and the command line interface onto the serial console interface 6 Further Materials Refer to Emcraft Systems SmartFusion2 System On Module M2S FG484 SOM Hardware Architecture for detailed information on the hardwar
Download Pdf Manuals
Related Search
Related Contents
descargar documento Cobra Electronics 25 LX Owner's Manual Makita HR2811F rotary hammer 取扱説明書 Opcode Studio 5 MIDI Interface User Manual from EA956FG-2,EA956FG-4(ワークベンチ(引出し付))取扱説明書 AV Center Copyright © All rights reserved.
Failed to retrieve file