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 [ExM] #2 First attempt on the Atmel SAMA5D4, installing JAVA
  • 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: nikil511
  • Date Created: 21 Mar 2015 8:54 PM Date Created
  • Views 649 views
  • Likes 5 likes
  • Comments 1 comment
  • sama5d4
  • enchanted_objects
  • espresso_ex_machina
  • java
Related
Recommended

[ExM] #2 First attempt on the Atmel SAMA5D4, installing JAVA

nikil511
nikil511
21 Mar 2015

Following pettitda instructions  Atmel SAMA5D4 Xplained Ultra Road Test -- Day 3

I installed the USB driver, and hooked my SAM to the USB of a windows machine, connected with putty....and... hello there! image

Note that I did not have to change flow control to "none", just changed speed to 115200 and set correct port.

"root" account is without password. Had a look around, by running:

uname -a

Linux sama5d4-xplained 3.10.0-custom #1 Thu Oct 30 16:04:45 CST 2014 armv7l GNU/

cat /etc/issue

    Poky (Yocto Project Reference Distro) 1.6.1

cat /proc/version

    Linux version 3.10.0-custom (josh@melon) (gcc version 4.8.2 (GCC) ) #1 Thu Oct 30 16:04:45 CST 2014

df -h

Filesystem      Size  Used Avail Use% Mounted on

rootfs          446M  100M  347M  23% /

ubi0:rootfs    446M  100M  347M  23% /

devtmpfs        251M    0  251M  0% /dev

tmpfs          251M  72K  251M  1% /run

tmpfs          251M  108K  251M  1% /var/volatile

 

top

top - 09:14:38 up 51 min,  1 user,  load average: 0.08, 0.03, 0.05

Tasks:  39 total,  1 running,  38 sleeping,  0 stopped,  0 zombie

Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 98.7%id,  0.0%wa,  0.0%hi,  0.7%si,  0.0%st

Mem:    513976k total,    25240k used,  488736k free,        0k buffers

Swap:        0k total,        0k used,        0k free,    11776k cached

 

opkg list|grep java

    but got nothing back image

 

Did a quick search, and came up with this:

https://software.intel.com/en-us/blogs/2014/04/04/some-hints-on-yocto-builds-for-iot-devkit-example-adding-java-jre

It's for Intel(R) Galileo board, but it's also using Yocto. This gave me a hint, that I need to specify a source url for /etc/opkg/opkg.conf but is there one that we could use ?


So I guess that means, I will have to install Java manually, or the normal (atmel) approach must be to build a different image with the distro of choice (i.e. debian) and inherit the support/repos/etc.

As a quick and dirty test, I tried the following:

wget http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jdk-7u60-linux-arm-vfp-hflt.tar.gz

                          (Oracle requires "I agree" ticks, so I did a search and found a random mirror for direct download)

mkdir /java

tar xzf jdk-7u60-linux-arm-vfp-hflt.tar.gz

export JAVA_HOME=/java/jdk1.7.0_60/jre/

java -version


     java version "1.7.0_60"

     Java(TM) SE Runtime Environment (build 1.7.0_60-b19)

     Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode)

 

..that went smooth image

 

Next post >> [ExM] #3 First attempt on Arduino Yun

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 10 years ago +2
    I am planning a Yun based approach but if it is significantly delayed then I'll swap to the SAM, a very helpful link there at the top, thanks.
Parents
  • Workshopshed
    Workshopshed over 10 years ago

    I am planning a Yun based approach but if it is significantly delayed then I'll swap to the SAM, a very helpful link there at the top, thanks.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Workshopshed
    Workshopshed over 10 years ago

    I am planning a Yun based approach but if it is significantly delayed then I'll swap to the SAM, a very helpful link there at the top, thanks.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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