[OE-core] [OE-code][PATCH] wic: include partition label in fs image file name

2014-07-21 Thread Maciej Borzecki
Not including the label image but having multiple partitions of the same type, the image file of one partition would overwrite the other. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/mic/kickstart/custom_commands/partition.py | 6 +++--- 1 file changed, 3

[OE-core] [PATCH 1/2] wic: original fstab restored too early

2014-07-21 Thread Maciej Borzecki
Contents of /etc/fstab were restored too early, thus overwriting the autogenerated ones. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/mic/imager/direct.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lib/mic/imager/direct.py b

[OE-core] [PATCH 2/2] wic: --fsoptions handling

2014-07-21 Thread Maciej Borzecki
Add handling of --fsoptions in parition definition. Default value of mount option is 'defaults', all user defined options are appended. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/mic/imager/direct.py | 9 - 1 file changed, 8 insertions(+),

[OE-core] [PATCH] wic: squashfs partition support

2014-07-23 Thread Maciej Borzecki
Signed-off-by: Maciej Borzecki --- .../lib/mic/kickstart/custom_commands/partition.py | 26 ++ 1 file changed, 26 insertions(+) diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py index d0f1b78

[OE-core] [PATCH v2] wic: squashfs partition support

2014-07-24 Thread Maciej Borzecki
It is possible to instruct wic to create a squashfs partition by setting --fstype=squashfs in *.wks. For now this is only useable for rootfs partitions (note that you must have squashfs support in the kernel). An attempt to create an empty partition will produce a warning. Signed-off-by: Maciej

[OE-core] [PATCH v2] wic: --fsoptions handling

2014-07-24 Thread Maciej Borzecki
Add handling of --fsoptions in parition definition. If no options are specified, 'defaults' is used. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/mic/imager/direct.py | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scrip

[OE-core] [PATCH v2] wic: do not overwrite autogenerated /etc/fstab with original too early

2014-07-24 Thread Maciej Borzecki
partition. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- Notes: Previous version got messed up during merges and faulty code was sent out. This one works as expected. scripts/lib/mic/imager/direct.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[OE-core] [PATCH] cml1.bbclass: fix diffconfig diff command

2014-08-14 Thread Maciej Borzecki
Commit 6a7b98993350d0d24eae0058ae26ae19cfdf7c4c introduced a typo in command, a whitespace was missing between --new-line-format and path to original file. As a result, diffconfig task did not work, diff failed with exit status 2, resulting in empty fragment.cfg. Signed-off-by: Maciej Borzecki

[OE-core] [PATCH 2/2] wic: do not realign aligned partitions

2014-08-19 Thread Maciej Borzecki
The change prevents additional realignment of already aligned partition. Previously, even already aligned partitions would be pushed forward by the amount of --align. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 19

[OE-core] [PATCH 1/2] wic: do not steal sectors from the first partition

2014-08-19 Thread Maciej Borzecki
number of sectors (typically already expressed by --size in kickstart file). Subtracting an odd number of sectors lost for overhead, leads to an odd number of sectors assigned for partition, preventing the board, such as beaglebone, from booting correctly. Signed-off-by: Maciej Borzecki Signed-off-

[OE-core] [PATCH 0/2] wic: partition alignment and sizing fixes

2014-08-19 Thread Maciej Borzecki
A couple of fixes that were need for properly booting wic generated images on beaglebone black. The firs one fixes an apparent problem with the size of the first partition being changed unexpectedly. For images with MBR, such as ones used for booting BBB, this resulted in the first (boot) partition

[OE-core] [PATCH 1/9] wic: minor comment update

2014-09-22 Thread Maciej Borzecki
Update comment about types of generated partition images. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/kickstart/custom_commands/partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/kickstart/custom_commands

[OE-core] [PATCH 3/9] wic: fix vfat partition sector count only if needed

2014-09-22 Thread Maciej Borzecki
the time have a proper sector count. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/kickstart/custom_commands/partition.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b

[OE-core] [Patch 0/9]: support for generating SD images from wic

2014-09-22 Thread Maciej Borzecki
This patch series is a proposal that adds support for generating SD card images for embedded boards using wic. I did not want to cross post to meta-ti and meta-freescale so Denys and Otavio are added in CC. I would be glad to receive some feedback from you. So far, the 2 most common scenarios I've

[OE-core] [PATCH 2/9] wic: use IMAGE_EXTRA_SPACE for vfat rootfs

2014-09-22 Thread Maciej Borzecki
Functions for generating rootfs use IMAGE_EXTRA_SPACE rather than BOOTDD_EXTRA_SPACE. The latter is used in boot image source plugins. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/kickstart/custom_commands/partition.py | 4 ++-- 1 file changed, 2 insertions

[OE-core] [PATCH 5/9] ref-manual: document IMAGE_BOOT_FILES

2014-09-22 Thread Maciej Borzecki
Document IMAGE_BOOT_FILES variable. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- documentation/ref-manual/ref-variables.xml | 18 ++ 1 file changed, 18 insertions(+) diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref

[OE-core] [PATCH 7/9] wic: add new bootimg-partition plugin

2014-09-22 Thread Maciej Borzecki
This patch implements 'bootimg-partition source plugin class for 'wic'. The plugin creates an image of boot partition, copying over files listed in IMAGE_BOOT_FILES bitbake variable. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- .../lib/wic/plugins

[OE-core] [PATCH 4/9] wic: set bootimg_dir when using image-name artifacts

2014-09-22 Thread Maciej Borzecki
Running wic with -e to use artifacts from a named image, bootimg_dir was always passed as empty string to partition source plugins. The patch sets bootimg_dir to current value of DEPLOY_DIR_IMAGE, as bootloader artifacts end up in that location as well. Signed-off-by: Maciej Borzecki Signed-off

[OE-core] [PATCH 8/9] wic: add sdimage-bootpart kickstart file

2014-09-22 Thread Maciej Borzecki
Add kickstart for generating a SD card image that should cover most use case scenarios. The layout is as follows: - 16MB vfat partition that IMAGE_BOOT_FILES will be copied to, 4k alignment - ext4 rootfs, 4k alignment Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts

[OE-core] [PATCH 9/9] beaglebone.conf: add IMAGE_BOOT_FILES

2014-09-22 Thread Maciej Borzecki
Set IMAGE_BOOT_FILES to list of files that end up in boot partition. This in turn is used by wic to generate a bootable SD card image. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- meta-yocto-bsp/conf/machine/beaglebone.conf | 2 ++ 1 file changed, 2 insertions(+) diff

[OE-core] [PATCH 6/9] documentation.conf: document IMAGE_BOOT_FILES

2014-09-22 Thread Maciej Borzecki
Document IMAGE_BOOT_FILES variable. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- meta/conf/documentation.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf index dd55685..66ec093 100644 --- a/meta/conf

Re: [OE-core] [PATCH 9/9] beaglebone.conf: add IMAGE_BOOT_FILES

2014-09-23 Thread Maciej Borzecki
On Tuesday 23 of September 2014 14:31:13 Denys Dmytriyenko wrote: > On Mon, Sep 22, 2014 at 01:35:21PM +0200, Maciej Borzecki wrote: > > Set IMAGE_BOOT_FILES to list of files that end up in boot > > partition. This in turn is used by wic to generate a bootable SD card > > i

Re: [OE-core] [PATCH 9/9] beaglebone.conf: add IMAGE_BOOT_FILES

2014-09-23 Thread Maciej Borzecki
On Tuesday 23 of September 2014 20:09:19 Richard Purdie wrote: > On Tue, 2014-09-23 at 21:04 +0200, Maciej Borzecki wrote: > > On Tuesday 23 of September 2014 14:31:13 Denys Dmytriyenko wrote: > > > On Mon, Sep 22, 2014 at 01:35:21PM +0200, Maciej Borzecki wrote: > > >

Re: [OE-core] [PATCH] base.bbclass: add SRCREV to do_fetch() hash

2014-09-29 Thread Maciej Borzecki
On Monday 29 of September 2014 15:40:14 Ross Burton wrote: > Without this changing just the SRCREV won't re-fetch unless you embed the > SRCREV into PV. So a trick like this will not be needed anymore to automatically rebuild whenever sources in SCM change? SRCREV = "${AUTOREV}" PVBASE := "${PV}

Re: [OE-core] wic debug suggestions

2014-10-22 Thread Maciej Borzecki
On Monday 20 of October 2014 13:45:37 Philip Balister wrote: > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've > made an image and dd'ed it to a card. The card has a good vfat > partition, but the ext4 partition won't mount. Looks like bad > superblock. I can format the part

Re: [OE-core] wic debug suggestions

2014-10-22 Thread Maciej Borzecki
On Wednesday 22 of October 2014 09:03:03 Maciej Borzecki wrote: > On Monday 20 of October 2014 13:45:37 Philip Balister wrote: > > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've > > made an image and dd'ed it to a card. The card has a good vf

Re: [OE-core] wic debug suggestions

2014-10-22 Thread Maciej Borzecki
On Wednesday 22 of October 2014 07:40:37 Tom Zanussi wrote: > On Wed, 2014-10-22 at 09:03 +0200, Maciej Borzecki wrote: > > On Monday 20 of October 2014 13:45:37 Philip Balister wrote: > > > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've > &g

Re: [OE-core] [PATCH 0/6] some wic bugfixes

2014-10-30 Thread Maciej Borzecki
s/lib/wic/plugins/source/bootimg-pcbios.py | 3 +- > scripts/lib/wic/utils/oe/misc.py | 1 + > scripts/wic | 13 +++ > 10 files changed, 68 insertions(+), 77 deletions(-) For the whole series Acked-by: Maciej Borzecki -- Mac

[OE-core] [PATCH 0/3] wic: glob support & minor fixes

2014-12-10 Thread Maciej Borzecki
This patch series adds changes that enable globbing in IMAGE_BOOT_FILES. Effectivey this makes use of with with Raspberry Pi a tad easier, when a lengthy list of boot files can be replaced with just one entry. A related change to meta-raspberrypi will be sent to the Yocto mailing list. Maciej

[OE-core] [PATCH 2/3] wic: add globbing support in IMAGE_BOOT_FILES entries

2014-12-10 Thread Maciej Borzecki
: Maciej Borzecki Signed-off-by: Maciek Borzecki --- .../lib/wic/plugins/source/bootimg-partition.py| 41 +- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg

[OE-core] [PATCH 3/3] ref-manual: update IMAGE_BOOT_FILES entry

2014-12-10 Thread Maciej Borzecki
Update entry for IMAGE_BOOT_FILES with information on glob patterns. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- documentation/ref-manual/ref-variables.xml | 37 -- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/documentation

[OE-core] [PATCH 1/3] wic: IMAGE_BOOT_FILES format checks in bootimg-partition source

2014-12-10 Thread Maciej Borzecki
Check for malformed entries in IMAGE_BOOT_FILES, fail early if such entries were found. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/plugins/source/bootimg-partition.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib/wic/plugins/source

Re: [OE-core] [PATCH 0/3] wic: glob support & minor fixes

2014-12-15 Thread Maciej Borzecki
On 12/15 11:04, Tom Zanussi wrote: > On Wed, 2014-12-10 at 12:45 +0100, Maciej Borzecki wrote: > > This patch series adds changes that enable globbing in IMAGE_BOOT_FILES. > > Effectivey this makes use of with with Raspberry Pi a tad easier, when a > > lengthy list of boot

[OE-core] [PATCH 0/2] python: use stdlib argparse

2014-12-18 Thread Maciej Borzecki
as before, but built from Python stdlib. The version of new module matches that of the Python release. Hence, there should be a clean upgrade path from the old module. Maciej Borzecki (2): python-argparse: remove external argparse module python-2.7-manifest.inc: add stdlib argparse module m

[OE-core] [PATCH 1/2] python-argparse: remove external argparse module

2014-12-18 Thread Maciej Borzecki
Python argparse module is a part of a standard library since Python 2.7 release. Remove externally built module in favor of the stdlib one. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- meta/recipes-devtools/python/python-argparse_1.2.1.bb | 17 - 1 file

[OE-core] [PATCH 2/2] python-2.7-manifest.inc: add stdlib argparse module

2014-12-18 Thread Maciej Borzecki
Adding argparse module from Python's standard library. The module has replaced previous python-argparse package that was build using source that are not part of Python 2.7 release. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- meta/recipes-devtools/python/pytho

[OE-core] [PATCH] wic: account for mmcblk device partition naming

2014-12-22 Thread Maciej Borzecki
MMC block device partitions are named differently than other block devices and use the scheme: mmcblkp, ex: mmcblk0p1, mmcblk0p2. The current code generates incorrect parition names missing 'p' infix for fstab entries. The patch resolves this problem. Signed-off-by: Maciej Borzecki Sig

[OE-core] [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling

2015-01-08 Thread Maciej Borzecki
: 46b0c76e2c355c0d0cc4792abb98cde07b28bc5) Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- ...d-preferred-source-to-dhcp4-gateway-route.patch | 109 + meta/recipes-core/systemd/systemd_216.bb | 1 + 2 files changed, 110 insertions(+) create mode

[OE-core] [PATCH] systemd-networkd: cherry picking route handling patch

2015-01-08 Thread Maciej Borzecki
common in smaller networks that the DHCP server, gateway router and even a DNS server are colocated. In these setups the current code will effectively render any communication to or past the router impossible. Maciej Borzecki (1): systemd: cherry-pick patch fixing networkd gateway route handling

Re: [OE-core] [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling

2015-01-08 Thread Maciej Borzecki
On 01/08 12:14, Otavio Salvador wrote: > On Thu, Jan 8, 2015 at 6:43 AM, Maciej Borzecki > wrote: > > Cherry-picking a patch that fixes gateway route handling in > > systemd-networkd. The patch adds a source IP to the automatically added > > gateway > > static

Re: [OE-core] [PATCH] systemd-networkd: cherry picking route handling patch

2015-01-08 Thread Maciej Borzecki
On 01/08 12:13, Otavio Salvador wrote: > On Thu, Jan 8, 2015 at 6:43 AM, Maciej Borzecki > wrote: > > There is a problem in systemd-networkd version used in OE-core (216 as > > of now) that prevents a successful communication in a configuration > > that uses a static or I

[OE-core] [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling

2015-01-08 Thread Maciej Borzecki
systemd rev: 46b0c76e2c355c0d0cc4792abb98cde07b28bc5) Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- ...d-preferred-source-to-dhcp4-gateway-route.patch | 114 + meta/recipes-core/systemd/systemd_216.bb | 1 + 2 files changed, 115 insertions

Re: [OE-core] [PATCH] systemd-networkd: cherry picking route handling patch

2015-01-09 Thread Maciej Borzecki
On 01/08 14:35, akuster808 wrote: > Does this affect Dizzy? Yes, Dizzy uses the same revision of systemd (5d0ae62c665262c4c55536457e84e278c252cc0b tagged as v216) as master. -- Maciej Borzęcki Senior Software Developer at Open-RnD Sp. z o.o., Poland www.open-rnd.pl mobile: +48 889 117 365, fax: +

[OE-core] [PATCH 0/1] wic: fix extended/logical partition layout

2015-01-09 Thread Maciej Borzecki
partitions. Hopefully this list is the last patch fixing sector stealing. Maciej Borzecki (1): wic: fix extended/logical partition layout scripts/lib/wic/utils/partitionedfs.py | 40 -- 1 file changed, 19 insertions(+), 21 deletions(-) -- 1.9.3

[OE-core] [PATCH 1/1] wic: fix extended/logical partition layout

2015-01-09 Thread Maciej Borzecki
-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 40 -- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index fb95cc7

Re: [OE-core] [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling

2015-02-01 Thread Maciej Borzecki
On 01/08 18:36, Otavio Salvador wrote: > On Thu, Jan 8, 2015 at 5:59 PM, Maciej Borzecki > wrote: > > Cherry-picking a patch that fixes gateway route handling in > > systemd-networkd. > > The patch adds a source IP to the automatically added gateway static route, > &g

Re: [OE-core] [PATCH 1/1] wic: fix extended/logical partition layout

2015-02-01 Thread Maciej Borzecki
ping On 01/09 14:24, Maciej Borzecki wrote: > The patch fixes an issue in laying out extended and logical partitions > by wic. The original code produced disk images in which the size 3rd > partition as described in MBR was incorrect. Depending on the type of > file system used for th

Re: [OE-core] [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling

2015-02-01 Thread Maciej Borzecki
On 02/02 08:36, Maciej Borzecki wrote: > On 01/08 18:36, Otavio Salvador wrote: > > On Thu, Jan 8, 2015 at 5:59 PM, Maciej Borzecki > > wrote: > > > Cherry-picking a patch that fixes gateway route handling in > > > systemd-networkd. > > > The patch a

Re: [OE-core] [PATCH 1/1] wic: fix extended/logical partition layout

2015-02-03 Thread Maciej Borzecki
On 02/02 08:29, Tom Zanussi wrote: > On Mon, 2015-02-02 at 08:37 +0100, Maciej Borzecki wrote: > > ping > > > > This looks reasonable, but I haven't been able to verify it due to wic > problems introduced by the recent kernel changes in oe-core. > > If you have t

Re: [OE-core] [PATCH] wic: use kB for the partitions size

2015-02-04 Thread Maciej Borzecki
pts/lib/wic/3rdparty/pykickstart/options.py > @@ -143,6 +143,24 @@ def _check_string(option, opt, value): > else: > return value > > +def _check_size(option, opt, value): > +# Former default was MB > +if (value.isdigit()): > + return int(value) *

[OE-core] [PATCH] wic: bail out on kickstart parse errors

2015-02-04 Thread Maciej Borzecki
. Signed-off-by: Maciej Borzecki Signed-off-by: Maciek Borzecki --- scripts/lib/wic/kickstart/__init__.py | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/lib/wic/kickstart/__init__.py b/scripts/lib/wic/kickstart/__init__.py index

Re: [OE-core] [PATCH] wic: bootimg-partition: Stop removing whole workdir

2015-02-05 Thread Maciej Borzecki
f=/var/tmp/wic/build/test-201502050034-mmcblk.direct bs=512 seek=8 > count=294174 conv=notrunc returned '1' instead of 0 > > Using bootimg-partition anywhere but in the first position will fail > because the previously generated fs images (in my example > rootfs_root.ext4) will be

Re: [OE-core] [PATCH] wic: allow creation of partitions not in table

2015-02-05 Thread Maciej Borzecki
On 02/05 00:03, Alexandre Belloni wrote: > For some architectures it is necessary to reserve space on disk without > it being present in the partition table. > > For example, u-boot on i.mx is placed at an offset of 1kB on the sdcard. > While it would be possible to create a partition at that offse

Re: [OE-core] [PATCH] wic: allow creation of partitions not in table

2015-02-05 Thread Maciej Borzecki
On 02/05 11:27, Alexandre Belloni wrote: > Hi, > > On 05/02/2015 at 10:02:26 +0100, Maciej Borzecki wrote : > > On 02/05 00:03, Alexandre Belloni wrote: > > > For some architectures it is necessary to reserve space on disk without > > > it being present in the

[OE-core] [PATCH] selftest: wic: qemux86: use weak assignment for WKS_FILE

2016-12-15 Thread Maciej Borzecki
: Maciej Borzecki --- meta/conf/machine/qemux86.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf index 8997f6ba701a91f0adc82dfaf410c7dd1a9777f3..1b478e92ad7fdf6f3cb2dd4f6dc35684a319848c 100644 --- a/meta/conf

[OE-core] [PATCH v6 1/5] oeqa/utils/commands.py: allow use of binaries from native sysroot

2016-12-19 Thread Maciej Borzecki
native sysroot as one of its arguments and setup PATH accordingly. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/utils/commands.py | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index

[OE-core] [PATCH v6 4/5] wic: selftest: do not assume bzImage kernel image

2016-12-19 Thread Maciej Borzecki
Instead of assuming that bzImage is available, query bitbake enviroment for KERNEL_IMAGETYPE. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py

[OE-core] [PATCH v6 0/5] wic: bugfixes & --fixed-size support, tests, oeqa: enhancements

2016-12-19 Thread Maciej Borzecki
rmail/openembedded-core/2016-November/129187.html Maciej Borzecki (5): oeqa/utils/commands.py: allow use of binaries from native sysroot wic: add --fixed-size wks option wic: selftest: avoid COMPATIBLE_HOST issues wic: selftest: do not assume bzImage kernel image wic: selftest: add test

[OE-core] [PATCH v6 2/5] wic: add --fixed-size wks option

2016-12-19 Thread Maciej Borzecki
along with --fixed-size, will raise an error. If it partition data is larger than the amount of space specified with --fixed-size option wic will raise an error. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/help.py| 14 -- scripts/lib/wic/imager/direct.py | 2

[OE-core] [PATCH v6 3/5] wic: selftest: avoid COMPATIBLE_HOST issues

2016-12-19 Thread Maciej Borzecki
decorator onlyForArch() can be used to skip test cases for specific architectures. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 53 +++ 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta

[OE-core] [PATCH v6 5/5] wic: selftest: add tests for --fixed-size partition flags

2016-12-19 Thread Maciej Borzecki
wic has a new flag for setting a fixed parition size --fixed-size. Add tests that verify if partition is indeed sized properly and that errors are signaled when there is not enough space to fit partition data. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 61

[OE-core] [PATCH 2/5] selftest: wic: replace directdisk with wictestdisk where possible

2017-01-10 Thread Maciej Borzecki
Use wictestdisk instead of directdisk thus allowing more tests to be run on non-x86 compatible machines. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 66 +-- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/meta/lib

[OE-core] [PATCH 3/5] wic: selftest: avoid COMPATIBLE_HOST issues

2017-01-10 Thread Maciej Borzecki
decorator onlyForArch() can be used to skip test cases for specific architectures. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 51 ++- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta

[OE-core] [PATCH 4/5] wic: selftest: do not assume bzImage kernel image

2017-01-10 Thread Maciej Borzecki
Instead of assuming that bzImage is available, query bitbake enviroment for KERNEL_IMAGETYPE. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py

[OE-core] [PATCH 5/5] wic: selftest: add tests for --fixed-size partition flags

2017-01-10 Thread Maciej Borzecki
wic has a new flag for setting a fixed parition size --fixed-size. Add tests that verify if partition is indeed sized properly and that errors are signaled when there is not enough space to fit partition data. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 63

[OE-core] [PATCH 0/5] wic: selftest: enhancements for non-x86 MACHINE support & fixes-size tests

2017-01-10 Thread Maciej Borzecki
4299a3de6789833a27cce4f7e4bc79f48946f171 Author: Ed Bartosh Date: Fri Dec 23 01:42:14 2016 +0200 image_types.bbclass: look for wks files in /wic Maciej Borzecki (5): selftest: wictestdisk: machine agnostic WKS for use with selftest selftest: wic: replace directdisk with wictestdisk where possible wic

[OE-core] [PATCH 1/5] selftest: wictestdisk: machine agnostic WKS for use with selftest

2017-01-10 Thread Maciej Borzecki
Add a kickstart for an image that is not limited to use on x86 compatible machines. This allows us to run more wic tests on non-x86 architectures. Signed-off-by: Maciej Borzecki --- meta-selftest/wic/wictestdisk.wks | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 meta-selftest

[OE-core] [PATCH] wic: partitionedfs: account for non-table partitions when checking if logical parititon is needed

2017-01-16 Thread Maciej Borzecki
Commit 8c1c43b7901a9fcd8b279eb4250b08157ad345b7 `wic: Create a logical partition only when it is really mandatory` did not account for partitions that are not present in partition table. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 3 ++- 1 file changed, 2

[OE-core] [PATCH] staging: fix logic of guessing dependency manifest file in extend_recipe_sysroot

2017-01-24 Thread Maciej Borzecki
allarch-go-cross.populate_sysroot`, while the correct name is `manifest-x86_64_arm-go-cross.populate_sysroot` Signed-off-by: Maciej Borzecki --- meta/classes/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbc

[OE-core] [PATCH 1/2] systemd: fix indentation

2016-09-21 Thread Maciej Borzecki
Signed-off-by: Maciej Borzecki --- meta/recipes-core/systemd/systemd_230.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_230.bb b/meta/recipes-core/systemd/systemd_230.bb index 6e6ef76cfa2322fc0b833e4f38a4cdf7483a8782

[OE-core] [PATCH 2/2] systemd: use nss-resolve by default if resolved is enabled

2016-09-21 Thread Maciej Borzecki
modules end up in ${rootlibdir} - 0024-resolved-when-processing-auxiliary-DNSSEC-transactio - backport v231 patch that fixes SERVFAIL handling, required for name resolution under qemu or in containers. Signed-off-by: Maciej Borzecki --- .../0023-nss-install-nss-modules-into-lib.patch| 64

[OE-core] [PATCH 0/2] systemd: use nss-resolve when systemd-resoveld is enable

2016-09-21 Thread Maciej Borzecki
abled - applies a patch fixing the location of libnss_* services provided by systemd (the patch has been submitted upstream for inclusion in v232) - applies a patch that fixes SERVFAIL handling, this restores the ability to properly resolve names under qemu (backport from v231) Maciej Borzec

[OE-core] [PATCH] wic: add --reserved-size wks option

2016-10-17 Thread Maciej Borzecki
smaller than the reserved space, thus leaving some room for growth. If it is larger, an error will be raised. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/help.py| 11 ++ scripts/lib/wic/imager/direct.py | 3 ++- scripts/lib/wic/ksparser.py| 1

[OE-core] [PATCH 1/5] wic: make sure that partition size is always an integer in internal processing

2016-11-08 Thread Maciej Borzecki
Signed-off-by: Maciej Borzecki --- scripts/lib/wic/partition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 89c33ab8b7d54bb14678b2e07e706e3feb6ae57a..4b8d769437120adadb5dba2f3919d4eb96141292 100644

[OE-core] [PATCH 0/5] wic: bugfixes & --fixed-size support

2016-11-08 Thread Maciej Borzecki
) are subject to the same rules of partition sizing. http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127634.html Maciej Borzecki (5): wic: make sure that partition size is always an integer in internal processing wic: use partition size when creating empty partition

[OE-core] [PATCH 5/5] wic: add --fixed-size wks option

2016-11-08 Thread Maciej Borzecki
along with --fixed-size, will raise an error. If it partition data is larger than the amount of space specified with --fixed-size option wic will raise an error. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/help.py| 14 -- scripts/lib/wic/imager/direct.py | 2

[OE-core] [PATCH 2/5] wic: use partition size when creating empty partition files

2016-11-08 Thread Maciej Borzecki
partition.py", line 146, in prepare method(rootfs, oe_builddir, native_sysroot) File "/poky/scripts/lib/wic/partition.py", line 325, in prepare_empty_partition_ext os.ftruncate(sparse.fileno(), rootfs_size * 1024) NameError: name 'rootfs_size' is not d

[OE-core] [PATCH 3/5] wic: check that filesystem is specified for a rootfs partition

2016-11-08 Thread Maciej Borzecki
Signed-off-by: Maciej Borzecki --- scripts/lib/wic/partition.py | 4 1 file changed, 4 insertions(+) diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 8adc698240c8e3bd9f4118663a5d7a167e0bb4a4..24e657592738dc7c5cdff78e3740d7c373021e9d 100644 --- a/scripts/lib

[OE-core] [PATCH 4/5] wic: fix function comment typos

2016-11-08 Thread Maciej Borzecki
Fix typos in documentation of Image.add_partition() and Image.__format_disks(). Signed-off-by: Maciej Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils

[OE-core] [PATCH v2 00/10] wic: bugfixes & --fixed-size support, tests, selftest: minor fixes

2016-11-10 Thread Maciej Borzecki
Maciej Borzecki (10): wic: make sure that partition size is always an integer in internal processing wic: use partition size when creating empty partition files wic: check that filesystem is specified for a rootfs partition wic: fix function comment typos wic: add --fixed-size wks option

[OE-core] [PATCH v2 03/10] wic: check that filesystem is specified for a rootfs partition

2016-11-10 Thread Maciej Borzecki
We explicitly check for --fstype if no source was provided for a partition. However, this was not the case for rootfs partitions. Make sure to raise an error if filesystem was left unspecified when preparing a rootfs partition image. Signed-off-by: Maciej Borzecki --- scripts/lib/wic

[OE-core] [PATCH v2 01/10] wic: make sure that partition size is always an integer in internal processing

2016-11-10 Thread Maciej Borzecki
The size field of Partition class is expected to be an integer and ought to be set inside prepare_*() method. Make sure that this is always the case. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/partition.py | 12 +--- scripts/lib/wic/plugins/source/bootimg-efi.py

[OE-core] [PATCH v2 02/10] wic: use partition size when creating empty partition files

2016-11-10 Thread Maciej Borzecki
partition.py", line 146, in prepare method(rootfs, oe_builddir, native_sysroot) File "/poky/scripts/lib/wic/partition.py", line 325, in prepare_empty_partition_ext os.ftruncate(sparse.fileno(), rootfs_size * 1024) NameError: name 'rootfs_size' is not d

[OE-core] [PATCH v2 09/10] wic: selftest: do not assume bzImage kernel image

2016-11-10 Thread Maciej Borzecki
Instead of assuming that bzImage is available, query bitbake enviroment for KERNEL_IMAGETYPE. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py

[OE-core] [PATCH v2 05/10] wic: add --fixed-size wks option

2016-11-10 Thread Maciej Borzecki
along with --fixed-size, will raise an error. If it partition data is larger than the amount of space specified with --fixed-size option wic will raise an error. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/help.py| 14 -- scripts/lib/wic/imager/direct.py | 2

[OE-core] [PATCH v2 10/10] wic: selftest: add tests for --fixed-size partition flags

2016-11-10 Thread Maciej Borzecki
wic has a new flag for setting a fixed parition size --fixed-size. Add tests that verify if partition is indeed sized properly and that errors are signaled when there is not enough space to fit partition data. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 65

[OE-core] [PATCH v2 04/10] wic: fix function comment typos

2016-11-10 Thread Maciej Borzecki
Fix typos in documentation of Image.add_partition() and Image.__format_disks(). Signed-off-by: Maciej Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils

[OE-core] [PATCH v2 06/10] oe-selftest: fix handling of test cases without ID in --list-tests-by

2016-11-10 Thread Maciej Borzecki
e does not necessarily have an ID assigned, hence its value is None. Since Python 3 does not allow comparison of heterogeneous types, TypeError is raised. Signed-off-by: Maciej Borzecki --- scripts/oe-selftest | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/

[OE-core] [PATCH v2 07/10] wic: selftest: avoid COMPATIBLE_HOST issues

2016-11-10 Thread Maciej Borzecki
: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index faac11e21643e4c32a83b649b6ae986fead498f1..60e31de5825c84fca21d4dbe946e5cc7af8df511 100644 --- a

[OE-core] [PATCH v2 08/10] wic: selftest: do not repeat core-image-minimal

2016-11-10 Thread Maciej Borzecki
Replace repeated core-image-minimal with Wic class field. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 111 +++--- 1 file changed, 73 insertions(+), 38 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest

[OE-core] [PATCH v3 00/11] wic: bugfixes & --fixed-size support, tests, oe-selftest: minor fixes

2016-11-15 Thread Maciej Borzecki
and beaglebone * oe-selftest enforces en_US.UTF-8 encoding to enforce stable textual output of locaization aware programs [1]. http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128630.html Maciej Borzecki (11): wic: make sure that partition size is always an integer in

[OE-core] [PATCH v3 02/11] wic: use partition size when creating empty partition files

2016-11-15 Thread Maciej Borzecki
partition.py", line 146, in prepare method(rootfs, oe_builddir, native_sysroot) File "/poky/scripts/lib/wic/partition.py", line 325, in prepare_empty_partition_ext os.ftruncate(sparse.fileno(), rootfs_size * 1024) NameError: name 'rootfs_size' is not d

[OE-core] [PATCH v3 01/11] wic: make sure that partition size is always an integer in internal processing

2016-11-15 Thread Maciej Borzecki
The size field of Partition class is expected to be an integer and ought to be set inside prepare_*() method. Make sure that this is always the case. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/partition.py | 12 +--- scripts/lib/wic/plugins/source/bootimg-efi.py

[OE-core] [PATCH v3 03/11] wic: check that filesystem is specified for a rootfs partition

2016-11-15 Thread Maciej Borzecki
We explicitly check for --fstype if no source was provided for a partition. However, this was not the case for rootfs partitions. Make sure to raise an error if filesystem was left unspecified when preparing a rootfs partition image. Signed-off-by: Maciej Borzecki --- scripts/lib/wic

[OE-core] [PATCH v3 04/11] wic: fix function comment typos

2016-11-15 Thread Maciej Borzecki
Fix typos in documentation of Image.add_partition() and Image.__format_disks(). Signed-off-by: Maciej Borzecki --- scripts/lib/wic/utils/partitionedfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils

[OE-core] [PATCH v3 06/11] wic: selftest: avoid COMPATIBLE_HOST issues

2016-11-15 Thread Maciej Borzecki
decorator onlyForArch() can be used to skip test cases for specific architectures. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 51 +++ 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta

[OE-core] [PATCH v3 07/11] wic: selftest: do not repeat core-image-minimal

2016-11-15 Thread Maciej Borzecki
Replace repeated core-image-minimal with Wic class field. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 111 +++--- 1 file changed, 73 insertions(+), 38 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest

[OE-core] [PATCH v3 08/11] wic: selftest: do not assume bzImage kernel image

2016-11-15 Thread Maciej Borzecki
Instead of assuming that bzImage is available, query bitbake enviroment for KERNEL_IMAGETYPE. Signed-off-by: Maciej Borzecki --- meta/lib/oeqa/selftest/wic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py

[OE-core] [PATCH v3 05/11] wic: add --fixed-size wks option

2016-11-15 Thread Maciej Borzecki
along with --fixed-size, will raise an error. If it partition data is larger than the amount of space specified with --fixed-size option wic will raise an error. Signed-off-by: Maciej Borzecki --- scripts/lib/wic/help.py| 14 -- scripts/lib/wic/imager/direct.py | 2

[OE-core] [PATCH v3 10/11] oe-selftest: fix handling of test cases without ID in --list-tests-by

2016-11-15 Thread Maciej Borzecki
e does not necessarily have an ID assigned, hence its value is None. Since Python 3 does not allow comparison of heterogeneous types, TypeError is raised. Signed-off-by: Maciej Borzecki --- scripts/oe-selftest | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/

  1   2   >