Intel Galileo板入门指南-v0.68

Report
Aixi Wang
http://www.quarkhub.net/
夸克玩家资源站QQ: 348523286
欢迎拷贝,复制,传播

https://communities.intel.com/docs/DOC-21836
串口
电源
USB
Slave

https://communities.intel.com/docs/DOC21825

https://communities.intel.com/docs/DOC21826

https://communities.intel.com/docs/DOC-22226

https://communities.intel.com/docs/DOC21838
相关链接:https://communities.intel.com/docs/DOC-22156
1.
2.
3.
4.
5.
6.
7.
下载Intel Galileo Arduino SW 1.5.3 on Windows
(https://communities.intel.com/docs/DOC-22226)
展开相关的下载的zip文件。
连上电源,连上usb slave,打开软件
设置 tools -> serial port
设置 tools -> board
编程
下载
1.
2.
3.
http://downloadmirror.intel.com/23171/eng/LINUX_IMAGE_
FOR_SD_Intel_Galileo_v0.7.5.7z 下载,展开到SD上 (FAT分区)
启动,选择SD卡驱动
开始Python编程
1.
2.
3.
4.
下载
http://downloadmirror.intel.com/23171/eng/Board_Support
_Package_Sources_for_Intel_Quark_v0.7.5.7z
按照软件说明手册, 编译和生成 image
在Yocto里建立自己的项目,编译生成文件,
copy到sd卡,启动,运行
另一个简单的方法:
或者用Arduino内置的编译器编译,请参考:
https://github.com/tokoro10g/galileo-makefile

#!/bin/sh

echo "starting download script"

echo "Args to shell:" $*

# ARG 1: Path to lsz executable.

# ARG 2: Elf File to download

# ARG 3: COM port to use.

#path contains \ need to change all to /

path_to_exe=$1

fixed_path=${path_to_exe//\\/\/}

#COM ports are not always setup to be addressed via COM for redirect.

#/dev/ttySx are present. Howwever, COMy -> /dev/ttySx where x = y - 1

com_port_arg=$3

com_port_id=${com_port_arg/COM/}

echo "COM PORT" $com_port_id

tty_port_id=/dev/ttyS$((com_port_id-1))

echo "Converted COM Port" $com_port_arg "to tty port" $tty_port_id

echo "Sending Command String to move to download if not already in download mode"

echo "~sketch download" > $tty_port_id

#Move the existing sketch on target.

echo "Deleting existing sketch on target"

$fixed_path/lsz.exe --escape -c "mv -f /sketch/sketch.elf /sketch/sketch.elf.old" <> $tty_port_id 1>&0

# Execute the target download command

#Download the file.

host_file_name=$2

$fixed_path/lsz.exe --escape --binary --overwrite $host_file_name <> $tty_port_id 1>&0

#mv the downloaded file to /sketch/sketch.elf

target_download_name="${host_file_name##*/}"

echo "Moving downloaded file to /sketch/sketch.elf on target"

#$fixed_path/lsz.exe --escape -c "cp sketch /sketch/sketch.elf" <> $tty_port_id 1>&0


把字体设成英文
装locale Emulator GUI 模拟英文字体

http://s.taobao.com/search?q=OpenOCD&app=detail&tab=al
l&promote=0&s=0#J_relative





http://item.taobao.com/item.htm?id=7835932813
针脚线序定义-1:
3.5mm尖端连接9针串口2号针脚;
3.5mm中间环连接9针串口3号针脚;
3.5mm根部连接9针串口5号针脚。



http://mirrors.sohu.com/debian-cd/7.3.0/i386/iso-dvd/
安装服务器版本
http://www.servidordebian.org/en/wheezy/start







从QQ群下载 galileo_sdk_linux64.tgz
Copy 到 /
Cd /
Tar zxvf galileo_sdk_linux64.tgz
Cd opt/clanton-tiny/1.4.2/
source environment-setup-i586-poky-linux-uclibc
$CC hello.c

QQ群下载cdc-acm-serial.zip
















If you are looking for a commercial solution, Intel System Studio would be it.
http://software.intel.com/en-us/intel-systemstudio?wapkw=intel+system+studio
As open-source solution, you should look into OpenOCD.
http://openocd.sourceforge.net/
The patch for Quark/Galileo is here:
http://openocd.zylin.com/#/c/1829/
We are still working on the patch to get it accepted to mainline. But until then, you
can work with it by downloading it from the OpenOCD gerrit.
OpenOCD supports quite a lot of JTAG probes. A full list can be found here:
http://openocd.sourceforge.net/doc/html/Debug-AdapterConfiguration.html#Debug-Adapter-Configuration
It tested OpenOCD on Quark with an Olimex-usb-ocd-h and Flyswatter2
https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD-H/
http://www.tincantools.com/JTAG/Flyswatter2.html

https://downloadcenter.intel.com/Detail_Des
c.aspx?DwnldID=23197

https://communities.intel.com/community/m
akers

例子
C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linuxuclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=C:\arduino1.5.3/hardware/tools/x86/i586-poky-linux-uclibc -c -g -Os -w -fno-exceptions ffunction-sections -fdata-sections -MMD -march=i586 -m32 -DARDUINO=153 IC:\arduino-1.5.3\hardware\arduino\x86\cores\arduino -IC:\arduino1.5.3\hardware\arduino\x86\variants\galileo_fab_d C:\arduino1.5.3\hardware\arduino\x86\cores\arduino\Stream.cpp -o
C:\DOCUME~1\a_user_name\LOCALS~1\Temp\build8378500062392217781.tmp\Strea
m.cpp.o
To configure your Galileo to fetch packages from there, do the following:
1) Make sure you're working with SD card Linux image and not the SPI one;
2) Replace anything you have in /etc/opkg/base-feeds.conf with the following (other opkg
config files don't need any changes):
[email protected]:~# cat /etc/opkg/base-feeds.conf
src/gz all
http://dl.bintray.com/alext-mkrs/galileo-packages/all
src/gz clanton http://dl.bintray.com/alext-mkrs/galileo-packages/clanton
src/gz i586 http://dl.bintray.com/alext-mkrs/galileo-packages/i586
3) Run opkg update command and you should see the below output, which means you're
successfully communicating with the repo:
[email protected]:~# opkg update
Downloading http://dl.bintray.com/alext-mkrs/galileo-packages/all/Packages.gz.
Inflating http://dl.bintray.com/alext-mkrs/galileo-packages/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/all.
Downloading http://dl.bintray.com/alext-mkrs/galileo-packages/clanton/Packages.gz.
Inflating http://dl.bintray.com/alext-mkrs/galileo-packages/clanton/Packages.gz.
Updated list of available packages in /var/lib/opkg/clanton.
Downloading http://dl.bintray.com/alext-mkrs/galileo-packages/i586/Packages.gz.
Inflating http://dl.bintray.com/alext-mkrs/galileo-packages/i586/Packages.gz.
Updated list of available packages in /var/lib/opkg/i586.
[ide location]\hardware\arduino\x86\boards.txt
izmir_fd.upload.maximum_size= 10000000 -> 设置最大10M byte

http://ccc.ntu.edu.tw/index.php/en/news/40
可以的。我已经创建了libgalileo
QQ群下载libgalileo.v01.tar.gz
下载0.9的BSP, 展开BIOS的代码,进入BIOS目录
yum install libuuid-devel
yum install iasl
./svnsetup.sh
source edksetup.sh
./quarkbuild.sh -r32 GCC47 QuarkPlatform

Intel® Centrino® Wireless-N 135and Intel®
Centrino® Advanced-N 6205


https://github.com/alext-mkrs/galileo-fw
这个脚本比起官方文档要好用。


https://www.yoctoproject.org/documentation
/hob-manual
#!/bin/sh
#wifi auto-link script
#please config /etc/wpa_supplicant file before run this file
killall wpa_suppliant
ifdown wlan0
i=0
while true
do
ifup wlan0
ping -c 2 192.168.2.1
if [ $? -eq 0 ]
then
echo ---------------------OK,sleep 60*5s,re-check
sleep 300
i=0
else
echo ---------------------Fail,sleep 5s, $i, retry
sleep 5
ifup wlan0
i=`expr $i + 1`
if [ $i -ge 10 ]
then
killall wpa_supplicant
ifdown wlan0
fi
fi
done



















---- Flash content [15 items] ---Address
Size Free Type BI Name
0x ff80 0000 328704 3072 0x0c
grub
0x ff85 1000
2599 1497 0x0e
grub.conf
0x ff85 2000 2114400 40096 0x11
Kernel
0x ffa6 0000 2511826 236590 0x13
Ramdisk
0x ffcf f000
3047 1049 0x18
LAYOUT.CONF_DUMP
0x ffd0 0000 1180672 392192 0x04
boot_stage_2_compact
0x ffe8 0000 259072 3072 0x01 1 boot_stage1_image2
0x ffec 0000 259072 3072 0x01 0 boot_stage1_image1
0x fff0 0000
8192 24576
RMU
0x fff0 8000
168 163672
MFH
0x fff3 0000 131072 262144
NV_Storage
0x fff9 0000 259072 3072 0x01
fixed_recovery_image
0x fffd 0000 32768
0
svn-area
0x fffd 8000
856 31912
signed-key-module
0x fffe 0000 131072
0
ROM_OVERLAY
Total
7222592 1166016
Warning: sections in the layout.conf with duplicate names are ignored




启动后,按f7, 进入到grub,
输入 “c”, 进入grub命令行
输入 “quit”
选择EFI Shell, 回车

similar documents