Android Things简介
Android Things 开发
开发板刷Android Things系统
开发板及开发板的信息
Where to buy:
刷机: 以Intel® Edison为例
System Image Downloads
首先下载镜像文件
Intel® Edison开发板是计算模块化的,它虽然小但是确实一个功能强大的系统(SOC),包含CPU, MCU, memory, storage 双频wifi和蓝牙。它可以当成一个模块安装到一个系统的扩展板上,就像我们把硬盘或者内存条安装到电脑的主板上一样。
Intel® Edison的大小其实就像一个sd那么大,可以很方便的集成到手机,平板电脑,及其他硬件设备中。
开始刷机
Flashing the image
开始之前我们需要压根数据线,把开发板和电脑连接起来。
Step 1: Install Fastboot
为了使Edison开发板支持Fastboot,当你第一次使用Edison的时候你需要安装bootloader,通过以下步骤来实现。
说明:BootLoader是在操作系统内核运行之前运行。
1,更新Android SDK Platform Tools 到25.0.3或者更高版本
1-1 确认platform-tools文件下有fastboot.exe文件
1-2 配置fastboot.exe到环境变量中
2,Download the Intel Platform Flash Tool Lite for your host platform.
3,Launch the flash tool and select Browse. Navigate to the zipped image file and select it.
选择镜像文件
Ensure FlashEdison.json is selected in the Flash file listbox.
Select Non_OS in the Configuration listbox.
4,Connect the board to your host computer:
通过usb链接开发板
Step 2: Flash Android Things
1,Open a command line terminal and navigate to the unzipped image directory.
打开命令行,进入到image镜像目录
2,If your device is not already in fastboot mode, use the adb tool to activate it:
开发板不是快速启动模式,通过adb tool 激活。
$ adb reboot bootloader
3,Verify that the device has booted into fastboot mode by executing the following:
$ fastboot devices
1b2f21d4e1fe0129 fastboot
4,Execute the following fastboot commands to install the operating system image:
执行命令开始安装镜像文件
$ fastboot \
flash gpt partition-table.img \
flash u-boot u-boot-edison.bin \
flash boot_a boot.img \
flash boot_b boot.img \
flash system_a system.img \
flash system_b system.img \
flash userdata userdata.img \
erase misc \
set_active _a
$ fastboot \
flash gapps_a gapps.img \
flash gapps_b gapps.img
$ fastboot \
flash oem_a oem.img \
flash oem_b oem.img
5,Reboot the device into Android Things:
重启开发板
$ fastboot reboot
6,To verify that Android is running on the device, discover it using the adb tool:
验证Android Things系统已经安装到开发板。
$ adb devices
List of devices attached
Edisonb74661ad device
Connecting Wi-Fi
当刷机完成,强烈建议将开发板联网,这样开发板可以接收到崩溃日志和接受系统的更新消息。
1,Send an intent to the Wi-Fi service that includes the SSID and passcode of your local network:
联网操作
$ adb shell am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid <Network_SSID> \
-e passphrase <Network_Passcode>
2,Verify that the connection was successful through logcat:
确认联网是否成功
$ adb logcat -d | grep Wifi
...
V WifiWatcher: Network state changed to CONNECTED
V WifiWatcher: SSID changed: ...
I WifiConfigurator: Successfully connected to ...
3,Test that you can access a remote IP address:
测试开发板可以访问远程IP
$ adb shell ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=6.67 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=55.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=23.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=57 time=245 ms