Thanks Tyler.

Infact the Nexus10 driver is working fine so far for my devices

I will be running more tests over the next few days.

At least I am able to run CTS tests using lava-android-test with the Nexus10 driver

Thanks
Sandeep

On Tue, Aug 4, 2015 at 11:05 AM, Tyler Baker <tyler.baker@linaro.org> wrote:
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/default-config/lava-dispatcher/device-types/nexus10.conf
>
> 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=contributing#patch-submissions-and-workflow

Cheers,

--
Tyler Baker
Director of Engineering, Automation and CI (Interim)
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog