From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6563939828686127104 X-Received: by 2002:adf:e5c3:: with SMTP id a3-v6mr714128wrn.19.1528481431740; Fri, 08 Jun 2018 11:10:31 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f202:: with SMTP id s2-v6ls470117wmc.0.canary-gmail; Fri, 08 Jun 2018 11:10:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKbYaujeZ3YgYu5fn1DLPGdsHK4JbY22ZXkXkhK4VT8DQV4P8KCIeC+Uxnk5+v+mZf8Hp89 X-Received: by 2002:a1c:eb07:: with SMTP id j7-v6mr693262wmh.19.1528481431250; Fri, 08 Jun 2018 11:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528481431; cv=none; d=google.com; s=arc-20160816; b=0M9xNnCLrdcW5mxGXB7AXOM9TPjszG3/0h4CqON76Tyxx0j9r+NPEsioDO8PswIwMC x4ET0y4fW71pELIiYZeTrV/79rriawjOJmWHkTUF2TAj9kZxbfXd9zv5yOO5lzgPq1ok zrFSWF72LBKoqNAOX+USIW8xO7lpTe4E2TrmhBN77Ldt7CYyG9nZYJaK9BZqWxNQJWGR Hp+0IpSBch8PHaMi0PfjerHWoeYYQRq8HQzY//pBLPY/+u3g90wlqOvOcJsaQ/PnJ2Lp j8ccJnp+QSBolzE5w/hRAMEgvNADtmUr1etAzSAXygnJxaB4jm23AgsL+HFO+6DPX1Z4 hE1g== 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:organization:from:references:to:subject :arc-authentication-results; bh=poKYiFllR+0QUKfUq8UEvGk/gPYiu1TcDrN9UruzLgM=; b=BCoKj6B1NB8B3IIguU97f7dlH56lEyijtH++BE/VaI0a82WwPvo5AVxNVD4FBXRG5y f8ZlWKbgDZOlAggctVOnZgVrgddGVCPEpaAYkE4Y1OjXYEwrA6EZDXjgWMoRgAco56g8 p4ffwoXyXAYFCNWzKJFaLOiL3dEABqJzTNnkXtBX3dHWTj2hPgGoiivwrwQXQ+tGhBSS /zRGoAd8b55vNImzjug3dH6A4iC4G+IOqEAq9BZBr7KKPPUuoqrTHYehmjwI00hA+e0q wZYP+4WJhgOeTQ/mQQfEJZXfnhuZoV2UkKvaRtf4+sz1T4PknJKXZ5XUCQlJSfSyfsbp XtIA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id x21-v6si210061wmh.3.2018.06.08.11.10.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 11:10:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@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 mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.163] (d51A48A80.access.telenet.be [81.164.138.128]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w58IARp6012534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 8 Jun 2018 20:10:29 +0200 Subject: Re: [PATCH v2 0/6] Enable U-Boot-based images, add Banana Pi demo To: Jan Kiszka , isar-users References: From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <0211f8a5-6256-25fa-6f4a-6cef8c66c9a5@ilbers.de> Date: Fri, 8 Jun 2018 20:10:27 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: tj3pmHkpUWk8 On 06/07/2018 04:30 PM, Jan Kiszka wrote: > Changes in v2: > - use booti on aarch64 in generated boot.scr > - simplify boot script generator internally (fstab parsing, ramdisk > size evaluation) > - use options for setup_root_file_system() > > Original cover: > > This provides missing bits to build SD-card (or also eMMC) images for > boards that use U-Boot as bootloader. The images can be described via > well-known wks files. > > For U-Boot, we rely on scan_dev_for_scripts from the default > environment. The reason to generate our own boot script is documented in > the related patch. While that generator may start its life inside Isar, > I could imagine selling it also to Debian as a seperate package. > > As an example, I've added the necessary configs to build a basic image > for a Banana Pi board. > > This is surely not the smoothest solution. E.g., I dislike that we still > need those ugly ROOTFS_TYPE and ROOTFS_DEV variables - the information > is encoded in the wks file already. But those files are evaluated by wic > only AFTER we build the rootfs. So, extracting that information from wks > would require logic like in u-boot-script_1.0.bb, i.e. a certain level > wic duplication so that we can continue to generate /etc/fstab ahead of > the package installation. Better suggestions welcome. > > We should probably also convert BUILDCHROOT_PREINSTALL_WIC to > WIC_FILE_DEPENDS* as indicated in patch 2. But I didn't study the > implications in details yet. > > Looking forward to comments and tests! Applied to the 'next', Thanks, Maxim. > Jan > > Jan Kiszka (6): > Add DISTRO and DISTRO_ARCH as OVERRIDES suffixes > buildchroot: Break up wic build deps into common and arch-specific > ones > isar-bootstrap: Use options for setup_root_file_system() > Set up target image fstab prior to installing any packages > Add u-boot script generator > Add Banana Pi SD-card image > > .../conf/distro/debian-stretch-backports.list | 1 + > meta-isar/conf/local.conf.sample | 1 + > meta-isar/conf/multiconfig/bananapi-stretch.conf | 24 +++++++++ > .../conf/multiconfig/preferences.bananapi.conf | 7 +++ > .../images/files/debian-configscript.sh | 14 ------ > .../images/files/raspbian-configscript.sh | 14 ------ > meta-isar/recipes-core/images/isar-image-base.bb | 20 ++++++-- > meta-isar/scripts/lib/wic/canned-wks/bananapi.wks | 5 ++ > meta/classes/isar-bootstrap-helper.bbclass | 18 +++++-- > meta/conf/isar-bitbake.conf | 2 + > meta/recipes-bsp/u-boot-script/files/u-boot-script | 9 ++++ > .../u-boot-script/files/update-u-boot-script | 57 ++++++++++++++++++++++ > .../u-boot-script/files/zz-u-boot-script | 3 ++ > .../recipes-bsp/u-boot-script/u-boot-script_1.0.bb | 53 ++++++++++++++++++++ > meta/recipes-devtools/buildchroot/buildchroot.bb | 23 ++++++--- > 15 files changed, 208 insertions(+), 43 deletions(-) > create mode 100644 meta-isar/conf/distro/debian-stretch-backports.list > create mode 100644 meta-isar/conf/multiconfig/bananapi-stretch.conf > create mode 100644 meta-isar/conf/multiconfig/preferences.bananapi.conf > create mode 100644 meta-isar/scripts/lib/wic/canned-wks/bananapi.wks > create mode 100644 meta/recipes-bsp/u-boot-script/files/u-boot-script > create mode 100755 meta/recipes-bsp/u-boot-script/files/update-u-boot-script > create mode 100755 meta/recipes-bsp/u-boot-script/files/zz-u-boot-script > create mode 100644 meta/recipes-bsp/u-boot-script/u-boot-script_1.0.bb > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov