Hi Sandeep,
On 4 August 2015 at 03:14, YongQin Liu yongqin.liu@linaro.org wrote:
Hi, Sandeep
Please reference the file here:
https://git.linaro.org/lava/lava-dispatcher.git/blob/HEAD:/lava_dispatcher/d...
FYI, the experts of such questions are the lava-lab team and lava team which are in the cc.
Thanks, Yongqin Liu
On 4 August 2015 at 01:08, Sandeep Chawla sandeep@cyngn.com wrote:
Hello Linaro Android Champions,
Thanks for your efforts in making Lava a great automation platform for Android.
I use Nexus10 fastboot driver on my devices, which flashes the boot image on the device.
This is because 'fastboot boot boot.img' doesn't work properly on the Nexus 10.
This leads to a problem that whenever the dispatcher issues 'adb reboot' command, the device reboot instead of being the fastboot mode as with the regular fastboot driver.
Is there an option in the device.conf file to specify a different boot command ?
ATM there is not.
If we could change the command from 'adb reboot' to 'adb reboot-bootloader' , the dispatcher would be able to work fine.
Your best bet would be to implement a driver class for your fastboot device. Here is an example:
class mydevice(fastboot):
def __init__(self, device): super(mydevice, self).__init__(device)
def deploy_linaro_kernel(self, kernel, ramdisk, dtb, overlays, rootfs, nfsrootfs, image, bootloader, firmware, bl0, bl1, bl2, bl31, rootfstype, bootloadertype, target_type, scratch_dir, qemu_pflash=None): raise CriticalError('This platform does not support kernel deployment!')
def boot(self, boot_cmds=None): self.fastboot.flash('boot', self.__boot_image__) self.fastboot('reboot-bootloader')
Then in your device-type configuration add the reference to this driver:
fastboot_driver = mydevice
Please, push up a patch with your changes as detailed here:
https://validation.linaro.org/static/docs/development.html?highlight=contrib...
Cheers,