intel galileo linux setting

20
㈜유미테크 Intel Galileo 설치 및 설정

Upload: ymtech

Post on 16-Jul-2015

233 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Intel Galileo Linux Setting

㈜유미테크

Intel Galileo 설치 및 설정

Page 2: Intel Galileo Linux Setting

목차

• Intel Galileo specification

• Intel Galileo Arduino IDE 설치

• Intel Galileo와 PC 연결

• Arduino SW를 통한 Firmware Update

• SD카드로 부팅

• Intel Galileo IP설정

Intel Galileo2

Page 3: Intel Galileo Linux Setting

Intel Galileo

Intel Galileo3

Intel® Galileo Board

QPI 링크 수 0

지원 FSB NA

FSB 패리티 No

보드 폼 팩터 Arduino

소켓 Quark 393pin FCPGA

리소그래피 32 nm

최대 TDP 12.5 W

DC 전압 5

Back-to-BIOS 버튼 No

설명 Arduino Compatible development board

프로세서 포함 Intel® Quark SoC X1000 (16K Cache, 400 MHz)

최대 메모리 크기 256 MB

메모리 유형 DDR3-800

메모리 채널 수 1

최대 메모리 대역폭 2.5 GB/s

물리적 주소 확장 32-bit

PCI 지원 PCI Express

USB 개정 2.0

USB 포트 수 3

EthernetPort

RS-232Port

USBClient

USBHost

DigitalPins

AnalogPins

PowerPins

Rebootbutton

JTAGPort

Resetbutton

MicroSD slot

DC 5V

Page 4: Intel Galileo Linux Setting

Intel Galileo Arduino IDE 설치

• Intel 에서 제공하는 Galileo Software 사이트 접속한다.(https://communities.intel.com/docs/DOC-22226)

• 본인 PC의 OS에 맞는 소프트웨어를 다운받는다.(Windows사용자는 Intel Galileo Arduino SW 1.5.3 on Windows)

• 다운받은 압축파일을 풀면 다른 설치과정 없이 설치가 끝난다.

Intel Galileo4

Page 5: Intel Galileo Linux Setting

Intel Galileo와 PC 연결하기

1. 5V Power Cable을 연결한다.

2. Intel Galileo의 ‘USB Client’와 PC의 USB를 연결한다.

Intel Galileo5

2

1

Page 6: Intel Galileo Linux Setting

Intel Galileo 와 PC 연결하기 (계속)

3. 기존의 PC에 ‘Gadget Serial 2.4’ 장치가 없었다면 자동으로 USB드라이버가 설치되지 않는다.

4. 제어판->하드웨어 및 소리->장치관리자에 들어가서 ‘포트(COM & LPT)’에 해당장치(Galileo)를 선택하여 수동으로 드라이버 소프트웨어를 업데이트한다.

Intel Galileo6

Page 7: Intel Galileo Linux Setting

Intel Galileo 와 PC 연결하기 (계속)

5. [찾아보기]버튼을 선택하여, Arduino 폴더를 선택한다.

6. 설치가 완료되면, Galileo라는 이름의 장치가 생기고 Arduino에서 접근하기 위한포트(COM#)가 사용가능함을 알 수 있다.

Intel Galileo7

Page 8: Intel Galileo Linux Setting

Arduino SW를 통한 Firmware Update

1. Arduino 폴더에서 Aruduino를 실행한다.

2. 도구->보드에서 Intel Galileo를 선택한다.

3. 도구->시리얼포트에서 Intel Galileo의 포트를 선택한다.

Intel Galileo8

Page 9: Intel Galileo Linux Setting

Arduino SW를 통한 Firmware Update (계속)

4. 도움말 -> Firmware Update를 선택한다.

5. 경고창이 뜨고, ‘Yes’를 선택하면 Firmware Update가 시작된다. (5분소요)

Intel Galileo9

Page 10: Intel Galileo Linux Setting

SD카드로 부팅하기

Intel Galileo10

Page 11: Intel Galileo Linux Setting

SD카드에 이미지 쓰기

• Intel Galileo는 Arduino SW를 이용하여 보드에 소스코드를 올릴 수 있으나, 기본 메모리가 8MB 플래시메모리이므로 장치를 껐다 키면 내용이 사라진다. 따라서, SD카드에 리눅스 이미지를 올리고, Galileo를 SD카드로 부팅하는 방법을사용한다.

1. Intel 에서 제공하는 Galileo Software 사이트(https://communities.intel.com/docs/DOC-22226)를 접속하여 SD카드를 위한리눅스 이미지를 다운받는다.

Intel Galileo11

Page 12: Intel Galileo Linux Setting

SD카드에 이미지 쓰기 (계속)

2. 7zip을 통해 다운받은 7z파일을 압축 해제한다.

3. SD카드를 PC에 연결하고, FAT32 파일시스템으로 포멧한다.(Intel Galileo는 SD카드를 최대 32GB까지 지원한다.)

4. SD카드에 별다른 폴더를 생성하지 않고, 이미지 파일을 바로 복사한다.

Intel Galileo12

Page 13: Intel Galileo Linux Setting

UART로 리눅스 콘솔에 접근

1. 3.5mm to DB9 cable과 DB9 to USB cable을 이용하여 보드와 PC를 연결한다.

2. 제어판->시스템->장치관리자에서 해당 시리얼 포트의 COM#를 확인한다.

Intel Galileo13

[3.5mm to DB9 ] [DB9 to USB cable]

UART포트

Page 14: Intel Galileo Linux Setting

UART로 리눅스 콘솔에 접근 (계속)

4. Putty(http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html )를 이용하여 해당 장치에 시리얼 접속을 할 수 있다.

① Connection Type : Serial② Serial line : 위에서 확인한 포트번호③ Speed : 115200

Intel Galileo14

2 3

1

Page 15: Intel Galileo Linux Setting

SD카드로 부팅하기

1. Putty을 통해 시리얼로 보드에 접속한다.

2. 보드의 SD카드 슬롯에 SD카드를 삽입하고 전원을 연결한다. (초기에 몇 분 정도 SD카드에 대한 설정으로 시간이 걸릴 수 있다.)

3. 화면에 아래와 같은 메뉴가 나왔을 때, [Enter] 를 누른다.

Intel Galileo15

Page 16: Intel Galileo Linux Setting

SD카드로 부팅하기 (계속)

4. 부팅할 OS를 선택하는 메뉴가 나오는데, kernel-SPI는 기존 플래시메모리로 접근하는 것이고, kernel-MassStorage는 SD카드로 접근하는 것이다.

방향키를 이용하여 MassStorage를 선택하고 해당 OS로 부팅 한다.

Intel Galileo16

Page 17: Intel Galileo Linux Setting

SD카드로 부팅하기 (계속)

5. SD카드로 부팅이 되고, ID에 root를 입력하면 별다른 절차 없이 리눅스를 사용할수 있다. (SD카드에 올린 이미지에 따라 설정은 바뀔 수 있다.)

Intel Galileo17

Page 18: Intel Galileo Linux Setting

Intel Galileo IP 설정

• sudo vi /etc/network/interfaces 입력한다.

• 기존 내용을 아래와 같이 수정한다.

• sudo reboot 입력하여 재부팅한다.

Intel Galileo18

root@clanton:~#

root@clanton:~# sudo vi /etc/network/interfaces

auto lo

iface lo inet loopback

iface eth0 inet static

address 192.168.2.101

netmask 255.255.255.0

network 192.168.2.0

gateway 192.168.2.1

root@clanton:~#

root@clanton:~# sudo reboot

Page 19: Intel Galileo Linux Setting

Intel Galileo IP 설정 (계속)

• 재부팅 후, ifconfig 명령을 통해 IP가 변경됐는지 확인한다.

Intel Galileo19

root@clanton:~#

root@clanton:~# ifconfig

eth0 Link encap:Ethernet HWaddr b8:27:eb:74:46:a6

inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICASE MTU:1500 Mertic:1

RX packets:1 errors:0 dropped:1 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:55 (55.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICASE MTU:16436 Mertic:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@clanton:~# _

Page 20: Intel Galileo Linux Setting

참고 문서

• Intel Galileo Development Board Documents, ‘Galileo_GettingStarted_329685_005.pdf’(https://communities.intel.com/community/makers/documentation/galileodocuments)

Intel Galileo20