From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6563939828686127104 X-Received: by 2002:a19:d042:: with SMTP id h63-v6mr98162lfg.19.1528381861095; Thu, 07 Jun 2018 07:31:01 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:c44f:: with SMTP id u76-v6ls158154lff.4.gmail; Thu, 07 Jun 2018 07:31:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI6QPK7ngWbH+kW+6W6MSwaMS/gEnj6j+5pP3bKBjky1JsTI3mY1q6Naz5ei6a7VWeFqvRC X-Received: by 2002:a19:c402:: with SMTP id u2-v6mr101953lff.6.1528381860468; Thu, 07 Jun 2018 07:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528381860; cv=none; d=google.com; s=arc-20160816; b=CT6au7SQonaxS3xpdAtQBuMVFH3AgttRXgb3xtid54tp+VBIjQJBSGoDmVw2xbkPj/ nZDVENfoqmg3qssWutC7BkjsnmrpueFTq317yFFTR4k+SmV0zwXQ05OELNaMapyww4/V 3rx+77sfZIHV3hJQ73rYsDW5o+yAsvfWWUPnD5CYZoOuNXCsJ/kbiXniQkPvQMGJB06p eRlbOWuzzSDzXxDCvl1JeMcTktnChqO5JoKeDJ6o76RekuQfiMvw0taFH3L6j+q3IpPX 7H9whHRH9rb96mqirMlkvf4p6pfOEdoA4AeNxVyYyY8OTDcwTjiNg5623NGNAUgiRv/T 83Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:arc-authentication-results; bh=n+q+M21KzCtTlUYj+whQx+bqAzuUjI1qkm+j3T1OPWM=; b=bRIVH424nRLmzQym9tIIuDat72dlvCcqelgO7TnQIxIPQ2XDRR8VcEgmns2tmM7lBP x8o9M4qdz35Tzc8t6bBrclhmusiKzaQN/NxjllSyWzflWwegfcXCtI9si2d5OYuUEPQs Bunu5v/SA4OntCT/If9hlJG3EAl9zQ9noOXnXPeIATeiiqHciB2iybWd4bce2uls8Zba Veildh0aTXPXbiupYX19jAib70sxpQWVx8aeDe4m07iglQNsmq0QslTF5gB6Motsrx/s 1jO25OpwGhRdVlrrYEZuboAmpZfGwZcGa6pQUq1UgdXPiJecLf/q+eYYKmsPSvUJ7L/I cLfw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id p40-v6si564706lfg.1.2018.06.07.07.31.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 07:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w57EUxKt008575 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 7 Jun 2018 16:30:59 +0200 Received: from md1f2u6c.ad001.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w57EUxNR019240 for ; Thu, 7 Jun 2018 16:30:59 +0200 From: Jan Kiszka To: isar-users Subject: [PATCH v2 0/6] Enable U-Boot-based images, add Banana Pi demo Date: Thu, 7 Jun 2018 16:30:53 +0200 Message-Id: X-Mailer: git-send-email 2.13.7 X-TUID: D7uN+DC4ae88 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! 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 -- 2.13.7