Getting started with Intel Edison on OS X

29 October 2014

Note that much of the following information is available in the Getting Started Guide from Intel. However, there is some additional information for assembling the Mini Breakout Board, SSH-ing over Wi-Fi, and package management.

Introduction to Edison

Last month, Intel launched Edison, a tiny computing platform that’s just slightly larger than a SD card. Edison is powered by an Intel SoC that includes a dual core Atom CPU and a 32-bit Quark microcontroller, has integrated Wi-Fi and BTLE (Bluetooth Low Energy), and comes pre-packaged with Yocto Linux, Python, and Node.js. Not bad for a tiny computer!

There are two kits that are currently available:

The kit on the left comes with a Mini breakout board, while the kit on the right comes with an Arduino breakout board. While the latter is great if you want to build things that are Arduino-compatible, the size of the board is quite large. The Mini breakout board is better if you want a board that has a much smaller footprint.

Setting up Edison with the Mini breakout board

What’s in the smaller box?

The Mini breakout board kit comes with the following: the breakout board (bottom-right), Edison (bottom-center), and a ziplock bag with two hex nuts (bottom-left).

To get Edison onto the board, align the two holes on Edison over the two screws on the board. Push Edison into place until you hear a snap. Then take the two hex nuts (in the ziplock bag) and hand-tighten them onto the screws; they don’t have to be screwed on tight.

Here’s what the assembled Mini breakout board with Edison should look like:

Setting up Edison with the Arduino breakout board

What’s in the bigger box?

The Arduino breakout board kit comes with the following: the breakout board (bottom-right), Edison (bottom-center), and a ziplock bag with a variety of screws and such (bottom-left).

To get Edison onto the board, align the two holes on Edison over the two screws on the board. Push Edison into place until you hear a snap. Then take two hex nuts (in the ziplock bag) and hand-tighten them onto the screws; they don’t have to be screwed on tight.

Note that there are additional screws and such in the ziplock bag, which are used to make a stand for the board. I didn’t find this to be necessary, but feel free to assemble this part if you like.

Here’s what the assembled Mini breakout board with Edison should look like:

Getting Edison up-to-date on Mac OS X

Now that we have assembled the hardware, connect two micro USB cables to the board and the other ends to the computer.

The black cable is used to power Edison. (The port is also USB On-The-Go, where it can act as host or a peripheral.) The white cable is used for serial communication with the computer. Later on, we’ll set up Wi-Fi so that we can SSH into Edison over Wi-Fi, which eliminates the need for using the white cable. Note that the above picture shows the Mini breakout board, but setup is essentially the same on the Arduino breakout board.

At the login prompt, type root and press Enter. You may be prompted for a password, but if you’ve never set up Edison before, just hit Enter.

edison login: root
Password:
root@edison:~#

Congratulations, you are now connected to Edison from your Mac!

Configuring Edison and setting up Wi-Fi

Now that you’re connected to Edison, let’s configure it:

configure_edison --setup

This will walk you through the setup process. Use the --help flag to see other configuration options that are available.

After pressing Enter, you will be prompted to give Edison a unique name. For example purposes, let’s give the name myedison, but feel free to choose your own name:

Configure Edison: Device Name
Give this Edison a unique name.
This will be used for the access point SSID and mDNS address.
Make it at least five characters long (leave empty to skip): myedison
Is myedison correct? [Y or N]: Y

You will then be prompted to enter a password:

Configure Edison: Device Password
Enter a new password (leave empty to abort)
This will be used to connect to the access point and login to the device.
Password: ******
Please enter the password again: ******
The device password has been changed.

You will then be asked to set up Wi-Fi:

Do you want to set up wifi? [Y or N]: Y

Edison will then scan for available networks. Enter the number for the network that you would like to connect to:

Once successfully connected, you should see a message similar to this:

Done. Please connect your laptop or PC to the same network as this device and go to http://12.345.67.89 or http://myedison.local in your browser.

Entering either URL in a browser window should give you a page that looks like this:

Congratulations, Edison is now connected to Wi-Fi!

SSH-ing into Edison over Wi-Fi

Now that Edison is connected to Wi-Fi, it’s also possible to SSH over Wi-Fi, provided that the computer you want to log in from is on the same network. If so, open a new Terminal window and enter the following:

When prompted for a password, use the password you created when configuring Edison.

Congratulations, you can now SSH into Edison over Wi-Fi!

Managing packages on Edison

Edison’s operating system is based off Yocto Linux, and it uses opkg as its package manager. There are two very helpful repositories to fetch packages from, and I definitely recommend using them as you lay out the foundations of your project: