I know this already got merged, but I still have some comments. On Mon, Aug 12, 2013 at 10:19:30PM -0000, Tyler Baker wrote: > Tyler Baker has proposed merging lp:~tyler-baker/lava-dispatcher/bootloader-next into lp:lava-dispatcher. > > Requested reviews: > Linaro Validation Team (linaro-validation) > Related bugs: > Bug #1211406 in LAVA Dispatcher: "Dispatcher not reading boot_cmds from image" > https://bugs.launchpad.net/lava-dispatcher/+bug/1211406 > > For more details, see: > https://code.launchpad.net/~tyler-baker/lava-dispatcher/bootloader-next/+merge/179825 > > Introducing the BootloaderTarget class an extension of MasterImageTarget. This will allow all exisiting master image devices to function as they do today, however adds the ability to tftp boot binaries directly from the bootloader. > > There is quite a few changes here.. > > * Add deploy_linaro_kernel > - New schema for dealing with binaries that are not in an image, or hwpack. > - Only required property is "kernel" > - Allows us to seperate the deployment/boot logic for raw kernel booting. > > * BootloaderTarget Class > - Documentation MP is here https://code.launchpad.net/~tyler-baker/lava-project/bootloader/+merge/179796 > - This class inherits from MasterImageTarget and implements deploy_linaro_kernel. > - Sets lava_server_ip, lava_kernel, lava_ramdisk, and lava_dtb as bootloader enviroment variables. > - It is up to the user to utilize these in their boot_cmds. > > * Added a wrapper for wait_for_prompt as _wait_for_prompt in target.py > - This is a very common function, encouraging reuse without an import. > > * _enter_bootloader added to target.py > - Refactored all the device types to use this single function. > > * _customize_bootloader > - Fixed the pep8 issue with self.proc. > - Added _wait_for_prompt logic. > > * Job defined boot_cmds > - Tested and is working on the following: > - Master Image Targets > - Bootloader Targets > - ARMv7 Fastmodels > > * Refactored _boot_linaro_image in master.py > - The boot_cmds logic was a mess and was broken. > - https://bugs.launchpad.net/lava-dispatcher/+bug/1211406 > - Confirmed this as a fix for 1211406 > > * Added client_type = bootloader to all Master Image devices > - This has been tested, and all devices function as they do today. > > * Testing > - All test jobs passed. > - https://code.launchpad.net/~tyler-baker/+junk/bootloader-job-def-tests > -- > https://code.launchpad.net/~tyler-baker/lava-dispatcher/bootloader-next/+merge/179825 > Your team Linaro Validation Team is requested to review the proposed merge of lp:~tyler-baker/lava-dispatcher/bootloader-next into lp:lava-dispatcher. > === added file 'lava_dispatcher/device/bootloader.py' > --- lava_dispatcher/device/bootloader.py 1970-01-01 00:00:00 +0000 > +++ lava_dispatcher/device/bootloader.py 2013-08-12 22:19:12 +0000 > @@ -0,0 +1,130 @@ > +# Copyright (C) 2013 Linaro Limited > +# > +# Author: Tyler Baker