aixi wang 夸克玩家资源站 qq: 348523286 欢迎拷贝,复制,传播
TRANSCRIPT
Intel Galileo板入门指南Aixi Wang
http://www.quarkhub.net/夸克玩家资源站 QQ: 348523286
欢迎拷贝,复制,传播
https://communities.intel.com/docs/DOC-21836
介绍
有QQ群吗?
串口和电源在哪?
串口
电源
USBSlave
https://communities.intel.com/docs/DOC-21825
硬件参考手册在哪?
https://communities.intel.com/docs/DOC-21826
Quark处理器说明在哪?
https://communities.intel.com/docs/DOC-22226
软件的开发说明在哪?
https://communities.intel.com/docs/DOC-21838
Linux的开发手册在哪?
1. 下载 Intel Galileo Arduino SW 1.5.3 on Windows (https://communities.intel.com/docs/DOC-22226)
2. 展开相关的下载的 zip 文件。3. 连上电源,连上 usb slave ,打开软件4. 设置 tools -> serial port 5. 设置 tools -> board6. 编程7. 下载
如何开始编程 -方法 1(Arduino)相关链接: https://communities.intel.com/docs/DOC-22156
1. http://downloadmirror.intel.com/23171/eng/LINUX_IMAGE_FOR_SD_Intel_Galileo_v0.7.5.7z 下载 , 展开到 SD 上 ( FAT 分区)
2. 启动,选择 SD 卡驱动3. 开始 Python 编程
如何开始编程 -方法 2(Python)
1. 下载http://downloadmirror.intel.com/23171/eng/Board_Support_Package_Sources_for_Intel_Quark_v0.7.5.7z
2. 按照软件说明手册 , 编译和生成 image3. 在 Yocto 里建立自己的项目,编译生成文件,4. copy 到 sd 卡,启动,运行
另一个简单的方法:或者用 Arduino 内置的编译器编译,请参考:
https://github.com/tokoro10g/galileo-makefile
如何开始编程 -方法 3(C语言 )
#!/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 $fixed_path/lsz.exe --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
在 Arduino里点下载发生了什么?
参考代码在哪?
把字体设成英文 装 locale Emulator GUI 模拟英文字体
Arduino IDE闪退问题怎么解决?
http://s.taobao.com/search?q=OpenOCD&app=detail&tab=all&promote=0&s=0#J_relative
OpenOCD
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
Yocto编译环境安装
从 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
能直接编译 c程序吗?
QQ 群下载 cdc-acm-serial.zip
Windows XP Gadget Serial 在哪下载
If you are looking for a commercial solution, Intel System Studio would be it. http://software.intel.com/en-us/intel-system-studio?wapkw=intel+system+st
udio 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-Adapter-Configuration.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
OpenOCD调试器和 patch
https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23197
EFI BIOS代码在哪下?
https://communities.intel.com/community/makers
有原厂的支持论坛吗?
例子C:\arduino-1.5.3/hardware/tools/x86/i686-pokysdk-mingw32/usr/bin/i586-poky-linux-
uclibc/i586-poky-linux-uclibc-g++ -m32 -march=i586 --sysroot=C:\arduino-1.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:\arduino-1.5.3\hardware\arduino\x86\variants\galileo_fab_d C:\arduino-1.5.3\hardware\arduino\x86\cores\arduino\Stream.cpp -o C:\DOCUME~1\a_user_name\LOCALS~1\Temp\build8378500062392217781.tmp\Stream.cpp.o
用 Arduino编译器编译命令行程序
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):root@clanton:~# cat /etc/opkg/base-feeds.confsrc/gz all http://dl.bintray.com/alext-mkrs/galileo-packages/allsrc/gz clanton http://dl.bintray.com/alext-mkrs/galileo-packages/clantonsrc/gz i586 http://dl.bintray.com/alext-mkrs/galileo-packages/i5863) Run opkg update command and you should see the below output, which means you're
successfully communicating with the repo:root@clanton:~# opkg updateDownloading 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.
配置OPKG
[ide location]\hardware\arduino\x86\boards.txt
izmir_fd.upload.maximum_size= 10000000 -> 设置最大 10M byte
如何修改 sketch文件的上限尺寸
http://ccc.ntu.edu.tw/index.php/en/news/40
哪边可以下到自带 gcc的镜像文件
可以的。我已经创建了 libgalileoQQ 群下载 libgalileo.v01.tar.gz
可以在Yocto Linux系统里调用Arduino的库吗?
下载 0.9 的 BSP, 展开 BIOS 的代码,进入 BIOS 目录
yum install libuuid-develyum install iasl./svnsetup.shsource edksetup.sh./quarkbuild.sh -r32 GCC47 QuarkPlatform
如何编译Quark UEFI BIOS
Intel® Centrino® Wireless-N 135and Intel® Centrino® Advanced-N 6205
Galileo板支持哪些Wifi网卡
https://github.com/alext-mkrs/galileo-fw 这个脚本比起官方文档要好用。
如何简单的生成可烧录的SPI FlashROM镜像文件
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
有好用的wifi自动重连的脚本吗?
---- 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
SPI flash里有哪些东西?
启动后,按 f7, 进入到 grub, 输入 “ c”, 进入 grub 命令行 输入 “ quit” 选择 EFI Shell, 回车
怎么进入 efi shell