meta-arago.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image
@ 2022-03-19 12:32 Nishanth Menon
  2022-03-19 12:32 ` [master/dunfell PATCH V4 01/12] Revert "tisdk-tiny-image: remove packagedata task breaking initramfs packaging" Nishanth Menon
                   ` (12 more replies)
  0 siblings, 13 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:32 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Board bringups are typically painful. however, over the years, folks
know of minimal debug tools that are pretty effective in helping debug
basic peripherals. Lets create a reusable packagegroup balancing the
tools from wisdom from various folks vs the size of the resultant
package.

We would like to base such a system on more simplistic sysvinit (no
offence systemd, you are still our fav), as it has a much smaller
footprint.

The board startup is best done with a minimal u-boot and kernel device
tree configurations.

Dependency (for patch #12, depends on https://lore.kernel.org/all/20220314202840.18904-1-reatmon@ti.com/ )

Changes since V3:
* Fixes a typo that crept back in

V3: https://lore.kernel.org/all/20220318184045.11246-1-nm@ti.com/
V2: https://lore.kernel.org/all/20220318143735.17642-1-nm@ti.com/
V1: https://lore.kernel.org/all/20220309021316.28370-1-nm@ti.com/

Nishanth Menon (12):
  Revert "tisdk-tiny-image: remove packagedata task breaking initramfs
    packaging"
  tisdk-tiny-image: Split common components into include file
  tisdk-tiny-image: Add some usability notes
  tisdk-base-image: Reformat documentation and clarify usage
  tisdk-default-image: Reformat documentation and clarify usage
  tisdk-thinlinux-image: Reformat documentation
  tisdk-core-bundle: Add documentation to clarify usage
  packagegroups: Add a new bootstrap package group
  recipes-core: images: Add a basic bootstrap base image
  recipes-bsp: Create a bootstrap-initrd package
  recipes-core: images: Introduce tisdk-bootstrap-image
  images: Build tisdk-bootstrap-image with tisdk-core-bundle

 .../bootstrap-initrd/bootstrap-initrd_1.0.bb  | 22 ++++++++
 .../recipes-core/images/arago-tiny-image.inc  |  9 ++++
 .../recipes-core/images/tisdk-base-image.bb   |  6 ++-
 .../images/tisdk-bootstrap-base-image.bb      | 22 ++++++++
 .../images/tisdk-bootstrap-image.bb           | 22 ++++++++
 .../recipes-core/images/tisdk-core-bundle.bb  |  7 +++
 .../recipes-core/images/tisdk-core-bundle.inc |  2 +-
 .../images/tisdk-default-image.bb             |  5 +-
 .../images/tisdk-thinlinux-image.bb           |  6 ++-
 .../recipes-core/images/tisdk-tiny-image.bb   | 21 ++++----
 .../packagegroup-arago-bootstrap.bb           | 53 +++++++++++++++++++
 11 files changed, 160 insertions(+), 15 deletions(-)
 create mode 100644 meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb
 create mode 100644 meta-arago-distro/recipes-core/images/arago-tiny-image.inc
 create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
 create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb

-- 
2.31.1



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

* [master/dunfell PATCH V4 01/12] Revert "tisdk-tiny-image: remove packagedata task breaking initramfs packaging"
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
@ 2022-03-19 12:32 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 02/12] tisdk-tiny-image: Split common components into include file Nishanth Menon
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:32 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon, Denys Dmytriyenko

This reverts commit a75e468a372d4f5c2c32a179d4d2219899b5190c.

Commit a75e468a372d ("tisdk-tiny-image: remove packagedata task
breaking initramfs packaging") as discussed in [1] is no longer
necessary as the offending patches have been reverted in dunfell.

[1] https://lists.yoctoproject.org/g/meta-arago/message/13624

Suggested-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-2-nm@ti.com/

 meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
index c0ef8f247ee7..28da0b60cc35 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
@@ -13,6 +13,4 @@ IMAGE_INSTALL = " \
 	${ARAGO_TINY_IMAGE_EXTRA_INSTALL} \
 "
 
-deltask do_packagedata
-
 export IMAGE_BASENAME = "tisdk-tiny-image"
-- 
2.31.1



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

* [master/dunfell PATCH V4 02/12] tisdk-tiny-image: Split common components into include file
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
  2022-03-19 12:32 ` [master/dunfell PATCH V4 01/12] Revert "tisdk-tiny-image: remove packagedata task breaking initramfs packaging" Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 03/12] tisdk-tiny-image: Add some usability notes Nishanth Menon
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Lets split the common pieces for creating a tiny image into an include
file. This can then be used to incrementally build additional images
as well.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-3-nm@ti.com/

 .../{tisdk-tiny-image.bb => arago-tiny-image.inc}     |  7 -------
 .../recipes-core/images/tisdk-tiny-image.bb           | 11 +++--------
 2 files changed, 3 insertions(+), 15 deletions(-)
 copy meta-arago-distro/recipes-core/images/{tisdk-tiny-image.bb => arago-tiny-image.inc} (50%)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
similarity index 50%
copy from meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
copy to meta-arago-distro/recipes-core/images/arago-tiny-image.inc
index 28da0b60cc35..79c8f6075911 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
@@ -4,13 +4,6 @@ require arago-image.inc
 
 IMAGE_FEATURES_remove = "package-management splash"
 
-IMAGE_FSTYPES += "cpio cpio.xz"
-
-ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
-
 IMAGE_INSTALL = " \
 	packagegroup-arago-sysvinit-boot \
-	${ARAGO_TINY_IMAGE_EXTRA_INSTALL} \
 "
-
-export IMAGE_BASENAME = "tisdk-tiny-image"
diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
index 28da0b60cc35..85ae3728e86e 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
@@ -1,15 +1,10 @@
-ARAGO_SYSVINIT = "1"
-
-require arago-image.inc
+ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
 
-IMAGE_FEATURES_remove = "package-management splash"
+require arago-tiny-image.inc
 
 IMAGE_FSTYPES += "cpio cpio.xz"
 
-ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
-
-IMAGE_INSTALL = " \
-	packagegroup-arago-sysvinit-boot \
+IMAGE_INSTALL += " \
 	${ARAGO_TINY_IMAGE_EXTRA_INSTALL} \
 "
 
-- 
2.31.1



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

* [master/dunfell PATCH V4 03/12] tisdk-tiny-image: Add some usability notes
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
  2022-03-19 12:32 ` [master/dunfell PATCH V4 01/12] Revert "tisdk-tiny-image: remove packagedata task breaking initramfs packaging" Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 02/12] tisdk-tiny-image: Split common components into include file Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 04/12] tisdk-base-image: Reformat documentation and clarify usage Nishanth Menon
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Lets clarify the usage of tiny image as something meant as a building
block and not something that folks can directly use.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-4-nm@ti.com/

 .../recipes-core/images/tisdk-tiny-image.bb            | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
index 85ae3728e86e..210bc32444f9 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
@@ -1,3 +1,13 @@
+SUMMARY = "Arago TI SDK super minimal base image for initramfs"
+
+DESCRIPTION = "Image meant for basic boot of linux kernel. Intended as\
+ bare system, this image does not package the kernel in the\
+ standard /boot folder in rootfs. Instead, it provides a base\
+ rootfs allowing kernel to be deployed elsewhere\
+ (tftp/separate boot partition/jtag log etc..) and boot\
+ the image.\
+"
+
 ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
 
 require arago-tiny-image.inc
-- 
2.31.1



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

* [master/dunfell PATCH V4 04/12] tisdk-base-image: Reformat documentation and clarify usage
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (2 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 03/12] tisdk-tiny-image: Add some usability notes Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 05/12] tisdk-default-image: " Nishanth Menon
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Reformat the documentation to indicate the summary and description
in a standardized manner.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-5-nm@ti.com/

 meta-arago-distro/recipes-core/images/tisdk-base-image.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-base-image.bb b/meta-arago-distro/recipes-core/images/tisdk-base-image.bb
index 76668831354f..8698816df52d 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-base-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-base-image.bb
@@ -1,5 +1,7 @@
-# Arago TI SDK base image with test tools
-# Suitable for initramfs
+SUMMARY = " Arago TI SDK base image with test tools"
+
+DESCRIPTION = "Arago SDK base image suitable for initramfs containing\
+ comprehensive test tools."
 
 require arago-image.inc
 
-- 
2.31.1



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

* [master/dunfell PATCH V4 05/12] tisdk-default-image: Reformat documentation and clarify usage
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (3 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 04/12] tisdk-base-image: Reformat documentation and clarify usage Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 06/12] tisdk-thinlinux-image: Reformat documentation Nishanth Menon
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Reformat the documentation to indicate the summary and description
in a standardized manner.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-6-nm@ti.com/

 meta-arago-distro/recipes-core/images/tisdk-default-image.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
index 152f8572afcb..a84e752c0402 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
@@ -1,4 +1,7 @@
-# Arago TI SDK full filesystem image
+SUMMARY = "Arago TI SDK full filesystem image"
+
+DESCRIPTION = "Complete Arago TI SDK filesystem image containing complete\
+ applications and packages to entitle the SoC."
 
 require arago-image.inc
 
-- 
2.31.1



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

* [master/dunfell PATCH V4 06/12] tisdk-thinlinux-image: Reformat documentation
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (4 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 05/12] tisdk-default-image: " Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage Nishanth Menon
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Reformat the documentation to indicate the summary and description
in a standardized manner.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-7-nm@ti.com/

 .../recipes-core/images/tisdk-thinlinux-image.bb            | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb b/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb
index aa732df6b509..dc073d72d063 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb
@@ -1,5 +1,7 @@
-# Arago TI Thin Linux image
-# Minimal bootable image with container to start the next complex system up.
+SUMMARY = "Arago TI SDK Thin Linux image"
+
+DESCRIPTION = "Minimal bootable image with container to start the next\
+ complex system up."
 
 require arago-image.inc
 
-- 
2.31.1



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

* [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (5 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 06/12] tisdk-thinlinux-image: Reformat documentation Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-22 12:18   ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 08/12] packagegroups: Add a new bootstrap package group Nishanth Menon
                   ` (5 subsequent siblings)
  12 siblings, 1 reply; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Add documentation to the core-bundle to explain the usage and intent
of the build configuration.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-8-nm@ti.com/

 meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
index 253bfbb68657..0892a8a62d57 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
@@ -1,3 +1,10 @@
+SUMMARY = "Installer package for TI SDK - NOT for direct use on target"
+
+DESCRIPTION = "This creates an installer including all the default images\
+ recommended including source, binaries, filesystems, etc.
+ for TI SDK. This is meant to be used on the host system.
+"
+
 require tisdk-core-bundle.inc
 
 DEPLOY_SPL_NAME_omapl138 = ""
-- 
2.31.1



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

* [master/dunfell PATCH V4 08/12] packagegroups: Add a new bootstrap package group
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (6 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 09/12] recipes-core: images: Add a basic bootstrap base image Nishanth Menon
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Lets try and create a minimal package group for board bringup. Lets
call this basic system necessary for board bringup as "bootstrap".

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-9-nm@ti.com/

 .../packagegroup-arago-bootstrap.bb           | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb
new file mode 100644
index 000000000000..9d961c282c5d
--- /dev/null
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb
@@ -0,0 +1,53 @@
+SUMMARY = "Task to install additional utilities for initial board bringup"
+LICENSE = "MIT"
+PR = "r0"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit packagegroup
+
+UTILS = " \
+	 arm-benchmarks \
+	 evtest \
+	 memtester \
+	 nbench-byte \
+	 pcitest \
+	 serialcheck \
+	 yavta \
+	 hdparm \
+	 i2c-tools \
+	 libdrm-tests \
+	 rt-tests \
+	 iozone3 \
+	 mtd-utils-ubifs-tests \
+	 net-tools \
+	 ethtool  \
+	 pciutils \
+	 rng-tools \
+	 stress-ng \
+	 iperf \
+	 lmbench \
+	 usbutils \
+	 devmem2 \
+	 phytool \
+"
+
+UTILS_append_ti33x = " \
+    omapconf \
+"
+
+UTILS_append_ti43x = " \
+    omapconf \
+"
+
+UTILS_append_omap-a15 = " \
+    omapconf \
+"
+
+UTILS_append_k3 = " \
+    k3conf \
+"
+
+RDEPENDS_${PN} = "\
+    ${UTILS} \
+"
-- 
2.31.1



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

* [master/dunfell PATCH V4 09/12] recipes-core: images: Add a basic bootstrap base image
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (7 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 08/12] packagegroups: Add a new bootstrap package group Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 10/12] recipes-bsp: Create a bootstrap-initrd package Nishanth Menon
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Since we do not wish to modify the tiny-image from anything but really
tiny, lets use that infrastructure and add the bootstrap package group
to create initramfs (not exactly a completely usable system) which can
be used for basic board bringup.

This generates cpio around 36-40MB which should be usually fine for
even smaller systems (Ofcourse, this is much larger than tiny-image
which is around 6MB size). The packages are organized per size to
allow easier customization if desired.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-10-nm@ti.com/

 .../images/tisdk-bootstrap-base-image.bb      | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb

diff --git a/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
new file mode 100644
index 000000000000..8b7f10c9f343
--- /dev/null
+++ b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Arago TI SDK bootstrap base image for initramfs"
+
+DESCRIPTION = "Image meant for basic system verification of linux kernel.\
+ Intended as basic test system, this image does not package the kernel\
+ in the standard /boot folder in rootfs. Instead, it provides a base\
+ rootfs with enough basic board bringup utilities allowing kernel to be\
+ deployed elsewhere (tftp/separate boot partition/jtag log etc..) and\
+ maybe used for basic platform bringup (bootstrap) activities.\
+"
+
+require arago-tiny-image.inc
+
+IMAGE_FSTYPES += "cpio cpio.xz"
+
+ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL ?= ""
+
+IMAGE_INSTALL += " \
+	packagegroup-arago-bootstrap \
+	${ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL} \
+"
+
+export IMAGE_BASENAME = "tisdk-bootstrap-base-image"
-- 
2.31.1



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

* [master/dunfell PATCH V4 10/12] recipes-bsp: Create a bootstrap-initrd package
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (8 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 09/12] recipes-core: images: Add a basic bootstrap base image Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 11/12] recipes-core: images: Introduce tisdk-bootstrap-image Nishanth Menon
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Lets create an bootstrap-initrd package that installs the cpio
generated in the correct locations.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-11-nm@ti.com/

 .../bootstrap-initrd/bootstrap-initrd_1.0.bb  | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb

diff --git a/meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb b/meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb
new file mode 100644
index 000000000000..2a53efcd9062
--- /dev/null
+++ b/meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Prebuilt initramfs with apps for bootstraping new board"
+
+LICENSE = "GPLv2"
+
+CLEANBROKEN = "1"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}"
+
+BOOSTRAP_IMAGE="tisdk-bootstrap-base-image"
+
+TARGET = "bootstrap-rootfs-${MACHINE}.cpio"
+
+do_install() {
+	install -d ${D}/boot
+	install -m 0644 ${DEPLOY_DIR_IMAGE}/${BOOSTRAP_IMAGE}-${MACHINE}.cpio  ${D}/boot/${TARGET}
+}
+
+FILES_${PN} = "/boot"
+
+do_install[depends] = "${BOOSTRAP_IMAGE}:do_image_complete"
-- 
2.31.1



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

* [master/dunfell PATCH V4 11/12] recipes-core: images: Introduce tisdk-bootstrap-image
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (9 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 10/12] recipes-bsp: Create a bootstrap-initrd package Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-19 12:33 ` [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle Nishanth Menon
  2022-03-22  4:48 ` [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Denys Dmytriyenko
  12 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Lets introduce tisdk-bootstrap-image which now consists of a
completely bootable system with minimal initramfs that can be used
to boot up a system. We also will create a rootfs that matches with
the initramfs to allow users who use mmc and other boot media to have
access to the same debug tools for a new platform bringup

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3:
* s/kernel/kernel-base/ again!

V3: https://lore.kernel.org/all/20220318184045.11246-12-nm@ti.com/

 .../images/tisdk-bootstrap-image.bb           | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb

diff --git a/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb
new file mode 100644
index 000000000000..b41f09fb0ec7
--- /dev/null
+++ b/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Arago TI SDK bootstrap image usable for board bringup"
+
+DESCRIPTION = "This image is a complete package containing a rootfs\
+ and an initrd with platform test utilities that can be used for new\
+ platform bringup activities. Typically one would use the bootstrap\
+ initrd till the storage media access is debugged, following which one\
+ would switch over to using the storage media of choice with the same\
+ content.\
+"
+
+require arago-tiny-image.inc
+
+ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL ?= ""
+
+IMAGE_INSTALL += " \
+	packagegroup-arago-bootstrap \
+	kernel-base \
+	bootstrap-initrd \
+	${ARAGO_BOOTSTRAP_IMAGE_EXTRA_INSTALL} \
+"
+
+export IMAGE_BASENAME = "tisdk-bootstrap-image"
-- 
2.31.1



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

* [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (10 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 11/12] recipes-core: images: Introduce tisdk-bootstrap-image Nishanth Menon
@ 2022-03-19 12:33 ` Nishanth Menon
  2022-03-22  4:55   ` Denys Dmytriyenko
  2022-03-22  4:48 ` [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Denys Dmytriyenko
  12 siblings, 1 reply; 19+ messages in thread
From: Nishanth Menon @ 2022-03-19 12:33 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton, Nishanth Menon

Add tisdk-bootstrap-image to the list of TARGET_IMAGES for
tisdk-core-bundle.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
Changes Since V3: None.

V3: https://lore.kernel.org/all/20220318184045.11246-13-nm@ti.com/

 meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
index 5ce688ef24b7..db73abd27fc2 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
+++ b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
@@ -32,7 +32,7 @@ DTB_FILTER_am65xx = "am65"
 DTB_FILTER_j7 = "j721e"
 
 # List of target side images to build for the SDK
-TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image"
+TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image tisdk-bootstrap-image"
 
 # dra71 lcard requires an initramfs with modules for NFS boot
 TARGET_IMAGES_append_dra7xx-evm = " netboot-initrd"
-- 
2.31.1



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

* Re: [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image
  2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
                   ` (11 preceding siblings ...)
  2022-03-19 12:33 ` [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle Nishanth Menon
@ 2022-03-22  4:48 ` Denys Dmytriyenko
  12 siblings, 0 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2022-03-22  4:48 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: reatmon, d-gerlach, j-humphreys, khilman, meta-arago, minas,
	nikhil.nd, praneeth, spatton

Looks reasonable to me. For the series:

Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>


On Sat, Mar 19, 2022 at 07:32:58AM -0500, Nishanth Menon wrote:
> Board bringups are typically painful. however, over the years, folks
> know of minimal debug tools that are pretty effective in helping debug
> basic peripherals. Lets create a reusable packagegroup balancing the
> tools from wisdom from various folks vs the size of the resultant
> package.
> 
> We would like to base such a system on more simplistic sysvinit (no
> offence systemd, you are still our fav), as it has a much smaller
> footprint.
> 
> The board startup is best done with a minimal u-boot and kernel device
> tree configurations.
> 
> Dependency (for patch #12, depends on https://lore.kernel.org/all/20220314202840.18904-1-reatmon@ti.com/ )
> 
> Changes since V3:
> * Fixes a typo that crept back in
> 
> V3: https://lore.kernel.org/all/20220318184045.11246-1-nm@ti.com/
> V2: https://lore.kernel.org/all/20220318143735.17642-1-nm@ti.com/
> V1: https://lore.kernel.org/all/20220309021316.28370-1-nm@ti.com/
> 
> Nishanth Menon (12):
>   Revert "tisdk-tiny-image: remove packagedata task breaking initramfs
>     packaging"
>   tisdk-tiny-image: Split common components into include file
>   tisdk-tiny-image: Add some usability notes
>   tisdk-base-image: Reformat documentation and clarify usage
>   tisdk-default-image: Reformat documentation and clarify usage
>   tisdk-thinlinux-image: Reformat documentation
>   tisdk-core-bundle: Add documentation to clarify usage
>   packagegroups: Add a new bootstrap package group
>   recipes-core: images: Add a basic bootstrap base image
>   recipes-bsp: Create a bootstrap-initrd package
>   recipes-core: images: Introduce tisdk-bootstrap-image
>   images: Build tisdk-bootstrap-image with tisdk-core-bundle
> 
>  .../bootstrap-initrd/bootstrap-initrd_1.0.bb  | 22 ++++++++
>  .../recipes-core/images/arago-tiny-image.inc  |  9 ++++
>  .../recipes-core/images/tisdk-base-image.bb   |  6 ++-
>  .../images/tisdk-bootstrap-base-image.bb      | 22 ++++++++
>  .../images/tisdk-bootstrap-image.bb           | 22 ++++++++
>  .../recipes-core/images/tisdk-core-bundle.bb  |  7 +++
>  .../recipes-core/images/tisdk-core-bundle.inc |  2 +-
>  .../images/tisdk-default-image.bb             |  5 +-
>  .../images/tisdk-thinlinux-image.bb           |  6 ++-
>  .../recipes-core/images/tisdk-tiny-image.bb   | 21 ++++----
>  .../packagegroup-arago-bootstrap.bb           | 53 +++++++++++++++++++
>  11 files changed, 160 insertions(+), 15 deletions(-)
>  create mode 100644 meta-arago-distro/recipes-bsp/bootstrap-initrd/bootstrap-initrd_1.0.bb
>  create mode 100644 meta-arago-distro/recipes-core/images/arago-tiny-image.inc
>  create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bb
>  create mode 100644 meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bb
>  create mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-bootstrap.bb
> 
> -- 
> 2.31.1
> 

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964


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

* Re: [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle
  2022-03-19 12:33 ` [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle Nishanth Menon
@ 2022-03-22  4:55   ` Denys Dmytriyenko
  2022-03-22 12:44     ` Nishanth Menon
       [not found]     ` <16DEB49A300B0672.26416@lists.yoctoproject.org>
  0 siblings, 2 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2022-03-22  4:55 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: reatmon, d-gerlach, j-humphreys, khilman, meta-arago, minas,
	nikhil.nd, praneeth, spatton

On Sat, Mar 19, 2022 at 07:33:10AM -0500, Nishanth Menon wrote:
> Add tisdk-bootstrap-image to the list of TARGET_IMAGES for
> tisdk-core-bundle.

I just realized - this won't work (and the patch hasn't been tested).

As you can see, there was no tiny image in this list. The reason is that tiny 
image has package management disabled for additional size savings, but that 
also breaks the way SDK installer bundle gets processed for the SW manifest. 
That means any other images that are based on tiny or that disable package 
management, cannot be listed in TARGET_IMAGES of the SDK installer bundle.


> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> Changes Since V3: None.
> 
> V3: https://lore.kernel.org/all/20220318184045.11246-13-nm@ti.com/
> 
>  meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
> index 5ce688ef24b7..db73abd27fc2 100644
> --- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
> +++ b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc
> @@ -32,7 +32,7 @@ DTB_FILTER_am65xx = "am65"
>  DTB_FILTER_j7 = "j721e"
>  
>  # List of target side images to build for the SDK
> -TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image"
> +TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image tisdk-bootstrap-image"
>  
>  # dra71 lcard requires an initramfs with modules for NFS boot
>  TARGET_IMAGES_append_dra7xx-evm = " netboot-initrd"
> -- 
> 2.31.1
> 

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964


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

* Re: [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage
  2022-03-19 12:33 ` [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage Nishanth Menon
@ 2022-03-22 12:18   ` Nishanth Menon
  0 siblings, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-22 12:18 UTC (permalink / raw)
  To: denis, reatmon
  Cc: d-gerlach, j-humphreys, khilman, meta-arago, minas, nikhil.nd,
	praneeth, spatton

On 07:33-20220319, Nishanth Menon wrote:
> Add documentation to the core-bundle to explain the usage and intent
> of the build configuration.
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> Changes Since V3: None.
> 
> V3: https://lore.kernel.org/all/20220318184045.11246-8-nm@ti.com/
> 
>  meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
> index 253bfbb68657..0892a8a62d57 100644
> --- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
> +++ b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb
> @@ -1,3 +1,10 @@
> +SUMMARY = "Installer package for TI SDK - NOT for direct use on target"
> +
> +DESCRIPTION = "This creates an installer including all the default images\
> + recommended including source, binaries, filesystems, etc.
> + for TI SDK. This is meant to be used on the host system.

^^ Missing \ at EoL. Sorry about that, I did some last min reformatting
:(

> +"
> +
>  require tisdk-core-bundle.inc
>  
>  DEPLOY_SPL_NAME_omapl138 = ""
> -- 
> 2.31.1
> 

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


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

* Re: [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle
  2022-03-22  4:55   ` Denys Dmytriyenko
@ 2022-03-22 12:44     ` Nishanth Menon
       [not found]     ` <16DEB49A300B0672.26416@lists.yoctoproject.org>
  1 sibling, 0 replies; 19+ messages in thread
From: Nishanth Menon @ 2022-03-22 12:44 UTC (permalink / raw)
  To: Denys Dmytriyenko
  Cc: reatmon, d-gerlach, j-humphreys, khilman, meta-arago, minas,
	nikhil.nd, praneeth, spatton

On 00:55-20220322, Denys Dmytriyenko wrote:
> On Sat, Mar 19, 2022 at 07:33:10AM -0500, Nishanth Menon wrote:
> > Add tisdk-bootstrap-image to the list of TARGET_IMAGES for
> > tisdk-core-bundle.
> 
> I just realized - this won't work (and the patch hasn't been tested).
> 
> As you can see, there was no tiny image in this list. The reason is that tiny 
> image has package management disabled for additional size savings, but that 
> also breaks the way SDK installer bundle gets processed for the SW manifest. 
> That means any other images that are based on tiny or that disable package 
> management, cannot be listed in TARGET_IMAGES of the SDK installer bundle.


I think you mean IMAGE_FEATURES_remove = "package-management" in
tiny-image.inc

I did do MACHINE=xxx bitbake tisdk-core-bundle, but I did'nt wait for it
to complete (got to 99%).

I also do see ipks in build/arago-tmp-external-arm-glibc/deploy/ipk/all
and in build/arago-tmp-external-arm-glibc/deploy/ipk/aarch64/

During the build, I did notice:
WARNING: bootstrap-initrd-1.0-r0 do_package: Manifest /workdir/pub-sdk/oe-layersetup/build/arago-tmp-external-arm-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-tisdk-bootstrap-base-image.packagedata not found in j7_evm aarch64 allarch x86_64_x86_64-nativesdk (variant '')?

And once I waited for the complete build, I got this:
https://gist.github.com/nmenon/3ef33a14df77d9c7869f4c87fcfbc990

I guess I have to see how to introduce packagemanagement back in for
bootstrap image?

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


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

* Re: [meta-arago] [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle
       [not found]     ` <16DEB49A300B0672.26416@lists.yoctoproject.org>
@ 2022-03-22 13:47       ` Nishanth Menon
  2022-03-22 17:35         ` Denys Dmytriyenko
  0 siblings, 1 reply; 19+ messages in thread
From: Nishanth Menon @ 2022-03-22 13:47 UTC (permalink / raw)
  To: Denys Dmytriyenko, reatmon, d-gerlach, j-humphreys, khilman,
	meta-arago, minas, nikhil.nd, praneeth, spatton

On 07:44-20220322, Nishanth Menon via lists.yoctoproject.org wrote:
> On 00:55-20220322, Denys Dmytriyenko wrote:
> > On Sat, Mar 19, 2022 at 07:33:10AM -0500, Nishanth Menon wrote:
> > > Add tisdk-bootstrap-image to the list of TARGET_IMAGES for
> > > tisdk-core-bundle.
> > 
> > I just realized - this won't work (and the patch hasn't been tested).
> > 
> > As you can see, there was no tiny image in this list. The reason is that tiny 
> > image has package management disabled for additional size savings, but that 
> > also breaks the way SDK installer bundle gets processed for the SW manifest. 
> > That means any other images that are based on tiny or that disable package 
> > management, cannot be listed in TARGET_IMAGES of the SDK installer bundle.
> 
> 
> I think you mean IMAGE_FEATURES_remove = "package-management" in
> tiny-image.inc
> 
> I did do MACHINE=xxx bitbake tisdk-core-bundle, but I did'nt wait for it
> to complete (got to 99%).
> 
> I also do see ipks in build/arago-tmp-external-arm-glibc/deploy/ipk/all
> and in build/arago-tmp-external-arm-glibc/deploy/ipk/aarch64/
> 
> During the build, I did notice:
> WARNING: bootstrap-initrd-1.0-r0 do_package: Manifest /workdir/pub-sdk/oe-layersetup/build/arago-tmp-external-arm-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-tisdk-bootstrap-base-image.packagedata not found in j7_evm aarch64 allarch x86_64_x86_64-nativesdk (variant '')?
> 
> And once I waited for the complete build, I got this:
> https://gist.github.com/nmenon/3ef33a14df77d9c7869f4c87fcfbc990
> 
> I guess I have to see how to introduce packagemanagement back in for
> bootstrap image?
> 

Denys: This seems to resolve the build error..  Thoughts?

diff --git a/meta-arago-distro/recipes-core/images/arago-tiny-image.inc b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
index 79c8f6075911..958dd8bb9399 100644
--- a/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
+++ b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
@@ -2,7 +2,7 @@ ARAGO_SYSVINIT = "1"
 
 require arago-image.inc
 
-IMAGE_FEATURES_remove = "package-management splash"
+IMAGE_FEATURES_remove = "splash"
 
 IMAGE_INSTALL = " \
 	packagegroup-arago-sysvinit-boot \
diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
index 210bc32444f9..528efa2746b4 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
@@ -12,6 +12,8 @@ ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
 
 require arago-tiny-image.inc
 
+IMAGE_FEATURES_remove += "package-management"
+
 IMAGE_FSTYPES += "cpio cpio.xz"
 
 IMAGE_INSTALL += " \
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


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

* Re: [meta-arago] [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle
  2022-03-22 13:47       ` [meta-arago] " Nishanth Menon
@ 2022-03-22 17:35         ` Denys Dmytriyenko
  0 siblings, 0 replies; 19+ messages in thread
From: Denys Dmytriyenko @ 2022-03-22 17:35 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: reatmon, d-gerlach, j-humphreys, khilman, meta-arago, minas,
	nikhil.nd, praneeth, spatton

On Tue, Mar 22, 2022 at 08:47:50AM -0500, Nishanth Menon wrote:
> On 07:44-20220322, Nishanth Menon via lists.yoctoproject.org wrote:
> > On 00:55-20220322, Denys Dmytriyenko wrote:
> > > On Sat, Mar 19, 2022 at 07:33:10AM -0500, Nishanth Menon wrote:
> > > > Add tisdk-bootstrap-image to the list of TARGET_IMAGES for
> > > > tisdk-core-bundle.
> > > 
> > > I just realized - this won't work (and the patch hasn't been tested).
> > > 
> > > As you can see, there was no tiny image in this list. The reason is that tiny 
> > > image has package management disabled for additional size savings, but that 
> > > also breaks the way SDK installer bundle gets processed for the SW manifest. 
> > > That means any other images that are based on tiny or that disable package 
> > > management, cannot be listed in TARGET_IMAGES of the SDK installer bundle.
> > 
> > 
> > I think you mean IMAGE_FEATURES_remove = "package-management" in
> > tiny-image.inc
> > 
> > I did do MACHINE=xxx bitbake tisdk-core-bundle, but I did'nt wait for it
> > to complete (got to 99%).
> > 
> > I also do see ipks in build/arago-tmp-external-arm-glibc/deploy/ipk/all
> > and in build/arago-tmp-external-arm-glibc/deploy/ipk/aarch64/
> > 
> > During the build, I did notice:
> > WARNING: bootstrap-initrd-1.0-r0 do_package: Manifest /workdir/pub-sdk/oe-layersetup/build/arago-tmp-external-arm-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-tisdk-bootstrap-base-image.packagedata not found in j7_evm aarch64 allarch x86_64_x86_64-nativesdk (variant '')?
> > 
> > And once I waited for the complete build, I got this:
> > https://gist.github.com/nmenon/3ef33a14df77d9c7869f4c87fcfbc990
> > 
> > I guess I have to see how to introduce packagemanagement back in for
> > bootstrap image?
> > 
> 
> Denys: This seems to resolve the build error..  Thoughts?
> 
> diff --git a/meta-arago-distro/recipes-core/images/arago-tiny-image.inc b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
> index 79c8f6075911..958dd8bb9399 100644
> --- a/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
> +++ b/meta-arago-distro/recipes-core/images/arago-tiny-image.inc
> @@ -2,7 +2,7 @@ ARAGO_SYSVINIT = "1"
>  
>  require arago-image.inc
>  
> -IMAGE_FEATURES_remove = "package-management splash"
> +IMAGE_FEATURES_remove = "splash"
>  
>  IMAGE_INSTALL = " \
>  	packagegroup-arago-sysvinit-boot \
> diff --git a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
> index 210bc32444f9..528efa2746b4 100644
> --- a/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
> +++ b/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bb
> @@ -12,6 +12,8 @@ ARAGO_TINY_IMAGE_EXTRA_INSTALL ?= ""
>  
>  require arago-tiny-image.inc
>  
> +IMAGE_FEATURES_remove += "package-management"

s/+=/=/


> +
>  IMAGE_FSTYPES += "cpio cpio.xz"
>  
>  IMAGE_INSTALL += " \

Yeah, this should work.


-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964


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

end of thread, other threads:[~2022-03-22 17:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-19 12:32 [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Nishanth Menon
2022-03-19 12:32 ` [master/dunfell PATCH V4 01/12] Revert "tisdk-tiny-image: remove packagedata task breaking initramfs packaging" Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 02/12] tisdk-tiny-image: Split common components into include file Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 03/12] tisdk-tiny-image: Add some usability notes Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 04/12] tisdk-base-image: Reformat documentation and clarify usage Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 05/12] tisdk-default-image: " Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 06/12] tisdk-thinlinux-image: Reformat documentation Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 07/12] tisdk-core-bundle: Add documentation to clarify usage Nishanth Menon
2022-03-22 12:18   ` Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 08/12] packagegroups: Add a new bootstrap package group Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 09/12] recipes-core: images: Add a basic bootstrap base image Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 10/12] recipes-bsp: Create a bootstrap-initrd package Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 11/12] recipes-core: images: Introduce tisdk-bootstrap-image Nishanth Menon
2022-03-19 12:33 ` [master/dunfell PATCH V4 12/12] images: Build tisdk-bootstrap-image with tisdk-core-bundle Nishanth Menon
2022-03-22  4:55   ` Denys Dmytriyenko
2022-03-22 12:44     ` Nishanth Menon
     [not found]     ` <16DEB49A300B0672.26416@lists.yoctoproject.org>
2022-03-22 13:47       ` [meta-arago] " Nishanth Menon
2022-03-22 17:35         ` Denys Dmytriyenko
2022-03-22  4:48 ` [master/dunfell PATCH V4 00/12] recipes-core: Add a bootstrap Linux image Denys Dmytriyenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).