aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/actions/boot
AgeCommit message (Collapse)Author
2018-09-18Support LXC with IoTNeil Williams
Ensure the connection is picked up from the correct namespace when setting the shared namespace data. Closes: #82 Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-07-31Revert "pyocd: Run connect action before flashing"Neil Williams
This reverts commit 4efd8586a5e8a103f76e9b56abc3a6b9b8a49090. Change-Id: Ia8945a1250a133434e515dcb7059193ff924f512
2018-07-31pyocd: Run connect action before flashingLoic Poulain
The DUT runs new firmware once flashing via pyocd is completed. This can be very quick and booting potentially happens before we even run the connect action. This can cause job failure because dispatcher misses the booting string (e.g. "BOOTING ZEPHYR OS"). This patch fixes this by moving connect action before flashing. This has been tested with a 96Boards nitrogen + zephyr firmware. Update pyocd pipeline refs accordingly. Change-Id: Icdd48d0913294d2d22f5a7f96fd7a9bb27caebe7
2018-07-27LAVA-1295 iMX8M evk device integration.Neil Williams
The iMX8M evk is NXPs new aarch 64 SoC which supports 4k, HDR10 and is supported under the NXP 10 and 15-year Longevity Program. Ensure that the hard_reset command also resets the USB C connection using the Cambrionix hub. Add support for fastboot deployment without changing the bootloader. Add support for TFTP deployment using U-Boot. Change-Id: I3c28c02a69e91f0f8812cd0f5cb416524c6da047
2018-07-25docker: allow to bind devicesRémi Duraffort
We can for instance bind /dev/kvm and use kvm inside docker. Change-Id: I1f04ff81cb1952926a9cc56c9158714961ab1ad5
2018-07-17Remove lxc_cmd_prefix from Action classRémi Duraffort
Make this an helper function, called when needed as this is only used by Android jobs. Change-Id: I10584f5f37d4edee5b6a8354bbcd5f393d3b4410
2018-07-11By default, dict.get() default value is NoneRémi Duraffort
Change-Id: I9d61efc457fb5e49ac1b3ad56acaa1b453b9cc4a
2018-07-10Some pylint fixesNeil Williams
Change-Id: Ic5c1b533c3479b4fdb8cbfe56d051022d1efa779
2018-07-03Dont send an os.linesep when interrupting grubMatt Hart
- fixed the logic in get_device_constant() which didnt handle a constant being set to False Change-Id: I0f34a437e29073c544cf99659ef5fc8c75985b4e
2018-06-29LAVA-939 Integrate cc3220SF boardRémi Duraffort
Add a new GDB boot method for this device. Change-Id: I3283950494c540debc14959233b7d42a7fbd1299
2018-06-27Move debian_package_(version|arch) to lava_commonRémi Duraffort
Change-Id: I41e4ab0f14cae64cc19eccee900a48bb624889bc
2018-06-27Remove duplicated or unused importsRémi Duraffort
Change-Id: I4b3d8df3ab04af5bc3f5aa4a672022d03e665275
2018-06-21LAVA-1120 - drop export PS1 lava-testNeil Williams
This export is no longer required and plays awkwardly with second UART support. Change-Id: I2cd74adfdb1b49544727c6175e377193384f8739
2018-06-21Skip wait if no kernel_start_messageNeil Williams
A quiet kernel config will produce no useful output for the kernel message handler, so skip and move on to looking for any auto-login prompts after the kernel has booted. Fixes the RPB OE test job on hikey 960. Change-Id: I3c5c8c21fee135a2aaead691b4e5c76e23c33511
2018-06-20Remove "args" from Action.run()Rémi Duraffort
This argument is not used anymore. Change-Id: I9cc98ed14003e79110c820149570cc1248549535
2018-06-12Remove python2 specific codeRémi Duraffort
Change-Id: I15dca273c660b4868f709033485e8ef3332d4e89
2018-06-12Only use "is" when comparing against NoneRémi Duraffort
Change-Id: I6873fe1896bbacfde82906e58d412bf155fac762
2018-05-23Create lava_common for Timeout and ExceptionsNeil Williams
Make a clear separation between lava_server and lava_dispatcher binary packages so that a master does not need all the dependencies of lava-dispatcher installed (and does not necessarily have a local worker). Update documentation on how lava-common can be used. Change-Id: I040a44c7ce6d853524ccc33e08df593b0d14c54f
2018-05-18Use InfrastructureError for uefi menu timeoutNeil Williams
uefi-menu-interrupt is the first action to wait for a response after power on for uefi-menu devices like the mustang. If this action timesout, it is likely that the device is simply not booting correctly or not receiving power or the serial connection information is wrong. Change-Id: I2618c89e3b83cb0aff1a7e1ac45e2cf1b6e2e6a0
2018-05-15Complete fastboot sequence cannot be governed in device dictionary.Senthil Kumaran S
auto-login, shell-session, export-env are some actions that are added to the pipeline based on availability of prompts, tests, etc. which depends on the job definition. Hence, adding a fixed fastboot sequence to the device dictionary is not the right thing to do. Change-Id: I44276a73c00b910af967d5056d956ec6ae9637f7
2018-05-14Generate device configuration from templatesNeil Williams
LAVA-1319 - Remove static YAML files and replace with device configuration generated from current Jinja2 templates. Change-Id: I2a078a6aa00d8385780515167630aa3d526f7fa8
2018-05-14LAVA-1324 QEMU usage of KVM acceleratorNeil Williams
Report a result in the 'lava' test suite containing metadata on the version and architecture of the QEMU package providing the binary being executed. Improve the current logging to include the host architecture. Add comments to the device-type to clarify the logic. Change-Id: I258cbcd728283deb213d773094465e55471059f1
2018-05-14Implementation of recovery mode deploy and bootNeil Williams
Using the hikey 6220 as an example, provide support for entering and exiting recovery mode and running a LAVA test shell whilst recovery mode is active. Change-Id: I4795b158337e8151be21d52173b09e13108aa6b6
2018-05-09LAVA-1309 - pre-* commands should be called with minus-lxcSenthil Kumaran S
Change-Id: I8b5660034f3ac7e191225469c5b5cf3cc1a9e278
2018-05-08Add an helper to list all keys of an action namespaceRémi Duraffort
Change-Id: I7ad41ca0142a2ed0bcb54e310f725362aca22798
2018-05-04docker: always run with --rmRémi Duraffort
In case of crash, the docker container will always be removed. Change-Id: I16aaba5847707f982aeeea254db3cd1bad0e5b8a
2018-04-27Make device_info validate errors uniqueNeil Williams
Make it easier to identify which action is failing the validation of device_info. Change-Id: I1ee37f067834a78d8033bc9f7ca56f17bdf493b3
2018-04-26LAVA-1297 - Incorporate changes to run jobs without LXCSenthil Kumaran S
* Introduce a new connection - adb * Run commands based on LXC protocol availability - either inside the container using lxc-attach or directly on the dispatcher host * Add support (action) to unpack overlay using adb * Fix harcoded AutoLoginAction, ExpectShellSession, ExportDeviceEnvironment in fastboot boot pipeline and rely on fastboot sequence * Add adb connection to base fastboot and other device dictionaries * Fix fastboot sequence on devices * Add and fix unit tests Change-Id: I278ae6ebd1b93d29d0093a0999cd5a612fb132ff
2018-04-25Port classes to python3 onlyRémi Duraffort
Change-Id: I8bc55876f82817533dfef42128aefea15c904311
2018-04-16Remove unused imports and variables as reported by prospector.Senthil Kumaran S
Change-Id: I2777cc7f476abd4e47d3145166bad6959a1ff38b
2018-04-16Remove unused constant IPXE_BOOT_PROMPTSenthil Kumaran S
Change-Id: Icd5d214bb19cb5c356d69b9e3f4dbf008f9088a7
2018-04-05LAVA-1274 do not log a booleanRémi Duraffort
Only log the command output when it's not a boolean. Change-Id: I185bf6025cd92c6f74df1b9f2c10d92c78f8cb60
2018-04-05BootloaderCommandOverlay fix validate logicRémi Duraffort
The code should not attempt to access non-existing keys. Change-Id: If57416e4d1b8a448b521251523f0fe553d1d7a1c
2018-03-28Fixup connection.prompt_str assumptionNeil Williams
The complex string / list handling of the connection prompts is a pexpect behaviour. Clarify our code handling to avoid TypeError when adding a list to an existing prompt string by first converting to a list with a single string entry. Change-Id: I570f2ad51b436a4a7bfcac1e642bb2533b788f16
2018-03-28Raise an Infra Error when an exe is not usableRémi Duraffort
Setting self.error will raise a JobError while an InfrastructureError is needed here. Change-Id: I233dcb1e28aaa6f75fa2c263fc0a9596ce33710d
2018-03-09Remove power_on command as it's never usedRémi Duraffort
Change-Id: Idba86d73b761f9533d1a5ff16336bf3809480886
2018-03-09Specify the exception to raise when timing outRémi Duraffort
Each action class can now set timeout_exception to the right exception to raise when timing out in this action. By default, a JobError is raised. Also remove two unused Timeout variable and function. Change-Id: I10fc791fd7a2f00917c0566d3d824b6221c3daf3
2018-02-28Fastboot boot method should have a sequence associated with it.Senthil Kumaran S
Change-Id: Icc1eddc8d06b7276cebc28bcdcaa49ab995317d4
2018-02-21Use job tmp directory for the compress overlayRémi Duraffort
The transfer_overlay is then using this exact location which is already served by the http server. This patch make the url unique and fix clashes when two lava jobs are using transfer_overlay on the same dispatcher. Reported-by: Wang, Yang (Young) <ywangwrs@gmail.com> Change-Id: Ic7a1707623c2525a1b2ba709ce8bc12a7fe920ed
2018-02-21Remove empty class functionsRémi Duraffort
Change-Id: Iabc4796cb76c198f3ccf8aab762d157a60a22fdf
2018-02-19Fix format string when raisingRémi Duraffort
The output will be a tuple instead of a formated string. Found by perpector (raising-format-tuple). Change-Id: I878cea240bebcc766062fff286a73183ee41d692
2018-02-16docker: only mount the overlay when availableRémi Duraffort
Change-Id: Icaab0895937e1fbabf7754992c99aebaee955728
2018-02-15Add support for u-boot usb mass storage flashing for warp7Matt Hart
- new deploy strategy for u-boot ums images - use existing u-boot support to start the ums - use existing udev support to wait for the ums device Change-Id: I476862989bc98fc1c73fbf2086805a8633c76b29
2018-02-15Move name, description and summary as class variableRémi Duraffort
This also fix the name when calling parent __init__ function. Change-Id: I302c3920eed9ef51232e22d75d555f0d34abf510
2018-02-06Remove spurious conditional in autologinNeil Williams
Fix 4d4458 to remove the spurious overwriting of the prompts. The X15 does not need this change and it breaks hikey 960 (and hikey 620 with the new firmware). Change-Id: I5505602c9ed41cd7c40bd215b3c4880dea313b68
2018-02-05Fixes for X15 fastboot_ubootNeil Williams
Change-Id: I3978768403c91952ab62ad1a0347bd5c7e798615
2018-02-02LAVA-1202 - multiple boot + test section using transfer_overlay failsStevan Radakovic
In a job with multiple boot + test sections and using transfer_overlay, the second test job fails because the test overlay has been removed. The overlay tarball should not be moved but rather copied so it can be reused. Change-Id: I2ec91104d074a5609ac105bf3866e0239bbaa214
2018-02-01Fix login support for second UARTNeil Williams
Ensure that the connection-namespace parameters are available when booting the second UART and mark this as a login which does not expect to see kernel boot messages. Allow transfer_overlay to be used on the primary UART. Change-Id: Ie35f2d699689b72c015ea476a6a3fa4c7818a32f
2018-01-26Pass USB devices to LXC via ID_FS_LABELDean Birch
If a disk device fails to set a unique serial, but does allow a customisable filesystem label, then this method allows the device to be passed to LXC. Change-Id: I1b1474ea16df3aef0ed8b48e9af497393611a485
2018-01-25Allow for empty values in boot methodsNeil Williams
Secondary connections have no entries in the boot method dictionary. Change-Id: Ib27dbaa50447e83649b79610b8ca40601440bade