From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7073176447533187072 X-Received: by 2002:a05:6512:104a:b0:448:46f1:776c with SMTP id c10-20020a056512104a00b0044846f1776cmr13980083lfb.473.1647266358642; Mon, 14 Mar 2022 06:59:18 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:b05:b0:448:696a:ea62 with SMTP id w5-20020a0565120b0500b00448696aea62ls2066205lfu.0.gmail; Mon, 14 Mar 2022 06:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOu0b6LfW6D4c3N7PUWCnW0aDkOtJZ73NxXg+zkkDYCjZrhW9Xw80PzCiZrlXiRHf/3B8/ X-Received: by 2002:a05:6512:6c1:b0:448:6291:f135 with SMTP id u1-20020a05651206c100b004486291f135mr12532990lff.451.1647266357631; Mon, 14 Mar 2022 06:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647266357; cv=none; d=google.com; s=arc-20160816; b=VFCQfAvG+WhaLul7mH9e0iD5SSheYVkTEpgn4FU+s9jo15J3WRou6nQlDoUsnOnQUV jn7LuCkh/yWVQGDEP/S/b3SnF3qQNFVszIEWTRL+SejHMiOKlm+ufHeF1oNL7T7wntRC g1hytjc4WP5LAGDRIj0VTq0deyqMUNEl0qeOR0llHV4dj9Oi/TCkb49XIq9C1lPo/ked MDF/hlSBECcjLrFZyihW7NGYjc6oGu22AOYzm/Oui93IBi4UexHJbiqxhA+PbRBDmalz eqcl2/LBGmw+NMNhgkIHjw0I7rMRVcVKPdYSdx2EIGVsOg8m66N2qIadiGjbL9QC2r/2 uz5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:cc:from:references:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ctpaWxxfr5RC1jtDzVDuVQrAXedFG6kyO9gvc/P7Pj4=; b=W239rL81m/fhK7/uJoPW13TixR36b29NZNtNV9oRRMmAiEknOW9BUW0l8D8njoNKHy yCt8BQxBdHDzOgowtClWFTydj9Q6rgq4FdPmGvJ/iLTNPCfV8xFGPOkX59Z+1GoU1ZSE Vz0DaGor8uvVl74tiEuX3ufsifnqdeOvLA5wgsbb/peROKTFOa72Y45osocmMCaLA+kl LE/uGlb+Kt/DbGpdqO7fSt/fo3LIC4gXDVqbBn5irq9N77xjPUTbLMPz1W6b4+s44I0l ydH15SXnyd79gWGW3QUDFr1nqMgxDkBmEHNlLGYfkA5pLtE8cHxpufWPb03EKB6iNVBw vlKg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@kilobaser.com header.s=default header.b=Ifo6IXTN; spf=pass (google.com: domain of jonas.reindl@kilobaser.com designates 176.123.54.40 as permitted sender) smtp.mailfrom=jonas.reindl@kilobaser.com Return-Path: Received: from s11.telematica.at (s11.telematica.at. [176.123.54.40]) by gmr-mx.google.com with ESMTPS id bu30-20020a056512169e00b0044842a98a98si930125lfb.2.2022.03.14.06.59.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2022 06:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jonas.reindl@kilobaser.com designates 176.123.54.40 as permitted sender) client-ip=176.123.54.40; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@kilobaser.com header.s=default header.b=Ifo6IXTN; spf=pass (google.com: domain of jonas.reindl@kilobaser.com designates 176.123.54.40 as permitted sender) smtp.mailfrom=jonas.reindl@kilobaser.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kilobaser.com; s=default; h=In-Reply-To:Cc:From:References:To:Subject: MIME-Version:Date:Message-ID:Content-Type:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ctpaWxxfr5RC1jtDzVDuVQrAXedFG6kyO9gvc/P7Pj4=; b=Ifo6IXTNJ/4oHMLYiR9FdIHH9b ctE6OA2MT2UfKvQbuv4Wfb0K+8LOtunY8d1/g9p5g5TaSvSCmi7wCnKnEyHlwamyMXK/+qTch3o4s Z3WpZIiC5E61t70f20myH8D1hv6rFYwrDU1aU40IRam39k/jG/vx4Zf5jJgJqRLCifVUQWErzSMJU VG2ZGAfhGxKmtFf+fnTMdOu8G2Rq2GAwYFuzuozoXSYNVwP1odoQ0QuZQHWdlMQKRmCGDWquRoflV aCkeuOs7vJZ+9JYYfo749xuos1Sn4GAFLE2lThja6x0dbW2lmpJAru+EWOMniUySEhh8eQMgQMyZZ x+BTtCLQ==; Received: from [2a01:aea0:dd3:29b::753] (port=44594) by s11.telematica.at with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nTlED-00B0L5-2C; Mon, 14 Mar 2022 14:59:16 +0100 Content-Type: multipart/alternative; boundary="------------5xa9BeqqfKPFs8OPuXBKqGQr" Message-ID: Date: Mon, 14 Mar 2022 14:59:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Rapios Wic Image Content-Language: en-US To: Henning Schild References: <8b0abbf9-0be1-f112-4a2d-893fd29ce9cf@kilobaser.com> <20220310090422.23b8e7ee@md1za8fc.ad001.siemens.net> From: Jonas Reindl Cc: isar-users In-Reply-To: <20220310090422.23b8e7ee@md1za8fc.ad001.siemens.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s11.telematica.at X-AntiAbuse: Original Domain - googlegroups.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - kilobaser.com X-Get-Message-Sender-Via: s11.telematica.at: authenticated_id: jonas.reindl@kilobaser.com X-Authenticated-Sender: s11.telematica.at: jonas.reindl@kilobaser.com X-Source: X-Source-Args: X-Source-Dir: X-TUID: Z6nYgd/YlwKp This is a multi-part message in MIME format. --------------5xa9BeqqfKPFs8OPuXBKqGQr Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/10/22 09:04, Henning Schild wrote: > Hey Jonas, > > Am Wed, 9 Mar 2022 19:57:02 +0100 > schrieb Jonas Reindl: > >> Hey everyone, >> >> I'm currently trying to build a raspios image as "wic-img" and get a >> python import error. >> >> kas-version: 3.0.2 >> >> isar-version: 0.8 > You might in fact want to try "next" instead. Isar master and releases > are often slow to move, maybe your issue is fixed already. First of all thanks for the help. Upgrading to next didn't had a direct impact on the install. The suggestion from Jan Kiszka with WIC_IMAGER_INSTALL += "python3-distutils" helped to get the wic imager to start. But now I'm stuck with the problem, that wic is looking for the kernel in /boot/vmlinux. Raspios installs the kernel with kernel.img. So I assumend I would need to set IMAGE_BOOT_FILES = " \ /kernel.img;vmlinuz \ " to remap the kernel. This still ends in the error message: ERROR: kernel /build/tmp/work/raspios-bullseye-armhf/myimage-image-base-rpi-arm-wic-img/1.0-r0/rootfs/boot/vmlinux not found Would you have any ideas to get that working. > >> I'm using kas-container to build the images with multiconfig for that. >> >> ``` >> >>     MACHINE ?= "rpi-arm" >>     DISTRO ?= "raspios-bullseye" >> >>     IMAGE_FSTYPES = "wic-img" >> >> ``` >> >> Error: >> >> Exception: bb.process.ExecutionError: Execution of >> '/build/tmp/work/raspios-bullseye-armhf/my-image-base-rpi-arm-wic-img/1.0-r0/temp/run.generate_wic_image.285' >> failed with exit code 1: >> Traceback (most recent call last): >>   File "/work/layers/isar/scripts/wic", line 27, in >>     from distutils import spawn >> ImportError: cannot import name 'spawn' from 'distutils' >> (/usr/lib/python3.9/distutils/__init__.py) >> WARNING: exit code 1 from a shell command. >> >> If I enter the build environment with the kas shell and execute >> python3 I'm able to import spawn. I also rebuild the docker container >> to explicitly include python3-distutils. Maybe I misunderstood >> something, but I don't know how I should further debug that. > In fact wic is not executed in that container, but in a chroot in there. > > I think we currently lack a wic raspi example in isar itself, maybe > there is something broken indeed. But it is possible and wic will be > much better than "rpi-sdimg" which is currently questioned a lot and > also might be broken at the moment. > > https://github.com/siemens/jailhouse-images I tried to follow the wic configuration as good as possible from the jailhouse-image, but jailhouse uses native debian, which will install the kernel differently as raspios does. Changing to debian native is not possible for me as I need that image to be able to boot on different raspberries. > > has rpi4 with wic in it > > regards, > Henning > >> In case needed I can provide the fullstack trace and the sh script >> which tried to generate the wic. >> >> Best regards, >> >> Jonas >> >> >> BR, Jonas --------------5xa9BeqqfKPFs8OPuXBKqGQr Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 3/10/22 09:04, Henning Schild wrote:
Hey Jonas,

Am Wed, 9 Mar 2022 19:57:02 +0100
schrieb Jonas Reindl <jonas.reindl@kilobaser.com>:

Hey everyone,

I'm currently trying to build a raspios image as "wic-img" and get a 
python import error.

kas-version: 3.0.2

isar-version: 0.8
You might in fact want to try "next" instead. Isar master and releases
are often slow to move, maybe your issue is fixed already.
First of all thanks for the help.
Upgrading to next didn't had a direct impact on the install. The suggestion from Jan Kiszka with 
WIC_IMAGER_INSTALL += "python3-distutils"

helped to get the wic imager to start. But now I'm stuck with the problem, that wic is looking for the kernel in /boot/vmlinux.
Raspios installs the kernel with kernel.img. So I assumend I would need to set 
IMAGE_BOOT_FILES = " \
     /kernel.img;vmlinuz \
     "

to remap the kernel. This still ends in the error message:

ERROR: kernel /build/tmp/work/raspios-bullseye-armhf/myimage-image-base-rpi-arm-wic-img/1.0-r0/rootfs/boot/vmlinux not found

Would you have any ideas to get that working.
 
I'm using kas-container to build the images with multiconfig for that.

```

     MACHINE ?= "rpi-arm"
     DISTRO ?= "raspios-bullseye"

     IMAGE_FSTYPES = "wic-img"

```

Error:

Exception: bb.process.ExecutionError: Execution of 
'/build/tmp/work/raspios-bullseye-armhf/my-image-base-rpi-arm-wic-img/1.0-r0/temp/run.generate_wic_image.285' 
failed with exit code 1:
Traceback (most recent call last):
   File "/work/layers/isar/scripts/wic", line 27, in <module>
     from distutils import spawn
ImportError: cannot import name 'spawn' from 'distutils' 
(/usr/lib/python3.9/distutils/__init__.py)
WARNING: exit code 1 from a shell command.

If I enter the build environment with the kas shell and execute
python3 I'm able to import spawn. I also rebuild the docker container
to explicitly include python3-distutils. Maybe I misunderstood
something, but I don't know how I should further debug that.
In fact wic is not executed in that container, but in a chroot in there.

I think we currently lack a wic raspi example in isar itself, maybe
there is something broken indeed. But it is possible and wic will be
much better than "rpi-sdimg" which is currently questioned a lot and
also might be broken at the moment.

https://github.com/siemens/jailhouse-images
I tried to follow the wic configuration as good as possible from the jailhouse-image, but jailhouse uses native debian, which will install
the kernel differently as raspios does. Changing to debian native is not possible for me as I need that image to be able to boot on different raspberries.



has rpi4 with wic in it

regards,
Henning
 
In case needed I can provide the fullstack trace and the sh script
which tried to generate the wic.

Best regards,

Jonas



BR,
Jonas

    
--------------5xa9BeqqfKPFs8OPuXBKqGQr--