"Go" Raspberry Pi first launch raiders for MAC

Source: Internet
Author: User

http://blog.csdn.net/rk2900/article/details/8632713/

Raspberry Pi first launch raiders for MAC

Made by Rk

Thanks to the Zhejiang University "embedded System" course to provide strong support!

/************************************************************************/

This tutorial connects the MacBook via the serial port, and the notebook side operates the Raspberry Pi via minicom.

The initial start of the Raspberry Pi requires the following steps:

Install system image to SD card

Installing the serial port driver

Installing minicom

Hardware materials required for initial startup:

A computer

Raspberry Pi
SD Card
Power cord and USB charger (output above 1A)
Serial to USB cable (I use PL2303)

0.5, hardware work connection serial line: Serial line black line grounding, white wire connect GPIO14, Green Line connect GPIO15, do not answer wrong! After connecting the power supply can be supplied with Iphone/ipad charger.

1. Install the system image to SD card

To view mounted storage devices using Df-h:

Our SD card device for Raspberry Pi is named/dev/disk2s1

First we uninstall the SD card in the system so that the DD command installs the system boot image

[Plain]View PlainCopy
    1. sudo diskutil unmount/dev/disk2s1

Then install the image using the DD command

[Plain]View PlainCopy
    1. sudo dd bs=1mif=2012-12-16-wheezy-raspbian.img of=/dev/rdisk2<span style= "font-family:arial, Helvetica, Sans-serif; " > </span>

2. Install the serial port drive

Http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41

Here to download the corresponding system version of the driver, my side is Mac OS mountain lion.

Install need to restart the computer, so save the work data in advance

The next step occurs with tty.usbserial.

3, Installation minicom

The minicom of the MAC system requires the support of the Port software.

Download the Macport software corresponding to your system version in http://www.macports.org/install.php and install it after downloading, which may take a long time to check for updates, please be patient.

After installation, run sudo port install minicom installation minicom

If the following error message appears, it indicates that the computer does not have a compiler such as GCC installed, please install it first.

Error:unable to execute Port:can ' t read "Build.cmd": Failed to locate ' make ' in Path: '/opt/local/bin:/opt/local/sbin:/b In:/sbin:/usr/bin:/usr/sbin '

Installation is complete.

Terminal Input command minicom startup program.

This may be an error, possibly/dev/modem:no suchfile or directory.

Workaround:

Type Minicom-s

Choose Serial Port Setup

A-Change to/dev/tty.usbserial

Enter and select Save Setup as DFL

Change the baud rate divisor to 115200, the checksum is set to 8N1

Power on, start up.

30 seconds after the login statement: (the middle of a wrong password)

After logging in:

4, try to write a C program:

"Go" Raspberry Pi first launch raiders for MAC

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.