From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6563939828686127104 X-Received: by 2002:a2e:7c18:: with SMTP id x24-v6mr220077ljc.4.1528394376810; Thu, 07 Jun 2018 10:59:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9e89:: with SMTP id f9-v6ls267441ljk.15.gmail; Thu, 07 Jun 2018 10:59:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK9/aOUSk00Unm0sCVNABLbia/BvzD9hao3n7OKzPbXawUpbf5MDGlNxda//X7i0kC8B0aq X-Received: by 2002:a2e:2281:: with SMTP id i123-v6mr213010lji.43.1528394375789; Thu, 07 Jun 2018 10:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528394375; cv=none; d=google.com; s=arc-20160816; b=n24gSU2FpHCMLvl+bA9wH1q/kLp+HbmL88Qx9L+ydfej5mRQF1GD/o8uuvS6bCxWgl GvSox5+G7t8YMp8A5h4sXRanKh4Ov9G0oDzlBUKkR8CNcUDukJRHl9bTgvxtNCMoVioZ Pz5UZ8RAuMRkGxokos3w2cOScU7F7L5HxTCij5XJ2CJQ9n0bXmBodFC6R80zLvarISfg Ad2JbGelQ4b9CdctxFPzCxyiBS0+TmSWujrfqBzhvRNbVtt3tzsG4nc8eya9hfI0k9eh 7Rg0tMaQDdSHUztg5Fg93fY4qn0e4bhy7TXnrvsDJVnpertNwOnkAPnNHpUrvaZh0bU0 qhOw== 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=CV00VBVUcdaOzSFyLPw77qW7/+izU0mE6W1s7WTlEMs=; b=bYvisb3ug1EKigxLGbSxNhkgvf1qJtP96nttEuJz1wu0VDtwrqoEtd98stQTvFqffb 2ekkIjCsNyDdRUiVTxMd95FQYXgpLkGkc6um5ur9SyS0DLbgxB9ep3lTAvOozLS07wvy 5qBMIr9qBr+IjeDISdLA15y1BLswddO1lBc+r+DBx6Om+gy/0v4BVjZZn9d9hGB8NOc5 G+Vf8h/VChQZC3f/bt+g4woYfLO6MafQZM77VZgnvDVjuaylcHvgisgmCKoB3V8sU4U/ SBO4vtIkLvw+A8kYcVi0/vgH/Gksh/shjHCnAR153NBhYZTVYW8sxfwXAJmN5KB/Zoo6 ULxA== 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 p40-v6si582486lfg.1.2018.06.07.10.59.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 10:59:35 -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 w57HxV7C008488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 7 Jun 2018 19:59:33 +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: Date: Thu, 7 Jun 2018 19:59:31 +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: 6A44RJMj3+1W Hi Jan, I've tested the resulting image on Banana Pi. Banana Pi boots OK - I get login prompt. The only complain during booting is from fsck: >>>> Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. [ 7.536178] random: fast init done Begin: Will now check root file system ... fsck from util-linux 2.29.2 fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/mmcblk0p1 fsck exited with status code 8 done. Warning: File system check failed but did not detect errors [ 12.782364] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. [ 13.431139] systemd[1]: System time before build time, advancing clock. [ 13.582647] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN) [ 13.614171] systemd[1]: Detected architecture arm. Welcome to Debian GNU/Linux 9 (stretch)! <<<<< Kind regards, Maxim. 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! > > 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