From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6548708150105604096 X-Received: by 2002:a1c:32c1:: with SMTP id y184-v6mr989332wmy.4.1527174130952; Thu, 24 May 2018 08:02:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:864a:: with SMTP id i71-v6ls3560738wmd.11.gmail; Thu, 24 May 2018 08:02:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqxyTei7Y1PFo7rY0iK9f89CK7NniCQiaJC5/FE5xejja6nK+lQ6JM9dLW/2b144QAa5loP X-Received: by 2002:a1c:8bcc:: with SMTP id n195-v6mr992719wmd.9.1527174130647; Thu, 24 May 2018 08:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527174130; cv=none; d=google.com; s=arc-20160816; b=kvWwlQ3PradZRkBfP6F84NLZhNORTq4XXFwVkoXFnRNfOTMqEkKFGff9hblGaUoBPu kNVaBEhKM8hRdnf91SuGpNJrLnxTS1q+my3pYgqlDU2CC26QjAEw9va6SE1gNW2DXvgc +49V3zMypO7Mx34cnSXrpn0zTdjShHE9IozZMQZ0Gjy/IADjl5OCP05uMqGPChYHlCJZ AndT6CQgujScUiYY3jdZa6j+l4rY10GVg0AoBrMgjyG887lyQvgXG5du4iXNUNFes4mE DiXt3h99KhdjTx/028M5fQg3a0pm9kAARz5ylMfi4N/li3bhq1HkvcgZZtaGABNjsmYj DvJQ== 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:from:references:to:subject :arc-authentication-results; bh=eiMyycm7s/5UxzpMM9NyFkP4yGNgv2AAW995TN8fsjA=; b=F36juxELXpdiTADUCW8dbL6H693oWs8FuMLJNN+NrL9A/Lj6uLTDv+9tdbdXUpd/tQ S9t957vNMyzsLAlu4H7U45A5VjNT5VxrAYoTs9u9Ta15IkN0FeUoa/ZIpRrGK7130UM8 fs17GbdLfOh3DRjd1wY+BzQQb1rmy6jss/Fi+lHURnVRRDn4t/KuNjBJ6PibmILnEGOW nyMByXlx5bbUq4UzmBAGdq9wfBkrt8DLN6gYMLnuFKQ1QWaN9hkX4gpxPBTWox5F/ebu yuK80Y38r1bDatCienaW+iVC3Qf11eONRXUFuhJkkxyq7V982cGvHK1LS4QnfIb1N4CS fSTA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id p17-v6si236125wmd.2.2018.05.24.08.02.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 08:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w4OF29Qj023993 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 17:02:10 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w4OF29Bl005195; Thu, 24 May 2018 17:02:09 +0200 Subject: Re: Overview over my outstanding patches To: Jan Kiszka , Alexander Smirnov , isar-users References: <988a13f4-5a03-0ca5-7b68-8b95d91fc222@ilbers.de> <1e1bc52c-05bc-2b75-ed50-b41b571cdbfb@siemens.com> <9b19e51b-7ddc-e1c3-9aef-e48f89c01563@siemens.com> <854a4c57-6716-6e88-ba23-846d86d23243@siemens.com> From: Claudius Heine Message-ID: Date: Thu, 24 May 2018 17:02:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <854a4c57-6716-6e88-ba23-846d86d23243@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: ZHjHqiuVVEQC On 2018-05-24 16:52, Jan Kiszka wrote: > On 2018-05-24 16:50, Claudius Heine wrote: >> Hi Jan, >> >> On 2018-05-24 15:38, Jan Kiszka wrote: >>> On 2018-05-24 15:34, [ext] Claudius Heine wrote: >>>> Hi, >>>> >>>> On 2018-05-24 11:21, [ext] Claudius Heine wrote: >>>>> Hi Alex, >>>>> >>>>> On 2018-05-14 15:47, Alexander Smirnov wrote: >>>>>> Remaining: >>>>>> ========== >>>>>>    - meta-isar/isar-image-base: added removal of qemu-*-static >>>>>> binaries: >>>>>> >>>>>> Here is the question about case, when user wants to install >>>>>> qemu-user-static package to target rootfs. >>>>> >>>>> If the user wants to install qemu-user-static to the image, apt >>>>> overwrites the one already there and then the linux kernel complains >>>>> about infinite symlink since it wants to execute the new foreign >>>>> 'qemu-*-static' binary with the foreign 'qemu-*-static' binary on >>>>> and on. >>>>> >>>>> Installing qemu-user-static is simply forbidden until qemu-debootstrap >>>>> changes the deployment path and binfmt settings to avoid this conflict. >>>> >>>> With Hennings help we further investigated this. The binfmt_misc flag >>>> 'F' would prevent this issue [1]. So installing qemu-user-static could >>>> be possible if that flag is used. >>> >>> Do we have that under our control, or would we have to patch the >>> upstream binfmt debian package to tune that flag? >> >> I have to investigate that. On my sid debian host that flag was set. >> I think I can see this in the diff between the /var/lib/binfmts/qemu-arm >> from the kas container and my host: >> >> --- kas-qemu-arm    2018-05-24 16:48:31.998958282 +0200 >> +++ /var/lib/binfmts/qemu-arm    2018-05-22 15:02:13.580660019 +0200 >> @@ -7,3 +7,4 @@ >> >>  yes >> >> +yes >> >> I suppose this yes is were the 'F' flag is set. Currently I don't know >> how those files are generated. I can take a look into it. > > There is the binfmt-support package, and its update-binfmts seems to set > that stuff. This I know. But were are those qemu configurations defined? Is there a way to overwrite them in order to update those flags? I will have to investigate how to do that. Maybe we can patch this into those kas containers. Claudius -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de