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
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog Review 5: Atmel SMART SAMA5D4 Xplained Ultra - TCP/IP running
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 11 Apr 2015 8:17 AM Date Created
  • Views 1430 views
  • Likes 2 likes
  • Comments 7 comments
  • sama5d4
  • enchanted_player
  • enchanted_objects
  • xplained_ultra
  • atmel
Related
Recommended

Review 5: Atmel SMART SAMA5D4 Xplained Ultra - TCP/IP running

Jan Cumps
Jan Cumps
11 Apr 2015

I've blogged about my first steps with the kit, Review 1: Unboxing and First Steps.

The second review was on cross compilation on a Windows machine: Review 2: Building the Libraries from Source

 

image

 

This time I connected the board to my home network.

That wasn't difficult at all.

At first I plugged the network cable from router to board while it had already booted.

The network was detected:

 

Oct 30 08:29:16 sama5d4-xplained kernel: macb f8020000.ethernet eth0: link up (100/Full)

 

I didn't get a lease. When I asked linux what my  ip address was, I only got the localhost:

 

root@sama5d4-xplained:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 2a:30:59:a4:17:10 brd ff:ff:ff:ff:ff:ff

 

 

A simple reboot with the cable connected gave me an ip address

 

root@sama5d4-xplained:~# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 96:73:72:46:14:ab
          inet addr:192.168.1.50  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2375 (2.3 KiB)  TX bytes:788 (788.0 B)
          Interrupt:22


lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

 

I was also able to ping other computers in  my network:

 

root@sama5d4-xplained:~# ping 192.168.1.27
PING 192.168.1.27 (192.168.1.27) 56(84) bytes of data.
64 bytes from 192.168.1.27: icmp_seq=1 ttl=128 time=91.3 ms
64 bytes from 192.168.1.27: icmp_seq=2 ttl=128 time=4.80 ms
64 bytes from 192.168.1.27: icmp_seq=3 ttl=128 time=2.83 ms

 

and the board shows up on my router's status page

image

 

I was able to connect to the board via a browser from another pc. It shows an "It works!" message (see the first picture).

 

Next Steps:

 

I couldn't get a telnet or ssh session into the board yet. Putty says "Network error: Connection refused"

I'll have to do some more digging to see how I can get that to work on the distro that's on the board, and what I need to do to get this running.

 

This may be my next step up in getting my cross-compiled programs installed and running on the linux distro.

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 10 years ago in reply to Jan Cumps +2
    Hooray: SSH works with that HTMI image Thanks clem57 and Robert Peter Oakes !
  • clem57
    clem57 over 10 years ago +1
    I flashed the HDMI demo per Robert Peter Oakes suggestion and I get into SAMA5D4 ok. Not sure why you could not? Here is my details: 3.10.1+ #1 linux on Nov 5 2014 Clem
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to clem57 +1
    clem57 , you have that HDMI demo loaded, and you have ssh running on that, right? On that headless distro I'm using the openssh daemon seems to be missing: cat /etc/ssh/sshd_config|more # override default…
  • clem57
    clem57 over 10 years ago

    You are right... transcription error

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to Jan Cumps

    Hooray: SSH works with that HTMI image

     

    image

     

    Thanks clem57 and Robert Peter Oakes !

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to clem57

    ok, clem57,

    I have now flashed the HDMI image. Oddly enough my board boots with a different linux version than yours - but with the same date. I get 3.10.0, you 3.10.1:

     

    Poky (Yocto Project Reference Distro) 1.6.1 sama5d4-xplained /dev/ttyS0
    
    
    sama5d4-xplained login: root
    root@sama5d4-xplained:~# uname -a
    Linux sama5d4-xplained 3.10.0+ #1 Wed Nov 5 17:30:56 CST 2014 armv7l GNU/Linux
    root@sama5d4-xplained:~#

     

    Here's the log of my load attempt:

    -I- Waiting ...
    -I- TCL platform : Windows NT
    -I- SAM-BA 2.15  on : windows
    -I- current connection is \USBserial\COM27, \\USBserial\\COM27 to be matched 
    -I- Retrieved arguments from command line :
    -I- argv 0 : \USBserial\COM27
    -I- argv 1 : at91sama5d4x-ek
    -I- argv 2 : demo_linux_nandflash_hdmi.tcl
    -I- Connection \USBserial\COM27
    -I- Connection : \USBserial\COM27 (target(comType) = 0)
    -I- Board : at91sama5d4x-ek
    -I- Traces Level : 4
    -I- target(handle) : 50740032
    -I- sourcing board description file C:/Program Files (x86)/Atmel/sam-ba_2.15/sam-ba.exe/../tcl_lib/at91sama5d4x-ek/at91sama5d4x-ek.tcl
    Read device Chip ID at 0xFC069040 --- get 0x8a5c07c0
    -I- Found chip : at91sama5d4x_0 (Chip ID : 0x8a5c07c0)
    -I- Loading applet applet-lowlevelinit-sama5d4x.bin at address 0x200000
    ...
    -I- Complete 99%
    -I- Writing: 0x40000 bytes at 0xB780000 (buffer addr : 0x20024DF4)
    -I- 0x40000 bytes written by applet
    -I- === DONE. ===

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to clem57

    clem57, you have that HDMI demo loaded, and you have ssh running on that, right?

     

    On that headless distro I'm using the openssh daemon seems to be missing:

     

    cat /etc/ssh/sshd_config|more
    # override default of no subsystems
    Subsystem       sftp    /usr/lib/openssh/sftp-server
    
    root@sama5d4-xplained:/usr/lib# cd /usr/lib/openssh
    -sh: cd: /usr/lib/openssh: No such file or directory

     

    I'll  try to load that HDMI version distro...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 10 years ago in reply to Jan Cumps

    WINSCP works for me also... openssh iis the server portion. Also the web server is ok.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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