element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Atmel Xplained Boards
  • Products
  • Dev Tools
  • Atmel Xplained Boards
  • More
  • Cancel
Atmel Xplained Boards
Blog sama5d3 xplained violet - ssh into the sama5d3 xplained through network cable
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Atmel Xplained Boards to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 4 Oct 2014 5:06 PM Date Created
  • Views 723 views
  • Likes 2 likes
  • Comments 0 comments
Related
Recommended

sama5d3 xplained violet - ssh into the sama5d3 xplained through network cable

Former Member
Former Member
4 Oct 2014

Power off the Xplained board and connect a network cable from the board into your router (a wireless adapter should also work just as easily, I'm going to use a cable for simplicities sake. Once your happy and problem free using a cable then moving onto a wireless adapter should be straight forward).

 

Once connected power up the board, either with external power (remember 5v max) or with the USB cable provided.

 

When the LED starts flashing in it's uniform heartbeat pattern, the onboard operating system is booted up. Give it a few more seconds to register itself on the network then its time to find it.

 

If your like me and can log onto your router through your host computer then it should be easy enough to find the network address of the board, if not then you will need to scan your network:

 

Im using ubuntu and will be using the nmap tool to scan my network. If you dont have it then you will need to install it:

 

sudo apt-get install nmap

 

then get the network range:

 

type "ifconfig" into your terminal and you should get something looking like:

 

 

eth0 

Link encap:Ethernet  HWaddr 00:19:21:4b:c4:f2 
      inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
      inet6 addr: fe80::219:21ff:fe4b:c4f2/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:80294 errors:0 dropped:0 overruns:0 frame:0
      TX packets:67087 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:84059373 (84.0 MB)  TX bytes:11129581 (11.1 MB)
      Interrupt:16

 

the line in bold is the important one, this tells us our network range can be anywhere between 192.168.1.0 and 192.168.1.255. Yours might be different so remember to use the address that you have when we continue below (in most cases it should be the same though).

 

We need to scan that range, so:

 

type "nmap -sP 192.168.1.0/24" remembering to use your ip range(you also might need to use it as sudo). and we should see something like:

 

                                        Starting Nmap 6.40 ( http://nmap.org ) at 2014-10-04 17:39 BST

                                       Nmap scan report for udhcp-1-21-1-62-5d-a5-41-75-38.home (192.168.1.96)

                                        Host is up (0.00014s latency).

                                        MAC Address: 62:5D:A5:41:75:38 (Unknown)

                                        Nmap scan report for BThomehub.home (192.168.1.254)

                                        Host is up (0.00086s latency).

                                        MAC Address: CC:33:BB:49:47:12 (Sagemcom SAS)

                                        Nmap scan report for personal-2aa894.home (192.168.1.70)

                                        Host is up.

                                        Nmap done: 256 IP addresses (3 hosts up) scanned in 7.64 seconds

 

This tells us that there are 3 devices present on the network, the first one highlighted in bold is the xplained board. The numbers in the brackets is the ip address of the board, this is what we need to ssh into it. for consistency, the other 2 devices on my network is my homehub(the router itself) and my host computer that we already knew about. Any other devices connected to your network will also be listed but we re only interested in the xplained board right now.

 

Once we have the ipaddress of the xplained board, currently 192.168.1.96 then we can ssh into it:

 

type "ssh 192.168.1.96 -l root" into a terminal, remembering to use the ip address you have obtained from your xplained board. the -l root says we want to logon as user:root which is the default user.

 

your command prompt should now read:

 

          root@sama5d3_xplained:~#

 

This is a direct access to the xplained board, anything you type into that terminal will now be executed on the xplained board. to exit simply type"exit" and you will be logged off and return to your normal command prompt.

 

 

------------------------------------------------------------------------------------------------

 

This part may give you the same access as you would get connecting purely through the usb cable and accessing it with something like minicom on /dev/ttyACM0 but in a more native linuxy way. I'm more used to connecting with ssh so it's better for my "comfort zone!!".

 

******************************************DANGER*******************************************************

 

Don't assume the IP address of the xplained board will always be the same, it seems to change ip addresses everytime it logs onto the network, usually incrementing by 1. I've got a fix on my todo list but for now, this is better than anything, or for me at least image

 

******************************************BONUS*******************************************************

 

Use SCP to transfer a file from your host computer onto the xplained board through your network connection.

You need to know your xplained boards ip address plus the name and location of a file you want to copy.

 

make sure your terminal is at it's normal command prompt and not logged into the xplained board via ssh.

 

then:

 

scp /my_file_location/myfile root@192.168.1.96:~/

 

Your file will now be copied into the root home directory on the xplained board. it's possible to transfer to other directories and also change the filename aswell, the above is just a basic outline of how to go about transferring files.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube