From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6670514968392105984 X-Received: by 2002:a1c:a406:: with SMTP id n6mr869300wme.24.1553100293896; Wed, 20 Mar 2019 09:44:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:fe47:: with SMTP id m7ls684924wrs.0.gmail; Wed, 20 Mar 2019 09:44:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2DzBpqm9rTemaoO/TglHG7ysfo77r2fJrq+zDNit2w9qt0JmrJY7qFa7C0SlDXyPrsqEW X-Received: by 2002:adf:da4d:: with SMTP id r13mr1570834wrl.26.1553100293463; Wed, 20 Mar 2019 09:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553100293; cv=none; d=google.com; s=arc-20160816; b=KVDmtmJ3oUNKMlPHOrNibptAgSesoDFeOkZUgFAQSjra5x6kPqYDCN2OQb4tGCiOD7 P0tWl/pkR03f94OvxCeoO+aOTUCkzVsTkdW3o+IR8dU1vukz/w6zzFey9z3m0aE0A7tR j//Ib2v3qV05BPqJKnAxlQ+X6V9MeCrkvY3YP41QOgvHoN1MEth8NwsGSsqP0wAem0Z/ wQky5jLT648QSojWYdTGWA/9NLf+UWnqK3LlkpfI8o8mFmti02lXOFVTPRQ+K3Rn11W0 et8rnCnjretqzo9TmAcbBwXutLeh7eJCSQxOt6d5BOHXMgQWVPoNMugwO1aT3tScoohq hwuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from; bh=lj6Q3VHl4SWRvrK5Ug1sU6q0muM3AYbea7Pnyvm/CXw=; b=NM/guwq6Vn0B+9RSLU6vZB/VIItTb5DnzcSOAHwSLWZGxaOBPEadNL39QQRP+mhsyb CLTtaMdXnQqs73Bv60IG48qjt2L6dVqrIGhIPCYNRQG5NPDDKY/nleQt8lmeRLUhKye3 J/WXrYngwq1CI+88c7yZut7f72RpNBQWfINZnl42p0Tctb7yPXBqCJ4aMeVrDJ1Dif4e iksEZ7kfc29iJIBi2jFnnU9lm8167ZY/nS+EgfS90FFfN1myjCxw4czzjA3X19NupORa faNcyHyCVx9mzC6FoK1HrTRfAcT1/YDEQkSLgZG9X1fV1kYsHrCl26M4VU9c3DW/lPE5 FSOg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id y192si107453wmd.1.2019.03.20.09.44.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 09:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from azat.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id x2KGiTpW021086 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Mar 2019 17:44:52 +0100 From: "Maxim Yu. Osipov" To: isar-users@googlegroups.com Subject: [PATCH 1/2] doc/user_manual: Update to the current ISAR state Date: Wed, 20 Mar 2019 17:44:28 +0100 Message-Id: <20190320164429.31380-2-mosipov@ilbers.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190320164429.31380-1-mosipov@ilbers.de> References: <20190320164429.31380-1-mosipov@ilbers.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: 2a9l7NY/7/pO Signed-off-by: Maxim Yu. Osipov --- doc/user_manual.md | 56 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/doc/user_manual.md b/doc/user_manual.md index 6fe4d83..b9218a7 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -1,6 +1,6 @@ # ISAR User Manual -Copyright (C) 2016-2017, ilbers GmbH +Copyright (C) 2016-2019, ilbers GmbH ## Contents @@ -31,6 +31,7 @@ Isar provides: - Fast target image generation: About 10 minutes to get base system image for one machine. - Use any apt package provider, including open-source communities like `Debian`, `Raspbian`, etc. and proprietary ones created manually. - Native compilation: Packages are compiled in a `chroot` environment using the same toolchain and libraries that will be installed to the target filesystem. + - Cross compilation: Could be enabled, when native compilation from the sources takes a lot of time f.e. for Linux kernel. - Product templates that can be quickly re-used for real projects. --- @@ -41,13 +42,21 @@ For demonstration purposes, Isar provides support for the following configurations: - QEMU ARM with Debian Jessie - - QEMU ARM with Debian Stretch (builds but fails to run, see #22) + - QEMU ARM with Debian Stretch + - QEMU ARM with Debian Buster + - QEMU ARM64 with Debian Jessie + - QEMU ARM64 with Debian Stretch + - QEMU ARM64 with Debian Buster (for host >= buster) - QEMU i386 with Debian Jessie - QEMU i386 with Debian Stretch + - QEMU i386 with Debian Buster - QEMU amd64 with Debian Jessie - QEMU amd64 with Debian Stretch + - QEMU amd64 with Debian Buster - Raspberry Pi 1 Model B with Raspbian Jessie (see #23) - Banana Pi BPI-M1 + - LeMaker HiKey + - Terasic DE0-Nano-SoC The steps below describe how to build the images provided by default. @@ -137,8 +146,8 @@ bitbake multiconfig:qemuarm-stretch:isar-image-base \ The following images are created: ``` -tmp/deploy/images/isar-image-base-qemuarm-debian-stretch.ext4.img -tmp/deploy/images/isar-image-debug-qemuarm-debian-stretch.ext4.img +tmp/deploy/images/qemuarm/isar-image-base-qemuarm-debian-stretch.ext4.img +tmp/deploy/images/qemuarm/isar-image-debug-qemuarm-debian-stretch.ext4.img ``` ### Building Target Images for Multiple Configurations @@ -160,7 +169,6 @@ BBMULTICONFIG = " \ qemuamd64-stretch \ qemuamd64-buster \ rpi-jessie \ - bananapi-stretch \ " ``` @@ -178,23 +186,23 @@ $ bitbake \ multiconfig:qemuamd64-jessie:isar-image-base \ multiconfig:qemuamd64-stretch:isar-image-base \ multiconfig:qemuamd64-buster:isar-image-base \ - multiconfig:rpi-jessie:isar-image-base \ - multiconfig:bananapi-stretch:isar-image-base + multiconfig:rpi-jessie:isar-image-base ``` Created images are: ``` -tmp/deploy/images/isar-image-base-debian-jessie-qemuarm.ext4.img -tmp/deploy/images/isar-image-base-debian-stretch-qemuarm.ext4.img -tmp/deploy/images/isar-image-base-debian-stretch-qemuarm.ext4.img -tmp/deploy/images/isar-image-base-debian-stretch-qemuarm64.ext4.img -tmp/deploy/images/isar-image-base-debian-jessie-qemui386.ext4.img -tmp/deploy/images/isar-image-base-debian-stretch-qemui386.ext4.img -tmp/deploy/images/isar-image-base-debian-jessie-qemuamd64.ext4.img -tmp/deploy/images/isar-image-base-debian-stretch-qemuamd64.ext4.img -tmp/deploy/images/isar-image-base.rpi-sdimg -tmp/deploy/images/isar-image-base-debian-stretch-bananapi.wic.img +tmp/deploy/images/qemuarm/isar-image-base-debian-jessie-qemuarm.ext4.img +tmp/deploy/images/qemuarm/isar-image-base-debian-stretch-qemuarm.ext4.img +tmp/deploy/images/qemuarm/isar-image-base-debian-buster-qemuarm.ext4.img +tmp/deploy/images/qemuarm64/isar-image-base-debian-stretch-qemuarm64.ext4.img +tmp/deploy/images/qemui386/isar-image-base-debian-jessie-qemui386.ext4.img +tmp/deploy/images/qemui386/isar-image-base-debian-stretch-qemui386.wic.img +tmp/deploy/images/qemui386/isar-image-base-debian-buster-qemui386.wic.img +tmp/deploy/images/qemuamd64/isar-image-base-debian-jessie-qemuamd64.ext4.img +tmp/deploy/images/qemuamd64/isar-image-base-debian-stretch-qemuamd64.wic.img +tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-qemuamd64.wic.img +tmp/deploy/images/rpi/isar-image-base.rpi-sdimg ``` ### Generate full disk image @@ -217,9 +225,9 @@ enough to allow images to be testable under `qemu`. ``` # AMD64 image, EFI -qemu-system-x86_64 -m 256M -nographic -bios edk2/Build/OvmfX64/RELEASE_*/FV/OVMF.fd -hda tmp/deploy/images/isar-image-base-debian-stretch-qemuamd64.wic.img +qemu-system-x86_64 -m 256M -nographic -bios edk2/Build/OvmfX64/RELEASE_*/FV/OVMF.fd -hda tmp/deploy/images/qemuamd64/isar-image-base-debian-stretch-qemuamd64.wic.img # i386 image -qemu-system-i386 -m 256M -nographic -hda tmp/deploy/images/isar-image-base-debian-stretch-qemui386.wic.img +qemu-system-i386 -m 256M -nographic -hda tmp/deploy/images/qemui386/isar-image-base-debian-stretch-qemui386.wic.img ``` --- @@ -457,9 +465,9 @@ The user may use `met-isar/recipes-core-images` as a template for new image reci ## Add a New Image Type ### General Information -The image recipe in Isar creates a folder with target root filesystem. The default its location is: +The image recipe in Isar creates a folder with target root filesystem. Its default location is: ``` -tmp/work/${IMAGE}/${MACHINE}/rootfs +tmp/work/${DISTRO}-${DISTRO_ARCH}/${MACHINE}/${IMAGE}/rootfs ``` Every image type in Isar is implemented as a `bitbake` class. The goal of these classes is to pack root filesystem folder to appropriate format. @@ -648,10 +656,14 @@ put into Isar apt. ### Limitation -Debian cross-compilation works out of the box starting from Debian stretch distribution. So currently the only following build configurations are supported in Isar: +Debian cross-compilation works out of the box starting from Debian stretch distribution. Currently the following build configurations are supported in Isar: + - qemuarm-jessie - qemuarm-stretch + - qemuarm-buster - qemuarm64-stretch + - qemuarm64-buster (for host >= buster) + ## Create an ISAR SDK root filesystem -- 2.11.0