详见:https://developer.android.com/things/hardware/edison.html
系统镜像下载:https://dl.google.com/dl/android ... on_devpreview_1.zip
需要翻墙
The Intel® Edison compute module is a modular, small and powerful system on a chip (SoC) that includes a CPU, MCU, memory, storage and dual-band Wi-Fi and Bluetooth. The module can be mounted onto a system of expansion boards, enabling quick adoption and prototyping for the consumer and light industrial IoT applications. Flashing the image
Before you begin flashing, you will need the following items in addition to your Edison board: Step 1: Install FastbootThe following one-time procedure is required the first time you power on a new Edison module to install a bootloader with Fastboot support: Update the Android SDK Platform Tools to version 25.0.3 or later from the SDK Manager.
- Verify that the fastboot binary is installed in the platform-tools/ directory of your Android SDK.
- After you have the fastboot tool, add it to your PATH environment variable.
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.
Connect the board to your host computer: For Arduino Breakout:
- Ensure switch SW1 is in the position towards the micro USB ports.
- Press the FW button and keep it pressed.
- Connect a USB cable to J16.
- Release the FW button.
For Sparkfun Block: - Connect a USB cable to the OTG connector.
When the board appears in the list, click Start to flash to begin the flashing process. Note: Do not press any buttons on the board or remove power during this process. The board will boot automatically into fastboot mode once the flash is complete.When the flash is complete, close the Platform Flash Tool. Run the following command to verify that the device has booted into fastboot mode: $ fastboot devices
1b2f21d4e1fe0129 fastboot
At this point, the Edison is powered up and ready to accept fastboot commands. Continue to the next section to flash Android Things. Step 2: Flash Android ThingsOnce you have loaded the proper bootloader on your device, use the following steps to flash the Android image: - Open a command line terminal and navigate to the unzipped image directory.
If your device is not already in fastboot mode, use the adb tool to activate it: $ adb reboot bootloader
Verify that the device has booted into fastboot mode by executing the following: $ fastboot devices
1b2f21d4e1fe0129 fastboot
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
Reboot the device into Android Things: $ fastboot reboot
To verify that Android is running on the device, discover it using the adb tool: $ adb devices
List of devices attached
Edisonb74661ad device
Connecting Wi-Fi
After flashing your board, it is strongly recommended to connect it to the internet. This allows your device to deliver crash reports and receive updates. Note: The device doesn't need to be on the same network as your computer.To connect your board to Wi-Fi using adb: Send an intent to the Wi-Fi service that includes the SSID and passcode of your local network (if you network doesn't require a password, remove everything after ""): $ adb shell am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid <Network_SSID> \
-e passphrase <Network_Passcode>
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 ...
Test that you can access a remote IP address: $ 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
|