From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:a50:be04:: with SMTP id a4-v6mr2996134edi.4.1532291547290; Sun, 22 Jul 2018 13:32:27 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d7c9:: with SMTP id e9-v6ls3618071eds.7.gmail; Sun, 22 Jul 2018 13:32:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejgtzZv89Zr7AMrMvDYmiIe+EQdRk8+DlrQHlVDAsScK87kQohooXRmmMgvpTAF/01/ltu X-Received: by 2002:a50:c9c7:: with SMTP id c7-v6mr2989733edi.0.1532291546890; Sun, 22 Jul 2018 13:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532291546; cv=none; d=google.com; s=arc-20160816; b=BvMfLYeG3j/CoetDOpBHEoXgBqlaKfdEo1wCOvxPHAIs0PNctzKm6TJl2rPqHP8FwK uhAhtabcm7yVFPiTFU0iPcBR3W0eOXlKeYZaS/9dCl2Q5BacW9lTd2cJP+DYFPDeY6bP HTFxV0uzuN5BxsqCf/3ym6CdcQsa3iWLFJahqvpqobgxNsqG1diaFENt/Hbv96h9mnwB jLFHGTOOvSwQ5CfR8qXnYOofASWRzeMR+EpDlNMbCqBuHs1aKLmVQUGtQHofcRCzv0CP BIAJvWvf/klTYe+2qNuQ+EZEadjqIvJ+I0JRyynN423OrA9ldXjhv+ZQbyzrp3SsTXhG KpkA== 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:references:to:from:subject :arc-authentication-results; bh=ed80fnSRBIMa5pbQ1Lr+li+3Oy1yfm2deMh+ldf0ZYw=; b=enXoLZGAzU8r7rBP3baF81+z+KOQs7ZCHZl6KD8m+DSQXotLSTrw4ksc2F5Zh9bo08 39Epyti5DqJybG8RX+fxpX5/1+VXeEPnRSKDoAr+Wn+XZ/dSRI7On6OCAZLMZviQiO6u iRM3hCBnpM/cwJMkIkGrOnUNbJ50lh5BG1zJIWhMrW+fqhgIa/NARrjzXidraTUXTbwx meG4YTnpzcTt/D7lSIpcnair7T3T/+7VS8KneboGnhFV+s1EOz/s2gOLTClzbNNKVQz/ wyclqsuMIEp5sFFnDUNO5WukaesWlqTJVKsyMk++cSY7/meRKGozenj232gblen3gyZF 9WCA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id x4-v6si189945edi.5.2018.07.22.13.32.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 13:32:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@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 asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w6MKWNus013143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 22 Jul 2018 22:32:25 +0200 Subject: Re: [PATCH v3 0/7] Isar cross-compilation support From: Alexander Smirnov To: Jan Kiszka , isar-users@googlegroups.com References: <20180717131811.14239-1-asmirnov@ilbers.de> <5c45490f-9dce-b43a-14b3-8347931c40ef@siemens.com> <507beff8-3503-22a9-c3f6-0a01f3f7a132@ilbers.de> <1ed1ad84-acaf-1aa9-0ac7-f2f1353670ab@siemens.com> <164aa001af8.27ac.034a6b0541ed39b7fb4e17f4ac219eaa@ilbers.de> <09de613b-ba4c-21fb-d675-421c27b9bab6@ilbers.de> <610e26c8-4af8-6a96-7ed5-76470fb4298e@siemens.com> <2ce080a3-ab36-6a00-c8cb-80ff2d39b7f3@siemens.com> <877fdc7a-c6c7-5192-0113-ce4b9a0f5b68@ilbers.de> Message-ID: <9670ec25-f1af-daac-53c3-f92c0db3f573@ilbers.de> Date: Sun, 22 Jul 2018 23:32:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <877fdc7a-c6c7-5192-0113-ce4b9a0f5b68@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 7ENaJBAVd5x7 Hi Jan, On 07/22/2018 11:15 PM, Alexander Smirnov wrote: > > > On 07/20/2018 08:56 AM, Jan Kiszka wrote: >> Hi Alex, >> >> On 2018-07-19 22:59, Alexander Smirnov wrote: >>> Hi Jan, >>> >>> [...] >>> >>>>> Just an observation, you use here buster but I didn't test it. >>>> >>>> Yes, but only for the pre-built u-boot package, and only for the Orange >>>> Pi. See conf/multiconfig/preferences.orangepi-zero.conf. >>> >>> I've found several issue with v3 regarding kernel and modules >>> cross-compilation. I've fixed them and pushed asmirnov/devel branch. >>> >>> Now I'm able to cross-build orangepi kernel and example-module for >>> it, huh! :-) >> >> That's good news, and I can confirm that at least the linux-headers >> packages looks good now. It's also clear now that there can be no >> mixed-mode when building kernel modules because this package with its >> host tools is generated for the build host, not the target arch. >> >> However, I'm still stuck on the Python dependency problems. I bet you >> can also reproduce them by declaring the hello package to build-depend >> on "python". Same for "python-pip". >> I've found an interesting notes here: https://wiki.debian.org/DebianBootstrap/TODO#Remove_blockers_for_:any_and_:native_introduction adding native qualifier for python solves the issue for me (i.e. python:native). Do you think current status contains enough functionality for the first implementation, so I could format clean patches and add the documentation? Alex >>> >>> I've tried to make commits on the top small just to demonstrate my >>> findings. >>> >>> Could you please try this branch with your use-case? Unfortunately I >>> wasn't able to quickly run clean jailhoust build, I have fedora as >>> host OS and use debian in chroot. I've tried to run build scripts but >>> docker fails with tons of errors :-( >> >> Can you share your error dump? That would be interesting as the whole >> docker story is about removing the host-side dependency on a >> particular distribution with a particular package set pre-installed, >> not to speak of the sudo config hack. > > builder@zbook:~/jailhouse-images$ sudo > KAS_TARGET="multiconfig:orangepi-zero-jailhouse:demo-image" > ./build-images.sh > Unable to find image 'kasproject/kas-isar:latest' locally > latest: Pulling from kasproject/kas-isar > 6de29172b78c: Pull complete > 0e2ff9900052: Pull complete > 89b3b64c6e1a: Pull complete > c4ede5890983: Pull complete > 63b0417b6e80: Pull complete > 2095a826ca1c: Pull complete > 519ff2acda8f: Pull complete > 3568c8b200f9: Pull complete > 84fb75e6e501: Pull complete > a8e3362d930a: Pull complete > fa1925a99ab2: Pull complete > af55a23213f5: Pull complete > 2f0f64c16666: Pull complete > 875a76dca692: Pull complete > 4e9bfef3b1d2: Pull complete > 6e603ec88847: Pull complete > b41c12cafe1e: Pull complete > cf73b0705769: Pull complete > Digest: > sha256:c44212948d6f9b60faf17f3e769cc7bc926873ff1628adafb5c1ff1960931177 > Status: Downloaded newer image for kasproject/kas-isar:latest > FATA[0085] Error response from daemon: Cannot start container > 32bdec7e11264b90a4090ea2892cb9b359a8f95b8b42e1c81ac2010d63ebefa3: [8] > System error: mountpoint for cpu not found > > >> >> If you have a Debian 9 build host, you can also leave out the docker >> wrapping, just installing kas via pip and then doing >> >> mkdir -p out >> cd out >> kas build /path/to/jailhouse-images/kas.yml >> > > Will try, thanks for the hint! > > Alex >