From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6589768255022301184 X-Received: by 2002:a2e:350b:: with SMTP id z11-v6mr1321019ljz.6.1534432232559; Thu, 16 Aug 2018 08:10:32 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:d868:: with SMTP id p101-v6ls51787lfg.9.gmail; Thu, 16 Aug 2018 08:10:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy2qFfpUufc56SWRr7KAzrmoofG+rv9s5YK4SnCx2qvhNgjBiIiJ1s3HVP7KMhHfphHlCJD X-Received: by 2002:a19:93c7:: with SMTP id w68-v6mr117217lfk.38.1534432231980; Thu, 16 Aug 2018 08:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534432231; cv=none; d=google.com; s=arc-20160816; b=fxTmv11TV+iA5wOYOHWhB4SNiBZSgmwQi6+pyEYD4yZbFHWr6+yAxllGLpd7j2Ux54 Id+ALQH1hxtB85NQdd/4/K357CFXRHAZQh9SpNW9dd7z5cfU5VXdgvz3jg9xq5dGHNtW cRu1FEaBw/IjJ/7FUTD3yQzXShPIfKhYfEY1vlFTciFdkLrZw8TgtqONijvY/huBmrv1 9yzizDLeUQD4Q9ddMpBkWM/42QGkxizdhanqHmF08MtNFqX8cIhP1r715EUUHXQPC4m3 PnJi8U/SwNfQCy3F/dQftORkgog+sTjglNmt9v4nZR48oauLS9nTfWZOG+Xx4X0IOac5 IUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:references:cc:to :subject:arc-authentication-results; bh=3EzOiY2qXKbR3LExXO/odeL/TdIa6fU2GNT8xayWyVs=; b=mct01UnB/Z0+k3qoZJkRL6TENsicKsqEDy5vAEzBua2hrR2PoNdSeLYWCfCCc4bNmx dRB98TgLTFezqHcWETwb9r8jYNR0DQpf8E7+lNqbf8ZVr1IQ3RMMNrx/S9nCUknDlTj/ 0Vq8Xlb8efVGK1eldY+hy+BqVRQi2K3ZM1zjEoDN7S7br1sKZFTatGPsBsuiakFJcm9H 43dwqIYWToIpyk2DuhEQJTZ+EY7S2J97n8nttL9nckCiZUg/HiyCV5QL1YWL4YO0Bk3L cHFwkIcLhVe/k/Z6lvKbRJ1dPFhvb6fY3U9lc34oAcVoHO8E/4j4RVa5jQURMGPOEoCh YgUQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id v6-v6si918846ljj.2.2018.08.16.08.10.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 08:10:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w7GFARCf026190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 16 Aug 2018 17:10:29 +0200 Subject: Re: [PATCH v2] conf: Add support for new debian distro "buster" To: Henning Schild Cc: isar-users@googlegroups.com References: <20180815022609.10528-1-mosipov@ilbers.de> <20180816110440.0be34cc0@md1pvb1c.ad001.siemens.net> <20180816164915.41913a28@md1pvb1c.ad001.siemens.net> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Thu, 16 Aug 2018 18:10:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180816164915.41913a28@md1pvb1c.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: JTsYZZIq9HFE On 08/16/2018 05:49 PM, Henning Schild wrote: > Am Thu, 16 Aug 2018 14:57:44 +0300 > schrieb "Maxim Yu. Osipov" : > >> Hi Henning, >> >> It seems that under jessie we have similar problem with unsupported >> syscall with qemuarm as we had with qemuarm64 on stretch: >> >> cat >> build/tmp/work/debian-buster-armhf/buildchroot-target/temp/log.do_build: >> === Setting up libperl5.26:armhf (5.26.2-7) ... >> Setting up man-db (2.8.4-2) ... >> Building database of manual pages ... >> qemu: Unsupported syscall: 383 >> === >> >> May be it makes sense to exclude for now qemuarm from buster patch >> (at least while we support jessie)? > > No. For arm64 i agree, we have that problem and can not build buster > images from any distro < buster. But for arm we just have that problem > for debian8 and not 9, so arm should be part of the patch. > > And i think if you had a debian buster you could also build a debian > buster on it, which would speak for adding arm64 as well. So far we focus on support of current stable Debian 9.x (stretch). In ideal case it would be desirable to support current and previous stable Debian releases. Unfortunately the world is not ideal... > And the knowledge that certain host <-> target combinations do not > work, could maybe be documented or coded into warnings. >> On 08/16/2018 12:04 PM, Henning Schild wrote: >>> Authership seems to be broken in git and the From: line is in the >>> commit. 67032ace57ce97a885 >> >> I may prepare v3 but I don't know how to workaround this broken >> authorship you've found out. > > Well it should be fixed and not worked around ;). You could commit > --amend --author= in an interactive rebase. Where you delete > the "From:" line as well... > Or you tell me to rebase my patch on current next. Please go ahead with rebase. Please document in your patch host <-> target combinations which don't work. Maxim. > Henning > >> Maxim. >> >>> Henning >>> >>> Am Wed, 15 Aug 2018 04:26:09 +0200 >>> schrieb "Maxim Yu. Osipov" : >>> >>>> From: Henning Schild >>>> >>>> Let us already include support for "buster" in Isar, to prove that >>>> we can build images and to find issues before it is declared >>>> stable. >>>> >>>> Note: >>>> arm64-buster support is excluded so far as build on debian stretch >>>> system hangs with error "qemu: unsupported syscall 277" >>>> >>>> Signed-off-by: Henning Schild >>>> Signed-off-by: Maxim Yu. Osipov >>>> --- >>>> doc/user_manual.md | 2 +- >>>> meta-isar/conf/distro/debian-buster.conf | 7 +++++++ >>>> meta-isar/conf/distro/debian-buster.list | 3 +++ >>>> meta-isar/conf/local.conf.sample | 3 +++ >>>> meta-isar/conf/multiconfig/qemuamd64-buster.conf | 19 >>>> +++++++++++++++++++ >>>> meta-isar/conf/multiconfig/qemuarm-buster.conf | 18 >>>> ++++++++++++++++++ >>>> meta-isar/conf/multiconfig/qemui386-buster.conf | 20 >>>> ++++++++++++++++++++ .../buildchroot/buildchroot-target.bb >>>> | 2 ++ scripts/ci_build.sh | 3 >>>> +++ scripts/vm_smoke_test | 3 +++ >>>> 10 files changed, 79 insertions(+), 1 deletion(-) create mode >>>> 100644 meta-isar/conf/distro/debian-buster.conf create mode 100644 >>>> meta-isar/conf/distro/debian-buster.list create mode 100644 >>>> meta-isar/conf/multiconfig/qemuamd64-buster.conf create mode 100644 >>>> meta-isar/conf/multiconfig/qemuarm-buster.conf create mode 100644 >>>> meta-isar/conf/multiconfig/qemui386-buster.conf >>>> >>>> diff --git a/doc/user_manual.md b/doc/user_manual.md >>>> index 4e7f29a..34ea6e6 100644 >>>> --- a/doc/user_manual.md >>>> +++ b/doc/user_manual.md >>>> @@ -55,7 +55,7 @@ Install the following packages: >>>> ``` >>>> dosfstools >>>> git >>>> -debootstrap >>>> +debootstrap/jessie-backports# for debian >= "buster" >>>> dpkg-dev >>>> parted >>>> python >>>> diff --git a/meta-isar/conf/distro/debian-buster.conf >>>> b/meta-isar/conf/distro/debian-buster.conf new file mode 100644 >>>> index 0000000..162257f >>>> --- /dev/null >>>> +++ b/meta-isar/conf/distro/debian-buster.conf >>>> @@ -0,0 +1,7 @@ >>>> +# This software is a part of ISAR. >>>> + >>>> +DISTRO_APT_SOURCES += "conf/distro/debian-buster.list" >>>> +DISTRO_CONFIG_SCRIPT ?= "debian-configscript.sh" >>>> +DISTRO_KERNELS ?= "4kc-malta 586 5kc-malta 686 686-pae amd64 arm64 >>>> armmp \ >>>> + armmp-lpae kirkwood loongson-3 marvell octeon orion5x >>>> powerpc64le \ >>>> + rt-686-pae rt-amd64 s390x" >>>> diff --git a/meta-isar/conf/distro/debian-buster.list >>>> b/meta-isar/conf/distro/debian-buster.list new file mode 100644 >>>> index 0000000..18311d8 >>>> --- /dev/null >>>> +++ b/meta-isar/conf/distro/debian-buster.list >>>> @@ -0,0 +1,3 @@ >>>> +deb http://ftp.de.debian.org/debian buster main >>>> contrib non-free +deb http://ftp.de.debian.org/debian >>>> buster-updates main contrib non-free +deb >>>> http://security.debian.org buster/updates main >>>> contrib non-free diff --git a/meta-isar/conf/local.conf.sample >>>> b/meta-isar/conf/local.conf.sample index 27b43d1..0f37121 100644 >>>> --- a/meta-isar/conf/local.conf.sample +++ >>>> b/meta-isar/conf/local.conf.sample @@ -41,12 +41,15 @@ >>>> BBMULTICONFIG = " \ qemuarm-wheezy \ >>>> qemuarm-jessie \ >>>> qemuarm-stretch \ >>>> + qemuarm-buster \ >>>> qemuarm64-stretch \ >>>> qemui386-jessie \ >>>> qemui386-stretch \ >>>> + qemui386-buster \ >>>> qemuamd64-jessie \ >>>> qemuamd64-stretch \ >>>> bananapi-stretch \ >>>> + qemuamd64-buster \ >>>> rpi-jessie \ >>>> " >>>> >>>> diff --git a/meta-isar/conf/multiconfig/qemuamd64-buster.conf >>>> b/meta-isar/conf/multiconfig/qemuamd64-buster.conf new file mode >>>> 100644 index 0000000..85404ae >>>> --- /dev/null >>>> +++ b/meta-isar/conf/multiconfig/qemuamd64-buster.conf >>>> @@ -0,0 +1,19 @@ >>>> +# This software is a part of ISAR. >>>> + >>>> +MACHINE ?= "qemuamd64" >>>> + >>>> +DISTRO ?= "debian-buster" >>>> +DISTRO_ARCH ?= "amd64" >>>> + >>>> +KERNEL_NAME ?= "amd64" >>>> + >>>> +IMAGE_PREINSTALL += "init" >>>> + >>>> +IMAGE_TYPE ?= "wic-img" >>>> + >>>> +ROOTFS_DEV ?= "sda2" >>>> + >>>> +QEMU_ARCH ?= "x86_64" >>>> +QEMU_MACHINE ?= "q35" >>>> +QEMU_CPU ?= "" >>>> +QEMU_ROOTFS_DEV ?= "-hda ##ROOTFS_IMAGE## >>>> -bios /usr/local/share/ovmf/OVMF.fd" diff --git >>>> a/meta-isar/conf/multiconfig/qemuarm-buster.conf >>>> b/meta-isar/conf/multiconfig/qemuarm-buster.conf new file mode >>>> 100644 index 0000000..003f7c4 --- /dev/null >>>> +++ b/meta-isar/conf/multiconfig/qemuarm-buster.conf >>>> @@ -0,0 +1,18 @@ >>>> +# This software is a part of ISAR. >>>> + >>>> +MACHINE ?= "qemuarm" >>>> + >>>> +DISTRO ?= "debian-buster" >>>> +DISTRO_ARCH ?= "armhf" >>>> + >>>> +KERNEL_NAME ?= "armmp" >>>> + >>>> +IMAGE_PREINSTALL += "init" >>>> + >>>> +ROOTFS_DEV ?= "vda" >>>> + >>>> +QEMU_ARCH ?= "arm" >>>> +QEMU_MACHINE ?= "virt" >>>> +QEMU_CPU ?= "cortex-a15" >>>> +# TODO: start_vm doesn't support multiline vars >>>> +QEMU_ROOTFS_DEV ?= "-drive >>>> file=##ROOTFS_IMAGE##,if=none,format=raw,id=hd0 -device >>>> virtio-blk-device,drive=hd0" diff --git >>>> a/meta-isar/conf/multiconfig/qemui386-buster.conf >>>> b/meta-isar/conf/multiconfig/qemui386-buster.conf new file mode >>>> 100644 index 0000000..e09cd0c --- /dev/null +++ >>>> b/meta-isar/conf/multiconfig/qemui386-buster.conf @@ -0,0 +1,20 @@ >>>> +# This software is a part of ISAR. >>>> + >>>> +MACHINE ?= "qemui386" >>>> + >>>> +DISTRO ?= "debian-buster" >>>> +DISTRO_ARCH ?= "i386" >>>> + >>>> +KERNEL_NAME ?= "686-pae" >>>> + >>>> +IMAGE_PREINSTALL += "init" >>>> + >>>> +IMAGE_TYPE ?= "wic-img" >>>> +WKS_FILE ?= "directdisk-isar" >>>> + >>>> +ROOTFS_DEV ?= "sda2" >>>> + >>>> +QEMU_ARCH ?= "i386" >>>> +QEMU_MACHINE ?= "pc" >>>> +QEMU_CPU ?= "" >>>> +QEMU_ROOTFS_DEV ?= "-hda ##ROOTFS_IMAGE##" >>>> diff --git >>>> a/meta/recipes-devtools/buildchroot/buildchroot-target.bb >>>> b/meta/recipes-devtools/buildchroot/buildchroot-target.bb index >>>> 66b526a..34abb72 100644 --- >>>> a/meta/recipes-devtools/buildchroot/buildchroot-target.bb +++ >>>> b/meta/recipes-devtools/buildchroot/buildchroot-target.bb @@ -29,6 >>>> +29,8 @@ BUILDCHROOT_PREINSTALL_WIC = " \ e2fsprogs \ python3" >>>> >>>> +BUILDCHROOT_PREINSTALL_WIC_append_debian-buster = " >>>> python3-distutils" + >>>> BUILDCHROOT_PREINSTALL_WIC_append_amd64 = " \ >>>> syslinux \ >>>> syslinux-common \ >>>> diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh >>>> index 28290c2..24b3353 100755 >>>> --- a/scripts/ci_build.sh >>>> +++ b/scripts/ci_build.sh >>>> @@ -84,10 +84,13 @@ else >>>> bitbake $BB_ARGS \ >>>> multiconfig:qemuarm-jessie:isar-image-base \ >>>> multiconfig:qemuarm-stretch:isar-image-base \ >>>> + multiconfig:qemuarm-buster:isar-image-base \ >>>> multiconfig:qemuarm64-stretch:isar-image-base \ >>>> multiconfig:qemui386-jessie:isar-image-base \ >>>> multiconfig:qemui386-stretch:isar-image-base \ >>>> + multiconfig:qemui386-buster:isar-image-base \ >>>> multiconfig:qemuamd64-jessie:isar-image-base \ >>>> multiconfig:qemuamd64-stretch:isar-image-base \ >>>> + multiconfig:qemuamd64-buster:isar-image-base \ >>>> multiconfig:rpi-jessie:isar-image-base >>>> fi >>>> diff --git a/scripts/vm_smoke_test b/scripts/vm_smoke_test >>>> index a88d127..f2f6aea 100755 >>>> --- a/scripts/vm_smoke_test >>>> +++ b/scripts/vm_smoke_test >>>> @@ -144,14 +144,17 @@ done >>>> # ARM machine >>>> run_test arm jessie >>>> run_test arm stretch >>>> +run_test arm buster >>>> >>>> # AMD64 machine >>>> run_test amd64 jessie >>>> run_test amd64 stretch >>>> +run_test amd64 buster >>>> >>>> # i386 machine >>>> run_test i386 jessie >>>> run_test i386 stretch >>>> +run_test i386 buster >>>> >>>> # ARM64 machine >>>> run_test arm64 stretch >>> >> >> > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov