From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7073176447533187072 X-Received: by 2002:a2e:570d:0:b0:247:eb07:3c5 with SMTP id l13-20020a2e570d000000b00247eb0703c5mr14900334ljb.519.1647269891254; Mon, 14 Mar 2022 07:58:11 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:b05:b0:448:696a:ea62 with SMTP id w5-20020a0565120b0500b00448696aea62ls2212309lfu.0.gmail; Mon, 14 Mar 2022 07:58:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrUqJ8TdR6kdonDGJ/mHvGMfb63xb2Gyng5JFqNsCtEvwakoy954sHAbFiTl7QV9xTnEa9 X-Received: by 2002:ac2:4e06:0:b0:448:3218:2e22 with SMTP id e6-20020ac24e06000000b0044832182e22mr14799950lfr.369.1647269890200; Mon, 14 Mar 2022 07:58:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647269890; cv=pass; d=google.com; s=arc-20160816; b=WruTroBTe4eN1NnwU8X/9z6OT5FacmxNxii5wUbeEIqDXeyLcEQUA/He8gU2vUeC5f O3DClptqANHwcNGX6YGzJtWWu62/FxNmHO4J2hPPFU8aUztFsgc+Y7OclIlLGre7+sRc fbalcU82P2XMzePLk/xdcOO40Xs5wVClVXamf14WJOHOvbKVQ4rHqKbC54rQRSKSWpby xe4hgHUlmcgPvAAnyG2FUCy6bvWhGjTPFbNktejtmvPN4A+0n4VTjQkB6WIaz1vNYEWC r+ZdrKL+/qGG8NFE8Rfzbw2kMl/b80v4qi6HnJAXZjsx1U/9BFU/cG2w1j++P5WLDnR4 9avA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=WHtZM+nZZ1lfTJWdvMUPsjhwhASaFyWwOv05kP26FTo=; b=JmMfEluSh7HC4PaYXQXHTr0NnGG3XnOU7Oxvt/LyuCQz6ZiqJX9/Bmt3uTCGIU5Esy 9M7x4mp8fB9X3Udplb1juop/p+SKW6CqX59fZTUcEdXDnpy3l47KvHg2mcEHr0Jhq3es p5e0KL/0w0wdPDyEPlQ3lW/GJISvGiZgV6gWICBzA/RXiPhDsD5Cu2fBBGSBGEnUCZSw l5C0bCiVOj4Wx22WaXtTu+zVbhtN2xR/eyMsAeOHzsfoER4KX65ksncW7q3sy6TqQaWs lrbGomLAGlOYOFudNm6NMsBywwG3mO3rO/fTkX9n/5O62xtYdAIBJuPpTB1GyHf183yb bOYw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Ac36htGm; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0d::62c as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on062c.outbound.protection.outlook.com. [2a01:111:f400:fe0d::62c]) by gmr-mx.google.com with ESMTPS id y10-20020a19640a000000b004481dd0bdb7si910427lfb.10.2022.03.14.07.58.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2022 07:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0d::62c as permitted sender) client-ip=2a01:111:f400:fe0d::62c; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Ac36htGm; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe0d::62c as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E11xRd7EAiAzK0XmQDDaSul7qF+00lFxpO1Grg8CbydOU9KoGc+IvYzkfKjdzSddm0XQPwgvTQAfOsJ0bLiSBYWN2qdMFnED3DKMTAXnfB70GGpwsPwZo9Iv3HIb68kDRM/HVbaBPPvfamX/MiIODo7xQHrjEKc+nPMNz/g6I+VKqubpySnmewsHm0RioByWj8nQcpj9D/uIu9SCCKqfGmPeW0gHtc4XcN9yOmEQrDXuGn6jCGulAb2pIUrylI0vjrrxwyDTONtSVwqz4NFomjSst/HLWF44GW2cRjlJ0iMToz8vQZkG6sOijZTG71d3/ODB9th9OzX3Slyp/jpo3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WHtZM+nZZ1lfTJWdvMUPsjhwhASaFyWwOv05kP26FTo=; b=mUqi0JuKOKZjRrukfevO+bGS/OBEeK+cTdnX5sWxk7B7hxDio+G6qk4/qFDu0IYDwT5IOtFGBxvPbqxoBN8WxurB92boaERI/7ux308sDnDGaCCtxdAZ14VosAPzmNTTFaURruiJbKfjTNM3U5JokUGb5bFB7QJ4r6ZF7sWzKH4MIp1+jgYpQz6xyFsBFXUxS0Q1/fVovA9dMCPc8x4fyeu5PEwbZ5dqxehdpxn7kRlX8tHvpKHCSUFFZeVULr8OW3WbIfdyO/3W9bPNZsoBcsAAg48zVLbrxnphiher4OXEz0JNXpgkKNhMZQbaNUFyzx6WM+a1h0vLCkLufYjkOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.71) smtp.rcpttodomain=kilobaser.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WHtZM+nZZ1lfTJWdvMUPsjhwhASaFyWwOv05kP26FTo=; b=Ac36htGmplea/Mc4vP14HFAfJK61GCBuVbKoBSXhClBJ77EAMLC591q2KQph5/4+YtRuc/OaZripFb6AVUrPePagjv9TUXEUKp5iCQU+x7YQ9NUIcqWCnRtiu299i4BbjZ5jB1Z3i0uuykRRKkLCKDUTxl7lcszfdLpbHjIT5ikM6Dki3zA32UbzAehsy1OHxTWvupgavDIq5WPdvkteQwN9oswc0mjIZVmGcb+AuqmYIHkI5S4ScYWfU8uxwqidU28IbLJMiklZW0CSaQMS585W32i4vcftBsi9SDRi/TBTkFJHIUtRbMxu+k+AE6ewNF7WliFBQn4u6YLdaMhPGQ== Received: from SV0P279CA0072.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:14::23) by AM0PR10MB1923.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:49::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Mon, 14 Mar 2022 14:58:07 +0000 Received: from HE1EUR01FT076.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:14:cafe::ba) by SV0P279CA0072.outlook.office365.com (2603:10a6:f10:14::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.20 via Frontend Transport; Mon, 14 Mar 2022 14:58:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.71) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.71 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.71; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.71) by HE1EUR01FT076.mail.protection.outlook.com (10.152.0.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5081.10 via Frontend Transport; Mon, 14 Mar 2022 14:58:06 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SKA.ad011.siemens.net (194.138.21.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 14 Mar 2022 15:58:06 +0100 Received: from [167.87.72.30] (167.87.72.30) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Mon, 14 Mar 2022 15:58:05 +0100 Message-ID: Date: Mon, 14 Mar 2022 15:58:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: Rapios Wic Image Content-Language: en-US To: Jonas Reindl , Henning Schild CC: isar-users References: <8b0abbf9-0be1-f112-4a2d-893fd29ce9cf@kilobaser.com> <20220310090422.23b8e7ee@md1za8fc.ad001.siemens.net> From: Jan Kiszka In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [167.87.72.30] X-ClientProxiedBy: DEMCHDC8A1A.ad011.siemens.net (139.25.226.107) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c92780df-f9c2-4368-24a8-08da05cb0c3a X-MS-TrafficTypeDiagnostic: AM0PR10MB1923:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +za/vFeaIlgaFc6rYSavrxvUkQ6cTma0xmGxg19IcO9EuDJJYEuLjFFEX10biRz7EPAb2+7NsGhkSjUGIMFP78wovV1gRxvdT7S+8xJHqV3UZq07xinloJC7nSLIpSpkiLcx7sf1XerPxvGqmDPtT6+VCYBJ+0Hmg0+fEP/RTC4VHnloPIApqxU95vLXHmic4+7WLnGebwhA4JKjDvJCBZRD9U9PT+5o6g9eaj/3xeKIM7237KYCnyiuNMbgxtuawWrzrRG3QZ0FaYMB8ff4H/7yzf1Hl5Yu2i66a+SkcphJMEyAwRWV6GDQgCQRzzegISsvU/f4jNtx5UhBlb4/BOIrxDKFzFr6rntzqcseuBA+VS/thw++3rTDB64fAh7yNdvNZSTms9l81zKFxvZGWeyFyZwjUC13V+p7HUHOdMvl6ohF+dJzErDKQK6Mx9UAScgcx9aRim4jaOVHo3qo5AsDV6JfygQdv2hOzuxrvLmLREVpZSMQFEAW1ZZhXZmkbeAfOTShc3n4rzKko1+msRZBXt5bIdYuPB9OuJMelQ+N8BYTfcNS6gortm/PH3NAcSnPvlddgXieHsdHHidQtGZsbENBKC8lpbmOq+xV1u5xTdyYDIVPgDiCCYV7ZUXxgyfElIZB67bx1KWi+1vPMnwcOIu0IOq9OiWJGPwaXCz/Ci5h8Y89JHx5DMeOwDDtIvSvqF5dj5rLvF96w6MXFVWQb0TzhHReYyYye/1hmrJZWscuSUu8uJtGjsH0l1JKOuvfgtK/GWYs8Cd32iwrX7aT6m4aVhiTcFA7YN0HlqJv5OHYOyXv0u0+sFphEjWcPE3MiIUT43mNtZufH3/DiE+GzyUNoCXU8bxb5f2400nfUAj0lmWBmiAqBuoJ21VfDTXKc1An5wmFUaopZUx0OA== X-Forefront-Antispam-Report: CIP:194.138.21.71;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(82960400001)(82310400004)(3480700007)(86362001)(31696002)(81166007)(356005)(40460700003)(36860700001)(70206006)(16576012)(6706004)(316002)(4326008)(5660300002)(70586007)(8676002)(7116003)(110136005)(6636002)(16526019)(83380400001)(2906002)(8936002)(44832011)(36756003)(2616005)(956004)(336012)(186003)(26005)(47076005)(966005)(508600001)(53546011)(31686004)(3940600001)(43740500002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2022 14:58:06.7202 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c92780df-f9c2-4368-24a8-08da05cb0c3a X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.71];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT076.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB1923 X-TUID: 4vsJZgfaZQwp On 14.03.22 14:59, Jonas Reindl wrote: > > 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 \ > " This only works together with populating a boot partition ("--source bootimg-partition"). What are you using? > > 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. > Can you share the complete log of the failing task? Is it do_copy_boot_files? >> >>> 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. > That may limit the scope to using a different kernel - or are you relying on Raspios-specific tools? Raspios is a maker distro, so - unless that is your scope - it might be worth to invest understanding what you actually need and why Debian cannot provide that. If it should be just the kernel for some fancy, never properly upstream features of older Raspis, then you could still replace that one with a custom build (like we had in jailhouse-images for jailhouse-reasons). BTW, here is another, slightly simpler recent integration, but also only Raspi4: https://github.com/siemens/mtda/commit/4eefd306dfe4a801be4240d13557506080093c25 Jan -- Siemens AG, Technology Competence Center Embedded Linux