From aca08cf74d8fe6108c0766597fae494f0ae584dc Mon Sep 17 00:00:00 2001 From: Rocky Zhang Date: Mon, 16 Mar 2015 11:26:58 +0800 Subject: [PATCH] Update __init__.py The boot monitor seems to have some buffer overrun issue while loading the latest Linaro android images. The behavior is after loading the initrd, the kernel loading will fail, very likely to due command line buffer overrun. the new initrd in the Linaro image is 3 times larger than the previous version, which could cause the issue. putting a dummy enter between loading initrd and the kernel could resolve the issue. --- wlauto/devices/android/tc2/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wlauto/devices/android/tc2/__init__.py b/wlauto/devices/android/tc2/__init__.py index 9d3f92b9..ebf2a675 100644 --- a/wlauto/devices/android/tc2/__init__.py +++ b/wlauto/devices/android/tc2/__init__.py @@ -834,6 +834,9 @@ class TC2Device(BigLittleDevice): target.expect(self.config.bootmon_prompt) target.sendline('fl linux initrd ' + self.config.initrd) target.expect(self.config.bootmon_prompt) + #Workaround TC2 bootmon serial issue for loading large initrd blob + target.sendline(' ') + target.expect(self.config.bootmon_prompt) target.sendline('fl linux boot ' + self.config.kernel + self.config.kernel_arguments)