From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6563939828686127104 X-Received: by 2002:a1c:2d0b:: with SMTP id t11-v6mr1331010wmt.7.1528695533255; Sun, 10 Jun 2018 22:38:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f707:: with SMTP id v7-v6ls1410458wmh.1.canary-gmail; Sun, 10 Jun 2018 22:38:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLudgJLqFD9bqySQFuu0nx2fmV7Ow9zLMJ/5ab/WfpEJc/03FDQBbzf+ai0j5+dMumWMax0 X-Received: by 2002:a1c:2d54:: with SMTP id t81-v6mr1361228wmt.3.1528695532556; Sun, 10 Jun 2018 22:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528695532; cv=none; d=google.com; s=arc-20160816; b=OqILPS5SGTLO3dbzDI185gDgZLX98AjbDAs6NNZPPpPwd/QU0kMrj0GeMI0ypC8Vqz oA+7asT08APpXwOzVeYohajqKL7iHk6P7xJcB4iWdFj5WOSKBK+BVbsybho4Et2Y3cye azFkD0Y1rVMCeuuHen6O3XeZ+G8Zs1IJg0nKARwDgic6L8UeUWm9ogmAPoDCNBupIc7A WtWVl3W5udp5KuknQNDm9uSd3V4ZUSQdu6sIgjRcp/9jwV8Fft4ZZH62GF2/J1jJl+VD cCwE1Hmmd6aF0f6ThGJE7pTw4mwni3hIPLpzy/0jGuD7/UGrw7Y3kZig4IPFotk+QCzT VShw== 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:autocrypt:openpgp:from:references:to :subject:arc-authentication-results; bh=Y5Ew7kQYOU3kLlyAi8LjT3eZV3UpvQVA4fuihfHppic=; b=AbmVsHhVPAnVsPcYcFBBGryn0KkYirbo3gges1kpkOFuzZLDJOPx5CCe93DV9Dfe1w Wxg+UfSSj8MOe7Rf5d9fq4If7juTWoFZ6eORGa7ug6Spw04RTC2//MalRxC3BJvHKfTg iErqDzhT4ph297qgIZSxA39UOpxaSpT0cU+aIli+CFKpIdK2qDguT+hoaGMTsgrxMm/M +Auzpl3gOHVGGAnvgj6gBjXiQ6HZDTIEUYhrIl0EfJ1fjszzEqrswypHcCXwJGT+ZJ5B D71EnFi4M/01KNM10P2JPZai/46GhSQcdccqllansZABXGhCF8fIITyHxXGgGtSRjDGb qOQQ== 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 m16-v6si817211wrr.3.2018.06.10.22.38.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 22:38:52 -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 mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w5B5cqld013793 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Jun 2018 07:38:52 +0200 Received: from [167.87.36.205] ([167.87.36.205]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id w5B5cp9e007738; Mon, 11 Jun 2018 07:38:52 +0200 Subject: Re: [PATCH v2 0/6] Enable U-Boot-based images, add Banana Pi demo To: "Maxim Yu. Osipov" , isar-users References: From: Jan Kiszka Openpgp: preference=signencrypt Autocrypt: addr=jan.kiszka@siemens.com; prefer-encrypt=mutual; keydata= xsDhBEq0i8QRBAD2wOxlC9m/8t/vqjm1U9yQCT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YrEslPWiCA2wU6EW0yaqBQAobFsOMvsufJ6o2ntq5Ncq37VI 3KCT67eHPE9x+zPcENoZWsRrC9S9PCf1LOsi7ybZsR13AJqDFlRzJZ4klh9QwgwFZxUBzOdI vttwzG1QkzHx06RKZluFYpPF3DRduSMukdIJ2wmWCU+ohB+mYefe65JGjYQfHVs8mgYVFOPx bRea9VJACCMuspoZWpj43UdR1lLLyIUFYz+jqcPW7Hd/GTIw4N67pYl0dwPDmFd4ohJ5g4Zp q61toNysBGEuEm5GCcn0VmGtQpSYnR5cVm5b2yPz4bIuFOSuZUo/l7vitdY0iy0/wvKbBC+N K8JJBBgRAgAJBQJKtIvEAhsMAAoJEIrUrG965ecULvAAoKGvxs5T3IhyQT8I8sMsyAvCE4wH AJ46S16yab+OxNkvOeoOEX0EnHVHaA== Message-ID: Date: Mon, 11 Jun 2018 07:38:51 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: RATMjDnQ55Y2 On 2018-06-07 19:59, Maxim Yu. Osipov wrote: > 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)! > <<<<< I think I saw this flying by as well but didn't look into details. I assume we are missing the corresponding fschk on the base image. Jan > > 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 >> > > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux