public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/5] Enable U-Boot-based images, add Banana Pi demo
@ 2018-06-06 11:58 Jan Kiszka
  2018-06-06 11:58 ` [PATCH 1/5] Add DISTRO and DISTRO_ARCH as OVERRIDES suffixes Jan Kiszka
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Jan Kiszka @ 2018-06-06 11:58 UTC (permalink / raw)
  To: isar-users

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 (5):
  Add DISTRO and DISTRO_ARCH as OVERRIDES suffixes
  buildchroot: Break up wic build deps into common and arch-specific
    ones
  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   | 18 +++++--
 meta-isar/scripts/lib/wic/canned-wks/bananapi.wks  |  5 ++
 meta/classes/isar-bootstrap-helper.bbclass         |  5 +-
 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       | 58 ++++++++++++++++++++++
 .../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   | 22 ++++++--
 15 files changed, 197 insertions(+), 39 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-06-07  6:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 11:58 [PATCH 0/5] Enable U-Boot-based images, add Banana Pi demo Jan Kiszka
2018-06-06 11:58 ` [PATCH 1/5] Add DISTRO and DISTRO_ARCH as OVERRIDES suffixes Jan Kiszka
2018-06-06 11:58 ` [PATCH 2/5] buildchroot: Break up wic build deps into common and arch-specific ones Jan Kiszka
2018-06-06 11:58 ` [PATCH 3/5] Set up target image fstab prior to installing any packages Jan Kiszka
2018-06-07  6:38   ` Claudius Heine
2018-06-06 11:58 ` [PATCH 4/5] Add u-boot script generator Jan Kiszka
2018-06-06 18:31   ` Jan Kiszka
2018-06-06 18:48   ` Jan Kiszka
2018-06-06 11:58 ` [PATCH 5/5] Add Banana Pi SD-card image Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox