跳到主要內容

[Intel][IoT][Galileo]Intel IoT初體驗:
跨Windows、OSX、Linux三大平台支援的Intel Quark-based Galileo Gen 2開發板

這篇文章記錄在Intel Quark-based Galileo Gen 2開發板上愉快的Getting Start經驗!!

本尊與配件

下圖就是Intel Quark-based Galileo Gen 2開發板!!
又是一片與Arduino相容的IoT開發板,配上熱熱的Intel SoC、大大的乙太網路孔跟不知道是否故意設計無防呆的USB轉RS232排針...

SD Card跟網路線非標配,不過還好Micro SD card很便宜隨便買個class 4 SDHC的就行了歐!!
(PS:此板子只支援32GB以內SDHC格式的SD card歐!!)
看到4GB跟8GB價錢相同,於是就拿8GB了!!也有不附轉卡更便宜的:

快快樂樂Getting Start

請點開Intel的Getting Start,選擇OS、IDE開始Prepare Your MicroSD Card:
基本上就是把Pre-built image塞進SD Card、將SD Card插入板子、將不防呆的排線連接板子與USB端連接電腦,裝電腦上的COM Port driver for serial terminal、在Host上使用putty(或相對應的serial terminal)設定鮑率(Baud)與COM Port號碼後開啟、看板子開心的boot image,設定板子網路IP,最後在Host上安裝Intel® Developer Kit version of the Eclipse* IDE
(By the way,請完全使用Intel提供的Image與Eclipse等工具組,才能完全照官網教學做)

因為Intel寫得太好了,所以這邊只補充網路部分,Intel官網提供的是透過Wifi模組連接網路,而此片板子使用的是乙太網路,預設板子會使用DHCP自動取得IP,可以透過ifconfig看到板子取到的IP address:
ifconfig -a
或是手動設定IP,然後ping看看是否成功:
ifconfig enp0s20f6 140.114.78.51 netmask 255.255.255.0 up
route add default gw 140.114.78.254
echo "nameserver 8.8.8.8" > /etc/resolv.conf
ping 8.8.8.8
ping www.google.com

小結論

Intel真的把Getting Start做得非常好,跨平台支援教學很棒!
作業系統使用Yocto Project的Linux版本: https://www.yoctoproject.org/
透過mraa(https://github.com/intel-iot-devkit/mraa)與upm(https://github.com/intel-iot-devkit/upm)兩包library作底層的abstraction,
程式使用C/C++(透過cross-compiler), Python, Node.js, HTML5, JavaScript(透過Intel XDK)都能上到板子,
還跟Arduino相容,看來可以玩的東西可多了~

留言

這個網誌中的熱門文章

[Qt][Embedded][PXA270]
Porting Qt 4.8.6 for Creator XScale PXA270

這篇文章介紹這學期我在嵌入式作業系統課程,使用Creator XScale PXA270板子的一些學習筆記與製作final project的一些過程,歡迎各位多多指教~ 背景介紹 Creator XScale PXA270開發版是一塊由 新華電腦(microtime) 公司出品的 模組化XScale/ARM/SoC/FPGA/DSP嵌入式行動通訊發展平台 ,在此課程與final project主要使用的是"Create XScale‐PXA270 子板"與"MTLCD‐0708048 LCD Module",在Create XScale‐PXA270子板上的為Intel(現在已出售給Marvell)的 Xscale系列 PXA270 處理器,基於ARMv5TE架構指令集,在旁附有SDRAM Memory 64MB、Flash Memory 32MB、SD Card Connectors、RJ45 10/100 Base‐T Ethernet Interface、USB 1.1 Device/Host Port各一、AC97 Audio Codec(Line_in、Mic_in、Headphone)、ADC Interface*4、PWM Interface、CMOS Camera Interface、TFT-LCD Interface、GPIO Interface...等;在軟體功能部分,由新華科技提供了GNU GCC cross compiler toolchain(arm-unknown-linux-gnu-gcc 4.0.2)、Uboot 1.1.5、Linux Kernel 2.6.15.3與patch(提供支援子板上的Ethernet、USB Host、TFT‐LCD(Frame buffer、Touch Screen)、AC97‐Codec...等與母板LED、7‐Seg LED、Key Pad...等的device driver)、rootfs,相關的實驗環境設定可以參考 User Guide 。 看到以上這麼多的軟硬體介面,別以為這板子有多強,其實這是 2006 年 ASUS P535 手機使用的規格了,不禁讓人感嘆科技進步之快阿~ 在此附上開發版本尊 Qt 是自由且開放原始碼的跨平台C...

Run Android VTS with Android R emulator through WSL

Background Android VTS The Android Vendor Test Suite (VTS) provides extensive new functionality for Android testing and promotes a test-driven development process. Android R emulator Run the latest Android R image from Google CI build artifacts WSL WSL is a collection of components that enables native Linux ELF64 binaries to run on Windows . It contains both user mode and kernel mode components. It is primarily comprised of: User mode session manager service that handles the Linux instance life cycle Pico provider drivers (lxss.sys, lxcore.sys) that emulate a Linux kernel by translating Linux syscalls Pico processes that host the unmodified user mode Linux (e.g. /bin/bash) It is the space between the user mode Linux binaries and the Windows kernel components where the magic happens. By placing unmodified Linux binaries in Pico processes we enable Linux system calls to be directed into the Windows kernel. The lxss.sys and lxcore.sys drivers translate the Linux s...

[Arduino]Inside Arduino: Andes Andino M1

這篇文章記錄了最近探索Arduino與 台灣晶心科技Andes出的Andino M1('Andino'沒打錯!!他真的叫這名字)相容Arduino的IoT板子 的一些hacking與紀錄,歡迎各位多多指教~ 先來看看本尊 是的就是它!!小小一片 吐槽一下,在下圖看到橘框處竟然看到ARM Cortex-M3,不過在這邊這顆ARM似乎只拿來處理介面轉換,不然就都用這顆ARM應該效能更好? XDD 下載與安裝Arduino IDE 請到官網下載Arduino IDE https://www.arduino.cc/en/Main/Software?setlang=en 如果是使用Andes Andino M1,請務必下載Windows平台的 因為目前board support package只支援windows版... Arduino Board Manger 下載安裝好之後,接下來是加入Andes Andino M1的board support到Arduino 這邊有一個很重要的雷點!!!就是 Editor language務必要設為English ( 紅框處 ,預設使用Windows系統預設語言),否則在開啟Board Manger時會出現java.lang.RuntimeException: java.lang.IllegalArgumentException: Unmatched braces in the pattern.的錯誤訊息 在Additional Board Manger URLs中,輸入(橘框處): http://knect.me/andino/M1/package_Andino_knectme_index.json 然後按OK,到board manger按instasll安裝(點紅框處會出現按鈕): 安裝成功後,會看到有Andino M1可選(紫框處) 關於package_Andino_knectme_index.json的原理,我們可以看到在這個json檔案內,定義了platform與tools的資訊,Arduino會在開啟Board Manger時,去下載讀取所有使用者額外新增的json網址,然後在按下安裝時去下載於該檔內定義的toolchain,這...