forked from 96boards/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
HiKeyLAVA
Tyler Baker edited this page Jun 23, 2015
·
5 revisions
The following items are required:
- HiKey - running UEFI firmware
- Micro USB Cable - for flashing the board
- UART Adapter - for interacting with the board
- Software Controllable Power Switch - for automatically power cycling the board
- Installed LAVA instance (2015.05+) - for automating software delivery and testing
- Install UEFI
- Flash the proper partition table for your use case, ptable-linux.img or ptable-android.img
- Flash boot-fat.uefi.img.gz
- Setup Fastboot
- Delete all existing boot entries
- Add boot entry for fastboot as described on the UEFI page
- Confirm the newly created fastboot entry is the 1st option in the list
- Launch this option and verify a fastboot device is detected on your LAVA host
-
Uniquely identify your fastboot usb id for HiKey
- fastboot devices -l
- ???????????? fastboot usb:3-12.4
- Record usb:3-12.4 or similar as you will need it later
-
Create the device configuration
- Create a file /etc/lava-dispatcher/devices/hi6220-hikey01.conf
- fastboot_command is the shell command used to flash the board, use the usb id obtained from above
- connection_command is the shell command used to connect to the UART port
- hard_reset_command is the shell command to turn the board off and then on again
- power_off_cmd is the shell command to turn the board off
- Note that the as of 5/6/2015 the adb serial number is not unique, and will always be 0123456789
device_type = hi6220-hikey
fastboot_driver = hi6220_hikey
adb_command = adb -s 0123456789
fastboot_command = fastboot -s usb:3-12.4
connection_command = telnet serial-server 2002
hard_reset_command = /bin/pdu.sh OFF 4; sleep 10; /bin/pdu.sh ON 4
power_off_cmd = /bin/pdu.sh OFF 4
- Now you can add this device to the LAVA scheduler as documented here
- Debian LAVA Job
{
"actions": [
{
"command": "deploy_linaro_android_image",
"parameters": {
"images": [
{
"partition": "boot",
"url": "http://builds.96boards.org/releases/hikey/linaro/debian/15.05.1/boot-fat.emmc.img.gz"
},
{
"partition": "system",
"url": "http://builds.96boards.org/releases/hikey/linaro/debian/15.05.1/hikey-jessie_developer_20150519-303.emmc.img.gz"
}
],
"target_type": "ubuntu"
}
},
{
"command": "boot_linaro_image"
}
],
"device_type": "hi6220-hikey",
"job_name": "hi6220-hikey-debian-boot-test",
"logging_level": "DEBUG",
"timeout": 18000
}
- Android LAVA Job
{
"actions": [
{
"command": "deploy_linaro_android_image",
"parameters": {
"images": [
{
"partition": "boot",
"url": "http://builds.96boards.org/releases/hikey/linaro/aosp/15.05/boot_fat.img.tar.xz"
},
{
"partition": "system",
"url": "http://builds.96boards.org/releases/hikey/linaro/aosp/15.05/system.img.tar.xz"
},
{
"partition": "cache",
"url": "http://builds.96boards.org/releases/hikey/linaro/aosp/15.05/cache.img.tar.xz"
},
{
"partition": "userdata",
"url": "http://builds.96boards.org/releases/hikey/linaro/aosp/15.05/userdata.img.tar.xz"
}
]
}
},
{
"command": "boot_linaro_android_image",
"parameters": {
"test_image_prompt": "shell@hikey"
}
}
],
"device_type": "hi6220-hikey",
"job_name": "hi6220-hikey-android-boot-test",
"logging_level": "DEBUG",
"timeout": 18000
}
- Ramdisk LAVA Job
{
"actions": [
{
"command": "deploy_linaro_kernel",
"parameters": {
"dtb": "http://builds.96boards.org/releases/hikey/linaro/debian/15.05.1/hi6220-hikey.dtb",
"kernel": "http://builds.96boards.org/releases/hikey/linaro/debian/15.05.1/Image",
"ramdisk": "http://storage.kernelci.org/images/rootfs/buildroot/arm64/rootfs.cpio.gz"
}
},
{
"command": "boot_linaro_image"
}
],
"device_type": "hi6220-hikey",
"job_name": "hi6220-hikey-kernel-boot-test",
"logging_level": "DEBUG",
"timeout": 18000
}