From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6579174846558633984 X-Received: by 2002:a2e:3e11:: with SMTP id l17-v6mr541614lja.25.1532290520365; Sun, 22 Jul 2018 13:15:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:d752:: with SMTP id o79-v6ls359497lfg.16.gmail; Sun, 22 Jul 2018 13:15:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc7eo04NAIBPlWAO7no6zhbtd2v1KFULtxwvQnQk7q8LYCA328120GS86WnM5WyGcCk0U5Q X-Received: by 2002:a19:e516:: with SMTP id c22-v6mr431725lfh.19.1532290519894; Sun, 22 Jul 2018 13:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532290519; cv=none; d=google.com; s=arc-20160816; b=lNp9nmfoDMA4OATpl6ApZn+j0e1/v/Z4yLX+o7UGPVMxlXbmr37S7Kbrqjn4MXrhrP pQGdcTbQKj+rvNUaVwgAC77sz8UqXOfBlC3vMgcgVXTMvJfAvZpOltueTcs6c+nv4pzC XZ2yoChc+L4qRb7lNkPGyutepxwOt3iWWWaVDyBepZV86xGsvIv5szpp3qOdecRO+2CN y6frjawpb6ZZhwU/VILtljPls7+Qnv2XMt7ge80A6RncrXvn7m4Ju+0RoaFX0PFhU9Qs /X3HZsKU11BToAleX68DR2OAwY4rT2L2YqV5lTAl3tsQTosYcwjSaUyhakcyGXRezxf1 EedQ== 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=pEQLl60uqNOphXgPYUXnLcfXqfcQ8Mi9yZWs1CbgMnE=; b=nF3Wa7bmQ5N6EaJDpiYvj5vqE+yiO301Tk0i7keEqAZvPfYzZUTZuvWT3NinnR7Gdq n/CXH+cHJ/xmaBvXgikzxYK9WngUAO+9iOm+IfcpItMBJ6mCFL2rQp9gbYRFcpG67es1 WrDMUYBHI2+pe5nD1s+e+UlRvZq79WQRIs+HNmseP++AorS62qVfSWJcnSplSjpUsNq6 LODhtIDq/FWUEubMYAmw4xVKmy0xnj9T48eeLSDHxlPDrMF8c0zZp3FpxuAQH9rP6Qn4 Cjlnj6ASD3jpsiCdFiPRDpQZKDjTepmC0Qlm4UgSmNLM8ayKYn67uD9oMMvEqhAZAhOa ZYfg== 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 m76-v6si111901lfi.2.2018.07.22.13.15.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 13:15:19 -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 w6MKFFtK013091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 22 Jul 2018 22:15:17 +0200 Subject: Re: [PATCH v3 0/7] Isar cross-compilation support 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> From: Alexander Smirnov Message-ID: <877fdc7a-c6c7-5192-0113-ce4b9a0f5b68@ilbers.de> Date: Sun, 22 Jul 2018 23:15:10 +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: <2ce080a3-ab36-6a00-c8cb-80ff2d39b7f3@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: kxbJjafkvAby 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 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