public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v2 0/6] Enable U-Boot-based images, add Banana Pi demo
Date: Fri, 8 Jun 2018 20:10:27 +0200	[thread overview]
Message-ID: <0211f8a5-6256-25fa-6f4a-6cef8c66c9a5@ilbers.de> (raw)
In-Reply-To: <cover.1528381858.git.jan.kiszka@siemens.com>

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

      parent reply	other threads:[~2018-06-08 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 14:30 Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 1/6] Add DISTRO and DISTRO_ARCH as OVERRIDES suffixes Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 2/6] buildchroot: Break up wic build deps into common and arch-specific ones Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 3/6] isar-bootstrap: Use options for setup_root_file_system() Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 4/6] Set up target image fstab prior to installing any packages Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 5/6] Add u-boot script generator Jan Kiszka
2018-06-07 14:30 ` [PATCH v2 6/6] Add Banana Pi SD-card image Jan Kiszka
2018-06-07 17:59 ` [PATCH v2 0/6] Enable U-Boot-based images, add Banana Pi demo Maxim Yu. Osipov
2018-06-11  5:38   ` Jan Kiszka
2018-06-08 18:10 ` Maxim Yu. Osipov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0211f8a5-6256-25fa-6f4a-6cef8c66c9a5@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox