From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6548708150105604096 X-Received: by 2002:a50:8e14:: with SMTP id 20-v6mr3471325edw.3.1527173443917; Thu, 24 May 2018 07:50:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d281:: with SMTP id w1-v6ls12469975edq.5.gmail; Thu, 24 May 2018 07:50:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrVniPqLt8dNcT/r40vs7JDCbN3r8y8HTBb3YzDdw3T1HjPEhxbn4S6wUtK45XJMPHPZ/mv X-Received: by 2002:a50:f291:: with SMTP id f17-v6mr3482363edm.11.1527173443508; Thu, 24 May 2018 07:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527173443; cv=none; d=google.com; s=arc-20160816; b=FgG8Q42OgoO81I0NUYirISa7QtxinPgJTBNhumOX+M+vScF9Qk8tk80N89zEOTgaFU RiqrDtWar1EoRDWUUW6NjUiI3vDsAEeMEKIUENnnP4o/TEyp1B9BawG+5TJnxDbYoCF1 a+z7yIiJzzh81am257aWJyxgaxmlJ8ymhq59Hy/ngbYt74GlnVDEPlvKdjmbsfHoD0O7 zE00ckER8xhWZXxO8JPsVVtMkbY6zsuIj0T3kR4FxdhN5xXeR3gA+X7LIx2zAf9OrOiJ Ub9EHwXhzM+TKKYUcsjscTAC5/ExUx5O3WAnr3L2i86m66N26TkVEOI1dtJO6nWa2/36 ZpBQ== 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=SfV9gUh5pZmXN3zbaRh5Y1qposuJObAe3vVNOl+dQP4=; b=mW5VbPYx4L5rpTNEIW732XoSQJCl6LYUiMH18rxXcNGF8tqXoi9e2/vYqXEV8Owj3r gWX7UxJpKCqRqvxkz5Glvv8wu3KYD0vLypvYVS0oCDaiptA9KRnWmFb0chAb8S7rFmLX B/joPA+okgnnUaztaxaFFdYyjebHTOsWvzfFEURiI6kEGcf7A59PJ+5CkawzK+4YlxW6 vFCQ3rcLPXqHZzJRNXXvqTPZeo1blcGm422aUoDT4F7L/YQf4a8QJgDVAcDuTtVKFjFw jTTsC1btF5mvN0ccnfwolFtd7YxBz+igxSRg7/dGuIVFSPHFaPYs7AiYdQQllYqNWCBX PmUg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id j5-v6si912735edd.5.2018.05.24.07.50.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 07:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id w4OEogfW021945 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 16:50:42 +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 w4OEogCl026412; Thu, 24 May 2018 16:50:42 +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> From: Claudius Heine Message-ID: Date: Thu, 24 May 2018 16:50:42 +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: <9b19e51b-7ddc-e1c3-9aef-e48f89c01563@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: 58oeADc0BqMS 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. 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