Create the model:
$ cat dragonboard-model.json
{
"type": "model",
"authority-id": "$account_id",
"brand-id": "$account_id",
"series": "16",
"model": "dragonboard",
"architecture": "arm64",
"gadget": "dragonboard",
"kernel": "dragonboard-kernel",
"timestamp": "$date"
}
Sign the model:
$ cat dragonboard-model.json | snap sign -k $key_name > dragonboard.model 2>&1
Create the image:
$ sudo /snap/bin/ubuntu-image --image-size 3G -c edge -o ubuntu-core-16-dragonboard-edge.img dragonboard.model
Fetching core
Fetching dragonboard-kernel
Fetching dragonboard
Insert the sdcard into the host PC.
Umount the sdcard partitions.
Flash the image:
$ sudo dd if=ubuntu-core-16-dragonboard-edge.img of=/dev/sdX bs=32M
$ sync
Insert the sdcard into the board.
On the back of the board, set the switch S6-2 to ON, the rest to OFF.
Connect the serial cable to the host PC.
Open the serial console:
http://elopio.net/blog/connecting-to-snappy-through-the-serial-console/#serial-console
Connect the board to the power source.
On the serial console, wait for the boot to finish:
Press enter to configure.
Configure the board:
1. Press enter.
2. Press enter in `Start`.
3. Select `wlan0`.
4. Select `Configure WIFI Settings`.
5. Enter the `Network name`.
6. Enter the network `Password`.
7. Press enter in `Done`.
8. Select `Use DHCPv4 on this interface`.
9. Press enter in `Done`.
10. Press enter in `Done`.
4. Enter the $email_address used to sign the model.
5. Press enter.
* Check the successful registration message.
6. Press enter.
On a terminal in the host, access the board through ssh:
$ ssh $ip_address
$ snap list
Name Version Rev Developer Notes
core 16.04.1 386 canonical -
dragonboard 16.04-0.18 24 canonical -
dragonboard-kernel 4.4.0-1032-3 16 canonical -
$ snap version
snap 2.17
snapd 2.17
series 16
From a different terminal in the host, run the tests:
$ sudo snap install spread --devmode
$ export SPREAD_EXTERNAL_ADDRESS=$ip_address:22
$ ~/workspace/go/src/github.com/snapcore/snapd$ ./tests/lib/external/prepare-ssh.sh $ip_address 22 $USER
$ ~/workspace/go/src/github.com/snapcore/snapd$ /snap/bin/spread -v -reuse external:ubuntu-core-16-arm-64
Result:
2016/11/02 00:45:58 Successful tasks: 84
2016/11/02 00:45:58 Aborted tasks: 0
Full execution log: https://paste.ubuntu.com/23415017/