Commit Graph

12 Commits

Author SHA1 Message Date
Juro Bystricky a0374e92a8 edgerouter.py: avoid python3 exception
This fixes an error such as:

Exception: File "/master/poky/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py", line 47
    self.image_fstype = self.get_image_fstype(d)
TabError: inconsistent use of tabs and spaces in indentation

(From meta-yocto rev: 5ff5dc2767dfef93c314e7465a52ca2dce553604)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-12 15:16:42 +00:00
Corneliu Stoicescu d66c567b11 oeqa/controllers/beaglebonetarget.py: fix deploy when kernel file is a broken link
Sometimes the uncompressed rootfs image contains boot/uImage but if it's a symlink, it seems broken from the master image's point of view.
Because [ -e /mnt/testrootfs/boot/uImage ] will return 1, it will proceed to copy the backup kernel file over it but cp ~/test-kernel /mnt/testrootfs/boot/uImage will also fail with:
cp: not writing through dangling symlink

Adding a new check here, if the boot/uImage is a link, leave it as is.

(From meta-yocto rev: 849b1e319a84a710259223f57b2e4c74bc64fe75)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-17 14:56:49 +01:00
Corneliu Stoicescu 868a234075 grubtarget.py: Change 'test' GRUB entry selection method
Using character combinations for <arrow down> to select the test image will not always work.

Using the '--hotkey x' option added to the 'test' GRUB menuentry to select the 'test' GRUB entry.

(From meta-yocto rev: 962003f77258bd7d1e8b3fb034c6e256c7879c8d)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:01 +01:00
Cristian Iorga 581a06afb5 meta-yocto-bsp: oeqa/controllers: add GrubTarget
add control for generic grub pc via serial line

Implementation [YOCTO #5615].

(From meta-yocto rev: dc3d298688c2265b023219c81124065c36eeb417)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:01 +01:00
Richard Purdie 57bbb1af5e Revert "meta-yocto-bsp: oeqa/controllers: add GrubTarget"
This reverts commit 01968e9244d0cf3deb1ec5cfb8e562d3b364add6.

Wrong repo

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-04 08:46:00 +01:00
Cristian Iorga d7b3683834 meta-yocto-bsp: oeqa/controllers: add GrubTarget
add control for generic grub pc via serial line

Implementation [YOCTO #5615].

(From OE-Core rev: 01968e9244d0cf3deb1ec5cfb8e562d3b364add6)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-23 17:54:30 +01:00
Corneliu Stoicescu 55c8588981 controllers/edgeroutertarget.py: enable dynamical determination of rootfs type
[YOCTO #6375]

(From meta-yocto rev: 375ab07adf29e94ae09b7c087dec4ca1443babfc)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:16 +01:00
Corneliu Stoicescu 1655fe2eae controllers/beaglebonetarget.py: enable dynamical determination of rootfs type
[YOCTO #6375]

(From meta-yocto rev: 953b51b2ba5862ad24e2ad4f6cf9cefff7af14c9)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:16 +01:00
Corneliu Stoicescu d5deca211b beaglebonetarget.py: Add support for get_extra_files() classmethod
[YOCTO #6254]

Adding support for the get_extra_files() method to the BeagleBoneTarget class.

(From meta-yocto rev: b719ff579fe2a5f5a0d19a9091eaa37e0f145384)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-17 11:45:15 +01:00
Corneliu Stoicescu 99006ef296 oeqa/controllers/beaglebonetarget.py: fix conditions for files copied to /boot
Using '[ ! -e /mnt/testrootfs/boot/uImage ] && cp ~/test-kernel /mnt/testrootfs/boot/uImage' would result in exit code 1 if the first condition is not met.
Changing the code to return exit status 0 if /mnt/testrootfs/boot/uImage exists.

Also adding this change to dtb files check.

(From meta-yocto rev: e06e354165673bfb6b531d1f78c468b4c56dbd18)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-03 10:38:24 +01:00
Paul Eggleton 57acd08270 meta-yocto-bsp: oeqa/controllers: add EdgeRouterTarget
Based on BeagleBoneTarget, this provides support for deploying images
and running tests on an EdgeRouter Lite (edgerouter). The device must
be set up to boot into the master image already - see the instructions
in the file.

Implements [YOCTO #6253].

(From meta-yocto rev: 6e28284f0dacb40f7533161bfaeb637723297947)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30 21:52:44 +01:00
Stefan Stanacar ceb5c4d8c1 meta-yocto-bsp: oeqa/controllers: add BeagleBoneTarget
With a serial connection and beaglebone setup correctly as per
README.hardware (nand erased, default uboot config assumed, etc) and a
correctly deployed core-image-testmaster, we could actually deploy and
test AB built images.
In the default configuration u-boot will do the right thing and will
always boot into the master image (rootfs on second fs on the card,
kernel in /boot on the same partition). We just need to tell it for the
test image to use the third partition and update the kernel cmdline.
Pexpect is used to interact with whatever serial connection we have
(which for this target is mandatory).

There is some handling for images that don't contain the kernel and
dtb files as needed (such as core-image-minimal).

Implements [YOCTO #6252].

(From meta-yocto rev: 8235464faf480811b17b062cb9aad8ebf1cd2a67)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-30 21:52:43 +01:00