1 / 34

Intel Galileo 板入门指南

Intel Galileo 板入门指南. Aixi Wang http://www.quarkhub.net/ 夸克玩家资源站 QQ: 348523286 欢迎拷贝,复制,传播. 介绍. https://communities.intel.com/docs/DOC-21836. 有 QQ 群吗?. 串口和电源在哪?. 串口. USB Slave. 电源. 硬件参考手册在哪?. https://communities.intel.com/docs/DOC-21825. Quark 处理器说明在哪?.

minowa
Download Presentation

Intel Galileo 板入门指南

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Intel Galileo板入门指南 Aixi Wang http://www.quarkhub.net/ 夸克玩家资源站QQ: 348523286 欢迎拷贝,复制,传播

  2. 介绍 • https://communities.intel.com/docs/DOC-21836

  3. 有QQ群吗?

  4. 串口和电源在哪? 串口 USB Slave 电源

  5. 硬件参考手册在哪? • https://communities.intel.com/docs/DOC-21825

  6. Quark处理器说明在哪? • https://communities.intel.com/docs/DOC-21826

  7. 软件的开发说明在哪? • https://communities.intel.com/docs/DOC-22226

  8. Linux的开发手册在哪? • https://communities.intel.com/docs/DOC-21838

  9. 如何开始编程-方法1(Arduino) 相关链接:https://communities.intel.com/docs/DOC-22156 • 下载Intel Galileo Arduino SW 1.5.3 on Windows(https://communities.intel.com/docs/DOC-22226) • 展开相关的下载的zip文件。 • 连上电源,连上usb slave,打开软件 • 设置 tools -> serial port • 设置 tools -> board • 编程 • 下载

  10. 如何开始编程-方法2(Python) • http://downloadmirror.intel.com/23171/eng/LINUX_IMAGE_FOR_SD_Intel_Galileo_v0.7.5.7z下载,展开到SD上 (FAT分区) • 启动,选择SD卡驱动 • 开始Python编程

  11. 如何开始编程-方法3(C语言) • 下载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

  12. 在Arduino里点下载发生了什么? • #!/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

  13. 参考代码在哪?

  14. Arduino IDE闪退问题怎么解决? • 把字体设成英文 • 装locale Emulator GUI 模拟英文字体

  15. OpenOCD • http://s.taobao.com/search?q=OpenOCD&app=detail&tab=all&promote=0&s=0#J_relative

  16. 串口线 • http://item.taobao.com/item.htm?id=7835932813 • 针脚线序定义-1: • 3.5mm尖端连接9针串口2号针脚; • 3.5mm中间环连接9针串口3号针脚; • 3.5mm根部连接9针串口5号针脚。

  17. Yocto编译环境安装 • http://mirrors.sohu.com/debian-cd/7.3.0/i386/iso-dvd/ • 安装服务器版本 • http://www.servidordebian.org/en/wheezy/start

  18. 能直接编译c程序吗? • 从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

  19. Windows XP Gadget Serial 在哪下载 • QQ群下载cdc-acm-serial.zip

  20. OpenOCD调试器和patch • 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+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 OpenOCDgerrit. • 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

  21. EFI BIOS代码在哪下? • https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23197

  22. 有原厂的支持论坛吗? • https://communities.intel.com/community/makers

  23. 用Arduino编译器编译命令行程序 • 例子 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

  24. 配置OPKG 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.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: root@clanton:~# 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.

  25. 如何修改sketch文件的上限尺寸 [ide location]\hardware\arduino\x86\boards.txt izmir_fd.upload.maximum_size= 10000000 -> 设置最大10M byte

  26. 哪边可以下到自带gcc的镜像文件 • http://ccc.ntu.edu.tw/index.php/en/news/40

  27. 可以在Yocto Linux系统里调用Arduino的库吗? 可以的。我已经创建了libgalileo QQ群下载libgalileo.v01.tar.gz

  28. 如何编译Quark UEFI BIOS 下载0.9的BSP, 展开BIOS的代码,进入BIOS目录 yum install libuuid-devel yum install iasl ./svnsetup.sh source edksetup.sh ./quarkbuild.sh -r32 GCC47 QuarkPlatform

  29. Galileo板支持哪些Wifi网卡 • Intel® Centrino® Wireless-N 135and Intel® Centrino® Advanced-N 6205

  30. 如何简单的生成可烧录的SPI FlashROM镜像文件 • https://github.com/alext-mkrs/galileo-fw • 这个脚本比起官方文档要好用。

  31. 有图形包配置工具吗? • https://www.yoctoproject.org/documentation/hob-manual

  32. 有好用的wifi自动重连的脚本吗? #!/bin/sh #wifi auto-link script #please config /etc/wpa_supplicant file before run this file killallwpa_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 killallwpa_supplicant ifdown wlan0 fi fi done

  33. SPI flash里有哪些东西? • ---- 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

  34. 怎么进入efi shell • 启动后,按f7, 进入到grub, • 输入 “c”, 进入grub命令行 • 输入 “quit” • 选择EFI Shell, 回车

More Related